{"uid":"cap_gMRbAeVUX2YxOJNzCt8NA","slug":"delx-commerce-url-path-normalizer-d3655f00","name":"Delx Commerce URL Path Normalizer","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/url-path-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL to normalize (no fetch is performed)."}}},"responseSchema":{"type":"json","example":{"host":"example.com","path":"/a/b","valid":true,"schema":"delx/util-url-path-normalize/v1","normalized":"https://example.com/a/b"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qMDFrTQyIvHrM2JB9Ilw7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes a URL string into its canonical components (host, path, normalized URL) without fetching the resource","exampleAgentPrompt":"Can you normalize this URL for me — 'https://example.com//a//b?foo=bar' — and give me the clean host, path, and canonical form without actually fetching it?","exampleUseCases":[{"title":"Deduplicating URLs in a crawl queue","prompt":"I have a list of URLs that might have duplicates due to trailing slashes and double slashes — can you normalize 'https://mysite.com//products//shoes/' so I can compare it consistently with other URLs in my queue?"},{"title":"Validating user-submitted links","prompt":"A user submitted this link 'http://example.com/a/b' in a form — can you check if it's a valid URL and give me its normalized canonical form and host?"},{"title":"Extracting host and path for routing logic","prompt":"I need to route traffic based on the host and path of this URL 'https://api.myapp.com/v2/users/123' — can you parse it out for me without making any network request?"}],"resultDescription":"Returns a JSON object containing: the extracted host (e.g. 'example.com'), the normalized path (e.g. '/a/b'), a boolean valid flag indicating whether the URL is well-formed, the schema identifier ('delx/util-url-path-normalize/v1'), and the fully normalized URL string (e.g. 'https://example.com/a/b').","failureModes":["Malformed or unparseable URL returns valid:false with no normalized output","Missing or empty url field may return a validation error","Non-string input for url field may cause a 400-class error","Relative URLs without a host may fail to parse correctly"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-fetch URL normalization and parsing operation — especially in agent pipelines where you need to canonicalize URLs for deduplication, routing, or validation without making any network requests. It's ideal when you want deterministic, cheap ($0.003 USDC) URL parsing with structured output including host, path, and a validity flag. Prefer it over building custom regex parsing or calling heavier scraping/fetch APIs when you only need URL structure, not page content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:56:07.244Z","isFirstParty":false,"canonicalSlug":"delx-commerce-url-path-normalizer-d3655f00"}