# Website Contact Scraper — Emails, Socials, DNS MX & Impressum (`foxlabs/website-contact-scraper`) Actor

Extract verified business emails (including Cloudflare-obfuscated addresses), phones, WhatsApp/Telegram, 9 social profiles, DNS MX/SPF email providers, DACH Impressum directors & VAT IDs, and tech stack from any list of websites.

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

## Pricing

$1.50 / 1,000 enriched website contact records

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 Banner](https://data.foxlabs.com.tr/img/website-contact-scraper-banner.svg)

## Website Contact Scraper — Verified Emails, Socials, DNS MX & Impressum Intelligence 🚀

Extract **verified business emails** (including **Cloudflare `data-cfemail` encrypted addresses**), **phone numbers**, **WhatsApp & Telegram links**, **9 social networks** (with company vs. personal `/in/` LinkedIn separation), **live DNS `MX` / `SPF` / `DMARC` email infrastructure**, **DACH `Impressum` managing directors & VAT IDs**, and **B2B tech stack signals** from any list of domains or URLs — with zero browser overhead.

> **AI Agent & MCP Quick-Start:** Run with `{"urls":["https://apify.com","https://www.personio.de","https://stripe.com"],"maxPagesPerDomain":4,"verifyDnsMx":true}`. Machine-readable documentation is always available at `https://apify.com/foxlabs/website-contact-scraper.md`.

***

### 🔍 1. What Does Website Contact Scraper Do?

Whenever you collect business websites from Google Maps, Clutch, BBB, Shopify directories, company registries, or CRM exports, raw homepage URLs rarely give you outreach-ready contacts on the first view: emails sit on `/contact` or `/impressum` subpages, Cloudflare masks addresses behind `data-cfemail` hex strings, and stale domains bounce because their `MX` records expired.

**Website Contact Scraper** turns any list of domains or URLs into clean, outreach-ready B2B intelligence records in seconds:

- **Cloudflare & Obfuscated Email Recovery:** Automatically decrypts Cloudflare Email Protection (`data-cfemail` / `/cdn-cgi/l/email-protection#...`), HTML entities (`&#64;`), and `name [at] domain [dot] com` patterns while strictly rejecting asset false positives (`@2x.png`, `.webp`, Sentry DSNs, `noreply@`).
- **Smart Internal Page Discovery:** Crawls the homepage plus the highest-priority internal `/impressum`, `/contact`, `/about`, `/team`, and `/legal` pages on the same domain (`maxPagesPerDomain`).
- **Live DNS `MX`, `SPF` & `DMARC` Intelligence:** Confirms in parallel whether the domain actually accepts mail (`hasMxRecord`), identifies the inbox provider (`Google Workspace`, `Microsoft 365`, `Zoho Mail`, `Proton Mail`, `Mimecast`, `Fastmail`), and detects marketing/transactional ESPs from `SPF` (`HubSpot`, `Klaviyo`, `SendGrid`, `Mailchimp`, `Amazon SES`, `Mailgun`, `Postmark`, `Salesforce`, `Customer.io`, `Intercom`).
- **DACH `Impressum` & Schema.org Legal Extraction:** Extracts `managingDirectors[]` (`Geschäftsführer` / `Vertreten durch` / JSON-LD `founder`), European `vatId` (`DE...`, `ATU...`, `CHE-...`), commercial register numbers (`HRB` / `HRA` / `FN`), and structured street addresses.

***

### 🤖 2. Built for AI Agents, MCP & Automated Workflows

- **MCP & Agent Native:** Designed for Claude, Gemini, OpenAI, LangChain, CrewAI, and Apify MCP Server workflows (`https://mcp.apify.com`) as well as x402 / Skyfire autonomous micropayment pipelines.
- **Standby HTTP API Ready:** Supports synchronous `POST /scrape` JSON calls when run in Apify Standby mode alongside high-volume asynchronous Batch runs.
- **Suggested Agent Prompt:** *"Use `foxlabs/website-contact-scraper` on these 200 company domains with `verifyDnsMx: true` and return every domain that has a valid MX record, primary email, LinkedIn company URL, and HubSpot or Klaviyo in its tech/email stack."*

***

### 📋 3. Why Choose `foxlabs/website-contact-scraper`?

| Capability | Typical Contact Scrapers | `foxlabs/website-contact-scraper` |
| :--- | :--- | :--- |
| **Cloudflare `data-cfemail` Protection** | Returns `[email protected]` or misses email | **Built-in XOR hex decryption (`100%` exact email)** |
| **Email Infrastructure (`MX` / `SPF` / `DMARC`)** | None (delivers dead/expired domains) | **Live `hasMxRecord`, `mxProvider` & `emailSendingTools[]`** |
| **LinkedIn Company vs. Decision-Maker Split** | Mixed into one noisy array | **Separate `linkedinCompanyUrls[]` & `linkedinPersonalUrls[]`** |
| **DACH `Impressum` Legal Data** | Not parsed | **`managingDirectors[]`, `vatId` (`USt-IdNr.`), `HRB`/`HRA`** |
| **Runtime Speed & Footprint** | Heavy Chromium browser (`1–4 GB` RAM) | **Pure Node.js `undici` streaming (`256 MB` RAM)** |
| **Pay-Per-Event Fairness** | Charges for dead URLs or filtered rows | **$0 start fee; unreachable & `requireEmail` skips cost `$0.00`** |

***

### ✨ 4. Key Features

1. **Email Role vs. Personal Classification:** Automatically separates `domainEmails[]`, `roleEmails[]` (`info@`, `sales@`, `hello@`, `press@`), `personalEmails[]` (`jan@`, `hanno.renner@`), and third-party `externalEmails[]`, always ranking same-domain addresses first in `primaryEmail`.
2. **9 Social Networks + Instant Messaging:** Canonicalizes and deduplicates `LinkedIn` (company & `/in/` personal), `X/Twitter`, `Instagram`, `Facebook`, `YouTube`, `TikTok`, `GitHub`, `Pinterest`, `Threads`, `WhatsApp` (`wa.me`), and `Telegram` (`t.me`) while stripping `/sharer` and `/intent/tweet` noise.
3. **21-Signature B2B Tech Stack Fingerprint:** Detects `Shopify`, `WooCommerce`, `Magento`, `BigCommerce`, `Webflow`, `Framer`, `WordPress`, `Next.js`, `Nuxt`, `HubSpot`, `Intercom`, `Zendesk`, `Crisp`, `Drift`, `Klaviyo`, `Stripe`, `Google Tag Manager`, `Google Analytics`, `Meta Pixel`, `LinkedIn Insight Tag`, and `Cloudflare`.
4. **Domain-Level Deduplication & Crash Recovery:** Multiple URLs pointing to the same domain are consolidated into one rich record (`rowKey: "domain:<domain>"`), and container restarts never re-emit or double-charge already stored domains.

***

### 📊 5. Transparent Pay-Per-Event Pricing

Billing uses `Actor.getChargingManager()` strictly per delivered domain record — **no monthly subscription, no actor-start fee, and `$0.00` charge on unreachable domains, `requireEmail` skips, or diagnostic `status` rows**:

| Event Name | Price | Per 1,000 Domains | When Charged |
| :--- | :---: | :---: | :--- |
| `domain` | **$0.0015** | **$1.50 / 1K** | Each unique reachable domain enriched with contact, social, Impressum & DNS MX data |
| `status` | **$0.0000** | **Free** | Diagnostic note emitted only when input is empty or all domains are unreachable |

***

### 📥 6. Input Parameters

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `urls` | `string[]` | `["https://apify.com", ...]` | Domains (`"stripe.com"`) or full URLs (`"https://www.personio.de"`). Duplicate domains are crawled once. |
| `maxPagesPerDomain` | `integer` | `4` | Max pages read per domain (`1–15`): homepage plus top-scored `/impressum`, `/contact`, `/about`, `/team` links. |
| `verifyDnsMx` | `boolean` | `true` | Lookup DNS `MX`, `SPF`, and `DMARC` records (`hasMxRecord`, `mxProvider`, `emailSendingTools[]`). |
| `sameDomainEmailsOnly` | `boolean` | `false` | Keep only emails matching the target domain in `emails[]` (third-party addresses remain in `externalEmails[]`). |
| `requireEmail` | `boolean` | `false` | Only emit and charge domains where at least 1 valid email address was extracted (`emailCount > 0`). |
| `concurrency` | `integer` | `5` | Number of domains processed in parallel (`1–15`). |
| `maxDomains` | `integer` | `500` | Maximum billable `domain` records to deliver (`1–50000`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy":true}` | Managed automatically out of the box. |

***

### 🎬 7. Quick-Start Input Examples

#### Standard B2B Domain Contact & DNS MX Enrichment (`$1.50 / 1K`)

```json
{
  "urls": [
    "https://apify.com",
    "https://www.personio.de",
    "https://stripe.com"
  ],
  "maxPagesPerDomain": 4,
  "verifyDnsMx": true
}
```

#### Strict Outbound Lead List (Same-Domain Verified Emails Only)

```json
{
  "urls": [
    "apify.com",
    "personio.de",
    "clutch.co"
  ],
  "maxPagesPerDomain": 5,
  "verifyDnsMx": true,
  "sameDomainEmailsOnly": true,
  "requireEmail": true,
  "concurrency": 8,
  "maxDomains": 1000
}
```

***

### 📤 8. Sample Output Record

```json
{
  "rowType": "domain",
  "rowKey": "domain:apify.com",
  "domain": "apify.com",
  "inputUrl": "https://apify.com/",
  "finalUrl": "https://apify.com/",
  "httpStatus": 200,
  "siteTitle": "Apify: Full-stack web scraping and data extraction platform",
  "organizationName": "Apify",
  "legalEntityName": "Apify Technologies s.r.o.",
  "primaryEmail": "hello@apify.com",
  "emails": [
    "hello@apify.com"
  ],
  "emailsText": "hello@apify.com",
  "domainEmails": [
    "hello@apify.com"
  ],
  "roleEmails": [
    "hello@apify.com"
  ],
  "personalEmails": [],
  "externalEmails": [],
  "emailCount": 1,
  "phones": [],
  "phonesText": null,
  "phoneCount": 0,
  "whatsappLinks": [],
  "telegramLinks": [],
  "linkedinCompanyUrl": "https://www.linkedin.com/company/apifytech",
  "linkedinCompanyUrls": [
    "https://www.linkedin.com/company/apifytech"
  ],
  "linkedinPersonalUrls": [],
  "twitterUrls": [
    "https://x.com/apify"
  ],
  "youtubeUrls": [
    "https://www.youtube.com/@apify"
  ],
  "githubUrls": [
    "https://github.com/apify"
  ],
  "hasMxRecord": true,
  "mxProvider": "Google Workspace",
  "mxRecords": [
    "1 aspmx.l.google.com",
    "5 alt1.aspmx.l.google.com"
  ],
  "emailSendingTools": [
    "Amazon SES",
    "Mailgun",
    "HubSpot"
  ],
  "emailSendingToolsText": "Amazon SES, Mailgun, HubSpot",
  "hasDmarc": true,
  "managingDirectors": [],
  "vatId": null,
  "registrationNumber": null,
  "techStack": [
    "Next.js",
    "Intercom",
    "Google Tag Manager"
  ],
  "techStackText": "Next.js, Intercom, Google Tag Manager",
  "contactPagesVisited": [
    "https://apify.com/",
    "https://apify.com/contact"
  ],
  "pagesCrawled": 2,
  "scrapedAt": "2026-11-24T02:20:00.000Z"
}
```

***

### 🗂️ 9. Output Schema Reference

- **Domain & Crawl Metadata:** `rowType` (`domain` | `status`), `rowKey` (`domain:<domain>`), `domain`, `inputUrl`, `finalUrl`, `httpStatus`, `contactPagesVisited[]`, `pagesCrawled`, `scrapedAt`.
- **Emails & Classification:** `primaryEmail`, `emails[]`, `emailsText`, `domainEmails[]`, `roleEmails[]`, `personalEmails[]`, `externalEmails[]`, `emailCount`.
- **Phones & Messaging:** `phones[]`, `phonesText`, `phoneCount`, `whatsappLinks[]`, `telegramLinks[]`.
- **Social Profiles:** `linkedinCompanyUrl`, `linkedinCompanyUrls[]`, `linkedinPersonalUrls[]`, `twitterUrls[]`, `instagramUrls[]`, `facebookUrls[]`, `youtubeUrls[]`, `tiktokUrls[]`, `githubUrls[]`, `pinterestUrls[]`, `threadsUrls[]`.
- **DNS Mail & ESP Stack:** `hasMxRecord`, `mxProvider`, `mxRecords[]`, `spfRaw`, `emailSendingTools[]`, `emailSendingToolsText`, `hasDmarc`.
- **Organization, `Impressum` & Tech Stack:** `siteTitle`, `metaDescription`, `organizationName`, `legalEntityName`, `managingDirectors[]`, `managingDirectorsText`, `vatId`, `registrationNumber`, `streetAddress`, `postalCode`, `city`, `country`, `techStack[]`, `techStackText`.

***

### 💼 10. High-Value B2B Use Cases

1. **Google Maps, Clutch & BBB Lead Enrichment:** Turn raw business website lists from `foxlabs/google-maps-scraper`, `foxlabs/clutch-scraper`, or `foxlabs/bbb-scraper` into verified emails, founder LinkedIn URLs, and WhatsApp numbers.
2. **DACH (`DE` / `AT` / `CH`) Outbound Compliance & Decision-Maker Discovery:** Automatically read `/impressum` pages to extract `Geschäftsführer` full names, `HRB`/`HRA` numbers, and `USt-IdNr.` VAT IDs.
3. **ESP & MarTech Qualification:** Segment prospects using `Klaviyo` + `Shopify` (for e-commerce agencies) or `HubSpot` + `Salesforce` + `Google Workspace` (for B2B SaaS sales) directly from `emailSendingTools[]` and `techStack[]`.
4. **CRM Hygiene & Bounce Prevention:** Pre-screen thousands of domains with `hasMxRecord` before spending credits on cold outreach tools.

***

### 🔗 11. API & SDK Integration (cURL, JavaScript, Python, n8n / Make)

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~website-contact-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://apify.com","https://www.personio.de"],"maxPagesPerDomain":4,"verifyDnsMx":true}'
```

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('foxlabs/website-contact-scraper').call({
  urls: ['https://apify.com', 'https://www.personio.de'],
  maxPagesPerDomain: 4,
  verifyDnsMx: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("foxlabs/website-contact-scraper").call(
    run_input={
        "urls": ["https://apify.com", "https://www.personio.de"],
        "maxPagesPerDomain": 4,
        "verifyDnsMx": True,
    }
)
dataset_id = getattr(run, "default_dataset_id", None) or run["defaultDatasetId"]
items = client.dataset(dataset_id).list_items().items
print(len(items))
```

#### n8n / Zapier / Make

Connect the official **Apify** node in n8n, Make, or Zapier → select `foxlabs/website-contact-scraper` → pass incoming lead URLs from Webhook, HubSpot, Pipedrive, or Google Sheets → route enriched `primaryEmail`, `mxProvider`, and `linkedinCompanyUrl` directly into your sequence tool.

***

### ⚡ 12. Real-Time Standby HTTP Mode

When invoked in Apify Standby mode, the actor exposes synchronous HTTP endpoints:

- `GET /` — Readiness and health check.
- `POST /scrape` — Accepts the standard input JSON and returns `{"ok": true, "count": N, "items": [...]}` synchronously in a single HTTP response.

***

### 🛡️ 13. Deduplication, Crash Recovery & Budget Safety

- **Canonical Root Domain Deduplication:** Passing `http://www.acme.com`, `https://acme.com/pricing`, and `acme.com` in the same run crawls and bills `acme.com` **once** (`rowKey: "domain:acme.com"`).
- **Spend Cap Protection:** Before every parallel batch, `Actor.getChargingManager()` verifies remaining `maxTotalChargeUsd` budget so runs halt cleanly without overrun.

***

### 🧩 14. Combining With Other foXLabs Actors

- **`foxlabs/google-maps-scraper`** / **`foxlabs/pagesjaunes-scraper`** → local business URLs → **`website-contact-scraper`** for emails, WhatsApp, and MX verification.
- **`foxlabs/stepstone-jobs-scraper`** / **`foxlabs/xing-jobs-scraper`** → actively hiring DACH companies → **`website-contact-scraper`** for `/impressum` `Geschäftsführer` names and emails.

***

### ❓ 15. Frequently Asked Questions (FAQ)

#### 1. Does Website Contact Scraper decode Cloudflare `[email protected]` addresses?

Yes. Both `<a class="__cf_email__" data-cfemail="...">` elements and `/cdn-cgi/l/email-protection#<hex>` links are decrypted natively via XOR byte decoding without needing a headless browser.

#### 2. How does DNS `MX` and `SPF` verification work, and does it send emails?

No emails or SMTP packets are ever sent. The actor queries public DNS `MX`, `SPF`, and `_dmarc` TXT records over HTTPS (`cloudflare-dns.com`) to confirm whether the domain has active mail servers (`hasMxRecord`), identify the mail host (`Google Workspace`, `Microsoft 365`, `Zoho Mail`, `Proton Mail`), and detect authorized sending platforms (`HubSpot`, `Klaviyo`, `SendGrid`, `Mailchimp`, `Amazon SES`).

#### 3. Why are `linkedinCompanyUrls` and `linkedinPersonalUrls` separated?

Sales and recruiting teams use company pages (`/company/...`) for firmographic matching and personal profiles (`/in/...`) found on `/about` or `/team` pages to reach founders and executives directly. Keeping them separate eliminates post-processing regex work.

#### 4. Am I charged for dead domains or websites without emails?

Unreachable domains (DNS failure, connection refused, TLS error) are never charged as `domain` events. If you only want to pay for domains that yield at least one email address, set `requireEmail: true` — domains with zero emails are skipped at `$0.00`.

#### 5. How does it avoid false-positive emails like `hero@2x.png` or Sentry keys?

Every candidate passes a strict validator that strips HTML scripts/styles, rejects asset file extensions (`.png`, `.webp`, `.svg`, `.js`, `.css`, `.woff2`), blocks placeholder/tracker domains (`example.com`, `sentry.io`, `wixpress.com`), and drops 32-character hex DSN tokens and `noreply@` addresses.

#### 6. What does `sameDomainEmailsOnly: true` do?

Agency portfolios and press pages sometimes mention client or PR agency emails on external domains. Setting `sameDomainEmailsOnly: true` keeps only `@<target-domain>` addresses inside `emails[]` while preserving external addresses separately in `externalEmails[]`.

#### 7. Which pages on each website does the scraper visit?

It fetches the input URL first, scores all internal links on the same domain, and visits up to `maxPagesPerDomain - 1` top-ranked pages matching `/impressum`, `/imprint`, `/contact`, `/kontakt`, `/about`, `/team`, `/leadership`, or `/legal`. Binary files (PDFs, images, videos, archives) are skipped via `Content-Type` inspection before downloading.

#### 8. What DACH `Impressum` fields are extracted on `.de`, `.at`, and `.ch` websites?

When an `Impressum` or legal notice page is present, the parser extracts the statutory `legalEntityName` (`GmbH`, `UG`, `AG`, `SE`, `KG`), `managingDirectors[]` (`Geschäftsführer` / `Vertreten durch` / `Inhaber`), `registrationNumber` (`HRB`, `HRA`, `FN`), and `vatId` (`DE...`, `ATU...`, `CHE-...`).

#### 9. Do I need to configure residential proxies or API keys?

No. Standard Apify Proxy works automatically out of the box at `256 MB` RAM with zero external API keys or cookies required.

#### 10. How fast can it process 1,000 domains?

With `concurrency: 10` and `maxPagesPerDomain: 3`, pure HTTP streaming processes roughly `150–250` domains per minute inside a single `256 MB` container — up to `10x` faster and cheaper than Playwright/Puppeteer crawlers.

***

### 🐛 16. Troubleshooting & Diagnostics (`SOURCE_REPORT`)

- **Zero emails on a JavaScript-only SPA:** Some modern websites render contact forms without publishing any email address in HTML; check `linkedinCompanyUrl`, `phones`, or `hasMxRecord` + `mxProvider` on the returned record.
- **Inspecting unreachable domains:** Open the run's default **Key-Value Store → `SOURCE_REPORT`** to view `unreachableDomains[]` (with exact failure reason and `hasMxRecord` status) and HTTP status counts.

***

### ⚠️ 17. Trademark Notice

Product and company names mentioned (`Cloudflare`, `Google Workspace`, `Microsoft 365`, `HubSpot`, `Klaviyo`, `Shopify`, `LinkedIn`, etc.) are trademarks of their respective owners. This actor is developed independently by **foXLabs**.

***

### ⚖️ 18. Legal & Responsible Use

This actor reads publicly published corporate contact details and public DNS records only. Users are responsible for complying with applicable outreach and data protection regulations (such as GDPR, ePrivacy, CAN-SPAM, and CCPA) when contacting extracted business addresses.

***

### 🤝 19. Support & Contact

- 🌐 **Website:** [data.foxlabs.com.tr](https://data.foxlabs.com.tr)
- 📧 **Email:** info@foxlabs.com.tr
- 🐛 **Issues:** Open a ticket on the Actor's **Issues** tab in Apify Console with your Run ID or `SOURCE_REPORT` record.

***

### 📝 20. Changelog

#### 0.1.0 — 2026-11-24

- Initial release with Cloudflare `data-cfemail` decryption, smart `/contact` & `/impressum` subpage discovery, parallel DNS `MX`/`SPF`/`DMARC` intelligence, 9 canonicalized social networks, 21-signature tech stack detection, and Batch + Standby HTTP support.

# Changelog

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

# Actor input Schema

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

Domains ('apify.com', 'personio.de') or full URLs ('https://apify.com'). Duplicate domains are crawled once.

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

Maximum pages to inspect per domain (homepage plus discovered /contact, /about, /team, /impressum, /legal pages).

## `verifyDnsMx` (type: `boolean`):

Query DNS-over-HTTPS for MX records (confirming the domain can receive mail and identifying Google Workspace, Microsoft 365, Zoho, Proton, etc.) plus SPF/DMARC marketing & transactional ESP tools (HubSpot, Klaviyo, SendGrid, Mailchimp, SES).

## `sameDomainEmailsOnly` (type: `boolean`):

When enabled, keeps only email addresses matching the target domain in `emails` (third-party emails remain visible in `externalEmails`).

## `requireEmail` (type: `boolean`):

Skip and do not charge for domains where zero email addresses were found on public pages.

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

Number of domains crawled concurrently.

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

Maximum billable domain records to deliver in this run.

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

Uses standard Apify Proxy automatically out of the box (and falls back cleanly in proxy-free contexts).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.personio.de",
    "https://stripe.com"
  ],
  "maxPagesPerDomain": 4,
  "verifyDnsMx": true,
  "sameDomainEmailsOnly": false,
  "requireEmail": false,
  "concurrency": 5,
  "maxDomains": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (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 = {
    "urls": [
        "https://apify.com",
        "https://www.personio.de",
        "https://stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/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://www.personio.de",
        "https://stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/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://www.personio.de",
    "https://stripe.com"
  ]
}' |
apify call foxlabs/website-contact-scraper --silent --output-dataset

```

## MCP server setup

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