{"uid":"cap_Gumip8Lb0HKpi7FYj7tjC","slug":"url-canonical-compare-26250699","name":"URL Canonical Compare","description":"URL Canonical Compare: URL Canonical Compare compares URLs after scheme, host, port, path, and query normalization from bounded caller-supplied values without an external provider. Call URL Canonical Compare before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for URL Canonical Compare as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, sta…","url":"https://api.delx.ai/api/v1/x402/url-canonical-compare","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"left":{"type":"string","maxLength":8192,"description":"Left supplied to URL Canonical Compare; used only for this bounded calculation and processed in memory without retention."},"right":{"type":"string","maxLength":8192,"description":"Right supplied to URL Canonical Compare; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"left":"https://example.com/a","right":"https://example.com/a","matched":true},"schema":"delx/util-url-canonical-compare/v1","status":"pass","evidence":{"retained":false,"input_sha256":"936c1c7a0d9ac76bbae6665567c79ff085c468589aa089757cfb54f94c077a6e","external_calls":0},"operation":"web_reliability:url_canonical_compare"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j-NsfVUB6RjKkYaFZ3OIV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and compares two URLs across scheme, host, port, path, and query components to determine if they are canonically equivalent.","exampleAgentPrompt":"Can you compare these two URLs to see if they're canonically the same — 'http://example.com:80/path?a=1&b=2' and 'https://example.com/path?b=2&a=1' — after full normalization of scheme, host, port, path, and query?","exampleUseCases":[{"title":"Redirect safety check before following","prompt":"Before my agent follows this redirect, can you check if 'https://shop.example.com/products/widget' and 'http://shop.example.com:443/products/widget?ref=home' are canonically the same URL so I know it's safe to accept?"},{"title":"Cache deduplication for identical resources","prompt":"I'm about to cache a response — can you compare 'https://api.service.io/data?sort=asc&limit=10' and 'https://api.service.io/data?limit=10&sort=asc' to see if they're canonically equivalent so I don't store a duplicate?"},{"title":"Retry URL validation for idempotent requests","prompt":"My agent is about to retry a failed request — please check whether 'http://backend.internal/v1/submit' and 'http://backend.internal:80/v1/submit/' normalize to the same canonical URL before I fire the retry."}],"resultDescription":"Returns a deterministic JSON object containing the normalized forms of both input URLs, the computed canonical equivalence finding (match or mismatch), and an explicit pass or advisory status — versioned for reproducibility.","failureModes":["Input URL exceeds 8192 character limit — request rejected","Malformed or unparseable URL provided as left or right — normalization error returned","Network timeout or service unavailability — HTTP 5xx error","Missing required 'left' or 'right' fields — validation error returned","Payment failure via x402 — 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a deterministic, server-side canonical comparison of two caller-supplied URLs before accepting a web response, caching a resource, following a redirect, or retrying a request — especially when you cannot trust local normalization logic or need an auditable, versioned JSON record of the comparison result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:45.654Z","isFirstParty":false}