Email Validator avatar

Email Validator

Pricing

Pay per usage

Go to Apify Store
Email Validator

Email Validator

Validate email deliverability before outreach. Checks MX records, SMTP verification, disposable email detection. Part of the Lead Gen Toolkit with Google Maps Lead Generator and Lead Gen AI Agent.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Stephan Corbeil

Stephan Corbeil

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Share

A comprehensive email validation actor for Apify using DNS MX record checks and syntax validation.

Features

  • Syntax Validation: Regex-based email format validation
  • DNS MX Records: Checks if the domain has valid MX records
  • Disposable Email Detection: Identifies common disposable/temporary email services
  • Free Provider Detection: Flags emails from free providers (Gmail, Yahoo, etc.)
  • Batch Processing: Validates bulk lists via textarea or single emails
  • Domain Caching: Efficient MX lookups with in-memory caching
  • Detailed Results: Returns syntax status, MX validity, domain classification

Input Format

Two input options:

  1. Single Email (singleEmail): Validate one email address
  2. Bulk Emails (emails): Textarea input, comma or newline-separated

Output Schema

Each validated email returns:

{
"email": "user@example.com",
"isValid": true,
"syntaxValid": true,
"mxValid": true,
"domain": "example.com",
"localPart": "user",
"isDisposable": false,
"isFreeProvider": false,
"mxRecords": [
{
"priority": 10,
"server": "mail1.example.com"
}
]
}

Installation

$apify actors create email-validator

Usage

from apify_client import ApifyClient
client = ApifyClient()
run = client.actor("your-username/email-validator").call(input={
"emails": "user1@example.com\nuser2@example.com",
"singleEmail": ""
})
# Get results
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

Technology

  • dnspython: DNS resolution and MX record lookup
  • apify: Official Apify Python SDK
  • re: Regex pattern matching for syntax validation

Performance

  • MX lookups timeout after 10 seconds
  • Results cached by domain to minimize DNS queries
  • Handles bulk lists of thousands of emails efficiently