# 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_rusq4ijknusdlwss?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-fa3df613
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EAVBB7eTPtNKv-946cKsr

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

Example prompt: Can you percent-encode this text for me so I can use it safely in a URL: 'Hello World! This is a test & demo'?

## When to prefer this

Choose this endpoint when you need a quick, reliable, pay-per-call URL percent-encoding or decoding operation without setting up a local library. It is especially useful in agentic pipelines where text must be sanitized for embedding in URLs, query strings, or REST API paths, and you want a hosted utility rather than executing code yourself.

## Known failure modes

- Input text exceeds 64 KiB limit — request rejected
- Invalid percent-encoding sequences in decode mode (malformed %XX tokens) may cause errors
- Missing or invalid 'mode' enum value (must be 'encode' or 'decode') causes a 400-level error
- Empty text input may return an empty string or error depending on API behavior

## How this service works

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

## Output

A JSON object containing the transformed text — either the percent-encoded version of the input (e.g. spaces become %20, ampersands become %26) when encoding, or the decoded plain-text string when decoding. The result is ready to use directly in URL construction or display.

## 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-fa3df613/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)
