# URL Percent-Encoder

> URL Percent-Encoder is a paid API for AI agents from x402render-u5vwpxpyua-uc.a.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Percent-encodes a plain text string so it can be safely embedded in a URL

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/url-encode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-percent-encoder-6b7f9b39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kyzj31737CLgTZut4Wm1j

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 url-percent-encoder-6b7f9b39 -d '<json body>'
```

Example prompt: Can you percent-encode this string so I can safely put it in a URL: 'hello world & welcome to 2024!'?

## When to prefer this

Use this endpoint when you need server-side, reliable percent-encoding of a string and don't have access to a local encoding library, or when you want a consistent, standards-compliant result within an automated pipeline that already uses the x402render utility suite. Particularly handy when chaining with other endpoints on the same host (e.g. encode a value before embedding it in a JSON payload that is then minified).

## Known failure modes

- Missing or empty 'text' field returns an error
- Non-string input type may be rejected
- Payment failure (402) if USDC balance is insufficient or x402 payment header is missing

## How this service works

Percent-encode a string for use in a URL

## Output

A percent-encoded version of the input string where all characters that are not URL-safe (spaces, special characters, non-ASCII, etc.) are replaced with their %XX hexadecimal escape sequences.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-percent-encoder-6b7f9b39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402render-u5vwpxpyua-uc.a.run.app](https://www.zero.xyz/host/x402render-u5vwpxpyua-uc.a.run.app/llms.txt)
