# centralcity.ai URL Percent-Encoder/Decoder

> centralcity.ai URL Percent-Encoder/Decoder is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-20).

Percent-encodes a plain text string for safe use in URLs, or decodes a percent-encoded URL string back to plain text.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_zos6gngkl4sq7qfa?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-url-percent-encoder-decoder-40f30aec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YmTtS8uw2hyUltMx6hk2r

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 centralcity-ai-url-percent-encoder-decoder-40f30aec -d '<json body>'
```

Example prompt: Can you percent-encode this text for me so I can use it safely in a URL: 'hello world & welcome to café!'

## When to prefer this

Use this endpoint when you need a simple, reliable, pay-per-call URL encoding or decoding operation without setting up a local library. Ideal for agents that need to encode dynamic user input into URLs or decode percent-encoded strings from web responses, especially in environments where string utility libraries are unavailable.

## Known failure modes

- Text exceeds 64 KiB limit — request rejected
- Invalid mode value (not 'encode' or 'decode') — validation error
- Malformed percent-encoded input when decoding (e.g. incomplete %XX sequence) — may return error or partial result
- Missing required fields — schema validation error

## How this service works

Percent-encodes a text for a URL, or decodes a percent-encoded text.

## Output

Returns the transformed text: either the percent-encoded version of the input (with special characters replaced by %XX sequences) or the decoded plain text version of a percent-encoded string, depending on the selected mode.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string",
   "description": "encode or decode the text."
  },
  "text": {
   "type": "string",
   "description": "The text, at most 64 KiB."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centralcity-ai-url-percent-encoder-decoder-40f30aec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
