# Website Contact Scraper: Emails, Phones & Social Links (`badr_xba/website-contact-scraper`) Actor

Extract public business emails, phone numbers and social media links from any website. Contact pages found automatically, robots.txt respected, pay per result.

- **URL**: https://apify.com/badr_xba/website-contact-scraper.md
- **Developed by:** [Badr Bouargan](https://apify.com/badr_xba) (community)
- **Categories:** Lead generation, 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.80 / 1,000 website 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

## Website Contact Scraper: Emails, Phones & Social Links

**Turn a list of company websites into a clean contact list.** Give websites or domains; get **one row per website**
with the public **e-mails**, **phone numbers**, **social media links** and **contact form** the company publishes.
**You pay only for websites where a public e-mail or phone was found.** Empty, refused or unreachable websites are
free.

![Website Contact Scraper](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/wcs-wcs-1-cover.png)

### ✅ What it does

- Reads the **home page** and the most useful pages of each website: **contact, imprint / legal notice, about, team,
  support** (found automatically, in 10+ languages), up to 5 pages per site by default.
- Returns **one row per website**:
  - **E-mails**, best first (own domain, role addresses like `info@` / `contact@`, contact page first), each with its
    source page and type (role, business, personal-looking, other).
  - **Phone numbers** in international E.164 form (from `tel:` links and structured data).
  - **Social links**: LinkedIn (company pages), Facebook, Instagram, X, YouTube, TikTok, Pinterest, GitHub, Threads,
    Vimeo, Telegram, Snapchat. Share buttons and personal LinkedIn profiles are ignored. Links are never opened.
  - **Contact form** detected (URL and fields). Forms are never submitted.
  - **Company name, country, business type, language** when the website publishes them.
- Hidden e-mails are revealed (Cloudflare protection, `mailto:` links, `name [at] site [dot] com`, HTML entities,
  JSON-escaped text). **Fake addresses are left out**: form placeholders (`e.g. name@gmail.com`), template addresses
  (`you@yourdomain.com`), example domains, image file names, tracking IDs.
- **robots.txt is respected** on every website, pages are read politely (at least 1 second apart per site).

![Input form](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/wcs-wcs-2-input.png)

### 💡 Use cases

- **Lead lists**: add e-mails and phones to companies you found on Google Maps, in a directory or a CRM export.
- **Sales and partnerships**: reach the right shared inbox (`sales@`, `partners@`, `press@`).
- **Data enrichment**: complete missing contact fields and social profiles in your database.
- **Market research**: see which companies publish a phone, a contact form or social accounts.

### ▶️ How to use it

1. Paste websites or domains in **Websites** (one per line), or give a **CSV / JSON file URL**, or **pick a dataset**
   (for example the results of a Google Maps Actor: the `website` field is found automatically).
2. Keep the defaults or set the number of pages per website and the e-mail filters.
3. Click **Start**. Download the results as **Excel, CSV, JSON** or use the API.

Empty input runs a short demo on 3 example websites.

#### Input example

```json
{
  "websites": ["https://apify.com", "baltaire.com", "adcentreprise.fr"],
  "maxPagesPerWebsite": 5,
  "verifyEmails": false
}
```

#### Output example (real row, demo run of 22 Nov 2026, shortened)

```json
{
  "website": "https://apify.com/",
  "domain": "apify.com",
  "status": "OK",
  "companyName": "Apify",
  "primaryEmail": "hello@apify.com",
  "emails": [
    {"email": "hello@apify.com", "emailType": "role", "sourcePageType": "contact", "confidence": "high"},
    {"email": "support@apify.com", "emailType": "role", "sourcePageType": "contact", "confidence": "high"}
  ],
  "emailCount": 2,
  "phones": [],
  "socialProfiles": {"github": "https://github.com/apify", "linkedin": "https://www.linkedin.com/company/apify",
                     "x": "https://x.com/apify", "tiktok": "https://www.tiktok.com/@apifytech"},
  "country": "CZ",
  "chargedInRun": true
}
```

### 📊 Real results

On 20 London dentist websites taken from a Google Maps run (22 Nov 2026, 23 seconds): **18 websites with a contact**,
13 with an e-mail, 15 with a phone, 16 with social links, 14 with a contact form.

![Overview table](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/wcs-wcs-3-results.png)

### 🏷️ Statuses

| Status | Meaning | Price |
|---|---|---|
| `OK` | at least one public e-mail or phone number | charged once per website and run |
| `NO_CONTACT` | read, but no public e-mail or phone (social links may still be listed) | free |
| `ROBOTS_DISALLOWED` | the website's robots.txt does not allow reading | free, never read |
| `BLOCKED` | the website refused the reading (HTTP 401 / 403 / 429) | free, never bypassed |
| `UNREACHABLE` | domain not found, timeout, server error, parked domain | free |

Only `OK` rows are written by default. Turn on **Add a free row for websites without contact** to see the others.
Every failed input is also listed in the **Inputs that failed** file with a clear code.

![Visual report](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/wcs-wcs-4-visual-report.png)

### 💰 Pricing

Pay per event, no start fee. See the **Pricing tab** for the current prices.

- **Website contact**: charged **once per website** where at least one public e-mail or phone was found, whatever the
  number of e-mails, phones and links in the row.
- **E-mail check** (optional add-on, `verifyEmails`): domain and MX record lookup for each delivered e-mail; charged
  only when the DNS gives an answer. An MX record shows that the domain can receive mail; it does **not** prove that
  one mailbox exists (no SMTP connection is made).
- **Free**: websites without contact, refused or unreachable websites, duplicates in your list, excluded e-mails.
- **Maximum cost per run** is respected: the run stops cleanly and keeps every row already delivered.

![Pricing](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/wcs-wcs-6-pricing.png)

### 🔌 API and integrations

Run it from your code, a schedule, Make, Zapier, n8n or the Apify MCP server.

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("badr_xba/website-contact-scraper").call(run_input={"websites": ["apify.com", "baltaire.com"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["domain"], row["primaryEmail"], row["primaryPhone"])
```

**Node.js**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('badr_xba/website-contact-scraper').call({ websites: ['apify.com', 'baltaire.com'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((row) => console.log(row.domain, row.primaryEmail, row.primaryPhone));
```

**From Google Maps**: run [Google Maps Scraper](https://apify.com/badr_xba/google-maps-scraper),
[Google Maps France](https://apify.com/badr_xba/google-maps-france) or
[Google Maps Business Leads](https://apify.com/badr_xba/google-maps-business-leads), then pick its dataset in
**Apify dataset ID**.

![Ready-made tasks](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/wcs-wcs-5-use-cases.png)

### 📁 Run files

- **Overview**, **All contacts** and **Company details** table views, and every field in Excel / CSV / JSON.
- **Visual report**: one card per website with contacts, filters by country and business type.
- **Run summary**: websites read, success rate, contacts found, excluded e-mails by reason, billing, stop reason.
- **Websites (free)**: one line per website with its status and number of pages read.
- **Inputs that failed (not charged)**: each with a stable code (INVALID_INPUT, DNS_NOT_FOUND, ROBOTS_DISALLOWED,
  BLOCKED, TIMEOUT...).

### ❓ FAQ

**How long does it take?** About 1 to 3 seconds per website with 10 websites in parallel: 20 websites took 23 seconds
in our tests, 1,000 websites take roughly 3 to 15 minutes depending on the sites.

**Does it guess e-mails?** No. Only addresses published on the company's own pages are returned. Nothing is guessed or
generated.

**Why are some websites without contact?** Many small websites only show a contact form or a social page, or load
their content with JavaScript (see Limits). These websites are free.

**Are personal e-mails returned?** Addresses that look personal (`firstname.lastname@`, private webmail) are left out
by default. You can keep them (marked `personal-looking`) if you have a legal basis to process them.

**Is it legal?** The Actor reads only public pages that robots.txt allows, without login, and never submits forms. You
are responsible for using the data in line with the law that applies to you (GDPR, CAN-SPAM, ePrivacy...): for
example, do not send unsolicited marketing where it requires consent.

**Can I use a proxy?** Websites are read directly by default. A website that refuses the server is read once more
through the Apify datacenter proxy, with the same robots.txt rules. You can also choose a proxy in the input.

### ⚠️ Limits

- No browser in this version: contacts written only by JavaScript after the page loads are not seen.
- Phone numbers are taken from `tel:` links and structured data, not from free text.
- Social links are listed as published; they are not opened or checked.
- The e-mail check add-on is a DNS check, not a mailbox (SMTP) verification.
- Websites protected by a CAPTCHA or an anti-bot wall are reported as `BLOCKED` and never bypassed.

### 🔗 Related Actors

- [Business Email Finder](https://apify.com/badr_xba/business-email-finder): one row per e-mail.
- [Google Maps Business Leads](https://apify.com/badr_xba/google-maps-business-leads): places with contacts and leads.
- [Google Maps Scraper](https://apify.com/badr_xba/google-maps-scraper): places, reviews and website contacts.

Questions or ideas? Open an issue on the Issues tab. Not affiliated with any of the websites read or the platforms
linked.

# Actor input Schema

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

One website URL or domain per line (example.com, https://www.example.com/contact, münchen.de). Paths are removed and duplicates are read once. Empty input = a demo run with the 3 examples.

## `websitesFile` (type: `string`):

Public URL (or Apify key-value store record URL) of a CSV or JSON file. The column / field named website, domain or url is found automatically (or set it below).

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

Pick (or paste the ID of) an existing dataset, for example the output of a Google Maps Actor run (field "website"). Read only.

## `websiteField` (type: `string`):

Name of the field holding the website in the file or dataset (default: detected, for example website, domain or url).

## `maxWebsites` (type: `integer`):

The run stops cleanly after this many websites.

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

Home page included. Contact, imprint, about, team and support pages are read first.

## `pageTypes` (type: `array`):

Pages read after the home page, in this order of priority.

## `maxEmailsPerWebsite` (type: `integer`):

The best e-mails of each website are kept first (own domain, role addresses like info@ or contact@, found on a contact or imprint page). The price is per website, not per e-mail.

## `stopAfterWebsitesWithoutContact` (type: `integer`):

Protects your time and platform usage when a list contains no published e-mails or phones.

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

Each website is still read politely (at least 1 second between two pages of the same site).

## `excludePersonalLookingEmails` (type: `boolean`):

firstname.lastname@ or private webmail addresses are left out and counted in the run summary.

## `onlyEmailsOnWebsiteDomain` (type: `boolean`):

Keep only addresses @ the company's domain (leaves out web agencies, Gmail…).

## `excludeDisposable` (type: `boolean`):

On (default): addresses on known throw-away e-mail domains (public CC0 list) are left out. They are counted in RUN_SUMMARY.

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

Looks up the domain and the mail server (MX) of each delivered e-mail and adds domainExists, mxFound and checkStatus. Charged per e-mail that gets an answer (event "E-mail check"); DNS timeouts are free. An MX record says the domain receives mail; it does not prove that one mailbox exists (no SMTP connection is made).

## `excludeNoMx` (type: `boolean`):

Needs the add-on above. On: e-mails whose domain publishes no mail server are left out.

## `includeWebsitesWithoutContact` (type: `boolean`):

One free row per website without a public e-mail or phone (status NO_CONTACT, BLOCKED, ROBOTS_DISALLOWED or UNREACHABLE), with its social links and company details when found.

## `failRunOnError` (type: `boolean`):

By default the run succeeds and failed inputs are listed in FAILED_INPUTS (never charged).

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

Websites are read directly by default (polite pace, robots.txt respected).

## Actor input object example

```json
{
  "websites": [
    "https://apify.com",
    "https://baltaire.com",
    "https://adcentreprise.fr"
  ],
  "maxWebsites": 1000,
  "maxPagesPerWebsite": 5,
  "pageTypes": [
    "contact",
    "imprint",
    "about",
    "team",
    "support"
  ],
  "maxEmailsPerWebsite": 10,
  "stopAfterWebsitesWithoutContact": 300,
  "maxConcurrency": 10,
  "excludePersonalLookingEmails": true,
  "onlyEmailsOnWebsiteDomain": false,
  "excludeDisposable": true,
  "verifyEmails": false,
  "excludeNoMx": false,
  "includeWebsitesWithoutContact": false,
  "failRunOnError": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `report` (type: `string`):

Interactive page: websites with contacts by country and business type.

## `overview` (type: `string`):

Company, website, best e-mail, phone, social links, contact form, country.

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

Every e-mail, phone and social link.

## `companies` (type: `string`):

Company name, country, business type, language, pages read.

## `allFields` (type: `string`):

Every field of every row (JSON, CSV, Excel export).

## `runSummary` (type: `string`):

Websites read, success rate, contacts found, excluded e-mails, billing, stop reason.

## `failedInputs` (type: `string`):

Inputs and websites that could not be read, with a stable code. Runs of 20 websites or fewer: inside the Run summary instead (fewer storage writes, lower cost).

## `sites` (type: `string`):

One line per website: status, pages read, contacts delivered, e-mails excluded. Runs of 20 websites or fewer: inside the Run summary instead (fewer storage writes, lower cost).

# 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": [
        "https://apify.com",
        "https://baltaire.com",
        "https://adcentreprise.fr"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("badr_xba/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": [
        "https://apify.com",
        "https://baltaire.com",
        "https://adcentreprise.fr",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("badr_xba/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": [
    "https://apify.com",
    "https://baltaire.com",
    "https://adcentreprise.fr"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call badr_xba/website-contact-scraper --silent --output-dataset

```

## MCP server setup

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