{"uid":"cap_bCeUxtEoi9rvtojjJ1vfn","slug":"typosquat-homoglyph-domain-check-121fca34","name":"Typosquat & Homoglyph Domain Check","description":"Pure-compute typosquat and homoglyph check on a hostname: edit-distance to a curated brand list, look-alike character normalization, brand-in-subdomain lures, punycode/IDN, abused free-hosting suffixes and throwaway TLDs. Returns is_typosquat plus the nearest brand, edit distance and reasons. No network — instant, cheap.","url":"https://api.agentstools.dev/domain/typosquat","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"Alternative input: a URL (its host is used)"},"host":{"type":"string","description":"Alternative input: a bare hostname"},"domain":{"type":"string","description":"Domain or hostname to analyze (e.g. example.com)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_gBIrijxw-J7zXoBiWJHe9","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":"Performs a pure-compute check on a hostname for typosquatting, homoglyphs, brand impersonation, punycode/IDN abuse, and throwaway TLDs — returning a verdict, nearest brand, edit distance, and reasons.","exampleAgentPrompt":"Can you check if the domain 'paypa1-secure.xyz' is a typosquat or brand impersonation attempt — I want to know what brand it's closest to and why it looks suspicious?","exampleUseCases":[{"title":"Phishing link safety check","prompt":"I just got an email with a link to 'arnazon-login.net' — can you check if that domain is trying to impersonate a real brand and tell me why it looks sketchy?"},{"title":"Bulk domain screening pipeline","prompt":"We're ingesting thousands of newly registered domains every hour — can you flag any that appear to be typosquats or lookalikes of well-known brands, and explain what makes each one suspicious?"},{"title":"Homoglyph attack detection","prompt":"Someone submitted 'microsоft.com' (with a Cyrillic 'о') to our form — can you analyze that hostname for homoglyph tricks or punycode abuse and tell me if it's impersonating Microsoft?"}],"resultDescription":"Returns a JSON object with: is_typosquat (boolean verdict), the nearest matching brand name from a curated list, edit distance from that brand, and a list of human-readable reasons explaining the detection (e.g. homoglyph substitution, punycode encoding, throwaway TLD, brand-in-subdomain lure).","failureModes":["Missing domain/host/url query parameter — returns 400 or error response","Domain string is malformed or unparseable — may return error or low-confidence result","Brand not in curated list — may return is_typosquat=false even for real impersonation of unknown brands","Very long or unusual hostnames may produce unexpected edit-distance results"],"whenToPreferThis":"Use this endpoint when you need instant, zero-latency, no-network typosquat detection — ideal for high-volume screening pipelines, real-time link safety checks, or agent workflows that must avoid external DNS/WHOIS lookups. Prefer this over full WHOIS or DNS-based checks when speed and cost matter and pure textual analysis is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:08.620Z","isFirstParty":false}