# 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 string, percent-encoding special characters for safe use in URLs

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/encoding.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-10c9b66f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2xBo8skzwCGkIUWL1BJr7

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

Example prompt: Can you URL-encode this string for me: 'hello world & welcome to 2024!'?

## When to prefer this

Choose this endpoint when you need a simple, reliable, pay-per-call URL encoding utility without setting up a local library or dependency — particularly useful in serverless agent pipelines or environments where string utility functions are not available natively.

## Known failure modes

- Missing 'input' field returns a validation error
- Very long strings may be truncated or rejected
- Non-string input types may cause a 400 error
- Network or payment gateway errors may return 402 or 5xx responses

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object with an 'operation' field indicating 'url-encode' and a 'result' field containing the percent-encoded version of the input string, where spaces become %20, ampersands become %26, and other special characters are similarly escaped.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "operation",
  "result"
 ],
 "properties": {
  "result": {},
  "operation": {
   "type": "string"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-url-encoder-10c9b66f/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)
