{"uid":"cap_YiiJM0NqtFc-heGXaD6NG","slug":"agent402-tools-url-parser-bdf6005d","name":"agent402.tools URL Parser","description":"Parse a URL into components: protocol, host, port, path, query params (decoded), hash, origin, punycode hostname.","url":"https://agent402.tools/api/url-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL to parse"}}},"responseSchema":{"type":"json","example":{"hash":"#frag","port":"8080","query":{"x":"1","y":"hello world"},"hostname":"ex.com","pathname":"/a/b","protocol":"https:"}},"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_lMet1zPQ6Ou1zR0YFnJ9-","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 URL string into its constituent components including protocol, host, port, path, decoded query parameters, hash, origin, and punycode hostname.","exampleAgentPrompt":"Can you break down 'https://example.com:8080/search?q=hello+world&lang=en#results' into all its parts — protocol, host, port, path, decoded query params, hash, and origin?","exampleUseCases":null,"resultDescription":"Returns a structured breakdown of the URL with fields for protocol, host, port, path, decoded query parameters as key-value pairs, hash fragment, origin, and punycode-encoded hostname.","failureModes":["Malformed or non-URL string input returns an error","Missing required 'url' field in request body returns validation error","Relative URLs without a scheme may fail to parse correctly"],"whenToPreferThis":"Use this endpoint when you need to programmatically decompose a URL into structured fields, especially when you need decoded query parameters or punycode hostname normalization. Prefer this over manual string splitting for reliable, standards-compliant URL parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.891Z","isFirstParty":false}