{"uid":"cap_U8kcFQQW3juhkWgdYifGd","slug":"json-and-data-tools-url-parser-084cb523","name":"JSON and Data Tools – URL Parser","description":"Split a URL into scheme, host, port, path, query parameters and fragment, and flag credentials, IP hosts and odd ports.","url":"https://json-data-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 (it is parsed, never fetched)"}}}},"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","object"],"properties":{"x":{"type":["array","null"],"items":{"type":"string"}},"y":{"type":["array","null"],"items":{"type":"string"}}}},"labels":{"type":["array","null"],"items":{"type":"string"}},"origin":{"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"]},"username":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"hasPassword":{"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_a0nz7kHaU95n__xNsQTS7","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":"Parses a URL into its constituent components (scheme, host, port, path, query, fragment) and flags security concerns like embedded credentials, IP-based hosts, and unusual ports.","exampleAgentPrompt":"Can you parse this URL for me — https://user:pass@192.168.1.1:8080/api/v2/data?foo=bar&x=1#section — and tell me what each part is, and whether there's anything suspicious like credentials or an odd port?","exampleUseCases":[{"title":"Security audit of a suspicious URL","prompt":"I got this URL in a phishing email: http://admin:secret@203.0.113.42:9999/login?redirect=evil.com — can you break it down and tell me if anything looks dangerous, like embedded passwords or an IP host?"},{"title":"Debugging redirect query parameters","prompt":"I need to see all the query parameters in this redirect URL separately: https://auth.example.com/callback?code=abc123&state=xyz&session_id=99 — can you split it out so I can read each one?"},{"title":"Extracting host and path from API endpoint","prompt":"What's the scheme, host, port, and path in this API URL: https://api.internal.mycompany.com:3000/v1/users/profile?include=address — I want to make sure the port and path look right before I deploy."}],"resultDescription":"Returns a structured JSON object containing the parsed URL components: scheme, host, port, path, query parameters (as key-value arrays), fragment, username, a hasPassword boolean, origin, and labels/verdict/reasons flagging any detected security concerns such as embedded credentials, IP-based hostnames, or non-standard ports.","failureModes":["Missing or empty 'url' query parameter returns an error","Malformed or unparseable URL string may return null fields or an error verdict","Extremely long or malformed input may be rejected","The URL is parsed only — never fetched — so network errors do not apply"],"whenToPreferThis":"Use this endpoint when you need a reliable, structured breakdown of a URL's components without making an HTTP request to the target. It is especially valuable when you need to detect security red flags like embedded credentials, IP-based hosts, or unusual ports. Prefer it over regex-based parsing in your own code when accuracy and security labeling matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T04:28:36.244Z","isFirstParty":false,"canonicalSlug":"json-and-data-tools-url-parser-084cb523"}