# Email Validator — Bulk Email List Cleaning (`istmobot/email-verifier`) Actor

Clean email lists in bulk before you send. Input: email addresses. Output: one row per address with status (invalid, risky, unverified), reason, MX and mail provider, disposable, role and free-provider flags and typo suggestion. It does not confirm that a single mailbox exists.

- **URL**: https://apify.com/istmobot/email-verifier.md
- **Developed by:** [Istmobot](https://apify.com/istmobot) (community)
- **Categories:** Lead generation, Marketing, Automation
- **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

## Email Validator — Bulk Email List Cleaning

Clean an email list **before you send**. Paste addresses and get one row per address with a clear **status**, the **reason**, and the signals behind it: mail server, provider, disposable and role flags and typo suggestions. No API key, no monthly plan, no email is ever sent.

> **What it does not do:** it does not confirm that a single mailbox exists. That check needs a connection to the mail port (25), which Apify's network closes. Addresses that pass every other check come back as `unverified`, never `valid`.

### What is Email Validator?

It checks each address in four steps:

1. **Syntax**: is it a well-formed address? International domains are converted to their ASCII form.
2. **Domain**: does the domain have a mail server (MX record, or an address record as fallback)?
3. **Account type**: disposable provider (120,000+ domains), role account (`info@`, `sales@`), free provider (`gmail.com`).
4. **Typos**: `jon@gmial.com` gets the suggestion `jon@gmail.com`.

A fifth step, asking the domain's mail server about the mailbox, is in the code but cannot run on Apify (see the note above). It runs only where the Actor is self-hosted on a network with port 25 open.

Use it to:

- **Lower bounce rates** before a cold email or newsletter campaign.
- **Protect sender reputation** by removing invalid and disposable addresses.
- **Clean CRM and sign-up data** and catch typos at the source.
- **Qualify leads**: separate personal mailboxes from role accounts.

### What data can I get?

| Field | Meaning |
|---|---|
| `email` | The address as you sent it |
| `normalized` | Lower-cased address with an ASCII domain |
| `status` | On Apify: `invalid`, `risky` or `unverified` (see below) |
| `reason` | Plain-language explanation of the status |
| `syntaxValid` | `false` when the text is not an email address |
| `domain`, `hasMx`, `mxHost` | Domain, whether it receives mail, and its first mail server |
| `mailProvider` | Google, Microsoft, Yahoo, Zoho, Proton, Proofpoint, Mimecast… when known |
| `isDisposable` | Temporary mailbox provider |
| `isRoleAccount` | Shared mailbox such as `info@`, `support@`, `sales@` |
| `isFreeProvider` | Gmail, Outlook, Yahoo, iCloud and similar |
| `didYouMean` | Suggested correction for a mistyped provider domain |
| `mailboxChecked` | Always `false` on Apify (the mailbox step cannot run there) |
| `acceptsAll`, `smtpCode`, `smtpMessage` | Always `null` on Apify; filled only by the mailbox step |

#### Status values

| Status | Meaning | What to do |
|---|---|---|
| `invalid` | Bad syntax, or the domain has no mail server | Remove |
| `risky` | Disposable provider | Usually remove |
| `unverified` | The address is well formed and its domain receives mail. The mailbox itself was not checked | Keep; decide with the other flags |

`valid` and `accept_all` exist only for the mailbox step, so they do not appear in runs on Apify. The Actor never reports `valid` without the mail server's confirmation.

### How much does it cost?

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| `email-verified` | $0.0005 per address, or **$0.50 per 1,000** |

Example: a list of 10,000 addresses costs about **$5**. Duplicates are verified and charged once. You can set a **maximum cost per run**; the Actor stops cleanly when it is reached.

### How to use Email Validator

1. Click **Try for free**.
2. Paste your addresses (use **Bulk edit** for a list).
3. Click **Start**.
4. Download the dataset as CSV, Excel or JSON, and filter by `status`.

### ⬇️ Input

```json
{
    "emails": ["jane.doe@example.com", "jon@gmial.com", "info@acme.io"]
}
```

| Field | Default | Description |
|---|---|---|
| `emails` | required | Addresses to check. Commas, semicolons, spaces and new lines all separate addresses |
| `checkMailbox` | `true` | Try the mailbox step. It has no effect on Apify, where the mail port is closed; turn it off to skip the attempt |

### ⬆️ Output

```json
{
    "email": "jon@gmial.com",
    "normalized": "jon@gmial.com",
    "status": "unverified",
    "reason": "The domain receives email. The mailbox itself was not checked.",
    "syntaxValid": true,
    "domain": "gmial.com",
    "hasMx": true,
    "mxHost": "gmial.com",
    "mailProvider": null,
    "isDisposable": false,
    "isRoleAccount": false,
    "isFreeProvider": false,
    "didYouMean": "jon@gmail.com",
    "mailboxChecked": false,
    "acceptsAll": null,
    "smtpCode": null,
    "smtpMessage": null
}
```

### Integrations & API

```bash
curl -X POST "https://api.apify.com/v2/acts/istmobot~email-verifier/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"emails":["jane.doe@example.com","jon@gmial.com"]}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("istmobot/email-verifier").call(run_input={"emails": ["jane.doe@example.com"]})
keep = [r["email"] for r in client.dataset(run["defaultDatasetId"]).iterate_items() if r["status"] not in ("invalid", "risky")]
```

Connect it to Make, Zapier or n8n to check new sign-ups or CRM contacts as they arrive.

### 🤖 Use with AI agents (MCP)

`https://mcp.apify.com?tools=istmobot/email-verifier`. Example prompt: "Clean these 200 emails: drop the invalid and disposable ones and fix the typos."

### ❓ FAQ

**Does it send emails?** No.

**Why do I never get `valid`?** Confirming a mailbox needs a connection to the mail port (25), and Apify's network closes it. This Actor tells you which addresses are certainly bad (`invalid`), which are throwaway (`risky`) and which have a working mail domain (`unverified`). It cannot tell you that a single mailbox exists.

**Why is an address `unverified`?** It is well formed and its domain receives mail, but the mailbox itself was not checked. Use the other flags to decide.

**How many addresses per run?** Tens of thousands. Addresses are grouped by domain and checked in parallel.

**Is this legal?** The checks use public DNS records. You are responsible for having a lawful basis to hold and email the addresses (GDPR, CAN-SPAM).

### Your feedback

Wrong verdict on an address? Open an issue on the **Issues** tab with the address and the result you expected.

# Actor input Schema

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

Addresses to verify, one per line, e.g. jane.doe@example.com. Use Bulk edit to paste a whole list; commas, semicolons and spaces also separate addresses. Duplicates are verified once.

## `checkMailbox` (type: `boolean`):

No effect on Apify: asking a mail server about a mailbox needs the mail port (25), which Apify's network closes, so every run does the syntax, domain, disposable, role and typo checks only. Turn it off to skip the attempt. No email is ever sent.

## Actor input object example

```json
{
  "emails": [
    "support@apify.com",
    "jon@gmial.com",
    "test@mailinator.com",
    "nobody@this-domain-does-not-exist-98231.com"
  ],
  "checkMailbox": true
}
```

# Actor output Schema

## `results` (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": [
        "support@apify.com",
        "jon@gmial.com",
        "test@mailinator.com",
        "nobody@this-domain-does-not-exist-98231.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/email-verifier").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": [
        "support@apify.com",
        "jon@gmial.com",
        "test@mailinator.com",
        "nobody@this-domain-does-not-exist-98231.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("istmobot/email-verifier").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": [
    "support@apify.com",
    "jon@gmial.com",
    "test@mailinator.com",
    "nobody@this-domain-does-not-exist-98231.com"
  ]
}' |
apify call istmobot/email-verifier --silent --output-dataset

```

## MCP server setup

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

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/2FIrmn0qeduOEeFgJ/builds/YmppLFdf9dytv2bq1/openapi.json
