# Email Verifier - Pay Only for Conclusive Results (`karimel/email-verifier`) Actor

Bulk email verifier and validator. Checks syntax, domain, MX and the real mailbox, plus catch-all, disposable and role detection. Unknown results, syntax errors and duplicates are free.

- **URL**: https://apify.com/karimel/email-verifier.md
- **Developed by:** [Karim EL ALLAME](https://apify.com/karimel) (community)
- **Categories:** Lead generation, Automation, 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 conclusive email verifications

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 Verifier — pay only for conclusive results

Clean an email list before you send. For every address you get a clear verdict — **valid**, **invalid**, **catch-all**, **risky** or **unknown** — plus the reason behind it.

**You are only charged for conclusive verdicts.** Addresses that come back `unknown`, addresses with broken syntax and duplicates are free.

No email is ever sent. The Actor asks the recipient's mail server whether the mailbox exists and then hangs up.

### What it checks

| Check | What you learn | Output fields |
|---|---|---|
| Syntax | Whether the address is well formed | `syntaxValid` |
| Typos | Likely misspellings of popular domains (`gmial.com` → `gmail.com`) | `didYouMean` |
| Domain and MX records | Whether the domain exists and accepts mail | `mxFound`, `mxHost`, `mxProvider` |
| Mailbox | Whether the mail server accepts this exact mailbox | `status`, `smtpCode`, `smtpMessage` |
| Catch-all | Whether the domain accepts mail for *any* address | `isCatchAll` |
| Disposable | Temporary inbox services (thousands of domains) | `isDisposable` |
| Role account | Shared inboxes such as `info@`, `sales@`, `support@` | `isRoleBased` |
| Free provider | Gmail, Outlook, Yahoo and other consumer mail | `isFreeProvider` |
| Sender policies | Whether the domain publishes SPF and DMARC | `hasSpf`, `hasDmarc` |

### Verdicts

| `status` | Meaning | What to do | Charged |
|---|---|---|---|
| `valid` | The mail server confirmed the mailbox exists | Send | Yes |
| `invalid` | The mailbox or domain does not exist | Remove | Yes (free if the syntax is broken) |
| `catch_all` | The domain accepts every address, so this mailbox cannot be confirmed | Send with care | Yes |
| `risky` | Disposable address or full mailbox | Usually remove | Yes |
| `unknown` | The mail server refused to answer or could not be reached | Retry later or decide yourself | **No** |

Every result also carries a `reason` (for example `mailbox_not_found`, `disposable_domain`, `mail_server_refused_check`) and a `score` from 0 to 100.

### Input

Paste addresses one per line, or send them through the API:

```json
{
  "emails": [
    "hello@apify.com",
    "nobody-here-12345@gmail.com",
    "info@mailinator.com",
    "john@gmial.com"
  ]
}
```

To verify a CSV file or a Google Sheet, pass its link. Every address found in the file is verified, whatever the column layout:

```json
{
  "fileUrl": "https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit"
}
```

The sheet must be shared with anyone who has the link.

To verify the output of another Actor, pass its dataset instead of (or in addition to) a list:

```json
{
  "datasetId": "YOUR_DATASET_ID",
  "emailField": "email"
}
```

Leave `emailField` empty and the Actor finds the email column on its own.

Other options: turn the mailbox check off for a fast syntax-and-domain pass (`checkSmtp`), skip catch-all detection (`checkCatchAll`), cap the run (`maxEmails`), and tune speed (`concurrency`, `timeoutSecs`, `maxRetries`).

### Output

One item per unique address:

```json
{
  "email": "hello@apify.com",
  "status": "valid",
  "reason": "mailbox_exists",
  "score": 85,
  "syntaxValid": true,
  "domain": "apify.com",
  "mxFound": true,
  "mxHost": "aspmx.l.google.com",
  "mxProvider": "Google",
  "smtpChecked": true,
  "smtpCode": 250,
  "smtpMessage": "2.1.5 OK",
  "isCatchAll": false,
  "isDisposable": false,
  "isRoleBased": true,
  "isFreeProvider": false,
  "didYouMean": null,
  "hasSpf": true,
  "hasDmarc": true,
  "verifiedAt": "2026-11-10T11:40:00.000Z"
}
```

Export as JSON, CSV, Excel or HTML, or read it through the Apify API. A `SUMMARY` record in the key-value store holds the totals per verdict.

### How accurate is it?

A `valid` or `invalid` verdict comes straight from the recipient's own mail server, so it is as reliable as that server's answer.

Some providers refuse to answer mailbox questions from servers they do not know. When that happens the Actor reports `unknown` rather than guessing — and does not charge for it. In our tests:

- **Answered reliably:** Gmail and Google Workspace, Microsoft 365 business domains, iCloud, Proton, Zoho, La Poste, and most company and hosting mail servers.
- **Often `unknown`:** Yahoo and AOL, consumer Outlook/Hotmail, GMX and WEB.DE, Orange, Free.

Lists made of business addresses therefore resolve far better than lists made of consumer addresses at those providers.

### Limits

- Addresses with non-ASCII characters before the `@` are reported as invalid syntax.
- A catch-all domain can never confirm a single mailbox; that is a property of the domain, not of the check.
- Mail servers occasionally answer with a temporary error (greylisting). The Actor retries once and otherwise reports `unknown`.

### Use it from code

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

It also works as a step in Make, Zapier and n8n through the Apify integrations, and as a tool for AI agents through the Apify MCP server.

### Is this legal?

Checking whether a mailbox exists uses the same public protocol every mail server uses before delivering a message, and no message is sent. You are responsible for having a lawful basis to hold and process the addresses you submit, for example under GDPR.

# Actor input Schema

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

Addresses to verify, one per line. Duplicates are removed automatically and never charged.

## `fileUrl` (type: `string`):

Link to a CSV or text file, or a Google Sheet shared with anyone who has the link. Every email address found in it is verified, whatever the column layout.

## `datasetId` (type: `string`):

Verify every address found in an existing Apify dataset, for example the output of a scraper. Works together with the list above.

## `emailField` (type: `string`):

Name of the dataset field that contains the address. Leave empty to detect it automatically.

## `checkSmtp` (type: `boolean`):

Asks the recipient's mail server whether the mailbox exists. No email is ever sent. Turn off for a faster syntax, domain and risk check only.

## `checkCatchAll` (type: `boolean`):

Flags domains that accept mail for any address, where an individual mailbox cannot be confirmed.

## `maxEmails` (type: `integer`):

Stop after this many results. Leave empty for no limit.

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

Higher is faster. Connections to any single mail provider stay capped regardless.

## `timeoutSecs` (type: `integer`):

How long to wait for one mail server before reporting the address as unknown.

## `maxRetries` (type: `integer`):

How many times to retry when a mail server answers with a temporary error.

## `fromEmail` (type: `string`):

Address presented to mail servers as the sender. Leave empty for a neutral default.

## `heloHost` (type: `string`):

Hostname presented to mail servers. Leave empty to use this machine's real public hostname.

## `proxyConfiguration` (type: `object`):

Mail servers are contacted through Apify datacenter proxies. The default works for most lists.

## Actor input object example

```json
{
  "emails": [
    "hello@apify.com",
    "nobody-here-12345@gmail.com",
    "info@mailinator.com",
    "john@gmial.com"
  ],
  "checkSmtp": true,
  "checkCatchAll": true,
  "concurrency": 20,
  "timeoutSecs": 15,
  "maxRetries": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One item per unique address: status (valid, invalid, catch_all, risky, unknown), reason, score and the individual checks.

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

Totals per verdict and the number of billed results.

# 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": [
        "hello@apify.com",
        "nobody-here-12345@gmail.com",
        "info@mailinator.com",
        "john@gmial.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("karimel/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": [
        "hello@apify.com",
        "nobody-here-12345@gmail.com",
        "info@mailinator.com",
        "john@gmial.com",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("karimel/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": [
    "hello@apify.com",
    "nobody-here-12345@gmail.com",
    "info@mailinator.com",
    "john@gmial.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call karimel/email-verifier --silent --output-dataset

```

## MCP server setup

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