# Website Contact & Email Extractor — Lead Enrichment (`drain54/website-contact-extractor`) Actor

Extract verified business emails, phone numbers, and social media links (LinkedIn, Twitter/X, Instagram, Facebook, GitHub, YouTube) from any domain or contact pages.

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

## Pricing

from $5.00 / 1,000 enriched company contact profiles

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

## Website Contact & Email Extractor — Lead Enrichment ✉️

Extract verified business email addresses, direct phone numbers, and official social media profiles (LinkedIn, Twitter/X, Instagram, Facebook, GitHub, YouTube) from any company website or domain name.

Designed specifically for **B2B sales teams, cold email outreach, recruitment agencies, and lead enrichment pipelines**.

***

### ⚡ What does Website Contact Extractor do?

Given a list of company website domains (e.g., from Google Maps, LinkedIn, or CSV directory lists), this Actor:

1. **Scans the Homepage** for contact information, mailto links, phone numbers, and social media handles.
2. **Auto-Discovers Subpages:** Automatically locates and crawls `/contact`, `/about`, `/team`, `/help`, and `/impressum` subpages where real decision-maker emails and direct phone numbers are located.
3. **Cleanses & Validates:** Filters out image filenames (`logo@2x.png`), CSS fonts, and tracking scripts, returning only verified contact data.
4. **Aggregates Multi-Page Data:** Produces **one clean, deduplicated JSON profile per domain**.

***

### 🚀 Key Features & Extracted Data

| Data Field | Description | Example Output |
|---|---|---|
| `domain` | Clean domain hostname | `stripe.com` |
| `companyName` | Extracted company or brand name | `Stripe` |
| `primaryEmail` | Most prominent business email | `info@stripe.com` |
| `emails` | List of all verified email addresses | `["info@stripe.com", "sales@stripe.com", "press@stripe.com"]` |
| `primaryPhone` | Formatted contact phone number | `+1 888 963 8955` |
| `phoneNumbers` | All extracted phone numbers | `["+1 888 963 8955"]` |
| `socialLinks.linkedin` | Official LinkedIn company profile | `https://www.linkedin.com/company/stripe` |
| `socialLinks.twitter` | Official Twitter / X profile | `https://twitter.com/stripe` |
| `socialLinks.instagram` | Official Instagram profile | `https://instagram.com/stripe` |
| `socialLinks.facebook` | Official Facebook profile | `https://facebook.com/stripe` |
| `socialLinks.youtube` | Official YouTube channel | `https://youtube.com/@stripe` |
| `socialLinks.github` | Official GitHub organization | `https://github.com/stripe` |
| `pagesScannedCount`| Number of pages crawled | `4` |

***

### 💡 How to Use

1. Enter one or more website URLs or domains in the **Websites or Domains** input field (e.g. `shopify.com`, `https://apify.com`).
2. Adjust **Max Pages per Domain** (default: 4 pages is the sweet spot for speed and completeness).
3. Click **Start** or trigger via Apify API / Webhook.
4. Export your verified contact database in **CSV, Excel, or JSON**.

***

### 📥 Sample Input

```json
{
  "startUrls": [
    "https://apify.com",
    "stripe.com",
    "airbnb.com"
  ],
  "maxPagesPerDomain": 4,
  "extractEmails": true,
  "extractPhones": true,
  "extractSocials": true
}
```

***

### 📤 Sample Output

```json
{
  "domain": "apify.com",
  "websiteUrl": "https://apify.com",
  "companyName": "Apify",
  "primaryEmail": "support@apify.com",
  "emails": [
    "support@apify.com",
    "sales@apify.com",
    "press@apify.com"
  ],
  "primaryPhone": "+1 415 800 3955",
  "phoneNumbers": [
    "+1 415 800 3955"
  ],
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/apifytech",
    "twitter": "https://twitter.com/apify",
    "instagram": "https://instagram.com/apifytech",
    "facebook": "https://facebook.com/apifytech",
    "youtube": "https://youtube.com/@apify",
    "github": "https://github.com/apify"
  },
  "pagesScannedCount": 3,
  "pagesScanned": [
    "https://apify.com",
    "https://apify.com/contact",
    "https://apify.com/about"
  ],
  "hasContacts": true,
  "status": "success"
}
```

***

### 🤝 Perfect Combinations

Pair this Actor with **`drain54/google-maps-leads-scraper`**!

1. Run Google Maps Scraper to get 500 local business websites.
2. Feed those websites into **Website Contact Extractor** to get the owners' direct emails and LinkedIn profiles.
3. Launch your automated outreach campaign!

# Actor input Schema

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

List of website URLs or domain names to extract contacts from (e.g. stripe.com, https://apify.com).

## `maxPagesPerDomain` (type: `integer`):

Maximum number of subpages to scan per website (e.g. Homepage, Contact, About, Team).

## `extractEmails` (type: `boolean`):

Extract all business email addresses from mailto links and page text.

## `extractPhones` (type: `boolean`):

Extract all formatted phone numbers and tel links.

## `extractSocials` (type: `boolean`):

Extract LinkedIn, Twitter/X, Instagram, Facebook, GitHub, and YouTube profile links.

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

Proxy settings to bypass anti-scraping protections.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com"
  ],
  "maxPagesPerDomain": 4,
  "extractEmails": true,
  "extractPhones": true,
  "extractSocials": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "startUrls": [
        "https://apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("drain54/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 = { "startUrls": ["https://apify.com"] }

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

```

## MCP server setup

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