# Website Contact Extractor - Emails, Phones & Socials (`projecthax/website-contact-extractor`) Actor

Extract business emails (MX-validated), phone numbers, company social links, address and tech stack from any company website. Scans the homepage plus contact, about, team and imprint pages.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Extractor - Emails, Phones & Socials

Extract business emails (MX-validated), phone numbers, company social links, address and tech stack from any company website. Scans the homepage plus contact, about, team and imprint pages.

### What does Website Contact Extractor do?

Give it a list of company websites or plain domains. For each domain it loads the homepage, picks the most useful
contact pages it links to (contact, imprint/Impressum, about, team, privacy) and returns **one clean row per domain**:

- **Emails, typed and validated**: every address comes with the page it was found on, how it was found
  (`mailto`, visible text, JSON-LD, Cloudflare-protected, `[at]`/`(dot)` obfuscation), a `type` (`role` such as info@ /
  sales@, `personal`, or `webmail`), `matchesDomain`, and **`mxValid`** from a live MX DNS lookup, so you can drop dead
  domains before you send.
- **Phone numbers** normalized to E.164 and international format with country code (from `tel:` links, schema.org and page text).
- **Company social profiles**: LinkedIn company page, Facebook, Instagram, X/Twitter, YouTube, TikTok. Share buttons and
  personal LinkedIn profiles are filtered out.
- **Company name and postal address** (schema.org Organization / LocalBusiness, or the `<address>` tag).
- **Tech hints**: CMS, e-commerce, analytics, chat and marketing tools (WordPress, Shopify, HubSpot, Intercom, GTM, ...).
- Junk is removed: placeholder addresses (`user@example.com`), Sentry/Wix tracking IDs, `logo@2x.png` image names.
- Plain HTTP requests, no browser: fast and cheap. Exports to JSON, CSV, Excel, XML or via API, webhooks and
  integrations (Make, Zapier, n8n, LangChain, MCP).

### How to use it

1. Paste website URLs into **Website URLs** or plain domains (`acme.com`) into **Domains**.
2. Keep **Validate emails** on to get `mxValid`; keep **Business emails only** on to drop gmail/yahoo/hotmail addresses.
3. Click **Start**, then download the dataset (the *Overview* view has one row per domain).

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Company websites (homepage or any page). |
| `domains` | array of strings | Plain domains, e.g. `acme.com`. Combined with `startUrls`, de-duplicated by domain. |
| `maxPagesPerDomain` | integer | Pages scanned per domain, homepage included (default 5, max 20). |
| `validateEmails` | boolean | MX lookup per email domain (default true). Off on the free plan. |
| `businessEmailsOnly` | boolean | Drop free webmail addresses (default true). |
| `includeSocials` | boolean | Return company social links (default true). |
| `maxDomains` | integer | Stop after N domains (0 = no limit). Free plan: 10. |
| `maxConcurrency` | integer | Domains in parallel (default 10). |
| `requestTimeoutSecs` | integer | Per-page timeout (default 20). |
| `proxyConfiguration` | object | Optional Apify Proxy. |

### Sample output

```json
{
  "domain": "apify.com",
  "url": "https://apify.com/contact",
  "companyName": "Apify",
  "emails": [
    {
      "email": "hello@apify.com",
      "source": "https://apify.com/contact",
      "foundIn": "mailto",
      "type": "role",
      "matchesDomain": true,
      "mxValid": true
    },
    {
      "email": "legal@apify.com",
      "source": "https://docs.apify.com/legal",
      "foundIn": "mailto",
      "type": "role",
      "matchesDomain": true,
      "mxValid": true
    }
  ],
  "phones": [],
  "socials": {
    "linkedinCompany": "https://www.linkedin.com/company/apify",
    "facebook": null,
    "instagram": null,
    "twitter": "https://x.com/apify",
    "youtube": "https://www.youtube.com/c/Apify",
    "tiktok": "https://www.tiktok.com/@apifyoffice"
  },
  "address": "Na Příkopě 959/27, 11000, Prague, CZ",
  "techHints": [
    "HubSpot",
    "Next.js",
    "Google Tag Manager",
    "Intercom",
    "Bootstrap"
  ],
  "scrapedPages": [
    "https://apify.com/contact",
    "https://apify.com/contact-sales",
    "https://docs.apify.com/legal"
  ],
  "emailCount": 2,
  "phoneCount": 0
}
```

Sites that cannot be loaded produce a row with `domain`, `url` and `error`, and are **not charged**.

### Pricing

**Launch period: currently free to use** (you only pay Apify platform usage, about $0.0001 per domain). Pay-per-event pricing, shown below, is planned for about 2026-11-23 and will apply to new runs from then on. The free-plan limits below apply now.

