# Delx URL Path to Slug

> Delx URL Path to Slug is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Parses a URL locally and returns a clean slug derived from its path component, suitable for route keys or cache identifiers.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/slug-from-url
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-url-path-to-slug-258716b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GFPkzue1Fom5oSBzlMnxp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-url-path-to-slug-258716b6 -d '<json body>'
```

Example prompt: Turn the URL https://docs.example.com/products/widget-pro/getting-started into a clean slug I can use as a cache key.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "URL to parse locally. Delx never fetches or validates the destination."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/docs/getting-started",
  "slug": "getting-started",
  "schema": "delx/slug-from-url/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-url-path-to-slug-258716b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
