# Duo Data Utilities – Text Slugifier

> Duo Data Utilities – Text Slugifier is a paid API for AI agents from api.duoleads.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-02).

Converts arbitrary text into a URL-safe slug with locale-aware transliteration, accent decomposition, separator options, length truncation, and stop-word removal.

## Facts

- Endpoint: GET https://api.duoleads.com/v1/text/slug?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/duo-data-utilities-text-slugifier-dacbd631
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IoXKKVzCkmV4XgiqURZAx

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 duo-data-utilities-text-slugifier-dacbd631
```

Example prompt: Can you slugify the text 'Crème Brûlée – Ærøskøbing Straße 42' for me using a hyphen separator, keeping it under 60 characters, lowercase, with German locale folding?

## When to prefer this

Choose this endpoint when you need deterministic, locale-aware slug generation from internationalized text — especially when dealing with German umlauts, Scandinavian letters (Æ, Ø, Å), Turkish dotless-i, or ligatures that break under plain NFD normalization. It is preferable over generic slugify libraries when you need fine-grained control over separator character, maximum length with word-boundary truncation, case preservation, and visibility into exactly what was removed or transliterated during conversion.

## Known failure modes

- Text exceeds 2048 character limit — request rejected
- Invalid max length value outside 1–512 range — validation error
- Unsupported language code — may fall back to locale-neutral processing
- Empty text input — may return empty slug or error
- Unsupported separator character — validation error

## How this service works

Turn arbitrary text into a URL-safe slug. Decomposes accents, transliterates German umlauts, Scandinavian and Turkish letters, the ligatures that lose meaning under plain NFD, and Cyrillic (Russian, Ukrainian, Belarusian, Bulgarian, Serbian, Macedonian; language from lang or inferred from the letters). Lowercases, collapses separators, truncates on a word boundary. Returns the slug plus what was removed.

## Output

Returns a JSON object containing the generated slug string, its character length, a list of characters that were removed during processing, a boolean indicating whether truncation occurred, the original source text length, and an array of transliteration mappings showing which characters were converted and to what.

## 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": {
      "max": {
       "type": "string",
       "default": "96",
       "pattern": "^[+-]?\\d+$",
       "maxLength": 64,
       "description": "Maximum slug length 1-512, default 96. Truncates at the last complete word."
      },
      "case": {
       "enum": [
        "lower",
        "preserve",
        "upper"
       ],
       "type": "string",
       "default": "lower",
       "maxLength": 64,
       "description": "lower (default), preserve or upper."
      },
      "lang": {
       "type": "string",
       "maxLength": 16,
       "description": "ISO 639-1 code for locale-sensitive folding (de: ü->ue) and the Cyrillic table (ru, uk, be, bg, sr, mk). Default locale-neutral; for Cyrillic the language is then inferred from letters unique to Ukrainian, Belarusian, Serbian or Macedonian, else Russian BGN/PCGN letters with ISO 9 (accents folded) for the rest."
      },
      "text": {
       "type": "string",
       "maxLength": 2048,
       "description": "Text to slugify, at most 2048 characters."
      },
      "separator": {
       "enum": [
        "-",
        "_",
        ".",
        ""
       ],
       "type": "string",
       "default": "-",
       "maxLength": 64,
       "description": "Separator: - (default), _, . or empty."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "route",
      "version",
      "data",
      "meta"
     ],
     "properties": {
      "ok": {
       "const": true
      },
      "data": {
       "type": "object",
       "required": [
        "slug",
        "length",
        "truncated",
        "source_length",
        "transliterated",
        "removed"
       ],
       "properties": {
        "slug": {
         "type": "string"
        },
        "length": {
         "type": "integer"
        },
        "removed": {
         "typ
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "slug": "creme-brulee-aeroeskoebing-strasse-42",
   "length": 37,
   "removed": "—,",
   "truncated": false,
   "source_length": 36,
   "transliterated": [
    {
     "to": "ae",
     "from": "Æ"
    },
    {
     "to": "oe",
     "from": "ø"
    },
    {
     "to": "ss",
     "from": "ß"
    }
   ]
  },
  "meta": {
   "price_usd": "0.05",
   "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
   "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D",
   "computed_at": "2026-09-28T12:00:00.000Z",
   "deterministic": true
  },
  "route": "/v1/text/slug",
  "version": "1.0.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/duo-data-utilities-text-slugifier-dacbd631/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.duoleads.com](https://www.zero.xyz/host/api.duoleads.com/llms.txt)
