{"uid":"cap_midxANzPo1jdl5g9h5yz1","slug":"pennyrail-url-parse-f77929f7","name":"PennyRail URL Parse","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/url.parse--parse-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_deNmOS9BkYfNIYPwHmFP-","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 component parts (protocol, host, path, query, etc.) via a paid micro-API","exampleAgentPrompt":"Can you parse this URL for me and tell me the hostname, path, and any query parameters: 'https://example.com/products?id=42&color=blue#reviews'?","exampleUseCases":[{"title":"Extract hostname from redirect URL","prompt":"I have this redirect URL 'https://auth.myapp.com/callback?code=abc123&state=xyz' — can you pull out just the hostname and the query parameters for me?"},{"title":"Validate and decompose API endpoint URL","prompt":"Parse this API endpoint URL for me: 'https://api.service.io:8080/v2/users/profile?expand=roles' — I need to know the protocol, port, path, and query string separately."},{"title":"Extract path segments from deep link","prompt":"Break down this deep link URL into its parts: 'myapp://settings/notifications?sound=true&badge=false' — specifically I need the protocol, path, and each query parameter."}],"resultDescription":"Returns a JSON object containing the parsed components of the input URL, typically including fields such as protocol, slashes, host, hostname, port, pathname, search, query (as key-value pairs), hash, and the original href. The exact shape follows Node.js url.parse conventions.","failureModes":["Invalid or malformed URL string may return an error or null fields","Empty input string returns an error requiring a non-empty input","Relative URLs without a protocol may parse with null protocol/host fields","Network timeout or cold-start latency on Vercel serverless function","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, programmatic URL decomposition without setting up a local parsing library — especially useful in serverless or agent workflows where you want to offload URL parsing as a micro-service call. Ideal for pipelines that process arbitrary URL strings and need structured component extraction at $0.001 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:20:54.804Z","isFirstParty":false}