{"uid":"cap_0TLZD0gSCX7LSqHj2SiXK","slug":"delx-commerce-slug-from-url-41208a72","name":"Delx Commerce — Slug From URL","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/slug-from-url?utm_source=zero.xyz","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":{"path":"/docs/getting-started","slug":"getting-started","schema":"delx/slug-from-url/v1"}},"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_ADDcuiZfai1yKjovQHzO2","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":"Extracts a URL slug (the last meaningful path segment) from a given URL string without fetching the destination","exampleAgentPrompt":"Can you extract the slug from this URL for me: https://example.com/docs/getting-started?ref=home — I just need the slug part, not the full path.","exampleUseCases":[{"title":"CMS content ID from share link","prompt":"I have this URL — https://myblog.com/posts/how-to-train-your-dragon-2024 — can you pull out the slug so I can use it as the content ID in my CMS?"},{"title":"SEO audit slug normalization","prompt":"I've got a list of article URLs like https://site.com/blog/top-10-seo-tips and I need the slug from each one. Start with that first URL and give me just the slug."},{"title":"Routing key derivation for deep links","prompt":"Given this deep link URL https://app.example.com/dashboard/user-settings, what's the slug I should use as a routing key in my app?"}],"resultDescription":"A JSON object containing the extracted slug (e.g. 'getting-started'), the full path segment (e.g. '/docs/getting-started'), and a schema identifier ('delx/slug-from-url/v1'). The destination URL is never fetched or validated — parsing is done locally on the provided string.","failureModes":["Invalid or malformed URL input returns an error — the URL must be a valid URI format","Missing 'url' field in request body causes a validation error","URLs with no meaningful path segment (e.g. bare domain) may return an empty or root slug","Payment failure or insufficient USDC balance via x402 prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.001 USDC), no-signup slug extraction from a URL string without any network fetch to the destination. It is ideal for agents processing large volumes of URLs locally where you only need the slug component and do not want side effects. Prefer it over regex-based DIY parsing when you want a consistent, schema-versioned result you can verify on-chain via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:08.721Z","isFirstParty":false,"canonicalSlug":"delx-commerce-slug-from-url-41208a72"}