utilpeek: parse a URL (parts, IDNA, public suffix); never fetched
parse_urlSplit a URL into components and public-suffix parts without fetching it. Credentials are never echoed; invalid input returns 422.
Instructions
utilpeek: parse a URL. To fetch the page use render_page. The URL is parsed, never fetched. Public-suffix split from the Public Suffix List snapshot bundled with the parser (dated 2025-04-07; suffixes added later are not known), with and without the PSL private section; credentials in the URL are never echoed. A URL that cannot be parsed is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/url-parser-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to parse (never fetched). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| path | No | ||
| port | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| is_ip | No | ||
| query | No | ||
| params | No | ||
| scheme | No | ||
| source | No | ||
| fragment | No | ||
| username | No | ||
| subdomain | No | ||
| host_ascii | No | ||
| idna_valid | No | ||
| ip_version | No | ||
| normalized | No | ||
| domain_label | No | ||
| has_password | No | ||
| host_scripts | No | ||
| host_unicode | No | ||
| icann_suffix | No | ||
| known_suffix | No | ||
| path_segments | No | ||
| public_suffix | No | ||
| effective_port | No | ||
| scheme_assumed | No | ||
| params_truncated | No | ||
| suffix_is_private | No | ||
| mixed_script_label | No | ||
| registrable_domain | No | ||
| path_segments_truncated | No | ||
| icann_registrable_domain | No |