# Bulk Email Validator & Verifier: MX, Disposable, Typo Check (`datacrate/email-validator-dns`) Actor

Bulk email validation using DNS only: syntax, domain exists, MX records, disposable domain, role account, typo suggestion, optional SPF/DMARC, score and verdict. No mailbox probing, no third-party API.

- **URL**: https://apify.com/datacrate/email-validator-dns.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 email checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bulk Email Validator & Verifier – MX, disposable and typo check

Remove typos, dead domains, disposable and fake addresses from an email list before you send. For each address you get a **verdict** (valid, risky, invalid), a **0-100 score**, a plain-English reason and the evidence: syntax, domain exists, MX records, disposable domain, role account (info@, sales@), free provider, typo suggestion (gmial.com -> gmail.com) and optional SPF/DMARC.

**First run:** press Start. The prefilled list of 10 sample addresses shows every verdict (about $0.005 at $0.0005 per email).

**Fast and safe:** DNS only, deduplicated by domain. No mailbox is contacted: no SMTP, so no effect on your sender reputation.

**Limit:** this is a deliverability screen, not a mailbox test. It cannot confirm that bob@company.com exists; expect some bounces at healthy domains.

### What it checks

- **Syntax**: RFC 5322 subset (local part, domain labels, TLD), `Name <a@b.com>` and `mailto:` forms.
- **Domain exists**: DNS lookup; non-existent domains are flagged `invalid`.
- **MX records**: does the domain accept mail (falls back to A/AAAA, flags null-MX domains).
- **Disposable domains**: bundled snapshot of the open `disposable-email-domains` list (10,000+ domains, subdomains included).
- **Role accounts**: `info@`, `sales@`, `support@`, `admin@`, `noreply@` and similar shared mailboxes.
- **Free providers**: Gmail, Outlook, Yahoo, iCloud and others.
- **Typo suggestions**: `gmial.com` -> `gmail.com`.
- **SPF and DMARC** (optional): does the domain publish them.

### Fast and cheap by design

Emails are **deduplicated by domain**: 1,000 addresses on 150 domains need only about 150 DNS lookups. Lookups run 20 at a time with a per-domain cache and automatic retries on resolver errors. A temporary DNS failure is reported as `risky` ("could not verify"), never wrongly marked invalid.

### Input

| Field | What it does |
|---|---|
| `emails` | List of email addresses |
| `emailsText` | Or paste a newline / comma separated blob |
| `checkMx` | Domain + MX check (default on) |
| `checkDisposable` | Disposable-domain detection (default on) |
| `checkRole` | Role-account detection (default on) |
| `checkDomainAuth` | SPF + DMARC lookup (default off) |
| `suggestTypos` | Typo suggestions (default on) |

Example: `{ "emails": ["john@gmail.com", "x@mailinator.com", "jane@gmial.com"] }`

### Output

```json
{
  "email": "jane.doe@gmial.com",
  "normalized": "jane.doe@gmial.com",
  "validSyntax": true,
  "domain": "gmial.com",
  "domainExists": true,
  "hasMx": true,
  "mxHosts": ["gmial.com"],
  "isDisposable": false,
  "isRole": false,
  "isFreeProvider": false,
  "typoSuggestion": "gmail.com",
  "hasSpf": null,
  "hasDmarc": null,
  "score": 60,
  "verdict": "risky",
  "reason": "possible typo, did you mean gmail.com?"
}
```

Verdicts: `valid` (score 80+), `risky` (disposable, role account, possible typo, or DNS could not be verified), `invalid` (bad syntax, domain does not exist, no mail servers).

### Pricing

Pay per event: **$0.0005 per email checked** (about $0.50 per 1,000). Platform usage is included. Duplicate addresses in your input are removed and not charged.

### Important limits

This is a **deliverability screen, not a mailbox test**. DNS can tell you a domain exists and accepts mail, but not whether `bob@company.com` specifically exists. Use it to remove typos, dead domains, disposable and fake addresses before you send; expect some bounces from addresses at otherwise healthy domains. Catch-all detection is out of scope because it needs SMTP.

### Data source & legal

