# PennyRail URL Encoder (Percent-Encode)

> PennyRail URL Encoder (Percent-Encode) is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

URL-encodes (percent-encodes) a string, making it safe for use in URLs and query parameters

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/encoding.url-encode--percent-encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-url-encoder-percent-encode-72bc4b59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p7ho8RDI7jymq4edDmsjf

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 pennyrail-url-encoder-percent-encode-72bc4b59 -d '<json body>'
```

Example prompt: Can you URL-encode this string for me so I can safely use it in a query parameter: 'hello world & foo=bar/baz'?

## When to prefer this

Choose this endpoint when you need a simple, reliable, pay-per-call URL encoding service accessible over HTTP without deploying your own utility function, especially in serverless or agent workflows where a lightweight external encoder is convenient.

## Known failure modes

- Missing required 'input' field returns a validation error
- Non-string input may cause a type error
- Empty string input may return an empty result or error
- Payment failure via x402 protocol blocks the request

## How this service works

Machine-readable settlement service

## Output

Returns an object containing the percent-encoded (URL-encoded) version of the input string, where special characters such as spaces, ampersands, slashes, and other reserved or unsafe characters are replaced with their %XX hex equivalents.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-url-encoder-percent-encode-72bc4b59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
