$ man slugify
/slugify
PRICE / CALL
$0.001
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
wordmintCATEGORY
ai
STATUS
● live
NAME
slugify — url slug generator / slugifier / canonical-identifier maker / safe-string converter / seo slug builder / filename slug / cache-key normal…
SYNOPSIS
POST https://x402.agentutility.ai/slugify
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
URL slug generator / slugifier / canonical-identifier maker / safe-string converter / SEO slug builder / filename slug / cache-key normalizer. Takes any string and returns a URL/identifier-safe slug in one of four modes: kebab (lower-kebab-case, default), snake (lower_snake_case), dot (lower.dot.case), or preserve_case (keep original casing). Unicode-aware: strips accents (José → jose), normalizes symbol-to-word for common cases (& → and, % → percent, @ → at, # → hash, + → plus), collapses adjacent separators, strips leading/trailing separators. Optional max_length with word-boundary-aware truncation. Pure compute, no LLM, no upstream. Cheapest endpoint in the catalog at $0.001.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| text | string | Source string to slugify. Max 1000 chars. | required |
| mode | string | Slug shape: 'kebab' (default), 'snake', 'dot', or 'preserve_case'. | optional |
| replace_symbols | boolean | Replace common symbols with word equivalents (& → and, % → percent, @ → at, # → hash, + → plus). Default true. | optional |
| ascii_only | boolean | Strip Unicode accents and convert to ASCII. When false, allows Unicode letters/numbers through. Default true. | optional |
| max_length | number | Optional max slug length. Truncates at the nearest word boundary. 1-500. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| input | string | Echo of the input text. |
| slug | string | The generated slug in the requested mode. |
| mode | string | Echo of the slug mode used (kebab/snake/dot/preserve_case). |
| length | number | Length of the resulting slug in characters. |
| tokens | array | Array of individual tokens that were joined to form the slug. Useful when the caller wants to know what survived normalization. |
| truncated | boolean | True when max_length was set and the slug had to be cut to fit. |
| options | object | Echo of the effective options used (replace_symbols, ascii_only, max_length). |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/slugify \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# MCP packages on npm under # @agentutility/mcp-* (one per cluster) # # Catalog + install: # https://mcp.agentutility.ai # # Or call slugify directly over HTTP — see above.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- wordmintslugslugifyurl-slugstring-normalizekebab-case
- methods
- POST
- cluster
- wordmint
- price
- $0.001 USDC per call
ADJACENT — other endpoints in wordmint
| endpoint | description | price |
|---|---|---|
| content-simhash | SimHash / 64-bit content fingerprint / near-duplicate detection / dedup hashing / locality-sensitive hash. | $0.001 |
| hash-string | String hasher / multi-algorithm digest / cache-key generator / content fingerprinter / SHA-256 / SHA-1 / SHA-384 / SHA-512 / MD5. | $0.001 |
| text-normalize | Text normalize. | $0.001 |
| token-count | Token count / tokenizer estimate / GPT-4 token count / Claude token count / Gemini token count / context-window pre-flight. | $0.001 |
| type-inference-from-json | Type inference from JSON / JSON to TypeScript / JSON to Zod / JSON to JSON Schema / JSON shape inferer / quicktype-style type generator. | $0.001 |
| unicode-normalize | Unicode normalize / NFC NFD NFKC NFKD / homoglyph detection / IDN spoof / lookalike chars / invisible characters / zero-width / phishing… | $0.001 |
| cron-explain | Cron expression explainer / cron parser / scheduling translator. | $0.002 |
| cron-parse | Cron parser. | $0.002 |
SEE ALSO