# Website Contact Scraper: Emails, Phones, WhatsApp, Impressum (`siteacs/website-contact-scraper`) Actor

Get emails, phone numbers, WhatsApp links, social profiles and Brazilian CNPJ from a list of websites. Reads the home page, contact pages and German Impressum pages in English, Portuguese, Spanish and German. Pay only for sites with results.

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

## Pricing

$1.50 / 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, WhatsApp & Socials

- **In:** a list of websites or bare domains (`websites`).
- **Out:** one row per website with `emails`, `phones`, `whatsapp`, social profile links, Brazilian `cnpj`, `contactPageUrl` and `hasContactForm`.
- **Example input:** `{"websites": ["apify.com", "odontoclinic.com.br"], "maxPagesPerSite": 4}`
- **Example output (3 fields of one row, odontoclinic.com.br):** `"phones": ["+558002009008"]`, `"whatsapp": ["https://wa.me/5511943863137", "https://wa.me/5511943604258"]`, `"cnpj": ["11.519.109/0001-56"]`
- **Price:** $1.50 per 1,000 websites with results ($0.0015 each); other rows are free.

Give it a list of websites or bare domains and get back, for each one, the **emails, phone numbers, WhatsApp links,
social profiles** and, for Brazilian companies, the **CNPJ** shown on the site. It reads the home page and the few
pages where businesses put their contact details (contact, imprint, about, location), in **English, Portuguese, Spanish and
German**, and gives you one row per website.

**$1.50 per 1,000 websites with results** ($0.0015 each). Websites where nothing was found, and those that were down
or blocked, are listed free with the reason. In testing, 200 sites took about 2 minutes.

A row from the default input (empty fields left out):

```json
{
  "input": "odontoclinic.com.br",
  "url": "https://odontoclinic.com.br/",
  "status": "ok",
  "contactPageUrl": "https://odontoclinic.com.br/sobre-nos/",
  "hasContactForm": true,
  "phones": ["+558002009008"],
  "whatsapp": ["https://wa.me/5511943863137", "https://wa.me/5511943604258"],
  "facebook": ["https://www.facebook.com/odontoclinicbr"],
  "instagram": ["https://www.instagram.com/odontoclinic"],
  "linkedin": ["https://www.linkedin.com/company/franquias-odontoclinic"],
  "cnpj": ["11.519.109/0001-56"]
}
```

- **Em português:** extrai e-mail, telefone, WhatsApp, Instagram, Facebook e CNPJ de uma lista de sites, lendo as
  páginas de contato, fale conosco e quem somos.
- **En español:** extrae correos electrónicos, teléfonos, WhatsApp y redes sociales de una lista de sitios web,
  leyendo las páginas de contacto, contáctanos y quiénes somos.
- **Auf Deutsch:** findet E-Mail-Adressen, Telefonnummern, WhatsApp und Social-Media-Profile einer Liste von Websites,
  auch aus Kontaktseite und Impressum.

### Who it is for

- **Sales and lead generation**: turn a list of company websites into a list of emails, phones and WhatsApp numbers.
- **Agencies and marketers**: find the Instagram, Facebook, LinkedIn and TikTok of every client or prospect.
- **CRM and data teams**: fill in missing contact fields for the domains you already have.
- **Brazil-focused teams**: get the CNPJ from the site footer (check digits verified) and the WhatsApp number most
  Brazilian businesses use as their main channel.

### What you get

One dataset row per website:

| Field | What it holds |
|---|---|
| `input`, `domain`, `url` | What you gave, its domain, and the address the site finally answered from |
| `status`, `httpStatus`, `error` | Whether the site was read (see the table below), its HTTP code, and the reason when it was not |
| `emails` | Email addresses on the site's pages: from mailto links, the page text, Cloudflare-protected addresses and "name \[at] domain \[dot] com" spellings. Image names, tracking and placeholder addresses are removed |
| `phones` | Phone numbers in international format (`+5541991234567`), from tel: links and the page text, checked against the country's numbering plan |
| `whatsapp` | WhatsApp links normalised to `https://wa.me/<number>` (from wa.me, api.whatsapp.com, whatsapp:// and chat widgets), plus group invite links |
| `facebook`, `instagram`, `linkedin`, `twitter`, `youtube`, `tiktok`, `pinterest`, `telegram` | Profile links, cleaned of share buttons, tracking pixels and post links |
| `cnpj` | Brazilian company numbers shown on the site, formatted `11.222.333/0001-81`, only when the check digits are valid |
| `contactPageUrl`, `hasContactForm` | The contact page (else the imprint, else another page with a contact form), and whether the site has a contact form |
| `title`, `language`, `pagesFetched`, `scrapedAt` | Home page title and language, pages read, and when |

Empty fields are `[]` or `null`, never missing, so CSV and Excel exports keep the same columns.

#### Status per site

| `status` | Charged | What to do |
|---|---|---|
| `ok` | when something was found | Nothing: the site was read |
| `unreachable` | no | The domain does not resolve (check the spelling; it may have expired) or the server refused the connection (run it again later) |
| `timeout` | no | Run it again later, or raise **Page timeout** |
| `blocked` | no | The site shows a bot challenge or refuses plain requests; it is not retried or bypassed |
| `http_error` | no | The home page answers 404, 500 or similar: check the address in a browser |
| `robots_disallowed` | no | The site's robots.txt asks robots not to read its home page, and that is respected |
| `not_html` | no | The address is a file (PDF, image), not a web page |
| `invalid_input` | no | Not a website address: write `example.com` or `https://example.com/` |
| `error` | no | An unexpected failure: run it again; if it repeats, open an issue |

The `error` field holds the technical reason and the next step, e.g.
`ConnectError: [Errno -2] Name or service not known; the domain does not resolve: check the spelling, or the domain has expired`.

Download the results as JSON, CSV, Excel or HTML. The **Contacts** view puts the contact columns first;
**Social profiles** and **Status per site** are the other views.

### How to use it

1. Paste your websites into **Websites or domains**, one per line (use **Bulk edit** for long lists), or upload a
   file under **URL list**.
2. Leave **Pages per site** at 4 (the home page counts, so: home + 3 contact pages) for the best results, or set 1
   to read the home page only.
3. Click **Start**. At the default 1 GB of memory, 200 sites took about 2 minutes in testing (roughly 10 minutes per
   1,000). More memory gives the run more CPU and makes it faster; the price per website stays the same.
   The default run timeout is 10 hours, enough for about 50,000 sites at 1 GB; for longer lists raise
   **Timeout** in the run options or split the list.

Input example:

```json
{
  "websites": ["apify.com", "odontoclinic.com.br", "https://www.example.de/"],
  "maxPagesPerSite": 4
}
```

### How it works

- For each site it opens the home page, then picks the links whose text or address says contact, contato, fale
  conosco, contacto, contáctanos, kontakt, impressum, about, sobre, quem somos, nosotros, über uns and similar, and
  opens the best few. If no such link exists, it tries one usual address (`/contact`, `/contato`, `/contacto`,
  `/kontakt`, by the site's language).
- Pages are fetched with plain HTTP requests (no browser), one at a time per site, staying on the site's own domain.
  It follows redirects and **respects robots.txt**.
- Sites that answer with a bot challenge or refuse the request are marked `blocked` and skipped. The actor does not
  try to get around any site's protection.
- Content loaded only by JavaScript after the page opens is not seen; most business sites put their contacts in the
  page itself.

### Pricing

**$1.50 per 1,000 websites with results** ($0.0015 per website), no start fee. A website counts when at least one
email, phone, WhatsApp link, social profile or CNPJ was found; every other row is free. Set **Maximum cost per run** in
the run options for a hard cap; the run stops when it is reached.

### API, schedules and integrations

- One call that runs it and returns the rows (for lists that finish within 5 minutes):
  `POST https://api.apify.com/v2/acts/siteacs~website-contact-scraper/run-sync-get-dataset-items?token=<your token>` with the
  input JSON as the body. For longer lists, start a run with `/runs` and read its dataset when it finishes. The **API**
  tab has code for Python, JavaScript and the CLI.
- To run it every week or month, create a schedule in Apify Console (**Schedules**) with this actor and your input.
- Make, Zapier and n8n have Apify modules that start this actor and read its dataset, so the rows can go on to a sheet
  or a CRM.
- Rows are saved as each site finishes, so they are not in input order; match them on `input`.

### Personal data

This actor collects only **business contact details that a website publishes on its own pages** (its home, contact,
imprint, about and location pages; team and staff pages are not read). It does not search for people, does not visit other sites, and does not enrich data from
third parties. Some published details can still be personal data (for example, a sole trader's phone number or a
named employee's email). If you use the results to contact people, you are responsible for having a legal basis
under the GDPR, LGPD or the laws that apply to you, and for honouring opt-outs.

### One lead-list pipeline

Three actors from the same publisher work as steps of one lead-list job:

1. [Website Status Checker](https://apify.com/siteacs/website-status-checker): check that each site is live, not parked, expired or dead.
2. [Contact Page & Contact Form Finder](https://apify.com/siteacs/contact-page-finder): find the contact page and whether it has a form.
3. [Website Contact Scraper](https://apify.com/siteacs/website-contact-scraper): extract emails, phones, WhatsApp links and social profiles.

Feed the sites that came back live from step 1 into the next steps. This actor is step 3.

### FAQ

**Como pegar o e-mail, o WhatsApp e o CNPJ de uma lista de sites?** Cole os endereços em "Websites or domains" e
clique em Start. O ator lê a página inicial e as páginas de contato, fale conosco e quem somos de cada site, e
devolve uma linha por site com e-mail, telefone, WhatsApp, redes sociais e o CNPJ do rodapé, quando o número tem
dígitos verificadores válidos.

**¿Cómo saco el correo y el teléfono de la página de contacto de muchos sitios?** Pegue los dominios en "Websites or
domains". El actor abre la página de contacto, "contáctanos" y "quiénes somos" de cada sitio y devuelve una fila por
sitio con correos, teléfonos en formato internacional, WhatsApp y redes sociales.

**Wie finde ich E-Mail-Adressen aus dem Impressum und der Kontaktseite vieler Websites?** Tragen Sie die Domains
unter "Websites or domains" ein. Der Actor liest die Startseite, die Kontaktseite und das Impressum jeder Website und
liefert je Website eine Zeile mit E-Mail-Adressen, Telefonnummern, WhatsApp-Links und Social-Media-Profilen.

### Feedback

Found a site where a contact detail was missed or wrong? Open an issue on the actor's Issues tab with the website
address, and it will be looked at.

# Changelog

This Actor's version history is a separate document: https://apify.com/siteacs/website-contact-scraper/changelog.md

# Actor input Schema

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

Websites to read, one per line: a bare domain ("example.com") or a full address ("https://www.example.com.br/"). Use Bulk edit to paste a long list. Duplicates are removed. Example: \["apify.com", "odontoclinic.com.br"].

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

Optional. Full addresses with https://, or a text or CSV file, or a link to one. Combined with the list above. Example: \[{"url": "https://example.com/"}], or a link to a .txt or .csv file with one address per line.

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

Total pages read per site, the home page included: 4 means the home page plus up to 3 contact, imprint, about or location pages picked from the site's own links (English, Portuguese, Spanish and German words). 1 reads the home page only. Whole number from 1 to 10, for example 4.

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

How many websites are checked in parallel. Each site gets one request at a time, so this never floods a single site. Whole number from 1 to 100, for example 20.

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

How long to wait for one page before giving up on it. Seconds, from 3 to 120, for example 15.

## `siteTimeoutSecs` (type: `integer`):

After this, the site's remaining pages are skipped and what was found so far is saved. Seconds, from 10 to 600, for example 60.

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

Not needed for most sites: requests go out from Apify's servers directly. Turn it on only if your own network rules require it. Sites that show a bot challenge are reported as blocked, not bypassed. Example: {"useApifyProxy": false}.

## Actor input object example

```json
{
  "websites": [
    "apify.com",
    "odontoclinic.com.br"
  ],
  "maxPagesPerSite": 4,
  "maxConcurrency": 20,
  "requestTimeoutSecs": 15,
  "siteTimeoutSecs": 60,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One item per website: emails, phones, WhatsApp links, social profiles, CNPJ and the contact page.

## `socials` (type: `string`):

Facebook, Instagram, LinkedIn, X, YouTube and TikTok profiles per website.

## `status` (type: `string`):

Whether each site answered, was blocked or unreachable, and how many pages were read.

# 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",
        "odontoclinic.com.br"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("siteacs/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",
        "odontoclinic.com.br",
    ] }

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

```

## MCP server setup

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