# Website Contact Scraper: Emails, Phones & Socials (Leads) (`datacraft-tools/website-contact-scraper`) Actor

Extract emails, phone numbers and social profiles (LinkedIn, Instagram, Facebook, X, TikTok, YouTube) from any list of websites or a Google Maps dataset. One row per website, MX-verified emails, $1 per 1,000 pages.

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

## Pricing

from $1.00 / 1,000 page scanneds

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 Scraper: Emails, Phones & Social Profiles

Give it a list of websites and get back **one clean row per company**: email addresses, phone numbers and social profiles (LinkedIn, Instagram, Facebook, X/Twitter, TikTok, YouTube, WhatsApp and more). It checks emails for working mail servers (MX), so you know which ones can actually receive mail.

Works perfectly as the **next step after Google Maps Scraper**: paste the dataset ID of your Maps run and every place's website is scanned automatically.

### Why this contact scraper

| | **This actor** | Typical contact scrapers |
|---|---|---|
| Output | **One row per website** with emails, phones and socials merged | One row per page, you deduplicate yourself |
| Price | **$1 per 1,000 pages** (+ $0.01 per run) | ~$2 per 1,000 pages |
| Email check | **MX verification included, free** | Usually not included |
| Google Maps input | **Paste a dataset ID**, website field auto-detected | Export and re-upload URLs |
| Pages visited | Homepage + contact, about, impressum, team pages only | Often crawls the whole site |

Scanning 1,000 companies with the default 5 pages each costs at most about **$5**. Most sites need only 2–3 pages, so it's usually less.

### What it extracts

- **Emails**: from text, `mailto:` links, Cloudflare-protected addresses and obfuscated forms like `info [at] company [dot] com`. Junk such as image file names, tracking and placeholder addresses is removed.
- **MX check**: `mxValid: true` when the email's domain has mail servers. A `primaryEmail` field picks the best address (own-domain and verified first).
- **Phone numbers**: from `tel:` links and phone numbers written in the page text, validated and normalized to international **E.164** format (`+18889262289`). The country is guessed from the domain (e.g. `.de` → Germany), or you can set a default country.
- **Social profiles**: LinkedIn (company / personal), Facebook, Instagram, X / Twitter, TikTok, YouTube, Pinterest, GitHub, WhatsApp and Telegram. Share buttons and tracking links are ignored.
- **Company name and contact page URL**.

### Use cases

- **Lead generation**: turn a list of company websites into an outreach list with emails and phones.
- **Google Maps leads**: enrich local businesses (restaurants, dentists, agencies, real estate) with emails and Instagram/Facebook pages.
- **Sales prospecting & CRM enrichment**: fill in missing contact data in HubSpot, Pipedrive or Salesforce.
- **Influencer and partner outreach**: find the social profiles behind a list of brands.
- **Market research**: map which competitors are active on which social networks.

### How to use

1. Add websites to **Websites** (full URLs or plain domains like `acme.com`), **or** paste a **Dataset ID** from another actor run, e.g. Google Maps Scraper.
2. Optional: set **Max pages per website** (default 5), turn on **Only emails on the website's own domain**, or set the **default country** for phone numbers.
3. Click **Start**. Download the results as **CSV, Excel or JSON**, or send them to Google Sheets, Make, Zapier or n8n.

### Input example

```json
{
  "startUrls": ["https://stripe.com", "bakerhughes.com"],
  "maxPagesPerWebsite": 5,
  "verifyEmails": true
}
```

Using Google Maps results:

```json
{
  "datasetId": "YOUR_GOOGLE_MAPS_DATASET_ID",
  "maxPagesPerWebsite": 4
}
```

### Output example

```json
{
  "website": "https://www.bakerhughes.com/",
  "domain": "bakerhughes.com",
  "companyName": "Baker Hughes",
  "primaryEmail": "corporatesecretary@bakerhughes.com",
  "emails": [
    { "email": "corporatesecretary@bakerhughes.com", "sameDomain": true, "mxValid": true },
    { "email": "mysupporthr@bakerhughes.com", "sameDomain": true, "mxValid": true }
  ],
  "primaryPhone": "+17134398600",
  "phones": ["+17134398600"],
  "socials": {
    "linkedin": ["https://www.linkedin.com/company/bakerhughes"],
    "instagram": ["https://www.instagram.com/bakerhughesco"],
    "x": ["https://twitter.com/bakerhughesco"],
    "youtube": ["https://www.youtube.com/channel/UCxhgTNB0eD0xUeeJnP9Ow4g"]
  },
  "contactPageUrl": "https://www.bakerhughes.com/contact-us",
  "pagesScanned": ["https://www.bakerhughes.com/", "https://www.bakerhughes.com/contact-us"]
}
```

When the input comes from a dataset, the original place name, address and phone are kept in `source`, so you can match rows back.

### Pricing

Pay per event: **$0.01 per run** plus **$0.001 per page scanned** ($1 per 1,000 pages). There's no monthly fee and no extra charge for MX checks. Websites that fail to load cost nothing beyond the attempt.

### FAQ

**Is it legal to scrape contact details?** The actor only reads publicly available pages and respects robots.txt by default. Personal data is protected by laws like GDPR and CCPA; make sure you have a legitimate reason to process it and follow anti-spam rules when you send outreach.

**Why are some websites missing emails?** Some companies only offer a contact form, or show the email as an image. Try raising *Max pages per website* to 8–10.

**Does it run JavaScript?** No. It uses fast HTTP requests, which is why it's cheap. Contact details are in the HTML on the vast majority of business websites. Websites that block automated access return an `error` field and cost nothing extra.

**Can I schedule it?** Yes. Use Apify Schedules and webhooks to enrich new leads automatically.

# Actor input Schema

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

Websites or domains to scan (e.g. https://acme.com or acme.com). One result row per website.

## `datasetId` (type: `string`):

Read websites from another run's dataset, e.g. Google Maps Scraper results. The 'website' field is detected automatically.

## `datasetUrlField` (type: `string`):

Leave empty to auto-detect (website, url, domain...).

## `datasetLimit` (type: `integer`):

Maximum number of dataset items to read.

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

Homepage + contact, about, impressum, team pages. 3-5 finds contacts on most sites.

## `verifyEmails` (type: `boolean`):

Adds mxValid: true when the email's domain has mail servers. Free.

## `sameDomainEmailsOnly` (type: `boolean`):

Skip emails on other domains (e.g. gmail.com, agency addresses).

## `defaultCountry` (type: `string`):

Two-letter code used when the domain has no country TLD.

## `respectRobotsTxt` (type: `boolean`):

Skip pages that robots.txt disallows.

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

How many websites are scanned in parallel.

## Actor input object example

```json
{
  "startUrls": [
    "https://stripe.com",
    "bakerhughes.com"
  ],
  "datasetLimit": 10000,
  "maxPagesPerWebsite": 5,
  "verifyEmails": true,
  "sameDomainEmailsOnly": false,
  "defaultCountry": "US",
  "respectRobotsTxt": true,
  "maxConcurrency": 10
}
```

# 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://stripe.com",
        "bakerhughes.com"
    ]
};

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

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

```

## MCP server setup

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