{"uid":"cap_ef8co5KAUeLB9fBtYS05p","slug":"delx-parse-url-parts-c25929d4","name":"Delx Parse URL Parts","description":"Parse a URL into parts. Call when splitting host, path, query, and fragment without fetching the URL. Returns structured URL parts; never performs network I/O. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/url-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"URL to parse locally. Delx never fetches or validates the destination."}}},"responseSchema":{"type":"json","example":{"host":"example.com","path":"/docs/getting-started","port":null,"query":"","schema":"delx/url-parse/v1","scheme":"https","fragment":""}},"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_Ms5hZMS9LS-YtvaCTiqv5","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 constituent parts (scheme, host, path, query, fragment) without performing any network I/O","exampleAgentPrompt":"Can you parse this URL for me — https://example.com:8080/search?q=hello&page=2#results — and tell me the host, path, query params, and fragment?","exampleUseCases":[{"title":"Extract hostname from redirect URL","prompt":"I have this redirect URL — https://auth.myapp.com/callback?code=abc123&state=xyz — can you break it apart and give me the host, path, and each query parameter separately?"},{"title":"Validate URL structure before processing","prompt":"Before I send this URL to our pipeline, can you parse https://cdn.example.org/assets/images/logo.png?v=3 and confirm the scheme, host, path, and any query values?"},{"title":"Log URL components for analytics","prompt":"We're logging incoming webhook URLs. Can you decompose https://hooks.slack.com/services/T00/B00/abc#section into its scheme, host, path segments, and fragment so I can store each part separately?"}],"resultDescription":"A structured JSON object containing the parsed components of the submitted URL — including scheme, host, port (if present), pathname, query string (and individual query parameters), and fragment — extracted entirely locally without any network request to the target URL.","failureModes":["Invalid or malformed URL input returns a structured validation error (not billed)","Missing required 'url' field returns a validation error","Relative URLs without a scheme may fail to parse correctly","Extremely long URLs may be rejected"],"whenToPreferThis":"Choose this endpoint when you need to decompose a URL into structured parts (host, path, query, fragment) without any network fetch or DNS lookup. Ideal for pipelines that process URLs as data — logging, routing, analytics, validation — where deterministic local parsing is required and no external HTTP call should be made. Prefer it over regex-based parsing for correctness, and over full HTTP clients when you specifically do not want to contact the target server.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:26.436Z","isFirstParty":false}