# Email Extractor & Contact Scraper: Emails, Phones, Socials (`officialfeeds/website-contact-extractor`) Actor

Bulk email extractor and phone number extractor for websites. Get emails (MX-checked, role or personal), phone numbers in international format (+14155xxxxxx), and social media links, one row per website. Pay only for sites with contacts: $4 per 1,000

- **URL**: https://apify.com/officialfeeds/website-contact-extractor.md
- **Developed by:** [Official Feeds](https://apify.com/officialfeeds) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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.

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

## Email Extractor & Contact Scraper: Emails, Phone Numbers and Social Links from Websites

**Bulk email extractor for company websites.** Give it a list of websites or domains and get **one clean row per
website** with the emails, phone numbers and social media profiles published on that site. It visits the homepage and
the pages most likely to hold contact details (Contact, About, Impressum, Team, Support…).

**Pay only for websites where contacts are found: $4 per 1,000 websites.** Unreachable sites, invalid URLs and sites
with no contacts are listed too, for free.

- 📧 **Email extractor**: every email is tagged `role` (info@, sales@) or `personal`, `sameDomain`, `freeProvider`
  (Gmail…) and `mxValid` (the domain really accepts email, checked through DNS).
- 📞 **Phone number extractor**: numbers from click-to-call links and structured data, normalized to international
  E.164 format (`+14155550123`), with the country.
- 🔗 **Social media links**: Facebook, Instagram, LinkedIn, X (Twitter), YouTube, TikTok, Pinterest, Telegram, WhatsApp,
  Threads and GitHub. Share buttons are removed and the company's own profiles come first.
- 🏢 **Company name**, contact page URL and the page where each contact was found.
- ⚡ **Fast and low-cost**: plain HTTP requests, no browser, no proxies; websites are processed in parallel.

### What can you use this contact scraper for?

- **Lead generation**: turn a list of company domains (from a CRM export, a directory or a trade-show list) into a
  contact list with emails, phones and LinkedIn pages.
- **CRM enrichment**: fill in missing emails, phone numbers and social profiles for accounts you already have.
- **Agency and local business outreach**: find the official contact email and phone of dentists, plumbers, law firms,
  restaurants or any small business website.
- **Data cleaning**: check which websites are still online and which email domains still receive mail.

### How to extract emails from a website list

1. Paste your websites, one per line: `acme.com`, `https://www.example.co.uk` or `shop.example.de/kontakt`.
2. Click **Start**. Duplicates (`acme.com`, `www.acme.com`, `https://acme.com`) are merged automatically.
3. Download the results as **CSV, Excel or JSON**, or get them through the Apify API. The **Contacts** table view gives
   flat `primaryEmail` and `primaryPhone` columns for spreadsheets.

#### Input

```json
{
  "websites": ["acme.com", "https://www.example-bakery.co.uk", "shop.example.de/kontakt"],
  "maxPagesPerSite": 5,
  "checkEmailDomains": true,
  "onlySameDomainEmails": false
}
```

| Field | What it does |
|---|---|
| `websites` | Domains or URLs, up to 10,000 per run. |
| `maxPagesPerSite` | Homepage + best contact pages, 1–20 (default 5). |
| `checkEmailDomains` | DNS MX lookup for every email domain. Emails on dead *foreign* domains are dropped. |
| `onlySameDomainEmails` | Keep only emails on the website's own domain. Leave off for small businesses that use Gmail. |
| `maxConcurrency` | Websites processed in parallel (default 10). Each site still gets one request per second at most. |

### Output: one row per website

```json
{
  "input": "acme.com",
  "url": "https://www.acme.com/",
  "domain": "acme.com",
  "status": "ok",
  "companyName": "Acme Plumbing LLC",
  "primaryEmail": "office@acme.com",
  "primaryPhone": "+14155550123",
  "emailsCount": 3,
  "phonesCount": 2,
  "emails": [
    { "email": "office@acme.com", "type": "role", "sameDomain": true, "freeProvider": false, "mxValid": true, "foundOn": "https://www.acme.com/contact" }
  ],
  "phones": [{ "raw": "(415) 555-0123", "e164": "+14155550123", "country": "US", "foundOn": "https://www.acme.com/" }],
  "socials": { "facebook": ["https://www.facebook.com/acme"], "linkedin": ["https://www.linkedin.com/company/acme"] },
  "contactPageUrl": "https://www.acme.com/contact",
  "pagesCrawled": ["https://www.acme.com/", "https://www.acme.com/contact"],
  "crawledAt": "2026-11-22T10:00:00.000Z"
}
```

`status` is one of `ok`, `no_contacts`, `unreachable`, `blocked_by_robots`, `invalid_url`. Rows are saved as each website finishes, so their order can differ from your input order (use `input` to match).
Only `ok` rows are charged:
a row is `ok` when it has an email, a phone number or the company's own social profile. Links to other people's
profiles (a customer's X account, a GitHub library) are still listed, but do not make a site chargeable.

### Why this email scraper gives cleaner results

- **No junk emails**: image file names (`logo@2x.png`), tracking IDs, placeholders (`you@example.com`) and
  Mastodon handles are filtered out.
- **MX-checked**: you see which email domains really accept mail, without sending anything.
- **Role vs personal**: know whether you have `info@` or a named person before you write.
- **Phone numbers you can dial**: validated and in E.164, using the page language, the address in structured data and
  the domain to read local numbers correctly. Numbers that cannot be placed are kept with `e164: null`.

### How it works and what it does not do

- Plain HTTP requests, no browser. Sites that render everything with JavaScript may show fewer results.
- **robots.txt is respected.** Pages that a site disallows are not visited.
- Polite: at most one request per second per website, an honest user agent, no proxies, no logins, no form submissions.
- Some large sites with bot protection answer with HTTP 403. Those rows come back as `unreachable` and are free.
  Small and medium business websites, the usual lead lists, are rarely affected.
- Only addresses written plainly on the page are collected. Obfuscated addresses (`name [at] domain`, Cloudflare email
  protection) are left alone on purpose.
- No SMTP mailbox probing: `mxValid` tells you the domain accepts mail, not that a specific mailbox exists.
- Social profiles: at most 5 per network, the company's own first (sites often link staff or customer profiles too).

### Pricing

Pay per event: **$4 per 1,000 websites with at least one contact found** (an email, a phone number or the company's
own social profile; `site-with-contacts`), plus a tiny start fee
per run. Pages crawled, MX checks and websites with nothing found are included at no extra cost. Set a maximum cost per
run in the run options; the Actor stops cleanly when it is reached.

### FAQ

**How do I scrape emails from a website?** Paste the website (or thousands of them) into `websites` and run. You get
every email published on the homepage and contact pages, with its type and an MX check.

**Is this a phone number extractor too?** Yes. Phone numbers from click-to-call links and structured data are returned
in international format.

**Why did a big site return no email?** Many large companies only offer contact forms. You still get phones and social
profiles when they are published, and you pay nothing if no contact is found.

**Can I give a specific page?** Yes: `acme.com/contact` starts there and also checks the homepage.

**Can I use it with AI agents?** Yes, through the [Apify MCP server](https://mcp.apify.com) in Claude, Cursor or any MCP
client.

### Responsible use

This tool collects contact details that businesses publish on their own websites. You are responsible for how you use
them: follow the anti-spam and privacy laws that apply to you (for example GDPR, CAN-SPAM, CASL), honour opt-outs, and
do not use the data for unsolicited bulk email where that is not allowed. `personal` addresses may be personal data
under GDPR.

# Actor input Schema

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

Company websites or domains, one per line (e.g. acme.com or https://www.acme.com). Duplicates are removed. Up to 10,000 per run.

## `maxPagesPerSite` (type: `integer`):

Homepage plus the most likely contact pages (Contact, About, Impressum, Team…). More pages find more contacts but take longer.

## `checkEmailDomains` (type: `boolean`):

Look up each email domain's mail servers. Emails on dead foreign domains are dropped; the result is in mxValid.

## `onlySameDomainEmails` (type: `boolean`):

Drop emails on other domains (e.g. gmail.com, agency or plugin addresses). Leave off for small businesses that use Gmail.

## `maxConcurrency` (type: `integer`):

How many websites are processed at the same time. Each website is still visited politely (one page per second).

## Actor input object example

```json
{
  "websites": [
    "apify.com",
    "https://www.python.org"
  ],
  "maxPagesPerSite": 5,
  "checkEmailDomains": true,
  "onlySameDomainEmails": false,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `contacts` (type: `string`):

No description

## `summary` (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": [
        "apify.com",
        "https://www.python.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("officialfeeds/website-contact-extractor").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": [
        "apify.com",
        "https://www.python.org",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,officialfeeds/website-contact-extractor"
        }
    }
}
```

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/UbKbvKa66uD6MNIv2/builds/w5xv6EraoFvDN353S/openapi.json
