{"slug":"url-openverbs-com-v1-normalize-ae3065","title":"Canonicalize a URL","host":"url.openverbs.com","method":"POST","resource":"https://url.openverbs.com/v1/normalize","category":"other","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.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":453,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"removeHash":false,"sortQuery":false,"url":"example"},"bodyType":"json","method":"POST","type":"http"},"output_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"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":453,"error":null}],"description_full":"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.","last_updated":"2026-09-06T08:11:55.576Z","schemes":["exact"]}