URL parse, canonicalise, and registrable-domain (eTLD+1) extraction
code_urlParse and canonicalise a URL, and extract its registrable domain using the Public Suffix List — the part an agent needs to decide whether two URLs belong to the same owner. Returns scheme, host, port, path, decoded query parameters and fragment, the public suffix, the registrable domain (eTLD+1), the subdomain, whether the suffix is an ICANN or a private entry, plus a canonical form with default port, dot-segments and percent-encoding normalised. unicode_host uses WHATWG/UTS 46 (non-strict). Price: $0.05 per successful call, paid over x402 (USDC on Base).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL, or a bare hostname (https:// assumed). Accepted: an absolute URL, or a hostname. | |
| base | No | Base URL to resolve url against as a relative reference. Accepted: an absolute URL. |