# URL Normalizer & Canonicalizer

> URL Normalizer & Canonicalizer is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Normalizes and canonicalizes URLs by lowercasing scheme/host, dropping default ports, resolving dot segments, sorting query parameters, and stripping tracking parameters like utm_*, fbclid, gclid, and ref.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/url-normalize
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-normalizer-canonicalizer-5f18a99a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5XfcG7TABUdsulXZJo9BA

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-normalizer-canonicalizer-5f18a99a
```

Example prompt: Can you normalize this URL for me — https://www.Example.com:80/foo/../bar?utm_source=newsletter&fbclid=abc123&z=1&a=2#section — strip any tracking params, sort the query string, and tell me what changed?

## When to prefer this

Choose this endpoint when you need to canonicalize URLs for deduplication, storage, or comparison — particularly when incoming URLs may contain tracking parameters (utm_*, fbclid, gclid, ref) that need to be stripped. Ideal for link pipelines, web scrapers, or any workflow that aggregates URLs from multiple sources and needs consistent, clean representations. Unlike a simple regex strip, this endpoint also resolves path dot segments, sorts query parameters, and reports exactly what changed.

## Known failure modes

- Invalid or malformed URL input returns an error
- Network timeout if the service is unavailable
- Missing required 'input' field returns a validation error
- Non-HTTP URLs (e.g. ftp://, file://) may not be supported

## How this service works

URL normaliser: lowercases scheme and host, drops default ports, resolves dot segments, sorts query parameters, strips tracking parameters (utm_*, fbclid, gclid, ref…) and fragments, and reports what changed. Deduplicate and canonicalise links. $0.01 per URL.

## Output

Returns the normalized/canonical URL with the scheme and host lowercased, default ports removed, dot segments resolved, query parameters sorted, tracking parameters (utm_*, fbclid, gclid, ref, etc.) stripped, and fragments removed. Also includes a report of what changes were made during normalization.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-normalizer-canonicalizer-5f18a99a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
