{"uid":"cap_XZxMCwNkZx9zwk_2hS2kH","slug":"domain-parts-parser-x402-zoo-lolagent-workers-dev-326015b4","name":"Domain Parts Parser (x402-zoo.lolagent.workers.dev)","description":"Parse a URL or hostname into subdomain, registrable domain and suffix using a bundled common-suffix table.","url":"https://x402-zoo.lolagent.workers.dev/api/domain-parts","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string"},"hostname":{"type":"string"}}}},"additionalProperties":false}}},"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_uoQjWJ2E2YN46HyQ-Mzrk","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":"Parses a URL or hostname into its constituent parts — subdomain, registrable domain, and public suffix — using a bundled common-suffix table.","exampleAgentPrompt":"Can you parse 'blog.example.co.uk' into its subdomain, registrable domain, and public suffix?","exampleUseCases":[{"title":"Validate domain structure before registration","prompt":"I have the URL 'https://shop.mybrand.com/products' — can you break it down into subdomain, registrable domain, and suffix so I can verify the structure before we set up DNS records?"},{"title":"Classify user-submitted hostnames by TLD","prompt":"I'm getting user-submitted hostnames like 'api.service.io' and 'mail.company.co.uk' — can you parse each one into its parts so I can group them by public suffix?"},{"title":"Extract registrable domain from scraped URLs","prompt":"I scraped this URL 'https://news.ycombinator.com/item?id=12345' — pull out just the registrable domain and public suffix for me, stripping the subdomain."}],"resultDescription":"Returns the parsed components of the provided URL or hostname: the subdomain (e.g. 'blog'), the registrable domain (e.g. 'example'), and the public suffix (e.g. 'co.uk'), derived using a bundled common-suffix table that handles multi-level TLDs correctly.","failureModes":["Missing both 'url' and 'hostname' query parameters returns an error","Malformed or unparseable URL may return an error or empty fields","Unknown or very new TLDs not in the bundled suffix table may be misclassified","IP addresses passed as hostnames may not parse correctly into domain parts"],"whenToPreferThis":"Use this endpoint when you need reliable, suffix-table-aware decomposition of a domain or URL into subdomain, registrable domain, and public suffix — especially for multi-level TLDs like '.co.uk' or '.com.au' that naive string splitting would mishandle. Prefer this over simple string splitting or regex when correctness across international and ccTLD domains matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:12.214Z","isFirstParty":false}