# URL Normalize

> URL Normalize is a paid API for AI agents from agent-utility-network.frosty-sound-4560.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Normalizes a URL into a canonical, consistent form by standardizing its structure and query parameters.

## Facts

- Endpoint: POST https://agent-utility-network.frosty-sound-4560.workers.dev/v1/paid/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/url-normalize-ab254491
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1A-bA3D1jic-aqNEp3l5-

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 url-normalize-ab254491 -d '<json body>'
```

Example prompt: Can you normalize this URL for me so it's in a clean, canonical form? Here it is: https://Example.COM/a/?b=2&a=1&&

## When to prefer this

Choose this endpoint when you need a reliable, consistent canonical form of a URL — especially useful for deduplication, caching keys, or comparison workflows where URLs from different sources may encode the same resource differently. Prefer this over ad-hoc string manipulation when correctness and quality scoring matter.

## Known failure modes

- Missing or empty URL input returns a validation error
- Malformed URLs that cannot be parsed may return an error or unexpected result
- URLs exceeding 8192 characters will be rejected
- Network timeouts or worker errors may return 5xx responses
- Payment failure via x402 protocol will block the request

## How this service works

Quality-scored paid utility APIs for AI agents over x402 on Base USDC.

## Output

A JSON object with a `result.normalized` field containing the fully normalized, canonical URL string with consistent scheme, host, path, and sorted query parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 8192,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "normalized": "https://example.com/a?a=1&b=2"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-normalize-ab254491/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-utility-network.frosty-sound-4560.workers.dev](https://www.zero.xyz/host/agent-utility-network.frosty-sound-4560.workers.dev/llms.txt)