- **DNS only.** Lookups use the public DNS protocol (MX, A/AAAA, TXT). **No mailbox is contacted**: no SMTP connection, no port 25, no message is sent, and no website is scraped.
- **Disposable-domain list:** [disposable-email-domains](https://github.com/disposable-email-domains/disposable-email-domains), released under **CC0 1.0 Universal (public domain)**. A snapshot is bundled with the Actor.
- **No third-party API** is called and no data leaves the run other than DNS queries.
- **Privacy:** email addresses are only the input you provide. They are written to your run's dataset and are not stored anywhere else by this Actor. You are responsible for having a lawful basis (GDPR, CAN-SPAM and similar) to process the addresses you submit.

### Tips

- Combine with your CRM export: filter the dataset on `verdict = valid` before sending.
- Turn `checkDomainAuth` on when vetting B2B sender domains.
- Add `?view=overview` to the dataset URL for the compact table, or `?view=dns` for DNS evidence.

# Actor input Schema

## `emails` (type: `array`):

Email addresses to check. Duplicates are removed. You can also paste a newline-separated list into 'Emails (text)'.

## `emailsText` (type: `string`):

Optional. Paste emails separated by new lines, commas or semicolons. Merged with the list above.

## `checkMx` (type: `boolean`):

DNS lookup: does the domain exist and accept mail (MX, with A/AAAA fallback). One lookup per unique domain.

## `checkDisposable` (type: `boolean`):

Flag throwaway providers (mailinator, guerrillamail, ...) using the bundled open disposable-email-domains list.

## `checkRole` (type: `boolean`):

Flag shared mailboxes such as info@, sales@, support@, admin@, noreply@.

## `checkDomainAuth` (type: `boolean`):

Also look up the domain's SPF and DMARC TXT records (two extra DNS queries per unique domain).

## `suggestTypos` (type: `boolean`):

Suggest the intended domain for common misspellings, e.g. gmial.com -> gmail.com.

## Actor input object example

```json
{
  "emails": [
    "john.smith@gmail.com",
    "test@mailinator.com",
    "info@apify.com",
    "jane.doe@gmial.com",
    "someone@this-domain-does-not-exist-xyz123.com",
    "not-an-email",
    "support@microsoft.com",
    "buyer@guerrillamail.com",
    "sales@example.com",
    "hello@stripe.com"
  ],
  "checkMx": true,
  "checkDisposable": true,
  "checkRole": true,
  "checkDomainAuth": false,
  "suggestTypos": true
}
```

# Actor output Schema

## `results` (type: `string`):

One validation result per unique email address (default dataset items).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "emails": [
        "john.smith@gmail.com",
        "test@mailinator.com",
        "info@apify.com",
        "jane.doe@gmial.com",
        "someone@this-domain-does-not-exist-xyz123.com",
        "not-an-email",
        "support@microsoft.com",
        "buyer@guerrillamail.com",
        "sales@example.com",
        "hello@stripe.com"
    ],
    "checkMx": true,
    "checkDisposable": true,
    "checkRole": true,
    "checkDomainAuth": false,
    "suggestTypos": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/email-validator-dns").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "emails": [
        "john.smith@gmail.com",
        "test@mailinator.com",
        "info@apify.com",
        "jane.doe@gmial.com",
        "someone@this-domain-does-not-exist-xyz123.com",
        "not-an-email",
        "support@microsoft.com",
        "buyer@guerrillamail.com",
        "sales@example.com",
        "hello@stripe.com",
    ],
    "checkMx": True,
    "checkDisposable": True,
    "checkRole": True,
    "checkDomainAuth": False,
    "suggestTypos": True,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/email-validator-dns").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "emails": [
    "john.smith@gmail.com",
    "test@mailinator.com",
    "info@apify.com",
    "jane.doe@gmial.com",
    "someone@this-domain-does-not-exist-xyz123.com",
    "not-an-email",
    "support@microsoft.com",
    "buyer@guerrillamail.com",
    "sales@example.com",
    "hello@stripe.com"
  ],
  "checkMx": true,
  "checkDisposable": true,
  "checkRole": true,
  "checkDomainAuth": false,
  "suggestTypos": true
}' |
apify call datacrate/email-validator-dns --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/email-validator-dns"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vWyURZL1PYrAHBXwO/builds/clnFkbOygJ5nPap3Q/openapi.json
