# Website Email Extractor (`automationagents/web-emails`) Actor

Extract email addresses by crawling multiple pages of a website.

- **URL**: https://apify.com/automationagents/web-emails.md
- **Developed by:** [Alex Jordan](https://apify.com/automationagents) (community)
- **Categories:** Automation
- **Stats:** 3 total users, 0 monthly users, 93.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 successful api calls

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does Website Email Extractor do?

**Website Email Extractor** crawls multiple pages of any website and collects all publicly visible email addresses — from contact pages, about pages, footers, and team directories — returning a deduplicated list with the source page for each email found.

Built on the **Apify platform**, this Actor handles multi-page crawling automatically and integrates with Apify's scheduling, webhooks, and 1,500+ tools via Zapier and Make.

### Why use Website Email Extractor?

- **Lead generation** — Build contact lists from company websites in your target market
- **Outreach automation** — Feed extracted emails directly into your email sequencing tool
- **Freelancer prospecting** — Find direct contact emails for decision-makers at target companies
- **Agency prospecting** — Scrape client contact info from industry directories or local business sites
- **Data enrichment** — Fill in missing email fields on existing company records

### How to use Website Email Extractor

1. Click **Try for free** on this Actor's page
2. Enter the **root URL** of the website (e.g. `https://stripe.com`)
3. Set **max\_pages** to control crawl depth (default 5)
4. Click **Start** and wait for crawling to complete
5. Download your results from the **Output** tab in JSON, CSV, or Excel

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `url` | string | ✅ | Root URL to start crawling from |
| `max_pages` | integer | ❌ | Maximum number of pages to crawl (default 5) |
| `cache` | boolean | ❌ | Use cached result if available (default true) |

**Example input:**

```json
{
  "url": "https://stripe.com",
  "max_pages": 10
}
```

### Output

**Example output:**

```json
{
  "emails": [
    { "email": "press@stripe.com", "source_url": "https://stripe.com/press" },
    { "email": "support@stripe.com", "source_url": "https://stripe.com/contact" }
  ],
  "total_found": 2,
  "pages_crawled": 10,
  "meta": { "cache_hit": false, "execution_time_ms": 4200 }
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data fields

| Field | Type | Description |
|---|---|---|
| `emails` | array | Deduplicated list of emails with their source page |
| `emails[].email` | string | The email address found |
| `emails[].source_url` | string | The page where this email was discovered |
| `total_found` | integer | Total unique emails extracted |
| `pages_crawled` | integer | Number of pages actually crawled |

### Pricing / Cost estimation

**$0.04 per successful API call** on Apify.

- 500 successful Apify runs = $20.00

### FAQ & Support

**Is this legal?** This Actor only collects emails that are publicly displayed on web pages — the same emails visible to any visitor. Always comply with local privacy laws (GDPR, CAN-SPAM) when using collected email addresses.

**Known limitations:** Emails hidden behind contact forms or JavaScript obfuscation may not be captured. Cloudflare email protection (`[email protected]`) is decoded automatically.

**Need help?** Open an issue in the Issues tab or contact the support team for custom solutions.

# Actor input Schema

## `url` (type: `string`):

Root URL to start crawling from

## `max_pages` (type: `integer`):

Maximum number of pages to crawl (default 5)

## `cache` (type: `boolean`):

Use cached result if available

## Actor input object example

```json
{
  "url": "https://stripe.com",
  "max_pages": 5,
  "cache": 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 = {
    "url": "https://stripe.com",
    "max_pages": 5,
    "cache": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("automationagents/web-emails").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 = {
    "url": "https://stripe.com",
    "max_pages": 5,
    "cache": True,
}

# Run the Actor and wait for it to finish
run = client.actor("automationagents/web-emails").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://stripe.com",
  "max_pages": 5,
  "cache": true
}' |
apify call automationagents/web-emails --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=automationagents/web-emails",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/CeeF4h7MIaHljHYmy/builds/6DhLZqyufhcLRzyDb/openapi.json
