# PennyRail URL Normalize

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

Normalizes a raw URL string into a canonical, standardized form

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/url.normalize
- 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-normalize-908f1b81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_052p23kU9YzZoIqF7XPRL

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-normalize-908f1b81 -d '<json body>'
```

Example prompt: Can you normalize this URL for me — 'HTTP://Example.COM/foo/../bar?b=2&a=1#section' — so it's in a clean, canonical form?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call URL normalization service with no setup, suitable for agentic workflows processing individual URLs one at a time. Prefer it over regex-based manual normalization when you need reliable canonical output without building custom logic. At $0.001 USDC per call, it's cost-effective for moderate volumes where precision matters.

## Known failure modes

- Invalid or malformed input URL that cannot be parsed — likely returns an error in the result field
- Empty or missing 'input' field — returns a 400-level error
- Non-string input type — schema validation failure
- Extremely long URLs may timeout or be rejected
- Relative URLs without a base may fail to normalize fully

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the 'operation' field (a string naming the operation performed) and a 'result' field with the normalized, canonical URL string, plus any additional metadata fields.

## Request schema (JSON Schema)

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

## 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-normalize-908f1b81/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)
