{"uid":"cap_GFPkzue1Fom5oSBzlMnxp","slug":"delx-url-path-to-slug-258716b6","name":"Delx URL Path to Slug","description":"Slug from a URL path. Call when turning docs or product URLs into clean route slugs or cache keys. Returns a slug derived from the path—URL is parsed locally, never fetched. $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/slug-from-url","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_HZQe0fWdudxbq8YQU616_","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 locally and returns a clean slug derived from its path component, suitable for route keys or cache identifiers.","exampleAgentPrompt":"Turn the URL https://docs.example.com/products/widget-pro/getting-started into a clean slug I can use as a cache key.","exampleUseCases":[{"title":"Documentation route slug generation","prompt":"I have the URL https://docs.myapp.com/guides/user-authentication/oauth2-setup — can you give me a clean slug from that path to use as a route identifier?"},{"title":"Cache key from product page URL","prompt":"Generate a cache key slug from this product URL: https://shop.example.com/electronics/laptops/macbook-pro-16-inch"},{"title":"Blog post slug normalization","prompt":"I need a consistent slug for this blog URL: https://blog.company.com/2024/03/how-to-build-ai-agents — extract the path slug for me."}],"resultDescription":"A JSON object containing the slug derived from the path portion of the submitted URL. The URL is parsed entirely locally and never fetched, so the result is deterministic and fast. Structured validation errors are not billed.","failureModes":["Invalid or malformed URL input returns a structured validation error (not billed)","Missing URL field returns a validation error","Non-URI string format triggers schema validation failure","Payment not included or insufficient triggers x402 payment-required response"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, locally-parsed slug from a URL path without any external fetching or network round-trips to the target URL. Ideal for agents building cache keys, route slugs, or stable identifiers from doc or product URLs on the fly, without needing a full NLP or string-processing library. Prefer it over generic string-manipulation tools when the input is specifically a URL and you want path-aware slug extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:54:39.936Z","isFirstParty":false}