{"uid":"cap_um-krXY6GsxRQ0yk9uZYR","slug":"domain-normalize-api-f3c441f8","name":"Domain Normalize API","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/domain/normalize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"domain":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"domain":"example.com"},"meta":{"engine":"domain-normalize"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7M6mYg9s33SNyWv8NPqDu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and canonicalizes a domain name string into a clean, consistent format for use in coding agent workflows","exampleAgentPrompt":"Can you normalize the domain 'https://www.Example.COM/some/path' down to its canonical form so I can use it consistently in my code?","exampleUseCases":[{"title":"Normalize user-submitted website URL","prompt":"I'm collecting website URLs from users and they come in all kinds of messy formats like 'https://WWW.MySite.com/page' or 'mysite.com' — can you normalize them all to a clean domain like 'mysite.com'?"},{"title":"Deduplicate domains before database insert","prompt":"Before I insert these domains into my database, can you normalize 'Http://Blog.Example.ORG/' so I can check for duplicates consistently?"},{"title":"Standardize domain in coding agent pipeline","prompt":"My coding agent pipeline needs a consistent domain key — can you take 'www.GitHub.com' and normalize it to its canonical form for me?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the normalized domain string (e.g. 'example.com') and a 'meta' field indicating the engine used ('domain-normalize'). The domain is stripped of protocol, www prefix, paths, and casing inconsistencies.","failureModes":["Missing or empty 'domain' field returns an error","Malformed input that cannot be parsed as a domain may return an error or unexpected normalization","Network timeout on the Cloudflare Worker edge","Invalid JSON body returns a parse error"],"whenToPreferThis":"Use this endpoint when you need a cheap ($0.01 USDC), reliable, deterministic way to canonicalize domain strings within a coding agent or data pipeline — particularly when operating in an x402/AgentCash micropayment environment. Prefer this over custom regex normalization when consistency and correctness of edge cases matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:42:40.645Z","isFirstParty":false}