{"uid":"cap_Y5Jo0dHB39cSJRPUoD8RL","slug":"domain-parser-public-suffix-list-e071aafb","name":"Domain Parser (Public Suffix List)","description":"Split a domain into TLD/SLD/subdomain using the official Public Suffix List","url":"https://domain-parser.nordman-tehau.workers.dev/v1/domain/parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name to parse (e.g. sub.example.co.uk)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JXyPxlAIzZjRqq_gRHlPZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a domain name into its TLD, second-level domain (SLD), and subdomain components using the official Public Suffix List","exampleAgentPrompt":"Can you parse the domain 'mail.example.co.uk' and tell me its TLD, second-level domain, and subdomain?","exampleUseCases":[{"title":"Extract registrable domain from user input","prompt":"I have a full hostname like 'api.beta.mycompany.com.au' — can you break it down so I can see the TLD, the registrable domain, and the subdomain separately?"},{"title":"Classify email domain structure","prompt":"I'm processing a list of email addresses and need to separate the subdomain from the root domain for 'mail.signup.bigcorp.co.jp' — can you parse that out?"},{"title":"Validate and normalize URL hostnames","prompt":"Before storing this hostname in our database, can you parse 'cdn.assets.shop.example.de' using the Public Suffix List to confirm the TLD and get the SLD and subdomain?"}],"resultDescription":"Returns the domain broken into its constituent parts: the public suffix (TLD), the second-level domain (SLD/registrable domain), and any subdomain, as determined by the official Public Suffix List","failureModes":["Invalid or malformed domain name returns an error","Domain with unrecognized TLD not in the Public Suffix List may fail or return unexpected results","Empty input or missing 'domain' field returns a validation error","Domains with trailing dots or special characters may cause parsing errors"],"whenToPreferThis":"Choose this endpoint when you need accurate domain decomposition based on the authoritative Public Suffix List, especially for multi-part TLDs like .co.uk, .com.au, or .gov.br where naive string splitting would fail. It is preferable over regex-based approaches or simple string splitting for any domain parsing that must handle country-code and multi-label TLDs correctly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:56.429Z","isFirstParty":false}