{"uid":"cap__2P85lWfoXiP2pFZ-c4cr","slug":"url-parser-rfc-3986-edaba33d","name":"URL Parser (RFC 3986)","description":"Split a URL into scheme, host, port, path, query and fragment per RFC 3986, with warnings. Never fetches the URL.","url":"https://url-text-tools.x402tookit.com/url-parse?utm_source=zero.xyz","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":["url"],"properties":{"url":{"type":"string","description":"The URL or URI reference to split (up to 2000 characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"host":{"type":["null","string"]},"path":{"type":["null","string"]},"port":{"type":["null","string"]},"query":{"type":["null","string"]},"scheme":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"fragment":{"type":["null","string"]},"userinfo":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"queryParams":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":["null","string"]},"value":{"type":["null","string"]}}}},"warningCount":{"type":["null","number"]},"hasCredentials":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8vVfSd-L89Kbunss8PcSF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a URL into its RFC 3986 components — scheme, host, port, path, query, and fragment — and returns warnings about any anomalies, without fetching the URL.","exampleAgentPrompt":"Can you parse this URL for me — 'https://user:pass@example.com:8080/path/to/page?foo=bar&baz=qux#section2' — and break it down into its scheme, host, port, path, query params, and fragment, flagging any warnings?","exampleUseCases":[{"title":"Debugging malformed API endpoint URL","prompt":"I'm getting weird errors with this URL: 'http://internal:secret@api.example.com:9000/v2/data?filter=active&page=2' — can you split it into its parts and tell me if anything looks off, like embedded credentials or unusual components?"},{"title":"Extracting host from user-submitted link","prompt":"A user pasted this URL into our form: 'ftp://files.acme.org/reports/2024/annual.pdf?download=true#page5' — can you parse it into its RFC 3986 parts so I can check the scheme and host before we process it?"},{"title":"Validating URL structure before storing","prompt":"Before I save this URL in our database, can you break it apart into scheme, host, path, query, and fragment — 'https://shop.example.co.uk/products/shoes?color=red&size=42#reviews' — and let me know if there are any structural warnings?"}],"resultDescription":"Returns an object containing the parsed URL components: scheme, host, port, path, query (raw string), queryParams (array of key-value objects), fragment, userinfo, and a verdict/summary with a list of warnings, warning count, a degraded flag, and a disclaimer. All fields may be null if absent in the source URL.","failureModes":["URL exceeds 2000 characters — likely rejected or truncated","Malformed input that cannot be parsed at all — returns nulls with warning verdict","Missing required 'url' query parameter — validation error","Relative URL without a base — parsed as-is with warnings about missing scheme/host"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, standards-compliant RFC 3986 decomposition of a URL without any network request to the target. It is ideal for preprocessing URLs before storage, validation pipelines, security checks for embedded credentials, or feeding individual components into downstream logic. Prefer it over full-featured HTTP clients when you explicitly do NOT want the URL fetched.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:21.659Z","isFirstParty":false,"canonicalSlug":"url-parser-rfc-3986-edaba33d"}