{"uid":"cap_DaoESNDI1BkZYYPhnnDTx","slug":"url-inspector-parse-scheme-host-query-params-normalized-form-0d185070","name":"URL Inspector — Parse Scheme, Host, Query Params & Normalized Form","description":"URL inspector: one GET takes one absolute http(s) URL and returns its scheme, host, port, origin, path, path segments, every query parameter as name/value pairs (duplicates preserved), fragment and normalized href. It also reports has_credentials and password_present but never returns the password. curl: GET /url?url=https%3A%2F%2Fexample.com%2Fa%3Fx%3D1 . Nothing is fetched, DNS-resolved or stored. Missing, malformed, over-long and non-http(s) URLs are 400 before payment. No keys, no account, one GET, one delivery — 0.001 USDC. A purchase is two calls by design: this first call returns 402 with the price and the payment terms, and you then repeat the same request with the PAYMENT-SIGNATURE header to receive the 200 delivery.","url":"https://x402-catalog-history.ai-business-surface.workers.dev/url?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_4oZ2lDqgO9kICmjLBobhc","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 single absolute HTTP(S) URL into its components: scheme, host, port, origin, path, path segments, query parameters (with duplicates), fragment, and normalized href — without fetching or storing anything.","exampleAgentPrompt":"Can you parse this URL for me and break it into all its components — scheme, host, path, query parameters, and fragment: https://shop.example.com/search?q=boots&color=black&color=brown#results","exampleUseCases":[{"title":"Extract query params from redirect URL","prompt":"I have this URL from a redirect and I need to know every query parameter and its value, including any duplicates: https://auth.example.com/callback?code=abc123&state=xyz&state=fallback — can you pull them all out?"},{"title":"Check for embedded credentials in URL","prompt":"Someone sent me this URL and I'm worried it might have a username or password in it — can you inspect it and tell me if there are credentials without showing me the password? The URL is https://user:secret@ftp.example.com/files"},{"title":"Normalize and decompose a messy URL","prompt":"This URL looks weirdly formatted and I need the clean normalized version plus all the individual parts like scheme, host, port, and path segments: https://EXAMPLE.COM:443/a/b/../c?foo=1"}],"resultDescription":"A JSON object containing the parsed URL fields: scheme, host, port, origin, path, an array of path segments, an array of query parameter objects (name + value, duplicates preserved), fragment, normalized href, has_credentials (boolean), and password_present (boolean). The raw password is never returned.","failureModes":["Missing url query parameter returns HTTP 400 before payment","Malformed or unparseable URL returns HTTP 400 before payment","Non-HTTP/HTTPS URL (e.g. ftp://, file://) returns HTTP 400 before payment","URL exceeding maximum length returns HTTP 400 before payment","Missing or invalid PAYMENT-SIGNATURE header on second call returns 402 with payment terms"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, serverless, zero-side-effect URL parser that requires no API key or account, returns duplicated query parameters faithfully, and reports credential presence without exposing passwords. Ideal for agents that need to decompose URLs inline without fetching, storing, or resolving them.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:30:04.261Z","isFirstParty":false,"canonicalSlug":"url-inspector-parse-scheme-host-query-params-normalized-form-0d185070"}