# PennyRail URL Encoder

> PennyRail URL Encoder 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-14).

URL-encodes a given string, percent-encoding special characters for safe use in URLs

## Facts

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

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

Example prompt: Can you URL-encode this string for me: 'hello world & foo=bar'?

## When to prefer this

Use this endpoint when you need a quick, pay-per-use URL encoding utility without setting up any libraries or infrastructure. It is well-suited for AI agents that need to programmatically encode strings on demand at low cost ($0.001 USDC per call) without importing additional dependencies.

## Known failure modes

- Missing 'input' field returns a validation error
- Non-string input may cause a 400 error
- Payment failure via x402 prevents request from being processed
- Empty string input may return an empty result or error

## How this service works

Machine-readable settlement service

## Output

Returns a URL-encoded version of the input string, with spaces converted to %20 and other special characters percent-encoded according to RFC 3986.

## 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-96f31c8a/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)
