# Email Verifier (`thenightowl/email-verifier`) Actor

Bulk email verification at $0.50 per 1,000: syntax, domain & MX, 10,000+ disposable providers, role accounts, free-mail flags, typo fixes, optional SMTP mailbox probe with catch-all detection, SPF/DMARC. Paste a list, get a clean dataset with a verdict per address, or call it as an MCP server.

- **URL**: https://apify.com/thenightowl/email-verifier.md
- **Developed by:** [Mohamad Najia](https://apify.com/thenightowl) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 email verifieds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 — bulk email validation at $0.50 per 1,000

**Paste a list, get a clean one.** Every address is checked for syntax, a real domain with mail servers (MX, null-MX,
implicit-MX), 10,000+ disposable/temporary providers, role mailboxes (info@, sales@…), free-mail providers, and common
typos (*gmial.com → gmail.com*). Turn on the **SMTP probe** and the mail server itself is asked whether the mailbox exists
(no message is sent), with catch-all detection. Optional SPF/DMARC columns tell you whether a domain can even send mail safely.

Same engine, two ways to use it:

- **Run it** on Apify: paste addresses or any text → a dataset with a `status` per address. 50,000 per run.
- **Call it** from an AI agent: it's an MCP server (`/mcp`) and a REST API with five tools.

Priced at **$0.0005 per unique address** (duplicates are free) — about a tenth of the usual verification services — because
there is no proxy fleet and no AI inside: just DNS and SMTP, done carefully. Addresses are never stored or logged.

### Verdicts

| status | meaning | typical reason |
|---|---|---|
| `deliverable` | domain accepts mail and nothing speaks against the address | MX present; mailbox accepted (if probed) |
| `risky` | will probably deliver, but | role account · disposable provider · catch-all domain · no MX (A-record fallback) |
| `undeliverable` | the mail server rejected the mailbox | SMTP 550 (probe only) |
| `invalid` | can never work | bad syntax · domain does not exist · null MX |
| `unknown` | could not decide | DNS timeout · greylisting |

Each row also carries `score` (0–100), `reason`, `mx`, `disposable`, `role`, `free_provider`, `suggestion`, and `smtp`
(code + server reply when probed). `clean` lists the deliverable addresses ready to use.

### Tools (MCP / REST)

| tool | price |
|---|---|
| `verify_email` — one address, all checks, optional SMTP + SPF/DMARC | $0.0005 |
| `verify_emails` — up to 1,000 per call, parallel, deduped, summary + `clean` list | $0.0005 / unique address |
| `domain_check` — MX, SPF, DMARC (+policy), disposable/free flags for a domain | $0.001 |
| `extract_emails` — pull addresses out of text/HTML | free |
| `suggest_fix` — typo correction | free |

### Example

```json
// verify_email {"email": "sara@gmial.com"}
{"result": {"email": "sara@gmial.com", "status": "risky", "reason": "disposable / temporary mailbox provider",
            "suggestion": "gmail.com", "disposable": true, "role": false, "free_provider": false, "score": 20,
            "checks": ["syntax", "disposable_list", "role_account", "free_provider", "typo", "dns_mx"]},
 "data_confidence": "medium", "estimated_items": ["deliverability inferred, not proven"], "sources": ["https://www.rfc-editor.org/rfc/rfc5321", "..."],
 "disclaimer": "Deliverability is inferred from public DNS and (optionally) an SMTP handshake; only sending a message proves a mailbox exists. ..."}
```

### Honest limits

- Without the SMTP probe the verdict is domain-level: a well-formed address at a real mail domain is `deliverable` even if that
  particular mailbox was never created. The probe fixes that where servers allow it (Gmail, Outlook and most business servers
  do; some ISPs and anti-harvesting setups answer every address or none — reported as `catch_all` / `unknown`).
- DNS questions are asked about the **domain only**. The mailbox leaves the service only during an SMTP probe you requested, and
  only to that domain's own mail server.
- Not a consent check. Verifying an address does not make it lawful to email it.

### Connect

- **Apify:** run from the Console (input form) or Standby URL + `/mcp` with `Authorization: Bearer <your Apify token>`.
- **Self-hosted:** `claude mcp add email-verifier --transport http https://verify.noahsarch.tech/mcp --header "X-API-Key: <key>"`
- **REST:** `POST https://verify.noahsarch.tech/v1/tools/verify_emails` with `{"emails": [...]}`; OpenAPI at `/openapi.json`.

### Built on

[python-email-validator](https://github.com/JoshData/python-email-validator), [dnspython](https://www.dnspython.org/),
the community [disposable-email-domains](https://github.com/disposable-email-domains/disposable-email-domains) list, RFC 5321/5322/7208/7489.

***

### بالعربية

**مدقّق البريد الإلكتروني** — تحقق جماعي من عناوين البريد بسعر 0.50 دولار لكل 1000 عنوان: الصياغة، وجود النطاق وخوادم البريد (MX)،
أكثر من 10,000 مزوّد بريد مؤقت، الصناديق الوظيفية (info@)، مزوّدي البريد المجاني، تصحيح الأخطاء الإملائية، وفحص SMTP اختياري
يسأل خادم البريد نفسه عن وجود الصندوق (دون إرسال رسالة) مع كشف نطاقات catch-all. ألصق قائمة واحصل على قائمة نظيفة، أو استدعِه
كخادم MCP من وكيلك الذكي. لا تُخزَّن العناوين ولا تُسجَّل.

# Changelog

This Actor's version history is a separate document: https://apify.com/thenightowl/email-verifier/changelog.md

# Actor input Schema

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

Addresses to verify (up to 50,000 per run; duplicates are removed and not charged).

## `text` (type: `string`):

Any text/HTML; every address found is verified.

## `smtp_check` (type: `boolean`):

Also ask each mail server whether the mailbox exists (RCPT TO handshake, no message sent). Slower; detects catch-all domains; some servers block it.

## `check_policy` (type: `boolean`):

Add spf and dmarc columns per domain.

## Actor input object example

```json
{
  "emails": [
    "john.doe@gmail.com",
    "info@example.com",
    "someone@mailinator.com"
  ],
  "smtp_check": false,
  "check_policy": false
}
```

# Actor output Schema

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

One row per address with status and reasons.

## `mcpEndpoint` (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": [
        "john.doe@gmail.com",
        "info@example.com",
        "someone@mailinator.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenightowl/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": [
        "john.doe@gmail.com",
        "info@example.com",
        "someone@mailinator.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("thenightowl/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": [
    "john.doe@gmail.com",
    "info@example.com",
    "someone@mailinator.com"
  ]
}' |
apify call thenightowl/email-verifier --silent --output-dataset

```

## MCP server setup

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