{"uid":"cap_nW2nXxX5zERUFXNpu8RQj","slug":"agentresolver-url-parser-55b8c9ae","name":"AgentResolver URL Parser","description":"Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.","url":"https://agentresolver.vercel.app/api/url-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":4096}}},"responseSchema":{"type":"json","example":{}},"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_BtT9ZqRypnPCdM2tOqh2_","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 structured components: protocol, hostname, port, pathname, query parameters, and fragment","exampleAgentPrompt":"Can you parse 'https://example.com:8080/search?q=hello&page=2#results' and tell me the hostname, pathname, and query parameters separately?","exampleUseCases":[{"title":"Extract query params from redirect URL","prompt":"I have this redirect URL from an OAuth flow — 'https://myapp.com/callback?code=abc123&state=xyz&error=' — can you parse it and pull out all the query parameters for me?"},{"title":"Validate and decompose API endpoint URL","prompt":"Break down this URL for me: 'https://api.acme.com:443/v2/users/profile?include=avatar&format=json' — I need the hostname, port, pathname, and each query parameter listed separately."},{"title":"Extract domain from user-submitted link","prompt":"A user just submitted the link 'https://blog.example.org/posts/2024/my-article#comments' — can you parse it and tell me the origin, the path, and whether there's a fragment?"}],"resultDescription":"Returns a structured JSON object with the full href, origin (scheme + host + port), protocol, hostname, port (null if default), pathname, a key-value map of query parameters, and the fragment/hash (null if absent).","failureModes":["Malformed or non-URL input returns an error — the url field must be a valid URI string","Missing required 'url' field in the request body causes a validation error","Relative URLs without a protocol may fail to parse correctly","Network or server errors on the AgentResolver platform (5xx responses)"],"whenToPreferThis":"Use this endpoint when you need a simple, cheap ($0.001 USDC) programmatic decomposition of a URL into its structured parts without writing custom parsing logic. It is best suited for agents that receive arbitrary URL strings and need to extract specific components like query parameters, hostnames, or paths for downstream processing. Prefer this over manual regex parsing or language-level URL parsers when operating in a tool-use context where calling a dedicated service is more reliable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T12:49:33.822Z","isFirstParty":false}