{"uid":"cap_9qIhyBefYtww0iJNKZMXj","slug":"one-engine-url-path-parser-944c024a","name":"ONE Engine URL Path 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/path?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"}}},"responseSchema":{"type":"json","example":{"hash":"#top","search":"?q=1","pathname":"/a/b"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uugInh8vXbyegWy68tF_b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","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 and extracts its path, search query string, and hash fragment components.","exampleAgentPrompt":"Can you parse this URL for me — 'https://example.com/a/b?q=1#top' — and tell me its pathname, search string, and hash?","exampleUseCases":[{"title":"Extract path from redirect URL","prompt":"I have this redirect URL 'https://shop.example.com/products/shoes?color=red&size=10#reviews' — can you pull out just the pathname and search parameters from it?"},{"title":"Validate URL structure in pipeline","prompt":"Before I process this user-submitted URL 'https://mysite.org/blog/post-1?ref=newsletter#comments', can you parse it and give me the pathname, query string, and hash so I can validate each part?"},{"title":"Route agent based on URL path","prompt":"I need to figure out which page this URL points to — 'https://api.acme.io/v2/orders?status=pending#section2' — can you extract the pathname, search, and hash so I can route accordingly?"}],"resultDescription":"A JSON object containing three fields: 'pathname' (the path segment of the URL, e.g. '/a/b'), 'search' (the query string including the '?' character, e.g. '?q=1'), and 'hash' (the fragment identifier including the '#' character, e.g. '#top').","failureModes":["Malformed or non-parseable URL may return an error or empty fields","Missing URL input field returns a validation error","Network timeout on the worker edge node"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call URL decomposition utility without setting up your own parsing logic, especially in autonomous agent workflows that already use x402 micropayments on Base for cost tracking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:29.196Z","isFirstParty":false,"canonicalSlug":"one-engine-url-path-parser-944c024a"}