Normalize URL
url.normalizeCanonicalize messy URLs by lowercasing scheme and host, stripping fragments, and sorting query parameters before comparing or opening them.
Instructions
GET /v1/normalize-url — canonicalize a URL (scheme/host lowercased, fragment stripped, query sorted) before comparing or opening. Call before url.open when the URL is messy or duplicated. Analytics-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | URL to normalize. Example: 'HTTPS://Example.com/a?b=1#x'. |