{"uid":"cap_DRZqnLUd6Znto-8TGsFHr","slug":"pennyrail-url-parse-split-url-e83bb3b2","name":"PennyRail URL Parse / Split URL","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/url.parse--split-url","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_9epaEmeeX9cSI8r_G_IoO","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 and splits a URL string into its component parts (protocol, host, path, query, etc.)","exampleAgentPrompt":"Can you parse this URL for me and break it down into its components — protocol, host, path, and query params? The URL is https://example.com:8080/products/shoes?color=red&size=10#reviews","exampleUseCases":[{"title":"Extract domain from marketing URL","prompt":"I have this long tracking URL — https://campaign.example.com/promo/summer?utm_source=email&utm_medium=blast&utm_campaign=july4 — can you pull out just the hostname and path for me?"},{"title":"Validate URL structure before API call","prompt":"Before I send this URL off to our backend, can you parse it and confirm it has a valid protocol, host, and path? Here it is: https://api.myservice.io/v2/users/42/orders"},{"title":"Extract query parameters from redirect URL","prompt":"I've got this redirect URL from our auth system and I need to pull out all the query parameters separately: https://auth.myapp.com/callback?code=abc123&state=xyz789&session=true"}],"resultDescription":"A structured object containing the parsed components of the input URL, such as protocol, hostname, port, pathname, search/query string, hash fragment, and origin — returned as key-value fields in a JSON object.","failureModes":["Malformed or non-URL input string may return an error or empty fields","Missing required 'input' field returns a validation error","Relative URLs without a protocol may fail to parse correctly","Payment failure (x402) results in no response if USDC is not available"],"whenToPreferThis":"Use this endpoint when you need a quick, paid micro-service to programmatically decompose a URL string into structured components without implementing your own parsing logic. Particularly useful in agent pipelines where URL structure analysis is needed on-the-fly and a tiny per-call cost is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:15:24.001Z","isFirstParty":false}