Planned pricing: this Actor will use **pay per event** pricing: you pay only for what you get, platform usage is included.

| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.005 | Once per run |
| Website scanned | $0.004 (= $4 per 1,000 domains) | Per domain saved. Sites that fail to load are free. |
| Email validated | $0.001 (= $1 per 1,000 emails) | Per email whose MX lookup gave a definite answer. DNS timeouts are free. Only when `validateEmails` is on. |

Example: 1,000 domains with about 2.5 validated emails each cost about $4.00 + $2.50 + $0.005 = **$6.51**.
Turn off validation and the same run costs $4.01. Set **Max total charge** on the run to cap your spend; the Actor
stops cleanly when the limit is reached and never bills above it.

**Free Apify plan:** runs are capped at **10 domains** and MX validation is off. Each row carries a `notice` field,
and the run status says so. Any paid Apify plan removes the cap.

### FAQ

**Why did my run stop at 10 domains, and why is `mxValid` null?**
You are on the free Apify plan: runs are capped at 10 domains without MX validation. Any paid plan removes the cap.

**What does `mxValid` mean?**
`true`: the email's domain has mail servers (MX records, or an A record as RFC 5321 fallback). `false`: the domain does
not exist or publishes a null MX, so mail will bounce. `null`: not checked (validation off, free plan, DNS timeout, or
your max total charge was reached). MX validation does not prove a specific mailbox exists; we never send probe emails.

**Why are some emails missing?**
Many sites only offer a contact form, or load contacts with JavaScript. Raise `maxPagesPerDomain` to scan more pages.
Webmail addresses are dropped unless you turn off **Business emails only**.

**Does it collect personal social profiles?**
No. Only company-level links (LinkedIn `/company/`, brand pages). Personal LinkedIn `/in/` profiles are ignored.

**Why did my run stop early?**
Either `maxDomains` or your run's **Max total charge** was reached. The status message says which.

**Is this legal?**
The Actor only reads publicly available pages and does not log in. Business contact data can still be personal data
(for example `jane.doe@company.com`). You are responsible for complying with the target sites' terms and with
GDPR, CCPA and anti-spam law (CAN-SPAM, PECR) when you store or contact anyone.

**Something broke or a field is missing?**
Open an issue on the Actor's **Issues** tab with the run ID. We usually reply within one business day.

### Changelog

- 0.1.8 (2026-11-09): about 4x less CPU for technology detection (same results); default memory 1 GB.
- 0.1 (2026-11-09): first release.

# Actor input Schema

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

Company websites to scan (homepage or any page). One result row per domain. You can also use the plain 'Domains' list below.

## `domains` (type: `array`):

Plain domains such as 'acme.com' (no https:// needed). Combined with Website URLs and de-duplicated.

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

Homepage plus the best contact, imprint, about, team and privacy pages found on it. 5 covers most sites.

## `validateEmails` (type: `boolean`):

Check each email domain's mail servers (MX DNS records) and set mxValid true/false. Charged per email with a definite answer. Not available on the free Apify plan.

## `businessEmailsOnly` (type: `boolean`):

Drop free webmail addresses (gmail.com, yahoo.com, hotmail.com, ...). Placeholder and tracking addresses are always dropped.

## `includeSocials` (type: `boolean`):

LinkedIn company page, Facebook, Instagram, X/Twitter, YouTube and TikTok links found on the site. Company-level links only: personal LinkedIn profiles are never collected.

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

Stop after this many domains (0 = no limit). Free Apify plan: capped at 10 domains per run. You never pay more than the run's 'Max total charge'.

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

Domains scanned in parallel.

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

Per-page timeout. Slow sites beyond this are reported as failed (not charged).

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

Optional. Most company sites work without a proxy; use Apify Proxy if many sites block the run.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://www.python.org"
    }
  ],
  "maxPagesPerDomain": 5,
  "validateEmails": true,
  "businessEmailsOnly": true,
  "includeSocials": true,
  "maxDomains": 0,
  "maxConcurrency": 10,
  "requestTimeoutSecs": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per domain: business emails (with source page, type and MX validity), phone numbers in E.164, company social profiles, company name, address and tech hints. Failed sites are listed with an error and are not charged.

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://www.python.org"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("projecthax/website-contact-extractor").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 = { "startUrls": [
        { "url": "https://apify.com" },
        { "url": "https://www.python.org" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("projecthax/website-contact-extractor").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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://www.python.org"
    }
  ]
}' |
apify call projecthax/website-contact-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,projecthax/website-contact-extractor"
        }
    }
}
```

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/aSf0Gkqgg8fXMtmcX/builds/WPspnGmdZkYwceiER/openapi.json
