{"uid":"cap_TUelQdNgCO7v_-yJk2EDE","slug":"agent-data-tools-url-parser-a3845468","name":"Agent Data Tools: URL Parser","description":"Split a URL into protocol, host, port, path, query parameters (as an object), hash and origin, and report whether the host is an IP address. Use to read query parameters or check a link's host.","url":"https://agent-data-tools.revmesh2074.workers.dev/url/parse?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The URL to parse"}}},"responseSchema":{"type":"object","properties":{"hash":{"type":"string"},"host":{"type":"string"},"isIp":{"type":"boolean"},"path":{"type":"string"},"port":{"type":"string"},"query":{"type":"object","properties":{"x":{"type":"string"},"y":{"type":"string"}}},"origin":{"type":"string"},"protocol":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n1irs6R-itnRjRmIx4Lxu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 structured components including protocol, host, path, port, query parameters, hash, and origin","exampleAgentPrompt":"Can you parse this URL for me — https://example.com:8080/a/b?x=1&y=2#top — and tell me its protocol, host, path, query params, and hash?","exampleUseCases":[{"title":"Extract query params from redirect URL","prompt":"I have this redirect URL — https://auth.example.com/callback?code=abc123&state=xyz&session=99 — can you break it apart and tell me what query parameters are in it?"},{"title":"Check if URL host is an IP address","prompt":"Parse this URL https://192.168.1.1:3000/admin/dashboard for me — I want to know the host, port, and whether the host is a raw IP address rather than a domain name."},{"title":"Validate URL structure for link router","prompt":"I need to extract just the origin and path from https://docs.myapp.io/guides/setup?ref=homepage#install so I can build a canonical link — can you parse it out?"}],"resultDescription":"A JSON object containing the parsed URL components: protocol (e.g. 'https:'), host (e.g. 'example.com'), port (e.g. '8080'), path (e.g. '/a/b'), query (object of key-value pairs), hash (e.g. '#top'), origin (e.g. 'https://example.com:8080'), and isIp (boolean indicating if the host is an IP address).","failureModes":["Missing or empty 'url' query parameter returns an error","Malformed or unparseable URL string may return an error or empty fields","Network timeout on the Cloudflare Worker edge","Payment failure via x402 results in no charge and no response"],"whenToPreferThis":"Use this endpoint when you need a reliable, structured decomposition of a URL into its constituent parts (protocol, host, path, query, hash, port, origin) without writing custom parsing code. Ideal for AI agents that need to inspect, route, or manipulate URLs programmatically. At $0.001 per call with no API key required and no charge on failure, it is suitable for lightweight utility calls in automated pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:32:35.889Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-url-parser-a3845468"}