{"uid":"cap__kj0PMCYqN17btjMMcYrA","slug":"penny-api-url-parse-8610c224","name":"Penny API – URL Parse","description":"Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.","url":"https://pennyagent.pythonanywhere.com/paid/urlparse?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"host":"example.com","query":{"b":["1"]}}},"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_eS82HG8dqCGJ0bVFoVv7l","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 (host, path, query parameters, scheme, etc.) via a pay-per-call API using x402 micropayments.","exampleAgentPrompt":"Can you parse this URL for me — https://example.com/search?q=hello&page=2 — and tell me the host and query parameters?","exampleUseCases":[{"title":"Extract query params from redirect URL","prompt":"I've got this redirect URL — https://shop.example.com/checkout?ref=abc&cart_id=99&promo=SAVE10 — can you break it apart and show me all the query parameters?"},{"title":"Validate hostname in user-submitted link","prompt":"A user submitted this link: https://cdn.mysite.io:8080/assets/img.png — can you parse it and tell me the host and port?"},{"title":"Debug malformed URL in API logs","prompt":"I'm seeing this URL in my logs: https://api.example.com/v2/items?filter=active&sort=asc&page=3 — parse it out so I can see the path and query parameters separately."}],"resultDescription":"Returns a JSON object with the parsed components of the input URL, including at minimum the host and query parameters (as a dictionary of key-to-array-of-values mappings), and potentially scheme, path, port, and fragment fields.","failureModes":["Missing or malformed 'input' parameter returns an error","Payment failure via x402 results in 402 Payment Required response","Invalid or non-URL string may return empty or partial parsed fields","Network timeout on PythonAnywhere hosting under load"],"whenToPreferThis":"Choose this endpoint when you need a quick, lightweight, pay-per-call URL parsing utility without spinning up your own parsing library — especially in agent workflows where x402 micropayment infrastructure is already in place and you need to decompose URLs on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:36:38.398Z","isFirstParty":false,"canonicalSlug":"penny-api-url-parse-8610c224"}