# URL Normalizer (OpenVerbs)

> URL Normalizer (OpenVerbs) is a paid API for AI agents from url.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Canonicalizes a URL by lowercasing the host, resolving dot-segments, dropping default ports, sorting query parameters, and optionally removing fragments or trailing slashes.

## Facts

- Endpoint: POST https://url.openverbs.com/v1/normalize
- Price: $0.002/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-openverbs-6cd755c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r3SYByJCMag6kwEmrWedW

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-openverbs-6cd755c1 -d '<json body>'
```

Example prompt: Normalize this URL for me — sort the query parameters alphabetically and strip the fragment: 'https://Example.COM/foo/../bar?z=1&a=2#section'

## When to prefer this

Choose this endpoint when you need reliable, standards-compliant URL canonicalization — especially when you want WHATWG-spec parsing (not just regex substitution) combined with query parameter sorting and optional fragment/trailing-slash removal. Prefer it over DIY normalization when consistency across environments matters, or when you need a trustworthy signal about whether a URL actually changed after normalization.

## Known failure modes

- Invalid or non-absolute URL input returns an error
- URL exceeding 8192 characters is rejected
- Malformed JSON body returns a 400-level error
- Payment not included or insufficient results in a 402 response

## How this service works

Canonicalize a URL: WHATWG parsing already lowercases the host, resolves dot-segments and drops default ports; on top of that, query parameters are sorted by default and you can optionally drop the fragment or a trailing slash. Returns the normalized URL and whether it changed.

## Output

Returns the normalized URL string after applying WHATWG parsing (hostname lowercased, dot-segments resolved, default ports dropped) plus any requested transformations (sorted query params, removed fragment, removed trailing slash), along with a boolean indicating whether the URL actually changed from the input.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "minLength": 1,
       "maxLength": 8192,
       "description": "The URL to normalize."
      },
      "sortQuery": {
       "type": "boolean",
       "description": "Sort query parameters alphabetically. Default true."
      },
      "removeHash": {
       "type": "boolean",
       "description": "Drop the #fragment. Default false."
      },
      "removeTrailingSlash": {
       "type": "boolean",
       "description": "Drop a trailing '/' from the path. Default false."
      },
      "lowercaseHostname": {
       "type": "boolean",
       "description": "Lowercase the hostname (always applied by WHATWG). Default true."
      }
     },
     "required": [
      "url"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

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