# Website Contact Scraper: Emails, Phones, Socials per Site (`ech0blaz3/website-contact-scraper`) Actor

Emails, phones, social profiles and address from any list of websites, one row per site with source pages. $5 per 1,000 sites with contacts, empty sites free.

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

## Pricing

$5.00 / 1,000 results

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 per Site

Give it a list of websites or domains. It returns **one row per site**: emails, phone numbers, social profiles
and address. Every value comes with **the pages it was found on** and how it was found.

**You pay only for sites where an email or a phone was found.** Empty, dead and blocked sites are free, and so are
domains that changed hands (parked, casino, spam, redirected).

### Pricing: $5 per 1,000 sites with contacts

| You pay | You don't pay |
|---|---|
| **$0.005 per site** with at least one email or phone | sites where nothing was found |
| | dead, unreachable or blocked sites |
| | parked, gambling, spam and redirected domains |
| | pages opened, run start, compute, proxy and residential retries |

**A predictable bill.** The price is per site, never per page. Opening 5 pages costs the same as opening 1, and a
site with 40 subpages costs the same as a one-page site. The most a run can cost is the number of sites ×
$0.005: 1,000 sites cost at most $5, and 10,000 sites at most $50. Set *Max cost per run* in the run options and
the actor stops cleanly when it is reached.

**Tested on 100 real small-business websites** (cafes, dentists, auto repair shops, agencies and shops in 15
countries, taken from OpenStreetMap without cleaning). 68 had contacts (56 an email, 61 a phone). 16 were dead,
12 had nothing published and 3 had moved to another company's site. Only the 68 would be charged: **$0.34**.
The run took 2.5 minutes.

### What it does

- Opens up to 5 pages per site (configurable, 1-20) in a fixed order: **homepage → contact → impressum /
  legal notice → about**, then more contact pages. Menu links are recognised in English, German, Dutch, French,
  Spanish, Italian, Polish, Ukrainian and Russian.
- Fast HTTP requests with a real browser TLS fingerprint, no headless browser. 10 sites in parallel.
- If the homepage does not answer within 10 seconds, it tries the `www.` / bare domain and `http://` / `https://`
  variants.
- Apify **datacenter proxy** by default. When a page is blocked (Cloudflare challenge, 403, 429, captcha), it is
  fetched again through **residential proxy**, and the rest of that site stays on residential.

#### Emails

Found in `mailto:` links, page text, schema.org JSON-LD, microdata and `<meta>` descriptions. Also covered:

- emails hidden by **Cloudflare email protection**, which are decoded;
- simple obfuscation like `name [at] domain [dot] com`, `name (at) domain.com`, `name at domain dot com`.

Junk is dropped: placeholders (`example@`, `test@`, `user@domain.com`, `your.email@…`), service mailboxes
(`noreply@`, `mailer-daemon@`), error-tracker addresses (`…@sentry.io`, `…@sentry.wixpress.com`) and image file
names that look like emails (`logo@2x.png`). Emails on the site's own domain come first.

#### Phones

Taken from `tel:` links, JSON-LD, microdata and page text. Parsed with Google's libphonenumber and returned in
E.164 format (`+493012345678`). Fax numbers are skipped.

National formats are read in the site's country. The country comes from the domain, the schema.org address,
the page language and the international numbers on the site. A Kyiv site in Russian therefore still gets
`+380…`, not `+7…`.

Numbers from **another country than the site** are kept but marked `foreign_country: true`. Theme templates
often leave a demo number in JSON-LD. Social links that sit only in that same template block are marked
`from_template: true`.

#### Address

Taken only from schema.org JSON-LD (any page) and from the **contact page** (`<address>`, microdata, street
patterns for US, DACH/NL/UK and Ukraine). It is never taken from the impressum, which lists courts, dispute
bodies and insurers. Duplicates written differently are merged.

#### Social profiles

Facebook, Instagram, LinkedIn, X/Twitter, TikTok, YouTube, Telegram, WhatsApp. Share buttons, tracking pixels
and site-builder accounts (`facebook.com/wix`, `instagram.com/shopify`, …) are skipped. Links are normalised, so
`linkedin.com/company/x` and `www.linkedin.com/company/x` are one profile.

#### Changed owner

Lead lists go stale: in our test sample of small-business sites from OpenStreetMap, 3 of 22 domains served
gambling pages. The homepage is checked for:

- **parked** domains ("this domain may be for sale", Sedo, Bodis, …);
- **casino** / betting pages (title or description plus gambling vocabulary in the body);
- **spam** shops (counterfeit goods, pharmacy, adult);
- **redirect** to another site (the same brand on another TLD, like `bosch.com → bosch.de`, is not flagged).

These rows get `status: domain_changed` and are free. For parked, casino and spam pages no contacts are returned.
After a redirect, the new site's contacts are returned but flagged.

### Input

