# PennyRail URL Normalizer

> PennyRail URL Normalizer 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 and cleans a raw URL string into a canonical, well-formed URL

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/url.normalize--clean-url
- 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-normalizer-70abf3e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pymSKFmkqgyBAwIEopDpG

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-normalizer-70abf3e5 -d '<json body>'
```

Example prompt: Can you clean up and normalize this URL for me: 'https://Example.COM:443/path/../resource?utm_source=google&utm_medium=cpc&b=2&a=1#anchor'?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call URL normalization without standing up your own parsing infrastructure. Best suited for single-URL normalization in pipelines where canonical URL deduplication or clean link storage is needed, especially when already integrated with x402 micropayment flows.

## Known failure modes

- Empty or missing input string returns validation error
- Non-URL string input may return error or unexpected output
- Extremely long or malformed inputs may fail to parse
- Network timeout if the PennyRail service is unavailable
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Machine-readable settlement service

## Output

Returns a cleaned, canonical URL string with normalized scheme, host casing, resolved path segments, sorted or stripped query parameters, and standardized formatting, as a JSON object.

## 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-normalizer-70abf3e5/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)
