{"uid":"cap_VbLY1Ij4KRyqd0bz2kUSD","slug":"x402-toolbox-url-parse-parts-2254315e","name":"x402-toolbox URL Parse Parts","description":"309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.","url":"https://x402-toolbox.shablony-pro.workers.dev/text/url-parse-parts?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z9JkVTqm0-syhBn6iq4C0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 (scheme, host, path, query, fragment, etc.) deterministically for $0.001 USDC per call via x402.","exampleAgentPrompt":"Can you parse the URL 'https://example.com:8080/path/to/page?foo=bar&baz=qux#section2' and tell me all its individual parts — scheme, host, port, path, query params, and fragment?","exampleUseCases":[{"title":"Extract hostname from redirect URL","prompt":"I have this redirect URL 'https://auth.example.com/oauth/callback?code=abc123&state=xyz' — can you break it apart and tell me the hostname and what query parameters are in it?"},{"title":"Validate URL structure in pipeline","prompt":"Parse this URL 'ftp://files.internal.corp/data/reports/q4.csv' and give me each component separately so I can check the scheme and path are what I expect."},{"title":"Strip path from API endpoint URL","prompt":"I need to know just the base origin and path (without the query string) of 'https://api.stripe.com/v1/charges?limit=10&starting_after=ch_abc' — can you parse it out?"}],"resultDescription":"A JSON object with boolean 'ok' and 'paid' fields plus the parsed URL components such as scheme/protocol, host, hostname, port, pathname, search/query string, hash/fragment, and origin extracted from the input URL.","failureModes":["Missing or malformed URL input returns an error response","Invalid URL that cannot be parsed may return ok:false","Network timeout on the Cloudflare Worker edge","x402 payment failure if USDC balance is insufficient or wallet not configured"],"whenToPreferThis":"Choose this endpoint when you need a cheap, no-signup, deterministic URL parsing utility paid per-call via USDC on Base — ideal for AI agents that already use x402 micropayments and want to avoid managing API keys or rate limits. Prefer over rolling your own URL parser when you need a reliable, consistent JSON breakdown of URL components in an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:49:55.121Z","isFirstParty":false,"canonicalSlug":"x402-toolbox-url-parse-parts-2254315e"}