Email Validation API
developer/v1/email/validateValidates 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
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.
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 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.
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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
smtp_probe | query | string | Optional | Set 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 |
email | query | string | Required | The 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.
| Field | Type | Description |
|---|---|---|
email | string | The queried email address |
is_valid_syntax | boolean | Whether email syntax is valid per RFC 5322 |
domain_exists | boolean | Whether the email domain exists (via MX or A record fallback per RFC 5321 §5.1) |
mx_found | boolean | Whether MX records exist for the domain |
mx_records | array | MX record hostnames for the email domain |
is_disposable | boolean | Whether domain is a known disposable email provider (110K+ domain database) |
is_role_address | boolean | Whether local part is a role/generic address (info@, admin@, noreply@, etc.) |
is_free_provider | boolean | Whether domain is a free email provider (Gmail, Yahoo, Outlook, ProtonMail, etc.) |
has_spf | boolean | Whether domain has an SPF record (required by Google/Yahoo/Microsoft for bulk senders) |
has_dmarc | boolean | Whether domain has a DMARC record (required by Google/Yahoo/Microsoft for bulk senders) |
domain_age_days | number | Domain 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_check | object | Typo / 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_analysis | object | IDN / 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_score | number | Risk score 0-100. Higher score = higher risk. |
risk_level | string | Risk level: low (0-20), medium (21-50), high (51-75), critical (76-100). |
smtp_probe_enabled | boolean | Whether optional domain-level SMTP probing was requested. |
smtp_relay | object | null | Bounded MX relay checks: probes, truncation, completion, scope and mailbox_verified=null. Does not verify recipient existence. |
has_dkim | boolean | Whether DKIM records were found under the probed selectors; false is not proof that mail is unsigned. |
warnings | string[] | 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 --request GET 'https://api.edgedns.dev/v1/email/validate?email=user%40example.com' \
--header "Authorization: Bearer YOUR_API_KEY"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);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
SPF Check
Validate SPF record syntax, DNS lookups, and policy
DMARC Check
Analyze DMARC policy, alignment, and reporting
Domain Registration (RDAP)
Get domain registration data via RDAP — the post-WHOIS standard. Detects privacy-proxy registrants and GDPR redactions.
Email Score
Rate email security (SPF, DKIM, DMARC)
External References
Learn more about the standards and protocols behind this endpoint.
Try This Endpoint
Test the Email Validation endpoint live in the playground.