{"uid":"cap_dMNc7jGhFyiLaDuwAmhEK","slug":"url-parser-c22a6d39","name":"URL Parser","description":"URL parser: scheme, host, port, path segments, query parameters (multi-valued), fragment, origin, registrable domain, whether it is secure/IP/localhost, and a normalised form. $0.01 per URL.","url":"https://intel.rallylive.ca/data/url-parse","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_IrdRf0isfo7G8DbCviRLf","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 into its components: scheme, host, port, path segments, query parameters, fragment, origin, registrable domain, and normalized form, plus flags for secure/IP/localhost.","exampleAgentPrompt":"Can you parse the URL 'https://shop.example.com:8080/products/shoes?color=red&size=10#reviews' and tell me its scheme, host, port, path segments, query parameters, fragment, registrable domain, and whether it's secure?","exampleUseCases":[{"title":"Extract query parameters from redirect URL","prompt":"I have this URL from a login redirect — 'https://auth.myapp.com/callback?code=abc123&state=xyz&session=true' — can you parse it and give me all the query parameters, including any multi-valued ones?"},{"title":"Validate domain and security of user-submitted link","prompt":"A user just submitted this link to our platform: 'http://192.168.1.1/admin/panel'. Can you parse it and tell me whether it points to an IP address, whether it's secure, the registrable domain, and a normalized form?"},{"title":"Normalize and decompose API endpoint URL","prompt":"Parse 'https://api.rallylive.ca:443/v2/events/live?region=us&page=2&page=3#top' for me — I need the path segments broken out, all query param values including repeated keys, and the normalized URL."}],"resultDescription":"A structured breakdown of the URL including: scheme, host, port, path segments (as an array), query parameters (multi-valued), fragment, origin, registrable domain, boolean flags for whether the URL is secure (HTTPS), an IP address, or localhost, and a normalized canonical form of the URL.","failureModes":["Malformed or unparseable URL returns an error","Missing input URL parameter causes request failure","URL with unusual encoding may produce unexpected path segment breakdown","Private/internal URLs (e.g. file://) may not be fully supported"],"whenToPreferThis":"Use this endpoint when you need a thorough, structured decomposition of a URL including multi-valued query parameters, registrable domain extraction, and security/IP/localhost flags — especially when normalization is also needed. Prefer this over manual string splitting when correctness and edge-case handling (ports, fragments, IP detection) matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:08:50.899Z","isFirstParty":false}