# 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 URL string back to plain text.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_2bdw4roa6yezsspv?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-21212a87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e97zneCNjCeT8bk8c-TIw

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-21212a87 -d '<json body>'
```

Example prompt: Can you percent-encode this text so I can safely include it in a URL: 'Hello World! This is a test: 50% off & more'?

## When to prefer this

Use this endpoint when you need a simple, reliable, pay-per-call URL percent-encoding or decoding utility without setting up a local library or runtime. Ideal for agents that need to construct or parse URLs dynamically, handle user-submitted text that must be embedded in URLs, or decode query parameters received from external sources.

## 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 sequences) — may return error or partial result
- Empty text input — may return empty string or error

## How this service works

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

## Output

A JSON response containing the transformed text — either the percent-encoded version of the input (e.g., spaces become %20, ampersands become %26) when mode is 'encode', or the decoded plain-text string when mode is 'decode'.

## 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-21212a87/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)
