# Email Validator - MX, Disposable, Role and Typo Check (`riverbendapis/email-validator`) Actor

Bulk email validation without sending anything: syntax, mail servers (MX), 10,000+ disposable providers, role accounts, free providers and likely typos. Returns valid, risky or invalid with a score.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-usage

## 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: MX, disposable, role and typo check

Check a list of email addresses in seconds, without sending a single email.

Paste your addresses, press Start, and get a table that tells you which ones are **valid**, **risky** or **invalid**, with a score from 0 to 100 and a plain reason for each.

### What it checks

- **Syntax** against the standard rules
- **Domain and mail servers**: does the domain exist and does it accept mail (MX records, with A record fallback)
- **Disposable providers**: more than 10,000 temporary email domains
- **Role accounts** such as info@, admin@ and support@
- **Free providers** such as Gmail, Outlook and Yahoo
- **Likely typos** with a suggested fix, for example `gmial.com` to `gmail.com`

### Output

One row per address:

| Field | Meaning |
|---|---|
| `email` | The address you gave |
| `status` | `valid`, `risky` or `invalid` |
| `score` | 0 to 100 |
| `reason` | Why it got that status, for example `disposable_address` or `domain_does_not_accept_mail` |
| `did_you_mean` | Suggested correction when a typo is likely |
| `is_disposable`, `is_role_account`, `is_free_provider` | true or false |
| `accepts_mail`, `mx_records` | Mail server check results |
| `normalized` | Canonical form (Gmail dots and plus tags removed) |

Download the results as JSON, CSV or Excel, or read them through the Apify API.

### What it does not do

It does not connect to the mailbox itself. That keeps it fast and means your checks can never get an IP or domain blocklisted, but it cannot tell you whether one specific person's inbox exists at a domain that accepts mail.

### Typical uses

- Cleaning a sign-up or newsletter list before sending
- Filtering scraped leads before outreach
- Blocking disposable addresses at registration
- Fixing typos in customer records

### Pricing

You pay per address checked. Addresses that fail because of a temporary lookup error are not charged.

# Actor input Schema

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

The addresses to check, one per line.

## Actor input object example

```json
{
  "emails": [
    "hello@stripe.com",
    "john.smith@gmial.com",
    "test@mailinator.com",
    "info@example.org"
  ]
}
```

# Actor output Schema

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

One row per email address checked.

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

Totals of valid, risky and invalid addresses.

# 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@stripe.com",
        "john.smith@gmial.com",
        "test@mailinator.com",
        "info@example.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("riverbendapis/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": [
        "hello@stripe.com",
        "john.smith@gmial.com",
        "test@mailinator.com",
        "info@example.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("riverbendapis/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": [
    "hello@stripe.com",
    "john.smith@gmial.com",
    "test@mailinator.com",
    "info@example.org"
  ]
}' |
apify call riverbendapis/email-validator --silent --output-dataset

```

## MCP server setup

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