{"uid":"cap_jatfKppff_RshmSDSicTQ","slug":"writerslogic-url-canonicalization-security-flagging-4138d6d7","name":"WritersLogic URL Canonicalization & Security Flagging","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/url-canonicalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string","maxLength":2048},"maxItems":50,"minItems":1,"description":"Absolute URLs including the scheme."},"sortQuery":{"type":"boolean","description":"Sort remaining query segments for a dedupe key. Off by default: order can matter to servers."},"publicSuffixes":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":200,"description":"Extra public suffixes (e.g. \"co.xx\") used for registrable-domain decisions."},"extraTrackingParams":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":50,"description":"Extra query parameter names to strip (case-insensitive)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hO0Nnh2k94lWKtXZBqq30","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and security-audits up to 50 absolute HTTP(S) URLs — stripping tracking parameters, normalizing encoding, and flagging obfuscation tricks like punycode abuse, open redirects, and userinfo spoofing.","exampleAgentPrompt":"Can you canonicalize these 10 URLs I scraped — strip any UTM params, fbclid, and gclid, normalize percent-encoding, and flag any that look suspicious (open redirects, punycode tricks, or userinfo@ spoofing)?","exampleUseCases":[{"title":"Deduplicating scraped article links","prompt":"I just scraped 40 article URLs from a news aggregator and many look like duplicates with different UTM parameters. Can you canonicalize them all, strip the tracking params, and sort the query strings so I can dedup them into a clean list?"},{"title":"Security vetting before agent browsing","prompt":"Before my agent clicks any of these 20 links from a user's email, can you normalize and audit them — flag anything that looks like an open redirect, obfuscated IP, or punycode homograph attack?"},{"title":"Affiliate link cleanup for publishing","prompt":"I have 30 product URLs with fbclid, gclid, and utm_source params that need to be cleaned up before we publish them. Can you strip all the tracking parameters including our custom 'ref' and 'affid' params and return the clean canonical versions?"}],"resultDescription":"For each submitted URL, the agent receives: the WHATWG-normalized canonical URL with tracking params stripped, host lowercased, default ports removed, dot segments resolved, and unreserved percent-escapes normalized. Also returned are security flags per URL indicating detected issues such as userinfo@host tricks, backslash authorities, multiple-@ ambiguities, obfuscated IPv4 hosts, invalid or ASCII-only punycode labels, mixed-script IDN hostnames, and open-redirect-shaped parameters (next=, redirect=, url=) pointing off-site or to javascript: URIs.","failureModes":["Non-absolute or non-HTTP(S) URLs rejected with an error (e.g. ftp://, data:, relative paths)","URLs exceeding 2048 characters rejected","Batch exceeding 50 URLs rejected","Malformed JSON input returns 400","DNS resolution failures are not reported — this endpoint does not resolve DNS","Public suffix detection may miss obscure TLDs not in the built-in subset unless supplied via publicSuffixes"],"whenToPreferThis":"Use this endpoint when an agent needs to safely process, deduplicate, or click a batch of URLs and wants both normalization and security red-flags in one call. Prefer it over ad-hoc regex stripping when you need WHATWG-compliant parsing, punycode safety checks, homograph detection, or open-redirect flagging. It is not a substitute for DNS-based phishing detection or full redirect chain following.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:32:53.472Z","isFirstParty":false,"canonicalSlug":"writerslogic-url-canonicalization-security-flagging-4138d6d7"}