# CoCo Slugify Tool

> CoCo Slugify Tool is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Converts arbitrary text into a URL-safe slug string using a configurable separator character

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/slugify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-slugify-tool-af9dd93b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sM5We8vvOHYKUeBpWMKIT

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 coco-slugify-tool-af9dd93b
```

Example prompt: Can you slugify the text 'The Cat Sat on the Mat — This is an English Example' using hyphens as the separator?

## When to prefer this

Choose this endpoint when you need a quick, lightweight, pay-per-call text-to-slug conversion without setting up a local library — especially useful in serverless agent pipelines where installing an npm/pip slugify package is impractical and you need a reliable API call instead.

## Known failure modes

- Missing 'text' query parameter returns an error or empty slug
- Unsupported characters may be stripped silently
- Very long input strings may be truncated or cause unexpected results
- Invalid separator characters may cause malformed slugs

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing a single 'slug' field — a lowercase, URL-safe string where spaces and special characters are replaced by the specified separator (defaulting to hyphens). Example: {"slug": "the-cat-sat-on-the-mat-this-is-an-english-example"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "sep": {
       "type": "string"
      },
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "the-cat-sat-on-the-mat-this-is-an-english-example"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-slugify-tool-af9dd93b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
