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

Extract emails, phone numbers, WhatsApp, social profiles and Brazilian CNPJs from any list of websites. Finds the contact and about pages automatically, decodes protected emails and validates phones in international format.

- **URL**: https://apify.com/jeffev/website-contact-scraper.md
- **Developed by:** [Jefferson Valandro](https://apify.com/jeffev) (community)
- **Categories:** Lead generation
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 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.
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, WhatsApp & socials

Give it a list of websites and get back **every way to contact each company**: emails, phone numbers, WhatsApp, social profiles and, for Brazilian companies, the **CNPJ with official registry data**.

### Why this one

- **Finds the right pages**: starts at the home page and visits the pages that look most like contact pages (contact, about, support, imprint, *contato*, *fale conosco*, *sobre*...).
- **Catches hidden emails**: decodes Cloudflare-protected emails and `name [at] domain [dot] com` obfuscation; emails from the site's own domain come first.
- **Clean phones**: validated and formatted in international E.164 (`+14243638064`), with the country inferred from the page language, so local numbers aren't misread.
- **WhatsApp numbers** from `wa.me` and WhatsApp API links.
- **Social profiles**: Instagram, Facebook, LinkedIn, X/Twitter, YouTube, TikTok, Pinterest, GitHub, Telegram (share buttons are ignored).
- **Brazilian CNPJ, enriched**: valid CNPJs found on the page come with legal name, registration status (active/closed), size, city and tax regime from the official Receita Federal registry.
- **Gets past blocks**: if a site refuses the server IP, it retries through Apify Proxy, then a residential IP.
- **Pay only for websites where contacts were found.** Sites that are down or have nothing are listed with the reason, free.

### Input

```json
{
  "urls": ["https://www.allbirds.com", "rdstation.com", "stripe.com"],
  "maxPagesPerSite": 5,
  "enrichCnpj": true
}
```

### Output (one item per website)

| Field | Description |
|---|---|
| `domain`, `finalUrl`, `title`, `description` | the website |
| `emails` | up to 25, own-domain emails first |
| `phones`, `whatsapp` | E.164 format |
| `socials` | `{instagram: [...], linkedin: [...], ...}` |
| `cnpjs`, `cnpjDetails` | Brazilian company IDs and their registry data |
| `contactPageUrl`, `pagesVisited` | where the contacts came from |
| `error` | why a site gave no result (not charged) |

### Example output

One real item from a test run (long texts and lists shortened):

```json
{
  "url": "https://rdstation.com",
  "finalUrl": "https://www.rdstation.com/",
  "domain": "rdstation.com",
  "title": "RD Station",
  "description": "Automatize seu marketing e controle suas vendas com os softwares da RD Station! Temos as melhores soluções para crescer sua operação. Teste de graça!",
  "emails": [
    "contato@rdstation.com"
  ],
  "phones": [
    "+554838772700"
  ],
  "whatsapp": [],
  "socials": {
    "instagram": [
      "https://www.instagram.com/rdstation"
    ],
    "youtube": [
      "https://www.youtube.com/channel/UC5lPKvmw6-DFya_qreisENQ"
    ],
    "linkedin": [
      "https://br.linkedin.com/company/rd-station"
    ],
    "x": [
      "https://x.com/rd_station"
    ],
    "facebook": [
      "https://www.facebook.com/ResultadosDigitais"
    ]
  },
  "cnpjs": [
    "13021784000186"
  ],
  "contactPageUrl": "https://www.rdstation.com/legal-e-privacidade/",
  "pagesVisited": 5,
  "cnpjDetails": [
    {
      "cnpj": "13021784000186",
      "razaoSocial": "RD GESTAO E SISTEMAS S.A.",
      "nomeFantasia": "RD STATION",
      "situacao": "ATIVA",
      "dataAbertura": "2010-12-16",
      "porte": "DEMAIS",
      "cnaeDescricao": "Desenvolvimento e licenciamento de programas de computador não-customizáveis",
      "municipio": "FLORIANOPOLIS",
      "uf": "SC",
      "simplesNacional": null,
      "mei": null
    }
  ]
}
```

### How much does it cost?

You pay only for results delivered, at a fixed price per item. **Apify platform usage is included** in that price, so there are no compute costs on top. Errors and items that couldn't be found are free.

| What you get | Price | Example |
|---|---|---|
| Website with contacts | $0.002 each | 1,000 website with contactss = $2.00 |

The Apify **Free plan includes $5 of monthly credit**, enough for about **2,500 website with contactss** per month at no cost. You can also set a maximum spend per run.

On paid Apify plans it gets cheaper automatically: **10% off on Starter, 20% on Scale and 30% on Business**.

# Actor input Schema

## `urls` (type: `array`):

One per line: full URL or just the domain (example.com).

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

Home page plus the pages that look most like contact/about pages (contact, about, support, imprint...).

## `enrichCnpj` (type: `boolean`):

When a valid CNPJ is found on a Brazilian site, add legal name, registration status, size and city from the official Receita Federal registry.

## `useResidentialFallback` (type: `boolean`):

If a site still blocks after the regular proxy, try once more through a residential IP (slightly higher platform cost, only for those sites).

## `proxy` (type: `object`):

Used automatically for websites that block the server IP.

## Actor input object example

```json
{
  "urls": [
    "https://www.allbirds.com",
    "rdstation.com"
  ],
  "maxPagesPerSite": 5,
  "enrichCnpj": true,
  "useResidentialFallback": true,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One item per website with emails, phones, WhatsApp, social profiles and CNPJs.

# 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 = {
    "urls": [
        "https://www.allbirds.com",
        "rdstation.com"
    ],
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/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 = {
    "urls": [
        "https://www.allbirds.com",
        "rdstation.com",
    ],
    "proxy": { "useApifyProxy": True },
}

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

```

## MCP server setup

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