# Website Contact, Email, Phone & Social Scraper ($2/1k) (`aimtomisbehave/website-contact-scraper`) Actor

Extract verified emails (including Cloudflare-protected addresses), phone numbers, WhatsApp, 12 social media links, JSON-LD address & ad pixels/tech stack — one clean row per website ($2/1k). Chain directly with Google Maps datasets.

- **URL**: https://apify.com/aimtomisbehave/website-contact-scraper.md
- **Developed by:** [Jaspreet Singh](https://apify.com/aimtomisbehave) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 91.7% 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, Email, Phone & Social Scraper ($2.00 / 1,000 Websites)

Turn any list of business URLs or **Google Maps / Apollo / Yelp / Clutch datasets** into **one clean, deduplicated lead record per company** — extracting verified emails (including Cloudflare-obfuscated addresses), validated phone numbers, WhatsApp links, 12 social media profiles, Schema.org address/hours, and 16 ad pixels & tech stack signals.

**Fair Pay-Per-Event Billing (`$0.002` Free/Bronze -> `$0.0014` Gold+):** You are billed **ONLY when at least 1 email, phone number, WhatsApp, or social profile is extracted**. Unreachable dead sites, zero-contact brochure sites, and skipped rows (`onlyMissingEmails: true`) cost **$0.00**.

> \[!TIP]
> **Complete Your Automated B2B Outbound Stack (1-Click Dataset Chaining):**
>
> - 🎯 **[Google Ads Transparency Scraper & Ad Spy API](https://apify.com/aimtomisbehave/google-ads-transparency-scraper)** — Pass this scraper's output Dataset directly into `advertiser_check` mode to flag which leads are actively spending money on Google Ads + extract their ad copy & YouTube creatives (`$1.00/1k` Free/Bronze, `$0.70/1k` Gold+).
> - ✅ **[Email Verifier & Validator ($0.50/1k)](https://apify.com/aimtomisbehave/bulk-email-verifier-pro)** — Clean & score scraped lead datasets with 4,000+ disposable domain blocking, DNS MX/SPF/DMARC posture, Microsoft 365 account verification, role & typo checks (`$0.50/1k` Free/Bronze, `$0.35/1k` Gold+).

***

### Why Growth Engineers & Agencies Switch to This Contact Scraper

| Capability | This Actor (`$2.00/1k`) | Legacy Contact Scrapers (`$4–$10/1k`) | Per-Page Crawlers (`$2/1k` *per page*) |
| :--- | :---: | :---: | :---: |
| **Effective Cost per 1,000 Websites** | **$1.40 – $2.00** | $4.00 – $10.00 | $8.00 – $20.00 *(4–10 pages/site)* |
| **Zero-Contact & Dead Website Charge** | **$0.00 (Free)** | ❌ Charged per row | ❌ Charged per page |
| **Preserves Google Maps / Upstream Columns** | ✅ `preserveDatasetFields: true` | ❌ Drops `placeId`, `rating`, `title` | Partial |
| **Cloudflare `data-cfemail` XOR Decoder** | ✅ Built-in | ❌ Missed by regex crawlers | ✅ |
| **Chrome TLS Impersonation (`curl_cffi`)** | ✅ Cuts WAF `403`s in half | ❌ Standard HTTP client | Requires paid browser add-on |
| **Google `libphonenumber` Validation** | ✅ International E.164 / formatting | ❌ Regex false positives | Partial |
| **Built-In Email DNS `MX` + `ESP` Check** | ✅ Included Free | `$10/1k` tools only | Paid add-on (`+$4/1k`) |
| **Ad Pixels & CMS Tech-Stack Fingerprinting** | ✅ 16 Signals Included Free | ❌ Not included | ❌ Not included |

***

### 6-Layer Extraction & Lead Enrichment Engine

1. **Smart Multi-Page Contact Discovery (`2.2 MB` Full-Footer Buffer):**
   - Fetches the homepage using **Chrome 124 TLS fingerprint impersonation**, `gzip`/`deflate` decompression, and automatic SSL fallback for local SMBs with expired certificates.
   - Scores internal links (`/contact`, `/contact-us`, `/about`, `/team`, `/impressum`, `/kontakt`, `/mentions-legales`, `/locations`) and crawls up to `maxPagesPerDomain` reachable pages without truncating heavy Wix or Next.js footers.
2. **Anti-Hallucination Email Extraction & Provenance Ranking:**
   - Decodes **Cloudflare Email Protection (`data-cfemail`)**, Schema.org `JSON-LD` `email` / `contactPoint`, `mailto:` links, and `[at]` / `[dot]` anti-scraper obfuscation.
   - Blocks tracking hashes (`@sentry.io`, `@wixpress.com`), placeholder addresses (`email@gmail.com`, `john.doe@`), and ranks domain-matched `mailto:`/`cfemail` inboxes first in `bestEmail`.
   - Resolves **DNS `MX` records** and fingerprints the company's **Mail Provider (`mxProvider`)**: *Google Workspace*, *Microsoft 365*, *Proofpoint*, *Mimecast*, *Proton Mail*, *Zoho*, *Cloudflare*, *GoDaddy*, and more.
3. **International Phone & WhatsApp Validation (`libphonenumber`):**
   - Parses `tel:` links, JSON-LD `telephone` properties, and visible page text across US, UK, EU, AU, CA, and LATAM formats using `phonenumbers` (`libphonenumber`)—eliminating Order-ID/date false positives—plus captures direct `wa.me` / `api.whatsapp.com` WhatsApp numbers.
4. **Script-Safe 12-Network Social Profile Discovery:**
   - Extracts official company links for **LinkedIn, Instagram, Facebook, X (Twitter), YouTube, TikTok, GitHub, Pinterest, Threads, Discord, Telegram, and Trustpilot** from clean DOM markup and JSON-LD `sameAs` arrays (stripping `<script>` comments and XML namespaces so plugin-author GitHub links never pollute your leads).
5. **Ad Pixels & Website Tech Stack Intelligence (`techStack`):**
   - Flags **Meta Pixel**, **Google Ads Conversion Tag**, **Google Tag Manager**, **Google Analytics 4**, **TikTok Pixel**, **LinkedIn Insight Tag**, **Shopify**, **WooCommerce**, **WordPress**, **Webflow**, **Wix**, **Squarespace**, **Next.js**, **HubSpot**, **Klaviyo**, and **Intercom**—ideal for pitching PPC, SEO, CRO, or web design retainers.
6. **1-Click Google Maps & CSV Chaining (`datasetId` / `csvUrl`):**
   - Select any upstream Apify Dataset via the built-in Dataset picker. All original fields (`title`, `placeId`, `totalScore`, `reviewsCount`, `categoryName`, `street`) are preserved alongside the newly discovered emails, socials, and ad pixels. Enable `onlyMissingEmails: true` to skip rows that already have an email at **$0 charge**.

***

### Complete Output Field Reference

| Field | Type | Description |
| :--- | :--- | :--- |
| `inputUrl` | `string` | Original URL or domain supplied in input or upstream dataset. |
| `domain` | `string` | Normalized root domain (e.g., `beardbrand.com`). |
| `status` | `string` | `"succeeded"`, `"unreachable"`, or `"skipped_existing_email"`. |
| `hasContacts` | `boolean` | `true` when ≥1 valid email, phone, WhatsApp, or social profile was found (the sole billing trigger). |
| `companyName` | `string` | Clean brand name extracted from Schema.org `Organization`/`LocalBusiness` or `<title>`. |
| `description` | `string` | Meta description or OpenGraph summary of the business. |
| `bestEmail` | `string` | Highest-confidence email (prioritizing domain-matched `mailto:` / Cloudflare-decoded personal inboxes). |
| `emails` | `string[]` | All deduplicated, MX-validated business emails found across crawled pages. |
| `personalEmails` | `string[]` | Non-role emails (e.g., `founder@`, `sarah@`). |
| `roleEmails` | `string[]` | Shared department aliases (e.g., `hello@`, `info@`, `sales@`, `support@`). |
| `hasValidMx` | `boolean` | Whether the company domain publishes live DNS `MX` mail servers. |
| `mxProvider` | `string` | Detected email provider (*Google Workspace / Gmail*, *Microsoft 365 / Exchange Online*, etc.). |
| `phones` | `string[]` | International-formatted phone numbers validated via `libphonenumber`. |
| `whatsapp` | `string` | Direct WhatsApp business number extracted from `wa.me` / `api.whatsapp.com` links. |
| `linkedin` .. `trustpilot` | `string` | Direct profile URLs across 12 social & review platforms (`linkedin`, `instagram`, `facebook`, `twitter`, `youtube`, `tiktok`, `github`, `pinterest`, `threads`, `discord`, `telegram`, `trustpilot`). |
| `techStack` | `string[]` | Detected ad pixels, analytics tags, CRM widgets, and CMS platforms. |
| `address` / `openingHours` | `string` | Physical street address and business hours parsed from Schema.org `JSON-LD`. |
| `pagesCrawled` / `crawledUrls` | `int` / `string[]` | Count and exact list of URLs crawled for full auditability. |

***

### Integration Guides: Clay.com, n8n & Make.com

#### 1. Using Inside Clay.com (95% Cheaper Than Native Enrichment Credits)

Instead of spending `2–4 Clay credits` (`$0.04–$0.08`/row) per domain, add a **Clay "HTTP API" column**:

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/aimtomisbehave~website-contact-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN`
- **Headers:** `Content-Type: application/json`
- **Body:**

```json
{
  "urls": ["{{Company Domain}}"],
  "maxPagesPerDomain": 3,
  "defaultPhoneCountry": "US"
}
```

#### 2. Chaining Directly from Apify Google Maps Scraper (n8n / API)

Pass the `defaultDatasetId` from any Google Maps run directly into `datasetId`:

```bash
curl -X POST "https://api.apify.com/v2/acts/aimtomisbehave~website-contact-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "datasetId": "YOUR_GOOGLE_MAPS_DATASET_ID",
    "preserveDatasetFields": true,
    "onlyMissingEmails": true,
    "maxPagesPerDomain": 4
  }'
```

***

### Honest Limitations & Best Practices

- **HTTP-First Architecture (Speed & Low Cost):** This Actor uses fast HTTP + Chrome TLS impersonation (`256 MB` RAM) rather than spinning up heavy headless Chromium browsers. Websites that render 100% of their DOM exclusively via client-side JavaScript bundles without SSR or static HTML footers may expose fewer contacts.
- **Enterprise WAF / Cloudflare Turnstile Challenges:** Roughly 5–15% of websites sit behind strict interactive bot walls. If you are scraping heavily protected verticals, enable **Apify Proxy** under `proxyConfiguration` in the input settings.
- **GDPR & Privacy:** Crawls only publicly published business web pages and processes all data ephemerally in memory during your run.

***

### Chain With Our Complete B2B Growth & Enrichment Suite

1. **Discover Buyer-Intent Keywords (6 Engines)** → [`aimtomisbehave/google-autocomplete-keyword-scraper`](https://apify.com/aimtomisbehave/google-autocomplete-keyword-scraper) (`$0.35/1k`, `$0` start fee)
2. **Spy on Active Google Search, Shopping & YouTube Ads** → [`aimtomisbehave/google-ads-transparency-scraper`](https://apify.com/aimtomisbehave/google-ads-transparency-scraper) (`$1.00/1k`)
3. **Extract Website Emails, Phones, WhatsApp & Tech Stack** → `aimtomisbehave/website-contact-scraper` (`$2.00/1k` only when contacts are found)
4. **Verify & Clean Emails (MX + Disposable + Microsoft 365)** → [`aimtomisbehave/bulk-email-verifier-pro`](https://apify.com/aimtomisbehave/bulk-email-verifier-pro) (`$0.50/1k`)

# Actor input Schema

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

List of business URLs or bare domains (e.g., 'shopify.com' or 'https://cal.com'). Leave empty when enriching a Dataset or CSV.

## `datasetId` (type: `string`):

Select an existing Apify Dataset containing websites (auto-detects 'website', 'url', 'domain', 'companyWebsite' and preserves all original columns like title, rating, placeId, phone & address).

## `csvUrl` (type: `string`):

Direct CSV URL or public Google Sheets link containing website URLs or domains (preserves original CSV columns).

## `urlColumn` (type: `string`):

Leave blank to auto-detect ('website', 'url', 'domain', 'site', etc.).

## `preserveDatasetFields` (type: `boolean`):

Merges your original Google Maps / Apollo / CSV fields (e.g. title, placeId, totalScore, phone, street) directly into each enriched output record.

## `onlyMissingEmails` (type: `boolean`):

When enriching a Dataset or CSV, passes through rows that already have a valid email without crawling or billing.

## `maxPagesPerDomain` (type: `integer`):

Crawls the homepage first, then follows discovered /contact, /about, /team, /impressum, /legal links up to this page cap.

## `verifyEmailMx` (type: `boolean`):

Checks DNS MX records and identifies the company's Mail Provider (Google Workspace, Microsoft 365, etc.) and personal vs. role inboxes.

## `defaultPhoneCountry` (type: `string`):

2-letter ISO country code used when parsing domestic phone numbers without a '+' country prefix (international '+' numbers are always detected automatically).

## `onlyWithContacts` (type: `boolean`):

Filters out websites that expose zero emails, phone numbers, or social profiles (note: zero-contact websites are already $0 either way!).

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

Optional Apify Proxy configuration for heavily WAF-protected target websites. Runs fast & proxy-free by default using Chrome TLS impersonation.

## `concurrency` (type: `integer`):

Number of websites crawled concurrently (1 to 30).

## `maxDomains` (type: `integer`):

Optional cap on total rows processed in this run.

## `apifyToken` (type: `string`):

Only needed if reading a private Dataset ID belonging to a different Apify account.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://linear.app",
    "https://cal.com"
  ],
  "urlColumn": "",
  "preserveDatasetFields": true,
  "onlyMissingEmails": false,
  "maxPagesPerDomain": 4,
  "verifyEmailMx": true,
  "defaultPhoneCountry": "US",
  "onlyWithContacts": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "concurrency": 15
}
```

# Actor output Schema

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

Consolidated contact, social, and technology intelligence per website stored in the default dataset.

# 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://apify.com",
        "https://linear.app",
        "https://cal.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

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

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

```

## MCP server setup

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