# URL Encoder API (x402.outpimp.com)

> URL Encoder API (x402.outpimp.com) is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Percent-encodes a text string for safe use in a URL query string or path segment, handling reserved-character rules correctly.

## Facts

- Endpoint: POST https://x402.outpimp.com/urlEncode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-encoder-api-x402-outpimp-com-3716d1ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vy9E3d-rs9pM4aaAyztNQ

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-encoder-api-x402-outpimp-com-3716d1ea -d '<json body>'
```

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

## When to prefer this

Prefer this endpoint when you need reliable, standards-compliant percent-encoding of arbitrary text for inclusion in a URL, especially when LLM-generated encoding may be unreliable (e.g. edge cases with reserved characters like '/', '?', '&', '#', '+', or non-ASCII unicode). This is a fast, deterministic utility call that avoids token burn and encoding errors.

## Known failure modes

- Missing 'text' field in request body — returns 400
- 'text' field is not a string (e.g. number or null) — returns 400
- Network timeout or service unavailability — returns 5xx
- Empty string input — may return empty string or 400 depending on server behavior

## How this service works

URL encoder API. Percent-encodes text for safe use in a URL query string or path segment, handling reserved-character rules LLMs often get wrong by hand.

## Output

Returns the percent-encoded version of the input text, with all reserved and non-ASCII characters replaced by their %XX hex escape sequences, making the string safe for use in URL query strings or path segments. Returns HTTP 400 if the text field is missing or not a string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to URL-encode."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-encoder-api-x402-outpimp-com-3716d1ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
