# Bulk Email Validator: Syntax, MX and Disposable (`clearcheck/email-validator`) Actor

Bulk email validator and list cleaner: checks syntax, MX records, disposable domains, role addresses and typos. Score and verdict per email. DNS only.

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

## Pricing

from $0.60 / 1,000 email validateds

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/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: Syntax, MX and Disposable

Clean an email list **before** you send. Give it up to **10,000 addresses** and get, for each one, a verdict (`valid`, `risky`, `invalid`), a 0-100 quality score and the reasons behind it.

It uses **DNS only** (MX and A/AAAA lookups). It never opens an SMTP connection, never contacts the mailbox, never calls any third-party site and stores nothing except the list you provide. Fast, cheap, and safe for your sender reputation.

### What it checks

| Check | Output field |
|---|---|
| Syntax (RFC-style, length limits, IDN domains) | `syntaxValid` |
| Domain exists | `domainExists` |
| Mail servers (MX, with RFC 5321 A/AAAA fallback, null-MX detection) | `hasMx`, `mxRecords` |
| Disposable / temporary domains (built-in list of about 300 common ones, subdomains included) | `isDisposable` |
| Role addresses (info@, contact@, support@, noreply@...) | `isRoleAddress`, `roleName` |
| Probable typo of a well-known domain (gmial.com, hotmial.com, gmail.con...) | `typoSuspected`, `suggestion` |
| Free mailbox provider vs professional domain | `domainType` |
| Score and verdict | `score`, `verdict`, `reasons` |

### Use cases

- Clean a CRM or newsletter export before a campaign to cut bounces.
- Check sign-up lists or lead-gen scraper output (pipe the results of another Actor into it).
- Remove disposable addresses and role mailboxes from B2B lists.
- Fix typos automatically using the `suggestion` field.

### Input

```json
{
    "emails": ["contact@apify.com", "john.doe@gmial.com", "test@mailinator.com", "not-an-email"],
    "concurrency": 50,
    "dnsTimeoutSeconds": 5
}
```

- `emails` (required): list of addresses, up to 10,000 unique ones per run (extra ones are ignored with a warning). Case-insensitive duplicates are removed and not charged.
- `concurrency` (default 50, max 200): parallel checks.
- `dnsTimeoutSeconds` (default 5): per-query DNS timeout.

### Output

One dataset item per unique address, downloadable as JSON, CSV or Excel. Example:

```json
{
    "email": "john.doe@gmial.com",
    "normalizedEmail": "john.doe@gmial.com",
    "domain": "gmial.com",
    "verdict": "risky",
    "score": 50,
    "syntaxValid": true,
    "domainExists": true,
    "hasMx": false,
    "mxRecords": [],
    "isDisposable": false,
    "isRoleAddress": false,
    "roleName": null,
    "typoSuspected": true,
    "suggestion": "john.doe@gmail.com",
    "domainType": "professional",
    "reasons": ["no_mx_using_a_record_fallback", "probable_domain_typo"]
}
```

A `SUMMARY` record in the key-value store gives totals (valid / risky / invalid, duplicates removed, DNS cache hits, duration).

#### Verdicts and score

Starts at 100. Penalties: disposable -60, probable typo -35, role address -15, no MX (A-record fallback only) -15, inconclusive DNS -25. Invalid syntax, non-existent domain, domain with no mail host, or null MX = `invalid` (score 0). `valid` is 80+, `risky` 40-79, `invalid` below 40. Disposable and typo-suspected addresses are never `valid`.

### Pricing

Pay per event. You see the price before you run and you can cap spending with the maximum cost per run.

| Event | Price | When it is charged |
|---|---|---|
| Email validated | $0.0006 per email ($0.60 per 1,000) | Once per unique email address checked, whatever the verdict |
| Actor start | $0.00005 per run | Flat fee per run start |

Duplicates and empty lines are never charged. The Actor stops cleanly when your maximum cost is reached.

### Limits (please read)

- DNS only: a `valid` verdict means the syntax is fine and the domain can receive mail. It does **not** prove that the mailbox exists. Catch-all domains, full mailboxes and deleted accounts cannot be detected without SMTP probing, which this Actor intentionally does not do.
- The disposable-domain list is built in (about 300 common services) and does not cover every throwaway service. Role detection and typo suggestions use fixed lists.
- If DNS is inconclusive (timeout, server failure) the address is `risky` with `dns_lookup_inconclusive`, never `invalid`.
- Local part is kept as typed; only the domain is lowercased.
- Maximum 10,000 unique emails per run.

### FAQ

**Do you send emails or connect to mail servers?** No. Only public DNS queries.

**Do you store or share my list?** No. Your list is only in your run input and dataset, which you control. No external service is contacted.

**Why is gmial.com sometimes risky and sometimes invalid?** Typo domains often have no records (invalid), but some are registered and answer DNS. Either way they are never valid; use the suggestion field.

**Why is info@company.com still valid?** It is deliverable, just a shared inbox. Filter on isRoleAddress if you do not want those.

**Does a valid verdict prove the mailbox exists?** No. The check is DNS only, so it cannot detect catch-all domains, full mailboxes or deleted accounts.

**Can I schedule it or call it from the API?** Yes, like any Actor: API, schedules, and integrations such as Make, n8n and Zapier.

### More Actors by clearcheck

- [Domain Health Checker](https://apify.com/clearcheck/domain-health-checker)
- [Broken Link Checker and Sitemap SEO Auditor](https://apify.com/clearcheck/link-sitemap-audit)
- [PDF, DOCX and HTML to Markdown Converter](https://apify.com/clearcheck/document-to-markdown-converter)
- [Website Contact Finder](https://apify.com/clearcheck/website-contact-finder)
- [Bulk Phone Number Validator](https://apify.com/clearcheck/phone-validator)
- [Bulk Image Optimizer](https://apify.com/clearcheck/image-optimizer)
- [OCR Text Extractor](https://apify.com/clearcheck/ocr-text-extractor)
- [Dataset Merger and Deduplicator](https://apify.com/clearcheck/dataset-merge-dedupe)
- [Excel and CSV to JSON Converter](https://apify.com/clearcheck/spreadsheet-to-json)

# Actor input Schema

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

List of email addresses to validate (up to 10,000 unique addresses per run). Case-insensitive duplicates are ignored.

## `concurrency` (type: `integer`):

How many addresses are checked in parallel. 50 is a good balance; lower it if your DNS resolver rate-limits.

## `dnsTimeoutSeconds` (type: `integer`):

Per DNS query timeout. Domains that do not answer in time get a 'risky' verdict with reason dns_lookup_inconclusive instead of 'invalid'.

## Actor input object example

```json
{
  "emails": [
    "contact@apify.com",
    "john.doe@gmial.com",
    "test@mailinator.com",
    "not-an-email"
  ],
  "concurrency": 50,
  "dnsTimeoutSeconds": 5
}
```

# Actor output Schema

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

Dataset with one item per validated email (verdict, score, MX, flags).

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

JSON with counts of valid/risky/invalid, duplicates ignored and DNS cache hits.

# 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": [
        "contact@apify.com",
        "john.doe@gmial.com",
        "test@mailinator.com",
        "not-an-email"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearcheck/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": [
        "contact@apify.com",
        "john.doe@gmial.com",
        "test@mailinator.com",
        "not-an-email",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("clearcheck/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": [
    "contact@apify.com",
    "john.doe@gmial.com",
    "test@mailinator.com",
    "not-an-email"
  ]
}' |
apify call clearcheck/email-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clearcheck/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/ifx9OER8pBQ7r91Jf/builds/gbnTUt1FNUSHMKWvg/openapi.json
