# Lead Finder:: Extract Emails from any website (`scraplib/lead-finder-extract-emails-from-any-website`) Actor

Extract email addresses from any website. Whether you're scraping a single company website or automating bulk email collection across thousands of URLs, this actor ensures high accuracy and scalability.

- **URL**: https://apify.com/scraplib/lead-finder-extract-emails-from-any-website.md
- **Developed by:** [Scraplib](https://apify.com/scraplib) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Security:** Full permissions
- **Stats:** 261 total users, 2 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $10.00 / 1,000 results

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

## Extract Emails from Websites

![Extract Emails from Websites](https://upload.wikimedia.org/wikipedia/commons/7/74/Email_icon_crystal.png)

Turn a list of website addresses into a list of email addresses. Give the Actor the websites you
care about and it opens each one, follows the pages that usually carry contact details — contact,
about, team, locations — and returns every email address it finds, together with the pages it
scanned. Pages that build their content with JavaScript are rendered in a headless browser, so
addresses that never appear in the raw HTML are still picked up.

### Key Features

- **Email extraction from any website**: give it a domain and get back the addresses published on it.
- **Contact page discovery**: internal links such as `/contact`, `/about`, `/team` and `/locations` are followed automatically.
- **JavaScript rendering fallback**: when a page returns no addresses as plain HTML, it is rendered in a headless browser and scanned again.
- **Placeholder filtering**: template addresses such as `name@domain.com` or `user@example.com` are dropped.
- **Bulk input**: pass one URL or thousands; websites are scanned concurrently.
- **Audit trail**: every item lists the pages that were scanned for it.
- **Bare domains accepted**: `example.com` works as well as `https://example.com`.

### Who Is This For

- Sales teams building contact lists from a set of target company websites.
- Agencies and recruiters looking for the right inbox at a company.
- Marketers enriching an existing account list with reachable addresses.
- Researchers collecting published contact information for a set of organizations.
- Developers who need website contact data as JSON, CSV or Excel through the Apify API.

### Common Use Cases

- **Lead list building**: feed in company domains from a directory or a Google Maps export and collect their public addresses.
- **CRM enrichment**: fill in a contact address for accounts that only have a website on file.
- **Outreach and link building**: find the address published by a blog, publisher or partner site.
- **Partner and supplier research**: gather contact details across a list of vendors in one run.
- **Recruitment**: reach the careers or HR inbox listed on a company site.

### Input

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `urls` | array | Website URLs to extract emails from. One URL or many; bare domains are accepted. | 3 example websites |
| `startUrls` | array | Optional alternative to `urls`, for feeding websites from another Actor, a file or a Google Sheet. URLs from both fields are scanned. | empty |
| `maxItems` | integer | Stop after this many websites have been scanned. Each website yields at most one dataset item. Leave empty to scan every URL you provide. | no limit |
| `proxyConfiguration` | object | Proxy settings used for the website requests. Residential proxies are used by default because many business websites block datacenter IP addresses. | Apify residential proxy |

Example input:

```json
{
  "urls": [
    "https://www.newtondentalassociates.com",
    "https://apify.com"
  ],
  "maxItems": 5,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### Output

Each dataset item describes one website. Websites where no address is found are not stored.

| Field | Type | Description |
| --- | --- | --- |
| `url` | string | The website URL you provided |
| `emails` | array | Unique email addresses found on the scanned pages, lower-cased |
| `scanned_pages` | array | The pages that were opened for this website |
| `status` | string | `success`, or `error` when the website could not be scanned |
| `error` | string or null | Error detail when `status` is `error`, otherwise `null` |

Example item:

```json
{
  "url": "https://www.newtondentalassociates.com",
  "emails": [
    "nda@newtondentalassociates.com"
  ],
  "scanned_pages": [
    "https://www.newtondentalassociates.com",
    "https://www.newtondentalassociates.com/contact",
    "https://www.linkedin.com/company/5049164?trk=tyah&trkInfo=clickedVertical%3Acompany%2Cidx%3A1-1-1%2CtarId%3A1433182991505%2Ctas%3ANewton%20Dental%20Associates",
    "https://www.newtondentalassociates.com/our-team"
  ],
  "status": "success",
  "error": null
}
```

### Pricing

This Actor is priced per result: you pay for each website that is stored in the dataset with at
least one email address, and nothing for websites where no address is found. The current price per
result, and per 1,000 results, is shown on the Pricing tab of the Actor page on the Apify Store.

### FAQ

**What counts as a result?**
One website that produced at least one email address. A website with no addresses is not stored
and is not charged.

**Can I pass a domain without `https://`?**
Yes. `example.com` is requested as `http://example.com` and redirects are followed.

**Which pages are scanned?**
The URL you provide, plus the links on it whose path suggests contact details, such as `/contact`,
`/about`, `/team`, `/staff`, `/support` and `/locations`. The pages actually opened are listed in
`scanned_pages` for every item.

**Why did a website return no emails?**
Some sites publish no address at all, hide it behind a contact form, or serve it as an image. The
Actor only collects addresses that are present in the page text or in the rendered page.

**Are obfuscated addresses handled?**
Addresses written in the normal `name@domain.tld` form are found, including those revealed by
JavaScript. Forms such as "name \[at] domain \[dot] com" are not converted.

**Why are residential proxies the default?**
Many business websites block datacenter IP ranges. You can switch the proxy off or choose another
group in the input.

**How do I export the results?**
Open the run's dataset on Apify and download it as JSON, CSV, Excel or XML, or fetch it through the
Apify API.

**Is this legal?**
The Actor only collects contact information that a website publishes openly. You are responsible
for using the data in line with applicable laws, including GDPR and anti-spam rules such as CAN-SPAM.

### More Scrapers by Scraplib

- [LinkedIn Company Scraper](https://apify.com/scraplib/linkedin-company-scraper) — public LinkedIn company profiles as structured JSON.
- [Google Maps Contact & Social Media Extractor](https://apify.com/scraplib/google-maps-lead-generation) — contact and social details for places on Google Maps.
- [Extract Emails from Websites](https://apify.com/scraplib/lead-finder-extract-emails-from-any-website) — this Actor.
- [Twitter User Timeline](https://apify.com/scraplib/x-user-profile-tweets-scraper) — profile details and tweets for X users.
- [YouTube Channel Scraper](https://apify.com/logical_scrapers/youtube-channel-scraper) — channel details and video listings from YouTube.

### Contact & Support

Found a bug or need a new field? Open an issue on the Actor's Issues tab on the Apify Store.
If this Actor saves you time, please leave a ⭐ rating on the Apify Store. Ratings keep it maintained.

# Actor input Schema

## `urls` (type: `array`):

List of website URLs to extract emails from. Can be a single URL or multiple URLs.

## `startUrls` (type: `array`):

Optional alternative to the URLs field, for feeding websites from another Actor, a file or a Google Sheet. URLs from both fields are scanned.

## `maxItems` (type: `integer`):

Stop after this many websites have been scanned. Each website yields at most one dataset item. Leave empty to scan every URL you provide.

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

Proxy settings used for the website requests. Residential proxies are used by default because many business websites block datacenter IP addresses.

## Actor input object example

```json
{
  "urls": [
    "https://www.newtondentalassociates.com",
    "https://apify.com",
    "https://www.python.org"
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "urls": [
        "https://www.newtondentalassociates.com",
        "https://apify.com",
        "https://www.python.org"
    ],
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraplib/lead-finder-extract-emails-from-any-website").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 = {
    "urls": [
        "https://www.newtondentalassociates.com",
        "https://apify.com",
        "https://www.python.org",
    ],
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scraplib/lead-finder-extract-emails-from-any-website").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 '{
  "urls": [
    "https://www.newtondentalassociates.com",
    "https://apify.com",
    "https://www.python.org"
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call scraplib/lead-finder-extract-emails-from-any-website --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraplib/lead-finder-extract-emails-from-any-website"
        }
    }
}
```

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/Xcq44FPd91fH5ilgr/builds/pgTrC0Z0GUw3oIt9v/openapi.json
