{"uid":"cap_5XfcG7TABUdsulXZJo9BA","slug":"url-normalizer-canonicalizer-5f18a99a","name":"URL Normalizer & Canonicalizer","description":"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.","url":"https://intel.rallylive.ca/data/url-normalize","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JC9mkTMNvcQPsGi8b7IyP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Strip tracking params before storing links","prompt":"Before I save this link to my database, can you clean it up? Here it is: https://shop.example.com/product?item=42&utm_campaign=summer&utm_medium=email&fbclid=XYZ789 — remove all the tracking junk and give me the canonical version."},{"title":"Deduplicating scraped URLs","prompt":"I've scraped a bunch of links from a webpage and some might be duplicates written slightly differently — different casing, trailing slashes, default ports, or different query param orders. Can you normalize this URL so I can compare it properly: https://WWW.Example.COM:443/path/../page?b=2&a=1"},{"title":"Audit what tracking parameters were removed","prompt":"Normalize this URL and tell me exactly what was changed or removed: https://blog.example.com/article?ref=twitter&gclid=abc&utm_source=google&id=99#comments"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:02:35.044Z","isFirstParty":false}