# Bulk Email Validator: syntax, MX, disposable, typos (`required_truth/bulk-email-validator`) Actor

Checks a list of email addresses without sending anything: syntax, whether the domain can receive mail (MX records), disposable and role addresses, free providers and common typos. One row per address.

- **URL**: https://apify.com/required_truth/bulk-email-validator.md
- **Developed by:** [Absolute Truth](https://apify.com/required_truth) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 emails validated

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/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

Check a list of email addresses before you send to it. For every address you get a clear status (`valid`, `risky` or `invalid`), the reason, and a suggested fix for common typos.

**This Actor never sends email and never contacts a mail server.** It checks the address itself and the domain's public DNS records. That makes it fast and safe for your sender reputation, and it means it cannot tell you whether one particular mailbox exists. Use it to remove the addresses that are certain to bounce and to flag the ones worth a second look.

### What it checks

- **Syntax**: well-formed address, length limits, valid domain. Input like `Name <user@example.com>` or `mailto:user@example.com` is cleaned first.
- **Domain can receive mail**: the domain exists and publishes mail servers (MX records). Domains that declare they accept no mail are marked invalid.
- **Typos**: `user@gmial.com` comes back with `did_you_mean: user@gmail.com`.
- **Disposable addresses**: domains on the public disposable-email-domains list.
- **Role addresses**: shared mailboxes such as `info@`, `sales@`, `support@`.
- **Free providers**: Gmail, Yahoo, Outlook and other consumer mailboxes are flagged so you can separate them from business addresses.
- **Duplicates**: each distinct address is checked once. A `canonical` form (Gmail dots and `+tags` removed) helps you find the same person twice.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `emails` | list of strings | required | Up to 200,000 per run. |
| `checkDns` | boolean | `true` | Turn off for a syntax-only check. |
| `removeDuplicates` | boolean | `true` | Check each distinct address once. |

```json
{ "emails": ["first.last@gmail.com", "info@example.com", "user@gmial.com", "not-an-email"] }
```

### Output

One row per address in the dataset, plus a `SUMMARY` record with counts by status.

```json
{
  "email": "user@gmial.com",
  "normalized": "user@gmial.com",
  "status": "risky",
  "reason": "possible_typo",
  "did_you_mean": "user@gmail.com",
  "syntax_valid": true,
  "domain": "gmial.com",
  "domain_exists": true,
  "accepts_mail": true,
  "mx_found": true,
  "mx_hosts": ["mx.gmial.com"],
  "is_disposable": false,
  "is_role": false,
  "is_free_provider": false,
  "has_plus_tag": false,
  "canonical": "user@gmial.com",
  "dns_checked": true,
  "mailbox_checked": false,
  "mailbox": null,
  "mailbox_detail": null,
  "smtp_code": null
}
```

#### Status and reasons

| Status | Reason | Meaning |
|---|---|---|
| `valid` | `domain_accepts_mail` | Well formed, and the domain has mail servers. |
| `valid` | `syntax_ok` | Well formed (DNS check was turned off). |
| `risky` | `possible_typo` | Looks like a misspelled common provider; see `did_you_mean`. |
| `risky` | `disposable_domain` | Temporary-mailbox provider. |
| `risky` | `role_address` | Shared mailbox, often filtered or unattended. |
| `risky` | `no_mx_record` | No MX records; mail would go to the domain's web address, which usually fails. |
| `invalid` | `invalid_syntax` | Not a well-formed address; see `syntax_error`. |
| `invalid` | `domain_not_found` | The domain does not exist. |
| `invalid` | `domain_refuses_mail` | The domain declares that it accepts no mail. |
| `invalid` | `no_mail_server` | The domain exists but has nowhere to deliver mail. |
| `unknown` | `dns_lookup_failed` | The DNS lookup did not complete. Not charged; run it again. |

### Pricing

Pay per result: one `email-validated` event for each address that gets a conclusive status, at $0.50 per 1,000 addresses ($0.0005 each). Duplicates removed from a run and rows with status `unknown` are not charged. There is no start fee.

### Limits

- No mailbox-level check: a `valid` address can still bounce if the mailbox was deleted. The fields `mailbox`, `mailbox_detail` and `smtp_code` are reserved for a mailbox check that is not available; they are always empty and `mailbox_checked` is always `false`.
- Typo hints cover common consumer providers, not company domains.
- The disposable list is public and updated with each release of this Actor; a new provider can be missing for a while.

### What the Actor tells its developer

At the end of a run the Actor sends its developer one short, signed usage summary: the Actor's name, how many results the run was charged for, the run's ID and whether the account is on a paid plan. Your input and your results are never sent anywhere.

# Actor input Schema

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

The addresses to check, one per line. Forms like "Name <user@example.com>" and "mailto:user@example.com" are cleaned automatically. Up to 200,000 per run.

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

Looks up the domain's MX records in DNS. Turn off for a syntax-only check.

## `removeDuplicates` (type: `boolean`):

Each distinct address is checked and charged once per run.

## Actor input object example

```json
{
  "emails": [
    "first.last@gmail.com",
    "info@example.com",
    "user@gmial.com",
    "user@mailinator.com",
    "not-an-email"
  ],
  "checkDns": true,
  "removeDuplicates": true
}
```

# Actor output Schema

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

One row per address.

## `summary` (type: `string`):

Counts by status.

# 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": [
        "first.last@gmail.com",
        "info@example.com",
        "user@gmial.com",
        "user@mailinator.com",
        "not-an-email"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("required_truth/bulk-email-validator").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": [
        "first.last@gmail.com",
        "info@example.com",
        "user@gmial.com",
        "user@mailinator.com",
        "not-an-email",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("required_truth/bulk-email-validator").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": [
    "first.last@gmail.com",
    "info@example.com",
    "user@gmial.com",
    "user@mailinator.com",
    "not-an-email"
  ]
}' |
apify call required_truth/bulk-email-validator --silent --output-dataset

```

## MCP server setup

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

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/gMabDeGvmR9CdvhP3/builds/5lnP1hqMWXjYc3vc5/openapi.json
