{
  "x402Version": 2,
  "id": 41742,
  "slug": "41742",
  "resource": "https://url.openverbs.com/v1/normalize",
  "description": "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.",
  "type": "http",
  "serviceName": "Normalize URL",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "removeHash": false,
            "sortQuery": true,
            "url": "https://Example.com/a/?b=2&a=1"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "lowercaseHostname": {
                    "description": "Lowercase the hostname (always applied by WHATWG). Default true.",
                    "type": "boolean"
                  },
                  "removeHash": {
                    "description": "Drop the #fragment. Default false.",
                    "type": "boolean"
                  },
                  "removeTrailingSlash": {
                    "description": "Drop a trailing '/' from the path. Default false.",
                    "type": "boolean"
                  },
                  "sortQuery": {
                    "description": "Sort query parameters alphabetically. Default true.",
                    "type": "boolean"
                  },
                  "url": {
                    "description": "The URL to normalize.",
                    "maxLength": 8192,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "normalize url",
    "canonicalize url",
    "sort query parameters",
    "remove url fragment",
    "clean url api",
    "bazaar"
  ],
  "sourceHost": "url.openverbs.com",
  "lastUpdated": "2026-10-08T05:39:19.894Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T05:39:19.63Z"
  },
  "metadata": {
    "serviceName": "Normalize URL",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "removeHash": false,
              "sortQuery": true,
              "url": "https://Example.com/a/?b=2&a=1"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "lowercaseHostname": {
                      "description": "Lowercase the hostname (always applied by WHATWG). Default true.",
                      "type": "boolean"
                    },
                    "removeHash": {
                      "description": "Drop the #fragment. Default false.",
                      "type": "boolean"
                    },
                    "removeTrailingSlash": {
                      "description": "Drop a trailing '/' from the path. Default false.",
                      "type": "boolean"
                    },
                    "sortQuery": {
                      "description": "Sort query parameters alphabetically. Default true.",
                      "type": "boolean"
                    },
                    "url": {
                      "description": "The URL to normalize.",
                      "maxLength": 8192,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "url.openverbs.com",
    "manifest_name": "url.openverbs.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  }
}