# Email Scraper - Extract Emails from Any Website (`aolmo/email-scraper`) Actor

Extract emails from any list of websites: home page plus contact, about and legal pages, one row per email with the page where it appears, how it was found (mailto or text) and whether its domain accepts mail. Phones and social links included. Only sites with emails are charged. $0.003 per site.

- **URL**: https://apify.com/aolmo/email-scraper.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 emails founds

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

Extract email addresses from any list of websites, fast and without a browser. Paste website URLs and the Actor reads the home page plus the pages most likely to hold contacts (contact, about, team, legal, support), then returns one row per email with the page where it was found, how it was found (a `mailto:` link or plain text) and whether the email's domain can actually receive mail. Phones and social profiles found on the way come in every row too. Lead lists, CRM enrichment, outreach campaigns and partner research at $0.003 per website with emails; sites without emails are free.

### What you get

**Email** (one row each): `email`, `domain`, `mxValid` (true, false or null when validation is off), `source` (`mailto` or `text`), `page` (where it appears).

**Website** on every row: `url`, `website` (home page after redirects), `title`, `emailsCount`, `pagesCrawled`, `phones`, `socials` (facebook, instagram, linkedin, twitter, youtube, tiktok, whatsapp, telegram, github...).

**Changes** on scheduled runs: `changed` is true when the contacts of a monitored website differ from the previous run.

Websites without any email return one row with `email: null` and are not charged. Websites that cannot be read return a row with an `error` field.

### How to use it

1. Open the **Input** tab.
2. Add **Website URLs**, one per line (up to 1,000 per run): `https://example.org`.
3. Set **Max pages per website** (5 by default; raise it for large sites) and keep **Validate email domains** on to drop dead domains.
4. Click **Start** and export the rows as JSON, CSV or Excel.

### Input

```json
{
  "websites": ["https://www.iana.org/", "https://acme.example/"],
  "maxPages": 5,
  "validateEmails": true
}
```

### Output

```json
{
  "url": "https://acme.example/",
  "website": "https://acme.example/",
  "title": "Acme Studio",
  "email": "hello@acme.example",
  "domain": "acme.example",
  "mxValid": true,
  "source": "mailto",
  "page": "https://acme.example/contact",
  "emailsCount": 2,
  "pagesCrawled": 3,
  "phones": ["+34912345678"],
  "socials": { "linkedin": "https://www.linkedin.com/company/acme" },
  "changed": false,
  "timestamp": "2026-10-26T10:00:00.000Z"
}
```

### Pricing

Pay per event: **$0.003 per website where at least one email was found** (all its email rows included) and **$0.005 per monitored website whose contacts changed** on a scheduled run. Websites without emails or that cannot be read are free. 1,000 websites with emails cost $3.00.

### Limits and notes

- Only pages of the same domain are read, up to **Max pages** (30 at most), respecting robots.txt.
- Emails written as images or loaded by JavaScript after the page renders are not visible to the Actor.
- Placeholder addresses (example.com, sentry, image files...) are dropped.
- The Actor never bypasses logins, CAPTCHAs or rate limits.

### Related Actors

- **Website Contact Extractor**: emails, phones and social links in one row per website.
- **Google Maps Email & Leads Extractor**: businesses from Google Maps with the emails of their websites.
- **LinkedIn Company Leads Scraper** and **Instagram Email & Contact Scraper**: company and creator contacts.

# Actor input Schema

## `websites` (type: `array`):

One per line, e.g. https://example.org. The home page and up to maxPages pages of the same domain are read (contact, about, team and legal pages first). Up to 1,000 per run.

## `maxPages` (type: `integer`):

Pages read per website, home page included. 5 finds most emails; raise it for large sites.

## `validateEmails` (type: `boolean`):

Check via DNS that each email domain can receive mail (MX record): mxValid true, false or null when not checked.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "websites": [
    "https://www.iana.org/"
  ],
  "maxPages": 5,
  "validateEmails": true,
  "product": "email-scraper"
}
```

# Actor output Schema

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

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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 = {
    "websites": [
        "https://www.iana.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/email-scraper").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 = { "websites": ["https://www.iana.org/"] }

# Run the Actor and wait for it to finish
run = client.actor("aolmo/email-scraper").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 '{
  "websites": [
    "https://www.iana.org/"
  ]
}' |
apify call aolmo/email-scraper --silent --output-dataset

```

## MCP server setup

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

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/WAWc7FXbj5kf5n8IE/builds/xl30g8YftbOIIml8v/openapi.json
