Email Validation & Disposable Domain Detector
Pricing
from $1.00 / 1,000 results
Email Validation & Disposable Domain Detector
Stop fake users and trial fraud! This ultra-fast API validates syntax, performs live MX record lookups, and flags disposable domains (like TempMail). Boost deliverability and protect signup forms from spam bots instantly. Try it free for blazing-fast verification!
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Riad Hossain
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Share
Fast, production-grade email validation with real-time MX record lookups, RFC 5322 syntax checks, and disposable / temporary email domain detection.
๐ฏ What it does
This Actor validates email addresses using three layers of checks, returning a structured JSON result for each email:
| Layer | What it checks | Method |
|---|---|---|
| Syntax | RFC 5322 compliance | Regex + length rules |
| DNS / MX | Domain can receive email | Async DNS lookup against Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9 |
| Disposable | Domain is a temporary / throwaway provider | Curated 636-domain blacklist + heuristic detection |
| Typo | Domain is a misspelling of a major provider | Levenshtein distance โค 2 against 20+ top providers |
โจ Features
- โ
RFC 5322 syntax validation โ catches malformed emails (
not-an-email,user@@example.com, etc.) - โ Real MX record lookup โ async DNS, returns primary MX host, IP address, and priority
- โ 636-domain curated disposable blacklist โ Mailinator, TempMail, GuerrillaMail, 10MinuteMail, YOPmail, and 631 more
- โ
Heuristic detection โ catches disposable domains not in the blacklist via:
- High-abuse TLDs (
.tk,.gq,.cf,.ml) - Keyword matching (
temp,trash,throwaway,disposable,10minutemail, ...) - MX-pattern recognition (custom domains pointing at disposable infrastructure)
- High-entropy random subdomain detection (Shannon entropy)
- High-abuse TLDs (
- โ
Typo detection โ catches
user@hootmail.comand suggestsuser@hotmail.com - โ Cache โ results cached for 24h (Redis primary, in-memory fallback)
- โ Async & parallel โ validates 1,000 emails per run with bounded concurrency
- โ Low latency โ p95 < 350ms (cache miss), < 5ms (cache hit)
๐ฅ Input
The Actor accepts a JSON object with the following fields:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
emails | array of strings | โ | โ | List of email addresses to validate (max 1,000 per run) |
check_mx | boolean | โ | true | Set to false to skip MX lookups (syntax + disposable only, much faster) |
detect_disposable | boolean | โ | true | Set to false to skip disposable detection |
Example input
{"emails": ["alice@gmail.com","spam@mailinator.com","user@hootmail.com","not-an-email","bob@nonexistent-xyz-domain-12345.com"],"check_mx": true,"detect_disposable": true}
๐ค Output
Each validated email is pushed to the default dataset as a separate item:
{"email": "someone@mailinator.com","valid": false,"disposable": true,"reason": "Blacklist","domain": "mailinator.com","syntax_valid": true,"mx_host": "mail.mailinator.com","mx_ip": "23.239.11.30","mx_info": "Using MX pointer mail.mailinator.com from DNS with priority: 10","domain_typo_detected": false,"suggested_correction": null,"execution_time_ms": 142,"cache_hit": false}
Field reference
| Field | Type | Description |
|---|---|---|
email | string | The email address that was checked |
valid | boolean | true if syntactically valid AND has MX/A records AND not disposable AND no typo |
disposable | boolean | true if domain is a known or heuristic disposable provider |
reason | string|null | "Blacklist", "MX Pattern", "Heuristic", or null |
domain | string|null | Lowercased domain part of the email |
syntax_valid | boolean | true if RFC 5322 syntax is valid |
mx_host | string|null | Primary MX hostname |
mx_ip | string|null | IPv4 of primary MX host |
mx_info | string|null | Human-readable MX resolution summary |
domain_typo_detected | boolean | true if domain is a typo of a major provider |
suggested_correction | string|null | Corrected email when typo detected |
execution_time_ms | integer | Server-side processing time in ms |
cache_hit | boolean | true if served from cache |
๐ก Use cases
1. Signup form validation
Block disposable emails at signup to prevent abuse and ensure deliverable onboarding emails.
2. Lead list cleanup
Run a CSV of leads through this Actor before a marketing campaign. Filter out:
- Invalid syntax (will bounce)
- No MX records (will bounce)
- Disposable (will never convert)
- Typos (correct them and salvage the lead)
3. Fraud detection
Flag accounts signing up with temp-mail providers for manual review.
4. Email list hygiene
Periodically re-validate your subscriber list to remove addresses whose domains have lost MX records.
๐ง How it works
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Input (emails[]) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ OrchestratorAgent โโ (cache lookup โ fan-out) โโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโ โโผ โผโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ ValidationEngine โ โ DisposableIntel โโ - RFC 5322 syntax โ โ - Blacklist match โโ - Async DNS MX โ โ - MX pattern โโ - Typo detection โ โ - Heuristics โโโโโโโโโโโโฌโโโโโโโโโโโโโ โโโโโโโโโโโโฌโโโโโโโโโโโโโ โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโ Push to dataset โโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Performance
| Path | p50 | p95 | Notes |
|---|---|---|---|
| Cache hit | 0โ5 ms | < 10 ms | In-memory or Redis GET |
| Cache miss (valid email) | 50โ150 ms | < 250 ms | Parallel DNS + blacklist |
| Cache miss (disposable) | 20โ100 ms | < 200 ms | Blacklist short-circuits |
| 1,000 emails (bulk) | โ | ~30 sec | Bounded concurrency (20) |
๐งช Tested
- 107 unit + integration + live DNS tests pass
- 96 real-world emails tested (Gmail, Yahoo, Outlook, iCloud, Proton, international providers, disposable providers, typos, invalid syntax)
- 50 concurrent requests: p95 = 170ms
- Zero correctness issues in extended testing
๐ Same logic as the RapidAPI version
This Actor shares its core engine with the Email Validation & Disposable Domain Detector API on RapidAPI. If you need a real-time HTTP API (vs. batch Apify runs), use the RapidAPI version. If you need to process thousands of emails in batch, use this Actor.
๐ License
MIT