# URL Slug Generator (Slugify)

> URL Slug Generator (Slugify) is a paid API for AI agents from url-text-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-24).

Converts a title or phrase into a clean URL slug by transliterating accented characters, lowercasing, and trimming at a word boundary to a configurable max length.

## Facts

- Endpoint: GET https://url-text-tools.x402tookit.com/slugify?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-slug-generator-slugify-f2e6545c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oFyvyJiSNzvvWdkFjkkaV

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 url-slug-generator-slugify-f2e6545c
```

Example prompt: Turn the title 'Über die Brücke — A Midsummer Journey' into a URL slug, max 60 characters, using hyphens as separators.

## When to prefer this

Choose this endpoint when you need reliable Unicode transliteration (accents, umlauts, special characters) alongside standard slugification, controllable separator style, and word-boundary-aware length capping — particularly for multilingual content pipelines, CMS integrations, or SEO permalink generation where simple regex slugifiers would mangle accented characters.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Text longer than 500 characters is rejected
- maxLength outside the 8–200 range is rejected
- Separator character other than -, _, or . returns a validation error
- Entirely non-Latin input with no transliterable characters may return an empty or minimal slug

## How this service works

Turn a title into a URL slug: transliterates accents (é, ß, ø), lowercases, trims and caps length at a word break.

## Output

Returns a JSON object containing the generated slug string, the original input echoed back, the slug's character length, a boolean indicating whether the slug was truncated at a word boundary, a boolean indicating whether any non-Latin characters were dropped, and optionally warnings or notes about the transformation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "The title or phrase to slugify (up to 500 characters)"
      },
      "keepCase": {
       "type": "string",
       "description": "true to keep the original capitalization (default false)"
      },
      "maxLength": {
       "type": "integer",
       "description": "Maximum slug length, 8 to 200 (default 80); cut at a separator"
      },
      "separator": {
       "type": "string",
       "description": "Single character between words: - (default), _ or ."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "slug": {
       "type": [
        "null",
        "string"
       ]
      },
      "input": {
       "type": [
        "null",
        "string"
       ]
      },
      "length": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "truncated": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "droppedNonLatin": {
       "type": [
        "boolean",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-slug-generator-slugify-f2e6545c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from url-text-tools.x402tookit.com](https://www.zero.xyz/host/url-text-tools.x402tookit.com/llms.txt)
