# FastX402 URL Normalizer

> FastX402 URL Normalizer is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Normalizes an absolute URL into a canonical form by lowercasing the scheme/host, resolving path traversals, and sorting query parameters.

## Facts

- Endpoint: GET https://fastx402.tools/url-normalize?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-url-normalizer-3c44f51e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1mc0CKZkGoQbePJaQ6mm_

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 fastx402-url-normalizer-3c44f51e
```

Example prompt: Normalize this URL for me: HTTP://Example.COM:80/a/../b/./c?z=1&a=2&a=1 — I need a clean canonical version with resolved paths and sorted query params.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call URL normalization step without setting up an account or API key — ideal for agents that occasionally need to canonicalize URLs as part of a larger workflow (e.g. deduplication, caching keys, link comparison) and want to pay only per use in USDC via x402 on Base or Solana.

## Known failure modes

- Missing required 'url' query parameter returns an error
- Non-absolute or malformed URL may return an error or unexpected result
- Payment failure via x402 protocol blocks the request
- Network timeout if the FastX402 service is temporarily unavailable

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object with two fields: 'original' (the URL as provided) and 'normalized' (the canonical form with lowercased scheme and host, default port removed, dot-segments in the path resolved, and query parameters sorted alphabetically).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute URL to normalize"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "original": {
       "type": "string"
      },
      "normalized": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "original": "HTTP://Example.COM:80/a/../b/./c?z=1&a=2&a=1",
  "normalized": "http://example.com/b/c?a=1&a=2&z=1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-url-normalizer-3c44f51e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
