# Website Contact Scraper & Email Extractor: Emails & Phones (`spokentext/website-contact-scraper`) Actor

Website email extractor and contact scraper: paste a list of websites and get one clean row per site with emails, phone numbers, LinkedIn, Facebook, Instagram and more. Pay per website, and only when contacts are found. No duplicates, no login, respects robots.txt.

- **URL**: https://apify.com/spokentext/website-contact-scraper.md
- **Developed by:** [clement](https://apify.com/spokentext) (community)
- **Categories:** Lead generation, Automation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 website with contacts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What is Website Contact Scraper?

**Website Contact Scraper** turns a list of websites into a clean list of **business contacts**: **emails, phone numbers and social profiles**, with one row per website. Paste your websites, click Start, and export the results to a spreadsheet or your CRM.

You **pay per website, and only when contacts are found**. A site with nothing on it, or a site that is down, costs nothing.

Try it now: the example below reads two websites in a few seconds.

### What can this contact scraper do?

- **One row per website.** Everything found across a site is merged into a single row, so there is nothing to deduplicate afterwards.
- **Goes straight to the right pages.** After the home page, it visits the contact, legal notice, about and team pages, in the main European languages.
- **Finds hidden addresses.** It reads mailto links, tel links, text such as `name [at] site.com` and addresses protected by Cloudflare.
- **Clean results.** File names that look like emails, placeholder addresses and scripts are filtered out. The site's own addresses and role addresses such as `info@` come first.
- **Social profiles:** LinkedIn, Facebook, Instagram, X (Twitter), YouTube, TikTok, Pinterest and GitHub, without share buttons.
- **Respects robots.txt.** Pages a website asks crawlers to avoid are skipped.
- **Fast.** About 10 websites at a time. In our tests, 8 websites took 3 seconds.

Because it runs on Apify, you also get:

- **Scheduling:** refresh your contact list every month.
- **API access:** start runs and read results from your own code.
- **Integrations:** send results to Make, Zapier, n8n, Google Sheets and more.
- **Monitoring:** get alerted when a run fails or returns less than expected.
- **Exports:** download results as JSON, CSV or Excel.

### What data can you extract from a website?

| Data | Example field |
|---|---|
| Email addresses | `emails` |
| Phone numbers | `phones` |
| Social profiles | `linkedin`, `facebook`, `instagram`, `twitter`, `youtube`, `tiktok`, `pinterest`, `github` |
| Site name and language | `name`, `language` |
| Pages read | `pagesVisited`, `pages` |

### How to find contacts from a list of websites

1. Paste your websites into **Websites**, one per line, with or without `https://`.
2. Optionally change **Maximum pages per website**. More pages find more contacts and take longer. The price does not change.
3. Turn on **Only role addresses** if you want `info@` or `sales@` addresses and no named people.
4. Click **Start**. When the run finishes, open the **Output** tab and download the results as CSV, Excel or JSON.

### How much does it cost to scrape contacts from websites?

You pay **once per website where contacts are found**, however many pages were read. Websites with no contacts, unreachable websites and duplicates cost nothing. The price depends on your Apify Store discount tier:

| Store discount tier | Price per website with contacts |
|---|---|
| Free plan | $0.003 |
| Bronze | $0.0027 |
| Silver | $0.0024 |
| Gold and above | $0.0021 |

At the Bronze price:

| Websites with contacts | Cost |
|---|---|
| 100 | $0.27 |
| 1,000 | $2.70 |
| 10,000 | $27.00 |

Set the run's maximum charge to cap spending: the Actor stops before exceeding it.

### Input example

```json
{
    "websites": [
        "python.org",
        "crawlee.dev"
    ],
    "maxPagesPerWebsite": 5
}
```

| Field | Meaning |
|---|---|
| `websites` | One website per line, up to 10,000 per run |
| `maxPagesPerWebsite` | Pages to read per website, from 1 to 20 |
| `genericEmailsOnly` | Keep only role addresses such as `info@` |

### Output example

A real result for the input above, with the list of pages shortened. One dataset item per website:

```json
{
    "website": "https://python.org/",
    "domain": "python.org",
    "status": "ok",
    "name": "Python.org",
    "language": "en",
    "emails": [
        "psf@python.org",
        "python-announce@python.org",
        "webmaster@python.org"
    ],
    "phones": [],
    "linkedin": "https://www.linkedin.com/company/python-software-foundation",
    "twitter": "https://twitter.com/ThePSF",
    "github": "https://github.com/python/cpython/issues",
    "pagesVisited": 5,
    "pages": [
        "https://www.python.org/",
        "https://www.python.org/about/help/"
    ]
}
```

Fields with nothing to report are left out. Websites that cannot be read produce an item with `"status": "error"` and an `error` message saying why, and are not charged.

### Use cases

- **Lead generation:** turn a list of company websites into a list of contacts.
- **Sales prospecting:** enrich a CRM or a spreadsheet with emails and phone numbers.
- **Partnerships and outreach:** find who to write to at each company.
- **Market research:** map the social presence of a list of competitors.
- **Agencies:** clean and complete client lists in bulk.

### Tips for better results

- **Keep 5 pages per website.** Contact details are usually on the first pages, and raising the limit rarely adds much.
- **Use a clean list.** Duplicates are merged and only the first link to a site is kept.
- **Pair it with a directory or maps scraper** to go from a business category to a list of websites, then to contacts.
- **Turn on Only role addresses** when you do not need named people.

### FAQ

#### How do I extract emails from a list of websites?

Paste the websites into **Websites** and start the run. Each row of the results lists the emails, phones and social profiles found on that site.

#### Am I charged if no contact is found?

No. You pay only for websites where at least one email, phone number or social profile was found.

#### Does it verify that the emails work?

No. It reports the addresses published on the website. Use an email verifier before a large mailing.

#### Why was a website not read?

Some websites block automated visitors, return an error or need a login. Those rows say why, and they are not charged.

#### Does it work on websites built with JavaScript?

It reads the page as the server sends it. Sites that load all their content with JavaScript may return few contacts or none.

#### Is it legal to scrape contact details?

This Actor only reads pages that are publicly available and respects robots.txt. But results can contain personal data, such as the address of a named person, protected by laws like the GDPR. You are responsible for having a legal basis to collect and use it, and for rules on unsolicited messages in your country. **Only role addresses** leaves out named people's addresses. If you are unsure, ask a lawyer.

#### Can I use it from my own code, Make, Zapier or n8n?

Yes. Call it through the Apify API (see the examples below), or connect it with Apify's integrations for Make, Zapier and n8n.

### Limits

- Publicly visible pages only: no login, no forms.
- No JavaScript rendering, so content loaded later in the browser is not seen.
- Phone numbers in text are recognised when written with an international prefix. `tel:` links work in any format.
- Addresses inside images are not read.
- Up to 10,000 websites and 20 pages per website.

### Other Actors you may find useful

| Actor | What it does |
|---|---|
| [Keyword Search Volume](https://apify.com/spokentext/keyword-search-volume) | Google search volume, CPC and difficulty for your keywords |
| [Keyword Ideas Generator](https://apify.com/spokentext/keyword-ideas) | Long-tail keyword ideas from a seed keyword |
| [Meta AI Brand Visibility Tracker](https://apify.com/spokentext/meta-ai-brand-visibility) | Whether Meta AI recommends your brand |
| [PDF & Image to Text](https://apify.com/spokentext/pdf-image-to-text-ocr) | Text from PDFs, scans, photos and screenshots |

### Run it from the API

With cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/spokentext~website-contact-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "websites": ["python.org", "crawlee.dev"] }'
```

With Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("spokentext/website-contact-scraper").call(run_input={"websites": ["python.org", "crawlee.dev"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["domain"], item.get("emails"), item.get("phones"))
```

This Actor is an independent tool. It is not affiliated with or endorsed by LinkedIn, Facebook, Instagram, X, YouTube, TikTok, Pinterest or GitHub; their names only describe the profile links it finds.

### Feedback

Something failed or gave a wrong result? Open an issue in the **Issues** tab of this page, with the error message from your results: every report is read and fixed. If the Actor saved you time, a rating helps others find it.

# Actor input Schema

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

One website per line, with or without https://, such as python.org. Up to 10,000 per run. Duplicates are merged.

## `maxPagesPerWebsite` (type: `integer`):

The home page, then the pages most likely to hold contacts: contact, legal notice, about, team. More pages find more contacts and take longer. The price does not change.

## `genericEmailsOnly` (type: `boolean`):

Keep only addresses such as info@ or sales@ and leave out those of named people, which are personal data under laws like the GDPR.

## Actor input object example

```json
{
  "websites": [
    "python.org",
    "crawlee.dev"
  ],
  "maxPagesPerWebsite": 5,
  "genericEmailsOnly": false
}
```

# Actor output Schema

## `contacts` (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 = {
    "websites": [
        "python.org",
        "crawlee.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("spokentext/website-contact-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": [
        "python.org",
        "crawlee.dev",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("spokentext/website-contact-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": [
    "python.org",
    "crawlee.dev"
  ]
}' |
apify call spokentext/website-contact-scraper --silent --output-dataset

```

## MCP server setup

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