# Website Contact Scraper (emails, phones, social links) (`tamnt67/website-contact-scraper`) Actor

Website contact scraper: emails, phone numbers and social links (LinkedIn, Facebook, Instagram, X, YouTube, TikTok) for each site. Takes a list of domains or URLs and checks the homepage plus contact, about and imprint pages. Use it to build lead lists with email addresses from company websites.

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

## Pricing

from $1.50 / 1,000 websites

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 websites into a clean contact list of emails, phone numbers and social profile links, with no login and no API key, for $3 per 1,000 websites on the Free plan, down to $1.50 on higher plans.

For each domain the Actor reads the homepage, finds the contact, about, team and imprint pages on the same site, and returns one record with the emails, phone numbers and social profiles it found. It runs on plain HTTP, so large lists finish quickly and cheaply.

### What you can do with it

- **Enrich company lists:** add emails, phones and LinkedIn pages to a spreadsheet of company domains you already have.
- **Build B2B prospect lists:** turn domains from a directory, a trade fair list or a search export into business contact records.
- **Keep a CRM up to date:** re-run your customer or partner domains on a schedule and catch changed emails, phone numbers or social links.
- **Find social profiles:** collect LinkedIn, Facebook, Instagram, X (Twitter), YouTube, TikTok, Pinterest, GitHub, Telegram and WhatsApp links for brand or market research.
- **Check imprint and legal pages:** read the contact details that European sites publish on their imprint (Impressum) pages.

### Output fields

One record per website:

| Field | Example |
|-------|---------|
| `website` / `domain` | https://apify.com / apify.com |
| `title` | Apify: Marketplace of ready-to-run tools for AI |
| `description` | Thousands of tools to automate your business. ... |
| `emails` | \["hello@apify.com", ...] |
| `phones` | \["+17183565168"] |
| `linkedin` | http://linkedin.com/company/apify/ |
| `tiktok` | https://www.tiktok.com/@apifytech |
| `github` | https://github.com/apify |
| `twitter` / `youtube` | https://x.com/apify / https://www.youtube.com/apify |
| `facebook`, `instagram`, `pinterest`, `telegram`, `whatsapp` | profile URL or null (apify.com links none of these) |
| `pagesCrawled` | 5 |
| `crawledUrls` | \["https://apify.com/", "https://apify.com/about", "https://apify.com/contact", ...] |
| `scrapedAt` | 2026-11-09T04:04:30.061Z |
| `discord`, `snapchat`, `threads`, `reddit` | profile or invite URL or null (apify.com: https://discord.com/invite/jyEM2PRvMU) |
| `socialLinks` | every distinct profile per network, for example `{"tiktok": ["https://www.tiktok.com/@apifytech", "https://www.tiktok.com/@apifyoffice"], ...}` |
| `primaryEmail` | support@apify.com (an address on the site's own domain, role addresses such as info@ or contact@ first) |
| `phonesUncertain` | phones found only in page text, not in a `tel:` link (they are also in `phones`) |
| `contactPageUrl` | https://apify.com/contact (the first contact or imprint page read, or null) |
| `inputUrl` / `finalUrl` | apify.com / https://apify.com/ (what you entered, and the homepage address after redirects) |
| `scanStatus` / `failureReason` | ok / null (failed sites are only in the FAILED_SITES record) |
| `pagesAttempted` / `pagesFailed` | 6 / 1 |
| `emailChecks` | with **Check email domains**: `[{"email": "hello@apify.com", "domain": "apify.com", "domainHasMx": true}]`, otherwise null |

The fields from `discord` on were added on 2026-11-23 and come after the older ones, so existing exports keep their columns. Every social field is always present, so CSV and Excel exports keep the same columns. A network with no link on the site is `null`; a site with no emails or phones returns empty lists.

### Example output

One real record from a cloud test run (input `apify.com`, 5 pages per site).

```json
{
  "website": "https://apify.com",
  "domain": "apify.com",
  "title": "Apify: Marketplace of ready-to-run tools for AI",
  "description": "Thousands of tools to automate your business. Get real-time web data, track competitors, generate leads, and integrate your apps and AI agents.",
  "emails": ["hello@apify.com", "..."],
  "phones": ["+17183565168"],
  "linkedin": "http://linkedin.com/company/apify/",
  "facebook": null,
  "instagram": null,
  "twitter": "https://x.com/apify",
  "youtube": "https://www.youtube.com/apify",
  "tiktok": "https://www.tiktok.com/@apifytech",
  "pinterest": null,
  "github": "https://github.com/apify",
  "telegram": null,
  "whatsapp": null,
  "pagesCrawled": 5,
  "crawledUrls": [
    "https://apify.com/",
    "https://apify.com/about",
    "https://apify.com/contact",
    "https://apify.com/contact-sales",
    "https://apify.com/compass/crawler-google-places"
  ],
  "scrapedAt": "2026-11-09T04:04:30.061Z"
}
```

### How to use

1. Paste domains or URLs into **Websites**, one per line (`example.com` or `https://www.example.com`).
2. Set **Max pages per website** (1 to 50; five pages finds most contact details) and keep **Respect robots.txt** on unless you have a reason to turn it off.
3. Optional settings, all off by default so older tasks behave as before:
   - **Max link depth** (1 to 5): 2 or more also reads matching links found on the pages linked from the homepage.
   - **Follow all same-domain links**: read any page on the domain, not only contact-like ones; contact pages still go first.
   - **Read iframes**: also read same-domain iframes, such as an embedded contact widget.
   - **Check email domains (MX)**: look up whether each email domain has a mail server (MX record).
   - **Save unreachable websites**: also keep a record with `scanStatus: "failed"` and `failureReason` for each website that cannot be read, in the key-value store record `FAILED_SITES` (free: not added to the dataset, not charged).
   - **Websites in parallel** (default 8) and **Request timeout** (default 30 seconds).
4. Click **Start**, then download the dataset as JSON, CSV, Excel or HTML, or read it through the API.

Example input:

```json
{
  "websites": ["apify.com", "https://crawlee.dev"],
  "maxPagesPerSite": 5,
  "respectRobotsTxt": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

How it works:

- The homepage is always read. Links on the homepage that point to the same domain and contain words such as contact, about, team, support, legal, imprint, impressum, kontakt, contacto, contatti, a-propos, ueber-uns, nosotros, lien-he or gioi-thieu (in the address or the link text) are read next, up to your page limit.
- Emails come from `mailto:` links and from the page text. Common placeholders (such as addresses at example domains, `your@...` or `john.doe@...`) and image file names are filtered out.
- Phone numbers are taken from `tel:` links and from text written in international format (starting with `+` or `00`), which keeps false positives low.
- Up to 8 websites are processed at the same time (change it with **Websites in parallel**), and duplicate domains in the input are scraped once.

### Pricing and cost examples

You pay per website record in the dataset. Platform usage and proxy traffic are included. The price is per website, not per page, so reading 5 or 50 pages of a site costs the same.

| Apify plan tier | Price per 1,000 websites |
|-----------------|--------------------------|
| Free | $3.00 |
| Bronze | $2.50 |
| Silver | $2.00 |
| Gold, Platinum, Diamond | $1.50 |

Cost examples on the Free plan:

- 100 websites ≈ $0.30
- 1,000 websites ≈ $3
- 10,000 websites ≈ $30 (about $15 on Gold and higher tiers)

There is also a one-time start fee of $0.00005 per run. The Apify Free plan gives you $5 of platform credit every month, which is enough for about 1,600 websites at the Free price.

You are charged only for websites that respond. Unreachable sites (connection errors, HTTP errors or a homepage that is not HTML) are logged and never charged; with **Save unreachable websites** on, their details are stored for free in the key-value store record `FAILED_SITES`.

### Use it via API, on a schedule, or from an AI agent

Replace `YOUR_API_TOKEN` with your Apify API token.

**JavaScript** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('tamnt67/website-contact-scraper').call({
    websites: ['apify.com', 'crawlee.dev'],
    maxPagesPerSite: 5,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("tamnt67/website-contact-scraper").call(run_input={
    "websites": ["apify.com", "crawlee.dev"],
    "maxPagesPerSite": 5,
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

**cURL** (runs the Actor and returns the dataset items in one call):

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

**Schedules:** create a task with your website list and add it to Apify Schedules to refresh the contacts every week or month; each run saves a new dataset.

**AI agents:** the Apify MCP server at https://mcp.apify.com lets AI assistants such as Claude or Cursor run this Actor and read its results.

### FAQ

**How much does the Website Contact Scraper cost?**
The Website Contact Scraper costs $3 per 1,000 websites on the Apify Free plan and goes down to $1.50 per 1,000 on Gold and higher tiers. 100 websites cost about $0.30, whatever the page limit. Unreachable sites are not charged, and the Free plan's $5 monthly credit covers about 1,600 websites.

**How many websites can I process?**
The Website Contact Scraper has no fixed limit on the number of websites in one run; it returns one record per reachable website. It reads up to 50 pages per website, set with **Max pages per website**.

**How do I find more contact details?**
With the Website Contact Scraper, raise **Max pages per website** so more contact, about, team and legal pages are read. If a site loads its contact details with JavaScript, this Actor cannot see them; a browser-based tool is needed for those sites.

**Can I run it through the API or on a schedule?**
Yes. The Website Contact Scraper can be started from the Apify API with the JavaScript or Python client or a single cURL call, and saved as a task in Apify Schedules to refresh a contact list regularly. AI assistants can run it through the Apify MCP server.

**How fresh is the data?**
The Website Contact Scraper reads each website live during the run, so the contacts are what the site showed at that moment. Every record has a `scrapedAt` timestamp. Re-run your list to catch changes.

**Does it check that the emails work?**
No. The Website Contact Scraper returns the emails it finds on the pages and filters common placeholders, but it does not send test emails or verify mailboxes.

**Is it legal to scrape contact details from websites?**
The Website Contact Scraper reads only public web pages, does not log in, and respects robots.txt by default. Use it for business contact details, such as company sales or support addresses. You are responsible for how you use the data: personal data such as an employee's name-based email is protected by laws such as GDPR, and outreach must follow rules such as CAN-SPAM and similar laws in your country, including honouring opt-outs. Also check each website's terms. This is not legal advice; ask a lawyer if you are unsure about your use case.

### Limitations

- Websites that render everything with JavaScript may return fewer results, because this Actor reads the HTML the server sends.
- By default only pages linked from the homepage are visited. Set **Max link depth** to 2 or more to go deeper; **Max pages per website** still caps the pages read.
- Pages are chosen by keywords in the link address or link text, so sometimes an unrelated page is read (as in the example, where a page linked with a matching word was crawled).
- Emails hidden by JavaScript, images or "name at domain" spelling are not found.
- Phone numbers written in local format without `+` or `00` are found only when the site puts them in a `tel:` link.
- Each social field holds the first profile link found for that network, in a page link or in the site's structured data (schema.org `sameAs`). X follow buttons (x.com/intent/follow?screen_name=...) are returned as the profile URL.
- With **Respect robots.txt** on, only the rules for all crawlers (`User-agent: *`) are applied, and only to inner pages; the homepage is always read.
- No names, job titles, people search or mailbox verification. **Check email domains** only tells whether the email domain has an MX record; it does not prove that the mailbox exists.
- `primaryEmail` is a simple pick (an own-domain role address first), not a check of which address is answered.
- With **Follow all same-domain links**, which other pages are read depends on the order of links on the page.
- No browser rendering: content that appears only after JavaScript runs is not seen.

### Changelog

- 1.0 update (2026-11-23): new Discord, Snapchat, Threads and Reddit fields, `socialLinks` with every profile found per network, `primaryEmail`, `contactPageUrl`, `phonesUncertain`, `inputUrl`, `finalUrl`, `scanStatus`, `failureReason`, `pagesAttempted` and `pagesFailed`. New optional settings: link depth, follow all same-domain links, read iframes, email domain (MX) check, save unreachable websites, websites in parallel and request timeout. With the new settings left off, the existing fields and results are unchanged.
- 1.0 update (2026-11-19): an API call that leaves out `websites` no longer gets the example value added; the example is used only when the run has no input source at all. X (Twitter) profiles behind "Follow" buttons and YouTube links like youtube.com/brandname are now found (they were missed before), and social profiles listed in the site's structured data are read too. robots.txt rules with wildcards (such as `Disallow: /*?_rsc`) no longer block the whole site, so contact and about pages are crawled again.
- 1.0 (2026-11-19): The real contact page (/contact, /impressum, /kontakt...) is now visited before sales, about or legal pages, and business emails declared in the page's structured data (schema.org) are read too.

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

### Support

Found a problem or a site that returns wrong contacts? Report it in the Issues tab of this Actor.

# Actor input Schema

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

Domains or URLs, one per line: example.com or https://www.example.com.

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

The homepage plus linked contact, about, team and imprint pages on the same domain.

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

Skip inner pages that the website disallows for crawlers.

## `maxDepth` (type: `integer`):

1 = pages linked from the homepage (default). 2 or more also follows matching links found on those pages. Max pages per website still caps the total.

## `followAllLinks` (type: `boolean`):

Off (default): only contact, about, team, legal and imprint links are read. On: any link on the same domain can be read; contact-like pages still go first.

## `scrapeIframes` (type: `boolean`):

Also read iframes on the same domain or its subdomains (for example an embedded contact widget). Each iframe counts as one page.

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

Look up the MX record of each email domain and add the result to emailChecks. This shows whether the domain can receive mail; it does not test the mailbox.

## `includeFailedSites` (type: `boolean`):

Also keep a detailed record for every website that could not be read (reason, status code, timing) in the key-value store record FAILED_SITES. These records are free: they are not added to the dataset and not charged.

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

How many websites are processed at the same time.

## `requestTimeoutSecs` (type: `integer`):

Time limit for each page request.

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

Apify datacenter proxy is enough for most websites.

## Actor input object example

```json
{
  "websites": [
    "apify.com",
    "crawlee.dev"
  ],
  "maxPagesPerSite": 5,
  "respectRobotsTxt": true,
  "maxDepth": 1,
  "followAllLinks": false,
  "scrapeIframes": false,
  "checkEmailDomains": false,
  "includeFailedSites": false,
  "maxConcurrency": 8,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `websites` (type: `string`):

Dataset with one record per result.

## `websitesCsv` (type: `string`):

The same dataset exported as CSV.

# 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",
        "crawlee.dev"
    ],
    "maxPagesPerSite": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tamnt67/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": [
        "apify.com",
        "crawlee.dev",
    ],
    "maxPagesPerSite": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/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": [
    "apify.com",
    "crawlee.dev"
  ],
  "maxPagesPerSite": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tamnt67/website-contact-scraper --silent --output-dataset

```

## MCP server setup

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