# Email Address Validator (Syntax, MX, Disposable) (`klyve1/email-address-validator`) Actor

Validate email lists in bulk without sending mail: syntax, domain MX records, disposable and role-based addresses, free providers, typo suggestions (gmial.com to gmail.com). Fast, cheap, DNS only.

- **URL**: https://apify.com/klyve1/email-address-validator.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (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.30 / 1,000 email address checkeds

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

## Email Address Validator (Syntax, MX, Disposable, Typos)

Clean an email list **before you send**: this Actor checks every address for valid syntax, checks that its domain exists and accepts mail (MX records), flags **disposable** (temporary) addresses from a list of more than 100,000 providers, **role-based** inboxes (contact@, info@, sales@...), free webmail providers, and **typos** with a suggestion (`john@gmial.com` becomes `john@gmail.com`).

It works with DNS only. No email is sent and no mail server is contacted, so your IP and sender reputation are never at risk, and it is fast: thousands of addresses per minute.

### Who uses it

- **Marketers and newsletter senders**: remove dead and fake addresses before a campaign to lower bounces and protect deliverability.
- **SaaS and e-commerce**: screen sign-ups for throwaway addresses and typos.
- **Sales teams and CRM admins**: clean imported lead lists and flag shared inboxes.
- **Developers**: a simple API step in a sign-up or data pipeline.

### Example output

```json
{
  "input": "john.doe@gmial.com",
  "email": "john.doe@gmial.com",
  "isValid": true,
  "status": "risky",
  "reason": "Possible typo in domain",
  "syntaxValid": true,
  "localPart": "john.doe",
  "domain": "gmial.com",
  "domainExists": true,
  "hasMx": false,
  "mxRecords": [],
  "isDisposable": false,
  "isRoleBased": false,
  "isFreeProvider": false,
  "didYouMean": "john.doe@gmail.com",
  "checkedAt": "2026-11-20T18:20:11.512Z"
}
```

`status` is one of:

| Status | Meaning |
|---|---|
| `valid` | Good syntax, the domain accepts mail, no warning |
| `risky` | Deliverable domain, but disposable, role-based or a likely typo (see `reason`) |
| `invalid` | Bad syntax, domain does not exist, or domain accepts no mail |
| `unknown` | DNS did not answer (not billed) |

### Input

| Field | What it does | Default |
|---|---|---|
| `emails` | Addresses to check, one per line | |
| `maxItems` | Stop after this many addresses, 0 = no limit | 0 |

### Pricing

Pay per result: **$0.0003 per address checked**. 10,000 addresses cost about $3. Addresses whose DNS lookup fails (`unknown`) are free.

### Good to know

- This is a DNS level check: it cannot tell whether one particular mailbox exists on a valid domain (that needs an SMTP probe, which many servers block or punish). It removes the large majority of bad addresses at a fraction of the cost.
- Domains are looked up once per run, so lists with many addresses on the same domain are very fast.
- Disposable domains come from the open source `disposable-email-domains` list (CC0).

# Actor input Schema

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

Email addresses to validate, one per line. Duplicates are removed. No email is ever sent to them.

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

Stop after this many addresses (0 = no limit). Useful to test a big list first.

## Actor input object example

```json
{
  "emails": [
    "contact@apify.com",
    "john.doe@gmial.com",
    "test@mailinator.com",
    "not-an-email",
    "someone@this-domain-does-not-exist-12345.com"
  ],
  "maxItems": 0
}
```

# Actor output Schema

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

All rows produced by the run.

# 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",
        "someone@this-domain-does-not-exist-12345.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/email-address-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",
        "someone@this-domain-does-not-exist-12345.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("klyve1/email-address-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",
    "someone@this-domain-does-not-exist-12345.com"
  ]
}' |
apify call klyve1/email-address-validator --silent --output-dataset

```

## MCP server setup

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