{"uid":"cap_wEi4Y29SVbGrY9imgdhRo","slug":"one-engine-url-component-parser-9a98cdd5","name":"ONE Engine URL Component Parser","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/url/components?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"}}},"responseSchema":{"type":"json","example":{"hash":"#top","search":"?q=1","hostname":"example.com","pathname":"/path","protocol":"https:"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0011","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.0011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_70jeHabJQFJBsZ8i7axFM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0011","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 constituent components: protocol, hostname, pathname, search query, and hash fragment.","exampleAgentPrompt":"Can you break down this URL into its components — protocol, hostname, path, query string, and hash — for https://example.com/path?q=1#top?","exampleUseCases":[{"title":"Extract hostname for domain filtering","prompt":"I have this URL https://shop.example.co.uk/products/shoes?size=10&color=red and I need just the hostname — can you parse it out for me?"},{"title":"Isolate query string for analytics","prompt":"Pull apart this URL for me — https://search.mysite.com/results?q=running+shoes&page=2 — I specifically need the search query string so I can log what users are searching for."},{"title":"Get pathname for URL routing logic","prompt":"What's the pathname component of https://api.service.io/v2/users/profile#settings? I need to check if it matches a route pattern in my app."}],"resultDescription":"A JSON object containing five fields: protocol (e.g. 'https:'), hostname (e.g. 'example.com'), pathname (e.g. '/path'), search (e.g. '?q=1'), and hash (e.g. '#top'). Each field corresponds to a standard URL component as defined by the browser URL API.","failureModes":["Malformed or non-parseable URL input may return an error or empty fields","Missing required 'url' field in request body returns a 400-level error","Relative URLs without a protocol may parse incorrectly or fail","Very long or unusual URL encodings may produce unexpected results"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap, pay-per-call URL decomposition without standing up your own parsing infrastructure. It is ideal for autonomous agents running on Base via x402 that need to inspect individual URL parts at low cost ($0.0011 USDC per call). Prefer this over client-side parsing when the agent environment does not have a native URL parser available, or when you want a consistent serverside extraction step in a pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:39.683Z","isFirstParty":false,"canonicalSlug":"one-engine-url-component-parser-9a98cdd5"}