{"uid":"cap_AHN8PVRngPaT6Qn1tMiLy","slug":"agent402-uk-url-parser-b19ccba7","name":"Agent402 UK URL Parser","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/utils/url/parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute URL"}}},"responseSchema":{"type":"json","example":{"query":{"count":"3"},"valid":true,"hostname":"agent402.co.uk"}},"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_dSqGNOVIiDgmcR2uSa-FC","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 an absolute URL into its structured components (host, path, query map, origin) using the WHATWG URL standard — deterministically, without model hallucination.","exampleAgentPrompt":"Can you parse this URL for me — https://example.com/products?category=shoes&count=3 — and give me the hostname, path, and query parameters as a structured map?","exampleUseCases":[{"title":"Extracting query params from redirect URL","prompt":"I've got this redirect URL — https://auth.service.com/callback?code=abc123&state=xyz — can you break it apart and give me the query parameters as a key-value map?"},{"title":"Validating and decomposing an API endpoint URL","prompt":"Can you check if this URL is valid and tell me its hostname, path, and origin? The URL is https://api.myapp.io/v2/users/search?role=admin&limit=50"},{"title":"Normalizing user-submitted URLs in a pipeline","prompt":"I have a URL submitted by a user — https://shop.example.co.uk/items?color=red&size=M — please parse it into host, path, and query map so I can process each part separately."}],"resultDescription":"Returns a JSON object containing the parsed URL components: hostname, path, origin, a query map (key-value pairs from the query string), and a boolean 'valid' flag indicating whether the input is a well-formed absolute URL per the WHATWG standard.","failureModes":["Invalid or relative URL returns valid:false","Missing 'url' field in request body causes a 400-level error","Non-absolute URLs (e.g. paths like '/foo/bar') may fail validation","Malformed query strings may result in partially populated query map","Network timeout if the service is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need deterministic, spec-compliant URL parsing without relying on the language model to split URLs itself — especially when query parameter extraction accuracy matters, when you need a structured query map rather than a raw string, or when you need to reliably extract the hostname or origin from a user-supplied URL inside an agentic pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:56:15.795Z","isFirstParty":false}