Skip to main content

Email Validation API

developer
GET/v1/email/validate

Validates email syntax, MX/DNS configuration, disposable and role addresses, provider signals and risk. Optional SMTP probing adds domain-level relay connectivity and STARTTLS evidence without claiming that an individual mailbox exists.

What It Does

Runs syntax, MX, SPF, DKIM, DMARC, provider and domain-age checks. Optional smtp_probe=true checks a bounded set of MX relays using greeting, EHLO, STARTTLS and QUIT only. The recipient address is not sent to the mail server. SMTP acceptance does not establish mailbox existence or guaranteed delivery; the default remains DNS-only.

Why It's Useful

Email validation at the DNS level catches invalid, disposable, and high-risk addresses without the deliverability issues of SMTP verification. Essential for protecting signup forms from fake accounts, improving lead quality for sales teams, maintaining sender reputation by reducing bounce rates, and meeting Google/Yahoo/Microsoft bulk sender authentication requirements (2024-2025). Unlike SMTP VRFY (disabled by most servers) or RCPT TO probing (rate-limited and unreliable), DNS-level validation provides consistent, fast results at scale.

Use Cases

Product Engineer

Signup Form Validation

Validate email addresses at registration to reject disposable and invalid emails before creating accounts. Block throwaway addresses from services like Guerrilla Mail, Mailinator, and 110K+ known disposable domains.

Identify disposable addresses during signup and apply your validation policy before creating an account.

Marketing Ops

Lead Quality Scoring

Score inbound leads based on email risk — flag disposable domains, role addresses (info@, sales@), and free providers to prioritize sales outreach on valid business emails with custom domains.

Focus sales effort on high-quality leads. Business email addresses convert 3-5x higher than free provider addresses.

Email Marketer

Email List Hygiene

Clean email lists before campaigns to remove disposable, role, and invalid addresses. Identify domains without MX records that will hard-bounce.

Improve deliverability and sender reputation. Keep bounce rates below the 2% threshold that triggers ESP penalties.

Security Engineer

Fraud Prevention

Score email addresses during account creation or transaction flows. Flag high-risk signals: disposable domains, newly registered domains (<7 days), missing SPF/DMARC, and role addresses.

Reduce account fraud by identifying throwaway and suspicious email patterns before they cause damage.

Parameters

NameLocationTypeRequiredDescription
smtp_probequerystringOptionalSet true to add domain-level MX relay connectivity and STARTTLS checks (default false). Does not verify the individual mailbox or send mail.Example: trueOptions: true, false
emailquerystringRequiredThe email address to validateExample: user@example.com

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
emailstringThe queried email address
is_valid_syntaxbooleanWhether email syntax is valid per RFC 5322
domain_existsbooleanWhether the email domain exists (via MX or A record fallback per RFC 5321 §5.1)
mx_foundbooleanWhether MX records exist for the domain
mx_recordsarrayMX record hostnames for the email domain
is_disposablebooleanWhether domain is a known disposable email provider (110K+ domain database)
is_role_addressbooleanWhether local part is a role/generic address (info@, admin@, noreply@, etc.)
is_free_providerbooleanWhether domain is a free email provider (Gmail, Yahoo, Outlook, ProtonMail, etc.)
has_spfbooleanWhether domain has an SPF record (required by Google/Yahoo/Microsoft for bulk senders)
has_dmarcbooleanWhether domain has a DMARC record (required by Google/Yahoo/Microsoft for bulk senders)
domain_age_daysnumberDomain registration age in days, resolved live via RDAP (IANA bootstrap registry, RFC 9224). Domains <7 days old are high risk; null when the TLD has no RDAP coverage (~40% of ccTLDs in 2026).
lookalike_checkobjectTypo / lookalike detection via Levenshtein distance ≤ 2 against ~50 popular free + brand domains. Fields: suggestion (closest match or null), distance (edit count, 0 means exact), target_pool ("top_free" | "top_org" | null). Closes parity with paid validation services that catch gmial→gmail typos.
idn_analysisobjectIDN / homograph analysis (RFC 3490 + UTS #39). Fields: is_idn (boolean), punycode (xn-- form), decoded (Unicode form), mixed_script (boolean — flags the classic Cyrillic-a-in-Latin-domain attack), scripts (array), homograph_target (closest ASCII candidate when confusable mapping applies). Defends against the 2026 phishing trend of homograph-based brand impersonation.
risk_scorenumberRisk score 0-100. Higher score = higher risk.
risk_levelstringRisk level: low (0-20), medium (21-50), high (51-75), critical (76-100).
smtp_probe_enabledbooleanWhether optional domain-level SMTP probing was requested.
smtp_relayobject | nullBounded MX relay checks: probes, truncation, completion, scope and mailbox_verified=null. Does not verify recipient existence.
has_dkimbooleanWhether DKIM records were found under the probed selectors; false is not proof that mail is unsigned.
warningsstring[]Validation caveats and partial-observation warnings.

Code Examples

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

cURL
curl --request GET 'https://api.edgedns.dev/v1/email/validate?email=user%40example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/email/validate?email=user%40example.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/email/validate?email=user%40example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Email Validation guide

Learn the concepts, choose a practical workflow, and interpret the observations from Email Validation 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 Email Validation endpoint live in the playground.

    Email Validation API Reference | EdgeDNS