Skip to main content

Typosquatting Detection API

pro
GET/v1/domain/typosquats

Generates domain name variations using 12 permutation algorithms and checks which ones resolve to active servers. Identifies potential typosquatting threats including homoglyph attacks, character swaps, TLD variations, and more.

What It Does

Applies 12 typosquatting algorithms (character omission, swap, doubling, insertion, adjacent key substitution, homoglyph substitution, TLD swap, hyphenation, bitsquatting, vowel swap, subdomain insertion, plural/singular) to generate domain variations, then batch-resolves them via DNS to find active threats.

Why It's Useful

Typosquatting is a leading vector for phishing, credential theft, and brand abuse. Proactively identifying registered lookalike domains enables takedown requests and employee awareness training.

Use Cases

Brand Protection Manager

Brand Protection Sweep

Run weekly scans against company domains to identify newly registered typosquat domains that could be used for phishing.

Enable proactive takedown via ICANN UDRP dispute resolution or registrar abuse reports before lookalike domains impact customers.

SOC Analyst

Phishing Campaign Analysis

When a phishing email is reported, quickly check all common variations of the spoofed domain to find the full scope of the campaign.

Identify all domains in a phishing campaign, not just the one reported, for comprehensive blocking.

IT Manager

Domain Registration Defense

Before launching a new brand, check which typosquat variations are already registered and defensively register critical ones.

Prevent brand abuse by registering high-risk typosquat domains before attackers do.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to check for typosquatting variationsExample: example.com
check_dnsquerystringOptionalWhether to resolve variations via DNS to check registration and activity (default: true). Set to false for fast variation-only results.Example: true
check_certsquerybooleanOptionalOpt in to certificate-history checks for registered variants; adds latency. Default false.Example: false
compare_pagesquerybooleanOptionalOpt in to page similarity checks against the reference domain; adds latency. Default false.Example: false
max_variationsquerynumberOptionalMaximum generated variations, 1–400. Default 250.Example: 250

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe original domain checked
total_variationsnumberTotal variations generated across all algorithms
registered_countnumberVariations that are registered in DNS (may not resolve to an IP)
resolving_countnumberVariations resolving to active servers with A records
variationsarrayEach variation with domain, type, registered, resolves, ip, has_mx, and risk level (high/medium/low/none)
notestringCoverage note for the generated and checked variants.

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the pro plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/typosquats?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/typosquats?domain=example.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/typosquats?domain=example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Typosquatting Detection guide

Learn the concepts, choose a practical workflow, and interpret the observations from Typosquatting Detection before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Typosquatting Detection endpoint live in the playground.

    Typosquatting Detection API Reference | EdgeDNS