# TextKit Slugify

> TextKit Slugify is a paid API for AI agents from textkit.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-23).

Converts arbitrary text into a URL-safe slug with configurable separator, case, and maximum length

## Facts

- Endpoint: GET https://textkit.johnaio281.workers.dev/api/tk/slugify?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/textkit-slugify-a4144a36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AsYZ9tgItRR-DUq-6rANC

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 textkit-slugify-a4144a36
```

Example prompt: Can you slugify the title 'Hello, World! 2026' using a hyphen separator and keep it lowercase?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call slugification with Unicode awareness and no API key setup. It is ideal for agents handling content pipelines, CMS integrations, or URL generation tasks where spinning up a local library is impractical. Prefer it over generic string-manipulation endpoints when you need configurable separator, case folding, and length capping in a single call.

## Known failure modes

- Missing required 'text' query parameter returns an error response
- Extremely long input strings may be silently truncated if maxLength is set
- Non-ASCII or Unicode characters may be transliterated or dropped depending on normalization behavior
- Payment failure via x402 (insufficient USDC balance) will block the request before processing

## How this service works

General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

Returns a JSON object containing the generated slug string (with special characters removed, spaces replaced by the separator, optionally lowercased and truncated) and the integer length of the resulting slug.

## 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"
      },
      "lowercase": {
       "type": "boolean",
       "description": "default true"
      },
      "maxLength": {
       "type": "integer"
      },
      "separator": {
       "type": "string",
       "description": "default -"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "hello-world-2026",
  "length": 15
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/textkit-slugify-a4144a36/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from textkit.johnaio281.workers.dev](https://www.zero.xyz/host/textkit.johnaio281.workers.dev/llms.txt)
