{"uid":"cap_UWkHD3TVx0i6s_nMMtHKZ","slug":"agent-utility-network-url-parser-9f8ece3a","name":"Agent Utility Network URL Parser","description":"Quality-scored paid utility APIs for AI agents over x402 on Base USDC.","url":"https://agent-utility-network.frosty-sound-4560.workers.dev/v1/paid/url-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":8192,"minLength":1}}},"responseSchema":{"type":"json","example":{"result":{"hash":"#top","port":"","query":[["x","1"]],"hostname":"example.com","pathname":"/a","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_ubczUb29pMZFkXwDzI50O","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 (hostname, pathname, query parameters, hash, port, protocol) for $0.001 USDC per call over x402 on Base.","exampleAgentPrompt":"Can you parse this URL for me and pull out the hostname, path, query parameters, and hash fragment: https://example.com/a?x=1#top?","exampleUseCases":[{"title":"Extract query params from redirect URL","prompt":"I've got this redirect URL and I need to extract all the query parameters from it — can you parse https://shop.example.com/checkout?cart=abc123&promo=SAVE10&ref=email#summary and give me the individual key-value pairs?"},{"title":"Validate URL structure before API call","prompt":"Before I send this to our backend, can you parse https://api.myservice.io:8080/v2/users/profile?lang=en and confirm what the hostname, port, pathname, and protocol are?"},{"title":"Normalize link data from scraped page","prompt":"I scraped a bunch of links and I need to break this one apart to understand its structure — parse https://blog.example.org/posts/2024/intro?ref=newsletter#comments and tell me the hostname, path, query params, and hash."}],"resultDescription":"A JSON object containing the parsed URL broken into: protocol (e.g. 'https:'), hostname (e.g. 'example.com'), pathname (e.g. '/a'), port (e.g. '' if absent), query (array of key-value pairs, e.g. [['x','1']]), and hash (e.g. '#top').","failureModes":["Malformed or unparseable URL returns an error response","URL exceeding 8192 characters is rejected by schema validation","Missing or empty URL field causes a validation error","Payment failure over x402 prevents the call from completing","Network timeout to the Cloudflare Workers endpoint"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically decompose a URL into its structural parts (hostname, path, query params, hash, port, protocol) without implementing custom parsing logic. It is especially useful in agentic pipelines where URLs arrive as raw strings and downstream steps need individual components — e.g. extracting query parameters from redirect URLs, normalizing scraped links, or validating URL structure before making API calls. At $0.001 USDC per call over x402, it suits lightweight, high-frequency parsing tasks where reliability and simplicity matter more than running a local parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:38:40.074Z","isFirstParty":false}