BusinessEmail Verification
Email Verification API: Catch Typos, Disposable and Dead Domains
Email verification API guide: catch typos, disposable addresses and dead domains with DNS and MX checks, no SMTP probing. Python sign-up and bulk examples.
A customer types john.doe@gmial.com at checkout. The order goes through, the confirmation bounces, and two days later support receives an angry message asking where the receipt is. An email verification API exists to stop that address at the form, where fixing it costs the user one click instead of costing you a ticket and a hard bounce.
A regular expression answers the wrong question: it tells you a string looks like an address, not that the domain has no mail servers, belongs to a temporary-mail service, or was meant to be gmail.com. Those answers live in DNS and in curated data. The one everyone wants, whether a specific mailbox exists, is far harder to get honestly than most tools admit.
This article covers what can be known about an address before you send to it, then builds the checks into a sign-up form and a list-cleaning job with the Email Verifier API.
Why bad addresses are expensive
Every hard bounce feeds the sender reputation that decides whether your next campaign reaches the inbox or the spam folder, and email service providers throttle or suspend accounts whose lists bounce too much. Bad addresses arrive by three routes:
- Typos. A real customer, one wrong letter. Worse, many typo domains of the big providers are registered by third parties, so receipts and password-reset links can land in a stranger's inbox.
- Throwaways. Temporary-mail services let people pass a confirmation step once and vanish. They inflate sign-up numbers and are the classic tool for farming free trials.
- Decay. Companies change domains, shut down or let them expire. A three-year-old CRM export is full of domains that no longer receive mail.
What can be known about an address without sending to it
Syntax
RFC 5322 permits far more than any sign-up form needs: quoted local parts with spaces, comments, IP-address literals. A practical validator accepts the common dot-atom form, enforces the length limits (64 characters for the local part, 254 for the whole address, per RFC 5321) and converts internationalised domains to their ASCII xn-- form (IDNA) before any lookup.
MX record lookup: MX, implicit MX and null MX
The domain's MX records name the servers that accept its mail. Three outcomes matter:
- MX records present: the domain is set up to receive mail.
- No MX, but an A or AAAA record: RFC 5321 says senders then deliver to the host itself (the "implicit MX"). Legal, but often a domain never configured for mail.
- Null MX: a single MX record pointing to
., defined in RFC 7505, declares that the domain accepts no mail at all.example.compublishes one.
A domain that does not exist (NXDOMAIN) receives nothing. A DNS server that does not answer is a different case: unknown, not invalid.
Disposable email detection
There is no protocol signal for a throwaway domain; its MX records are usually healthy. Detection is a lookup against a maintained list of temporary-mail domains, covering subdomains too, because some services hand out addresses on generated subdomains.
Typos
Typo detection compares the domain with the domains people actually use, by edit distance. The Damerau-Levenshtein variant counts a swap of adjacent letters as one edit: gmial.com is one transposition from gmail.com, two edits under plain Levenshtein. Short domains need a tighter threshold, or aol.com matches half the internet. Mistyped top-level domains (.con, .cmo) are a simpler case.
The trap: typo domains often exist. gmial.com is registered and even sits on disposable-domain lists. A checker that only asks "does the domain exist?" lets it through; one that only checks the disposable list calls it a throwaway. Neither tells the user what they meant.
Role accounts and free providers
RFC 2142 standardised mailbox names such as postmaster, abuse, info, sales and support: shared inboxes, not people, which matters for B2B outreach. Free providers (gmail.com, outlook.com and their country variants) mark an address as personal.
Does the mailbox exist? The problem with SMTP probing
Mailbox-level verification opens an SMTP session with the domain's mail server, issues MAIL FROM and RCPT TO for the address, reads the reply code and disconnects before sending data. It looks precise. In practice:
- Catch-all domains answer "OK" to every recipient, so the probe proves nothing.
- Some providers accept every recipient at that stage and bounce later, or refuse to reveal which mailboxes exist, to stop address harvesting.
- Greylisting answers unknown senders with a temporary failure and expects a retry minutes later.
- Probing at volume looks like a directory-harvest attack. IPs that open many sessions without delivering mail end up on blocklists, and many cloud providers, Google Cloud among them, block outbound port 25 altogether.
The only proof that a mailbox exists and belongs to your user is a message they act on: a confirmation link, or double opt-in. Everything else estimates risk.
The four approaches side by side
| Regex | DNS / MX lookup | SMTP probe | Email Verifier API | |
|---|---|---|---|---|
| Malformed address | Yes | No | No | Yes |
| Domain can receive mail | No | Yes | Yes | Yes (MX, implicit MX, null MX) |
| Typo with correction | No | No | No | Yes |
| Disposable domain | No | No | No | Yes, 10,000+ domains |
| Role account, free provider | With your own lists | No | No | Yes |
| Mailbox exists | No | No | Sometimes (catch-all, greylisting) | No |
| Risk to your sending IPs | None | None | Blocklisting | None |
Verify one address with the email verification API
The API runs the checks above and returns one verdict: a status (valid, risky or invalid), a score from 0 to 100, a reason in plain English and, for typos, a suggestion. No email is sent. The examples use Python and requests; the reference lists every field.
import requests
API = "https://email-verifier-validate-disposable-typo-check.p.rapidapi.com"
HEADERS = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "email-verifier-validate-disposable-typo-check.p.rapidapi.com",
}
response = requests.get(
f"{API}/v1/email/verify",
headers=HEADERS,
params={"email": "john.doe@gmial.com"},
timeout=30,
)
response.raise_for_status()
check = response.json()
print(check["status"], check["score"], check["reason"])
The same call from a terminal:
curl "https://email-verifier-validate-disposable-typo-check.p.rapidapi.com/v1/email/verify?email=john.doe@gmial.com" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: email-verifier-validate-disposable-typo-check.p.rapidapi.com"
The full response from a real call:
{
"email": "john.doe@gmial.com",
"normalized": "john.doe@gmial.com",
"status": "risky",
"score": 25,
"reason": "Probable typo. Did you mean john.doe@gmail.com?",
"syntax_valid": true,
"domain": "gmial.com",
"domain_exists": true,
"mx_found": false,
"mx": [],
"disposable": true,
"role_account": false,
"free_provider": false,
"suggestion": "john.doe@gmail.com"
}
This is the trap from the previous section, resolved: the domain exists and is on the disposable list, yet the verdict is "probable typo", with the fix in suggestion.
Reading the verdict
The checks run in a fixed order and the first one that applies sets the status, so your code reads one field instead of weighing six flags:
| Status | Score | When |
|---|---|---|
invalid |
0 | The address is malformed |
invalid |
5 | The domain does not exist, or refuses all mail (null MX) |
risky |
40 | The domain's DNS did not answer |
risky |
25 | Probable typo, with a suggestion |
risky |
20 | Disposable domain |
risky |
60 | No MX record: mail relies on the A record |
valid |
80-90 | The domain accepts mail (80 for a role account, 85 at most for a free provider) |
A typo whose domain does not exist at all is invalid, and still carries its suggestion. Typo comes before disposable on purpose, for the gmial.com reason above. Disposable comes before "accepts mail" because a temporary-mail service has excellent MX records:
{
"email": "test@mailinator.com",
"status": "risky",
"score": 20,
"reason": "Disposable (temporary) address.",
"domain": "mailinator.com",
"mx_found": true,
"mx": ["mail.mailinator.com", "mail2.mailinator.com"],
"disposable": true
}
A company's shared inbox, by contrast, is deliverable but flagged: info@stripe.com comes back valid with a score of 80, role_account: true and "provider": "Google Workspace", read from its MX hosts.
Email typo correction in a sign-up form
The best moment to catch a typo is while the user is still on the page. Three rules:
- Server side only. The API key must never reach browser JavaScript, where anyone can copy it. Call it from your backend, on blur or on submit.
- Short timeout, fail open. If the check is slow or fails, accept the address. The confirmation email remains the backstop; a verification outage must never block sign-ups.
- Suggest, don't overrule. A domain one letter from a big provider is usually a typo, but not always. Offer "Did you mean...?" with one-click accept, and let the user keep what they typed.
import requests
API = "https://email-verifier-validate-disposable-typo-check.p.rapidapi.com"
HEADERS = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "email-verifier-validate-disposable-typo-check.p.rapidapi.com",
}
session = requests.Session()
def check_signup_email(email: str) -> dict:
try:
r = session.get(
f"{API}/v1/email/verify",
headers=HEADERS,
params={"email": email.strip()},
timeout=3,
)
r.raise_for_status()
check = r.json()
except requests.RequestException:
return {"ok": True, "message": ""} # fail open: double opt-in still applies
if check.get("suggestion"):
return {
"ok": False,
"suggestion": check["suggestion"],
"message": f"Did you mean {check['suggestion']}?",
}
if check["disposable"]:
return {"ok": False, "message": "Please use a permanent email address."}
if check["status"] == "invalid":
return {"ok": False, "message": "This email address can't receive mail."}
return {"ok": True, "message": ""}
print(check_signup_email("anna.smith@yahoo.con"))
Fields the API has nothing to say about are omitted from the response, which is why suggestion is read with .get(). The suggestion test comes first because a typo domain can also be disposable or dead, and "Did you mean...?" is a far friendlier message than a rejection. The API's answer for yahoo.con (trimmed):
{
"email": "anna.smith@yahoo.con",
"status": "invalid",
"score": 5,
"reason": "The domain does not exist. Did you mean anna.smith@yahoo.com?",
"domain_exists": false,
"mx_found": false,
"suggestion": "anna.smith@yahoo.com"
}
Each check costs one credit, so if users can resubmit a form repeatedly, keep verdicts for a few minutes keyed by address, and put the endpoint behind the same rate limit as the form itself.
Bulk email verification: cleaning a list
For lists, POST /v1/email/verify/bulk takes {"emails": [...]} with up to 100 addresses and returns one result per address, in the order sent, plus a summary. Seven addresses in one real call, trimmed to the fields that decide:
{
"results": [
{ "email": "support@github.com", "status": "valid", "score": 80, "reason": "Role account: the domain accepts mail.", "provider": "Microsoft 365", "role_account": true },
{ "email": "first.last@gmail.com", "status": "valid", "score": 85, "reason": "The domain accepts mail.", "free_provider": true },
{ "email": "jane@hotmial.com", "status": "invalid", "score": 5, "reason": "The domain does not exist. Did you mean jane@hotmail.com?", "suggestion": "jane@hotmail.com" },
{ "email": "test@mailinator.com", "status": "risky", "score": 20, "reason": "Disposable (temporary) address.", "disposable": true },
{ "email": "someone@example.com", "status": "invalid", "score": 5, "reason": "The domain refuses all mail (null MX)." },
{ "email": "contact@no-such-domain-helenis-test.com", "status": "invalid", "score": 5, "reason": "The domain does not exist." },
{ "email": "not-an-email", "status": "invalid", "score": 0, "reason": "The address is not well formed.", "syntax_valid": false }
],
"summary": { "valid": 2, "risky": 1, "invalid": 4 }
}
A malformed address is a result, not an error, so one bad row never fails a batch. The only 400 responses are for the request itself: a missing or empty list, or more than 100 addresses.
A list-cleaning job with retries
The job below reads a CSV export, removes duplicates before paying for them, verifies in batches of 100 with a retry on transient failures, and writes the verdicts next to each contact:
import csv
import time
import requests
API = "https://email-verifier-validate-disposable-typo-check.p.rapidapi.com"
HEADERS = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "email-verifier-validate-disposable-typo-check.p.rapidapi.com",
}
BATCH = 100 # the bulk endpoint's maximum
def verify_batch(emails: list[str], attempts: int = 4) -> list[dict]:
for attempt in range(attempts):
try:
r = requests.post(
f"{API}/v1/email/verify/bulk",
headers=HEADERS,
json={"emails": emails},
timeout=60,
)
except requests.RequestException:
r = None
if r is not None and r.status_code == 429:
raise SystemExit(
"Plan limit reached (the daily limit resets at 00:00 UTC)."
)
if r is not None and r.status_code < 500:
r.raise_for_status()
return r.json()["results"]
time.sleep(2**attempt) # network error or 5xx: back off and retry
raise RuntimeError("Verification kept failing; try again later.")
with open("contacts.csv", newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
unique = list(dict.fromkeys(row["email"].strip().lower() for row in rows))
verdicts: dict[str, dict] = {}
for i in range(0, len(unique), BATCH):
chunk = unique[i : i + BATCH]
verdicts.update(zip(chunk, verify_batch(chunk)))
COLUMNS = ["status", "score", "reason", "suggestion", "role_account", "free_provider"]
with open("contacts_checked.csv", "w", newline="", encoding="utf-8") as out:
writer = csv.writer(out)
writer.writerow(["email", *COLUMNS])
for row in rows:
check = verdicts[row["email"].strip().lower()]
writer.writerow([row["email"], *(check.get(c, "") for c in COLUMNS)])
Results come back in the order sent, so zip pairs each address with its verdict. Production notes:
- Deduplicate first. Every address costs one credit, malformed ones included. Lower-casing the whole address is a pragmatic key: the RFC allows case-sensitive local parts, but mainstream providers ignore case.
- Pick a policy per source. For a newsletter, send to
validonly. For B2B leads, consider droppingrole_accountrows, sinceinfo@rarely reaches a decision-maker. Applysuggestiononly where someone will confirm it. - Re-verify before each send. Domains expire and companies move, so an old list needs a fresh pass. Lists built by a scraper (see the AI web scraper walkthrough) should be verified before they reach your CRM.
No-code list cleaning on Apify
If the list lives in a spreadsheet, the same checks run as an Apify Actor, Email Verifier - Bulk Validation. Paste the addresses one per line, or give it the dataset ID of another actor such as a contact scraper, and get one row per address with the status, score, reason, suggestion and flags, ready for CSV, Excel, Google Sheets, Make or Zapier. It costs $0.0007 per address verified, and the Apify free plan covers 200 addresses per run.
What it costs
One credit per address, single or bulk, malformed ones included. Requests the API rejects (more than 100 addresses in a bulk call, for example) cost nothing.
| Plan | Price per month | Checks | Per address |
|---|---|---|---|
| BASIC | Free, no card | 10 per day | — |
| PRO | $3.99 | 20,000 | $0.0002 |
| ULTRA | $9.99 | 150,000 | about $0.00007 |
| MEGA | $29.99 | 1,000,000 | $0.00003 |
Past the monthly quota, paid plans continue at $0.002 per extra check, ten times the PRO unit price, so size the plan to your real volume. For reference, other email verification APIs on RapidAPI sell 5,000 checks for $4, 10,000 for $4.99 or 10,000 for $19.99.
What the email verification API does not do
- It does not confirm that a mailbox exists. "Valid" means the domain accepts mail. A made-up mailbox at a real company domain gets the same verdict as a real one, for the SMTP reasons above.
- It does not test inbox placement. That depends on your own domain's SPF, DKIM and DMARC and on your reputation; the DNS and email security API audits those records.
- It does not find addresses or people. It verifies an address you already have.
- Disposable detection is list-based. A brand-new throwaway domain passes until it is listed. Pair it with rate limits if trial abuse is the real problem.
- It does not merge aliases.
normalizedlower-cases the domain only. Gmail ignores dots in the local part and delivers+tagaddresses to the base inbox, soj.doe+trial@gmail.comandjdoe@gmail.comare one inbox; canonicalise those yourself if you fight multi-account abuse. - Rare RFC forms come back malformed. Quoted local parts and IP-address literals are legal but unused in sign-ups, and are reported
invalid.
Frequently asked questions
How do I check if an email address is valid without sending an email?
Combine a syntax check, a DNS lookup of the domain's MX records (with the implicit-MX and null-MX rules), a disposable-domain list and typo detection. That catches malformed addresses, dead domains, throwaways and mistyped providers without contacting anyone. The Email Verifier API runs all four in one call.
Can an API tell whether a specific mailbox exists?
Not reliably. The only technique, an SMTP RCPT TO probe, is defeated by catch-all domains, providers that accept everything and bounce later, and greylisting, and probing at volume gets IPs blocklisted. A confirmation email the user clicks is the only proof.
What is a null MX record?
Defined in RFC 7505, a null MX is a single MX record with preference 0 and the host .. It declares that the domain accepts no email at all, so any address on it is undeliverable. example.com publishes one, and the API reports it as "The domain refuses all mail (null MX)."
How do I detect disposable email addresses?
Match the domain, and its parent domains, against a maintained list of temporary-mail services. MX records will not help: services like Mailinator receive mail perfectly well. Lists lag behind brand-new domains, so treat the flag as one signal among others in fraud checks.
Is it safe to call an email verification API from the browser?
No. The API key would be visible to anyone who opens the developer tools. Call the API from your backend, expose your own endpoint to the form, use a short timeout and accept the address if the check fails.
How much does email verification cost per address?
On RapidAPI, the Email Verifier API's PRO plan costs $3.99 for 20,000 checks, $0.0002 per address, and the MEGA plan brings it to $0.00003. The BASIC plan is free for 10 checks a day, enough to test the full reference.
Get started
Email Verifier API
Verify emails without sending: syntax, MX, disposable domains, role accounts and typo fixes.
- Email Verification
- Email Deliverability
- API
- Python
- Data Quality



