# 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-19).

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

## Facts

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

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-8ca3f71a -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a simple, reliable, pay-per-use URL percent-encoding or decoding operation without setting up a local library. Ideal for agents operating in environments where code execution is unavailable or undesirable, or when encoding/decoding needs to be auditable and delegated to an external service. Supports up to 64 KiB of text per call.

## Known failure modes

- Input text exceeds 64 KiB limit — request rejected
- Invalid mode value (not 'encode' or 'decode') — validation error
- Malformed percent-encoded input provided to decode mode — may return error or partial result
- Missing required fields (mode or text) — 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 a percent-encoded version of the input (all special and non-ASCII characters replaced with %XX sequences) or the decoded plain-text version of a percent-encoded input string.

## 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-8ca3f71a/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)
