# Email Address Validator: Disposable Email and MX Check (`agents001/email-domain-checker`) Actor

Email address validator that returns an ok, risky or invalid verdict for each address or domain, with syntax, MX, SPF and DMARC checks. Also a disposable email checker with free provider and role account flags. DNS only, no SMTP probing. Batch runs or a live API.

- **URL**: https://apify.com/agents001/email-domain-checker.md
- **Developed by:** [Mike Ross](https://apify.com/agents001) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 email checkeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Email Address Validator: Disposable Email and MX Check

Email address validator that returns a clear **verdict** (`ok`, `risky` or `invalid`) for every email address or domain you give it, with the reasons behind it: **syntax**, whether the domain exists, its **MX records**, **SPF** and **DMARC** policy, and flags for **disposable** domains, **free providers** (Gmail, Outlook, Yahoo and more) and **role accounts** (info@, sales@, noreply@). It works as a **disposable email checker** and an **MX record checker** in one pass.

It uses DNS only. It never connects to a mail server, so it cannot get your IP blocklisted and it never triggers a mailbox. Use it two ways:

- **Batch run**: paste a list (up to 50,000 values), get a clean dataset to export or sync to your CRM.
- **Live API (Standby)**: call a URL from a sign-up form or your backend and get the verdict in the response.

Use it to:

- Clean a lead list before outreach: drop dead domains and disposable addresses.
- Block throwaway sign-ups in a form or app through the live API.
- Split business addresses from Gmail, Outlook and other free providers, and named contacts from role inboxes.
- Audit SPF and DMARC on partner or customer domains.

### What you get

| Field | Example |
|---|---|
| `input`, `type` | `info@apify.com`, `email` (or `domain`) |
| `verdict`, `reasons` | `invalid`, `["null-mx"]` |
| `email`, `domain` | `info@apify.com`, `apify.com` |
| `syntaxValid`, `syntaxError` | `false`, `invalid-local-part` |
| `isDisposable` | `true` for mailinator.com and about 9,900 other throwaway domains |
| `isFreeProvider` | `true` for gmail.com, outlook.com, yahoo.com and about 160 others |
| `isRoleAccount`, `roleName` | `true`, `sales` |
| `hasPlusTag` | `true` for `name+news@company.com` |
| `domainExists` | `false` when DNS says the domain does not exist |
| `hasMx`, `mxRecords`, `nullMx` | `true`, `[{"priority": 1, "exchange": "aspmx.l.google.com"}]`, `false` |
| `hasSpf`, `spfRecord`, `spfAll` | `true`, `v=spf1 include:_spf.google.com -all`, `-all` |
| `hasDmarc`, `dmarcPolicy`, `dmarcRecord` | `true`, `reject`, `v=DMARC1; p=reject; ...` |

**How the verdict works**

- `invalid`: bad syntax, the domain does not exist, the domain publishes a null MX (it accepts no mail), or it has neither MX nor address records.
- `risky`: the domain is disposable, it has no MX record and relies on its address record, or its DNS could not be read in full.
- `ok`: everything checked looks fine. Role and free-provider flags are given as information and do not change the verdict.

The Output tab has two views: **Overview** and **Mail DNS**.

### Who it is for

- **Sales and marketing teams** cleaning lead lists before outreach: drop dead domains and throwaway sign-ups, separate role inboxes from named contacts, and split business from free addresses.
- **Product teams** blocking disposable addresses at sign-up through the live API.
- **IT and deliverability teams** auditing SPF and DMARC across partner or customer domains.

### Quick start (batch)

1. Click **Start** with the example input to see each verdict type.
2. Replace the list with your own addresses or domains, one per line.
3. Export the dataset, or connect it to Google Sheets, a webhook or your CRM.

#### Input

| Field | What it does | Default |
|---|---|---|
| `emails` | Email addresses, domains or website links. Empty runs the example list | example list |
| `checkDns` | Look up MX, SPF and DMARC. Off gives instant syntax and list checks | `true` |
| `onlyValid` | Do not save values with the verdict `invalid` | `false` |
| `maxItems` | Stop after this many records. `0` means no limit | `0` |

### Live API (Standby mode)

Copy the API URL from the **Endpoints** tab and authenticate with your Apify API token in the `Authorization: Bearer <token>` header.

```bash
curl -H "Authorization: Bearer $APIFY_TOKEN" \
  "https://<your-standby-url>/check?email=info@apify.com"

curl -X POST -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"emails": ["anything@mailinator.com", "python.org"]}' \
  "https://<your-standby-url>/check"
```

Response:

```json
{
  "count": 1,
  "chargedRecords": 1,
  "results": [
    {"input": "info@apify.com", "verdict": "ok", "reasons": [], "isDisposable": false, "isFreeProvider": false, "isRoleAccount": true, "hasMx": true, "hasSpf": true, "hasDmarc": true, "dmarcPolicy": "reject"}
  ]
}
```

| Endpoint | What it does |
|---|---|
| `GET /` | Free usage help |
| `GET /check`, `POST /check` | Check up to 50 values per request |

Query parameters: `email` (also `emails`, `domain`, `domains`, `value`), `checkDns`, `onlyValid`. Bad requests return HTTP 400 and are not charged. A first lookup of a domain takes a fraction of a second; repeat lookups of the same domain within ten minutes are answered from memory in milliseconds.

### Pricing

Pay per event:

- **$0.50 per 1,000 values checked** (`email-checked` event, $0.0005 each), in batch runs and API calls alike.

Batch runs include platform usage. For the live API, Apify bills the platform usage of the Standby run to you on top of the event price, as it does for every Standby Actor. Values skipped by `onlyValid` or `maxItems` are not charged. Set a maximum cost per run and the Actor stops cleanly when it is reached.

### Data and privacy

Addresses you send are processed in memory and returned to you. In batch runs they are saved only to your own run's dataset. In API calls nothing is written to storage and request URLs are not logged. Only the domain part is sent to the DNS resolver, never the full address. Mailbox names inside DMARC report addresses are replaced with `redacted`.

### Data sources and licences

- **DNS**: Cloudflare's public 1.1.1.1 resolver (DNS over HTTPS). This Actor is not affiliated with Cloudflare.
- **Disposable domains**: the [disposable-email-domains](https://github.com/disposable-email-domains/disposable-email-domains) list, released under CC0 1.0 (public domain). A copy is bundled and refreshed regularly; the size is in each run's `RUN_SUMMARY`.
- **Free providers and role accounts**: lists compiled by us.

### FAQ

**How fresh is the data?** DNS is looked up live for every value (the live API reuses a domain's answer for up to ten minutes). The disposable domain list is a bundled copy that is refreshed regularly; its size is in each run's `RUN_SUMMARY`.

**How much does a typical run cost?** $0.50 per 1,000 values checked ($0.0005 each). A list of 10,000 addresses costs $5.

**Does it need a login or API key?** No login and no third-party key. Live API calls use your own Apify API token.

**What formats can I export?** The dataset downloads as JSON, CSV, Excel and the other formats Apify offers, or you can read it through the Apify API and integrations.

**Where does the data come from?** Public DNS through Cloudflare's 1.1.1.1 resolver, plus the open disposable-email-domains list (CC0). Only the domain part of an address is sent to the resolver.

**Does it check that the mailbox exists?** No. That needs an SMTP conversation with the mail server, which this Actor does not do. It tells you whether the domain can receive mail and whether the address looks disposable, role-based or free.

**Why is example.com invalid?** It publishes a null MX record, which means it accepts no email.

**Is a role account bad?** Not always. It reaches a team, which is fine for support or partnerships but usually poor for personal outreach.

# Actor input Schema

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

One per line. Email addresses (name@company.com), bare domains (company.com) and website links all work. Up to 50,000 per run. Leave empty to run the example list.

## `checkDns` (type: `boolean`):

Look up mail DNS records through Cloudflare's public 1.1.1.1 resolver. Turn off for syntax and list checks only, which are instant.

## `onlyValid` (type: `boolean`):

Do not save values with the verdict "invalid". You pay only for records saved.

## `maxItems` (type: `integer`):

Stop after saving this many records. Leave empty or 0 for no limit. You pay per record saved.

## Actor input object example

```json
{
  "emails": [
    "info@apify.com",
    "support@github.com",
    "python.org",
    "gmail.com",
    "anything@mailinator.com",
    "test@example.com",
    "sales@nonexistent-domain-agents001-test.com",
    "not-an-email@"
  ],
  "checkDns": true,
  "onlyValid": false
}
```

# Actor output Schema

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

No description

## `mailDns` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# 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": [
        "info@apify.com",
        "support@github.com",
        "python.org",
        "gmail.com",
        "anything@mailinator.com",
        "test@example.com",
        "sales@nonexistent-domain-agents001-test.com",
        "not-an-email@"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("agents001/email-domain-checker").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": [
        "info@apify.com",
        "support@github.com",
        "python.org",
        "gmail.com",
        "anything@mailinator.com",
        "test@example.com",
        "sales@nonexistent-domain-agents001-test.com",
        "not-an-email@",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("agents001/email-domain-checker").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": [
    "info@apify.com",
    "support@github.com",
    "python.org",
    "gmail.com",
    "anything@mailinator.com",
    "test@example.com",
    "sales@nonexistent-domain-agents001-test.com",
    "not-an-email@"
  ]
}' |
apify call agents001/email-domain-checker --silent --output-dataset

```

## MCP server setup

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

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/7ct5u7CihTMLvLqKZ/builds/yNw0GGbkVKzcwNgM3/openapi.json