| Field | Default | |
|---|---|---|
| `sites` | 3 example sites | Domains or URLs, up to 10,000 per run. The path is ignored and crawling starts at the homepage. |
| `maxPagesPerSite` | 5 | 1-20, homepage included. |
| `proxyConfiguration` | Apify datacenter | Any Apify proxy group or your own proxy URLs. |
| `residentialFallback` | true | Retry blocked pages through Apify residential proxy. |

```json
{
  "sites": ["cookesbrakes.com", "https://www.neumanns.berlin", "deltacase.ua"],
  "maxPagesPerSite": 5
}
```

### Output

One dataset row per site. The **Overview** view shows the flat columns, and **All values with source pages** shows
the details.

```json
{
  "input": "cookesbrakes.com",
  "url": "https://cookesbrakes.com/",
  "domain": "cookesbrakes.com",
  "status": "ok",
  "charged": true,
  "domain_changed": null,
  "country": "US",
  "email": "info@cookesbrakes.com",
  "phone": "+15032326440",
  "address": "830 SE 46th Avenue, Portland, OR 97215",
  "facebook": "https://www.facebook.com/cookes-brake-service-127040437354939",
  "instagram": null, "linkedin": null, "x": null, "tiktok": null, "youtube": null, "telegram": null, "whatsapp": null,
  "emails": [
    {"email": "info@cookesbrakes.com", "own_domain": true,
     "pages": ["https://cookesbrakes.com/contact-cookes-brake-service/"], "sources": ["cloudflare"]}
  ],
  "phones": [
    {"phone": "+15032326440", "country": "US", "foreign_country": false,
     "pages": ["https://cookesbrakes.com/", "https://cookesbrakes.com/contact-cookes-brake-service/"],
     "sources": ["tel", "text"]}
  ],
  "socials": [{"network": "facebook", "url": "https://www.facebook.com/cookes-brake-service-127040437354939",
               "from_template": false, "pages": ["https://cookesbrakes.com/"], "sources": ["link"]}],
  "addresses": [{"address": "830 SE 46th Avenue, Portland, OR 97215",
                 "pages": ["https://cookesbrakes.com/contact-cookes-brake-service/"], "sources": ["text"]}],
  "pages": [
    {"url": "https://cookesbrakes.com/", "kind": "home", "status": 200, "proxy": "datacenter"},
    {"url": "https://cookesbrakes.com/contact-cookes-brake-service/", "kind": "contact", "status": 200,
     "proxy": "datacenter"}
  ],
  "error": null
}
```

| `status` | Meaning | Charged |
|---|---|---|
| `ok` | at least one email or phone (foreign template numbers do not count) | yes |
| `no_contacts` | the site answered, nothing found | no |
| `domain_changed` | parked, casino, spam or redirected to another site | no |
| `dead` | no homepage variant answered (DNS, timeout, TLS, HTTP errors) | no |
| `blocked` | blocked on every proxy tier | no |

The `OUTPUT` record in the key-value store summarises the run: sites by status, charged results, pages,
downloaded MB, residential retries and invalid inputs.

### Limits

- No JavaScript rendering. Sites that build their whole page in the browser return little or nothing (about 1 in
  20 small-business sites in our sample).
- Contact forms without a published email or phone give no email.
- Sites with an invalid TLS certificate are tried over `http://`. If that fails too, they come back as `dead`.
- Address extraction from page text covers the US, DACH/NL/UK and Ukraine patterns. Elsewhere only schema.org
  addresses are returned.

# Actor input Schema

## `sites` (type: `array`):

Domains or website URLs, up to 10,000 per run (example.com, https://www.example.com/contact). Each site is crawled from its homepage; the path is ignored. Duplicates are skipped.

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

Pages opened per site, homepage included, in this order: homepage, contact page, impressum / legal notice, about page, then more contact pages. 5 covers almost every small-business site. You pay per site with contacts, never per page.

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

Apify datacenter proxy by default. Sites that block it are retried through residential proxy (see below).

## `residentialFallback` (type: `boolean`):

When a page answers with a block (Cloudflare challenge, 403, 429, captcha), fetch it again through Apify residential proxy; the rest of that site stays on residential. Included in the price: you are never charged for proxy traffic.

## Actor input object example

```json
{
  "sites": [
    "https://apify.com",
    "https://www.python.org",
    "https://www.mozilla.org"
  ],
  "maxPagesPerSite": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `report` (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 = {
    "sites": [
        "https://apify.com",
        "https://www.python.org",
        "https://www.mozilla.org"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ech0blaz3/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 = {
    "sites": [
        "https://apify.com",
        "https://www.python.org",
        "https://www.mozilla.org",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ech0blaz3/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 '{
  "sites": [
    "https://apify.com",
    "https://www.python.org",
    "https://www.mozilla.org"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ech0blaz3/website-contact-scraper --silent --output-dataset

```

## MCP server setup

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