# Website Contact Scraper — Emails, Phones & Socials (`tienlq/website-contact-scraper`) Actor

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

## Pricing

from $3.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

## Website Contact Scraper: Emails, Phones & Socials

Give it a list of websites, or the results of a Google Maps scrape, and get back the emails, phone numbers and social profiles (Facebook, Instagram, LinkedIn, X/Twitter, YouTube, TikTok, Pinterest) found on each site.

It doesn't open a browser. It reads the homepage, finds the contact, about and imprint pages in any of a dozen languages, and reads those too. That's fast (hundreds of websites a minute) and cheap.

### At a glance

| | |
|---|---|
| Price | **$3 per 1,000 websites with contacts found** |
| Websites with nothing found | **Free** |
| Websites that don't load | **Free** |
| Google Maps leads | Paste a dataset ID, get the contacts joined to each place |
| Cloudflare-hidden emails (`[email protected]`) | Decoded |

### Enrich your Google Maps leads

Ran a Google Maps scraper and got a list of businesses with websites but no emails? Don't export and re-import anything:

1. Open your Google Maps run and copy the **dataset ID** from its *Storage* tab.
2. Paste it into **Google Maps dataset ID**.
3. Run.

Every place with a website gets one row with its emails, phones and socials, **plus its name, address, category, place ID and Google Maps URL**, so you can match the results to your list. Places that share one website (chains with many branches) are scraped once.

### Or just give it websites

```json
{
  "startUrls": ["acme.com", "https://www.example-bakery.co.uk", "shop.example.de"],
  "maxPagesPerSite": 4
}
```

Bare domains are fine. If HTTPS is broken or the site only works on `www.`, we try the other variants before giving up.

### What you get

One row per website:

```json
{
  "website": "https://www.python.org/",
  "domain": "python.org",
  "emails": ["psf@python.org", "webmaster@python.org"],
  "phones": [],
  "facebook": [],
  "instagram": [],
  "linkedin": ["https://linkedin.com/company/python-software-foundation"],
  "twitter": ["https://twitter.com/ThePSF"],
  "youtube": [],
  "tiktok": [],
  "pinterest": [],
  "pagesScraped": 4
}
```

When you start from a Google Maps dataset, each row also has `title`, `address`, `city`, `countryCode`, `category`, `placeId`, `googleMapsUrl` and `googleMapsPhone`.

If a website can't be loaded, its row only has the input fields and an `error` saying why. You're not charged for it.

### Where the contacts come from

- **Emails**: `mailto:` links, plain text on the page, schema.org data (`LocalBusiness`, `Organization`), and emails hidden by Cloudflare's email protection, which most scrapers miss.
- **Phones**: `tel:` links and schema.org `telephone`. We don't guess phone numbers from random digits in the text, because that mostly returns order numbers and dates.
- **Socials**: profile links only. Share buttons (`sharer.php`, `intent/tweet`) and single posts are skipped, and `http`/`https`/`www`/`m.` variants are merged.
- **Pages**: the homepage, then up to *Max pages per website − 1* pages whose link looks like contact, about, imprint, team, support or legal, in English, German, Spanish, Portuguese, Italian, French and Vietnamese.

We filter the usual junk: image file names that look like emails (`logo@2x.png`), tracking IDs, and placeholder addresses like `name@example.com`.

### Tips

- **4 pages per site** finds nearly everything on small business websites. Raise it for large company sites, where the contact page is often deep.
- **No proxy needed** for most business websites. If you see a lot of `403` errors, turn on Apify Proxy in the *Advanced* section.
- Set a **maximum cost per run** in the run options and the scraper stops cleanly when it's reached.

### Is it legal?

This scraper only collects contact details that businesses publish on their own public websites. If you scrape personal data, for example the email of a named employee, laws such as GDPR may apply to how you store and use it. Use the results for legitimate business outreach, and respect opt-out requests.

### Questions, bugs, ideas

Open an issue on the Issues tab and include the run ID, so we can see exactly what happened.

# Actor input Schema

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

Website URLs or bare domains (example.com). One row per website. We scrape the homepage plus its contact, about and imprint pages.

## `googleMapsDatasetId` (type: `string`):

Got leads from a Google Maps scraper? Pick that run's dataset (or paste its ID from the run's Storage tab). We read the 'website' of every place and keep its name, address, place ID and Maps URL in the output, so you can join the results back.

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

Homepage plus up to this many minus one contact-like pages. 4 finds almost everything on small business sites.

## `maxSites` (type: `integer`):

Stop after this many websites. Leave empty for all.

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

How many websites are scraped in parallel.

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

Most business websites don't block scrapers, so no proxy is needed. Turn on Apify Proxy if you see many 403 errors.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com"
  ],
  "maxPagesPerSite": 4,
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `contacts` (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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

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

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

```

## MCP server setup

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