# Website Contact Extractor — Email, Phone, Socials (`v0iddo/website-contact-extractor`) Actor

One row per input domain. Visits the homepage plus up to 5 standard contact pages (/contact, /about, /team, /imprint, /privacy). Surfaces emails (optionally MX-verified), phone numbers (E.164 + raw), social links, mailing addresses, and embedded platforms like Calendly, Hubspot, Mailchimp.

- **URL**: https://apify.com/v0iddo/website-contact-extractor.md
- **Developed by:** [vøiddo](https://apify.com/v0iddo) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 domain contact-extracteds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

![cover](./assets/cover.png)

## Website Contact Extractor

One row per domain. Emails, phones, social handles, and embedded
platforms — pulled from the homepage and five standard contact pages
(`/contact`, `/about`, `/team`, `/imprint`, `/privacy`). Emails are
MX-verified by default. No headless browser, no cookies, no login.

### What you get

````

{
"domain":          "stripe.com",
"origin":          "https://stripe.com",
"pagesProbed":     6,
"pagesOk":         6,
"emails": \[
{ "email": "dpo@stripe.com",      "role": "legal",   "mxValid": true },
{ "email": "privacy@stripe.com",  "role": "legal",   "mxValid": true },
{ "email": "complaints-in@stripe.com", "role": null, "mxValid": true }
],
"phones":          \["+14155551212"],
"socials": {
"twitter":   \["https://twitter.com/stripe"],
"github":    \["https://github.com/stripe"],
"youtube":   \["https://youtube.com/@stripe"],
"facebook":  \["https://facebook.com/StripePayments"],
"instagram": \["https://instagram.com/stripe"]
},
"platforms":       \["google-analytics", "stripe-checkout"]
}

````

### How to use

**Input.** A list of domains or URLs.

- `acme.com` → crawls the homepage plus the five default contact pages.
- `https://acme.com/team` → crawls only that one page.
- `extraPaths: ["/legal", "/kontakt"]` → adds locale-specific paths to
  the default set for every domain.

**Output.** Apify dataset, one row per domain. Schema above.

**Verification.** `verifyEmails: true` runs a DNS `MX` lookup on every
extracted email's domain. No SMTP probing — just MX-record presence.
Fast (~50ms per unique domain), no rate-limit risk.

**Proxy.** Off by default; turn on `useResidentialProxy` only for
sites that refuse datacenter IPs.

### v0.2 — what's new

**Role classification.** Every email is tagged with a role inferred from
the local part: `ceo`, `press`, `security`, `legal`, `billing`,
`careers`, `sales`, `support`, `info`. `info@`, `hello@`, `contact@`
fall under `info`; `careers@`, `jobs@`, `hr@` under `careers`; etc.
Unknown locals get `role: null`. Filter `role == "sales"` to surface BD
contacts across a portfolio without manual triage.

**Strict same-domain.** Set `strictSameDomain: true` to drop any email
whose host doesn't match the input domain (or a subdomain of it). This
removes SDK noise — e.g. on `stripe.com` you'd otherwise see
`noreply@sentry.io` because of the embedded Sentry init script.

**Flat email rows for CSV export.** Set `emitFlatEmails: true` to
additionally emit one row per email shaped `{domain, email, role,
mxValid}`. Export to CSV from the Apify console → you get a usable
email list directly, no Python post-processing. Billing still charges
once per domain — flat rows are derived views, not paid data.

### What this actor does NOT do

- **No LinkedIn.** Deliberately excluded. LinkedIn's TOS and the
  `hiQ v. LinkedIn` chain of litigation make it unsuitable for an
  open Apify Store actor. Use a separate first-party LinkedIn-aware
  workflow.
- **No SMTP probing.** MX-record presence is the only verification.
  SMTP `RCPT TO:` probing trips spam-score listings on the source
  IP — bad ROI.
- **No JavaScript rendering.** Sites that ship contact info only via
  JS bundles (rare for contact pages) will surface as empty.

### Pricing

PAY_PER_EVENT · `$0.005 per domain_extracted` · 200 domains = $1.

### Source

Each domain's public HTTP responses on `/`, `/contact`, `/about`,
`/team`, `/imprint`, `/privacy`, plus any `extraPaths`. Parsing is
regex + light HTML stripping; deobfuscates the common `(at)` / `[dot]`
email tricks before extraction. Phone numbers are normalized to E.164
best-effort.

# Actor input Schema

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

Domains or URLs to crawl. "acme.com", "https://acme.com", "https://acme.com/about" — all valid. URLs with a path crawl just that page; bare domains crawl /, /contact, /about, /team, /imprint, /privacy.
## `verifyEmails` (type: `boolean`):

For every extracted email, run a DNS MX lookup on the domain. Slower but filters obviously-dead inboxes. No SMTP probing — just MX-record presence.
## `useResidentialProxy` (type: `boolean`):

Route requests via Apify residential proxy. Slower and consumes proxy quota. Only flip on if target sites refuse datacenter IPs.
## `proxyCountry` (type: `string`):

Two-letter country code for the residential exit (US, GB, DE, …). Ignored unless useResidentialProxy is true.
## `extraPaths` (type: `array`):

Optional additional paths to fetch per domain on top of the defaults. Example: ["/legal", "/kontakt", "/sobre"]. Use a leading slash.
## `strictSameDomain` (type: `boolean`):

Drop emails whose host doesn't match the input domain (or a subdomain of it). Removes noise from embedded SDKs (e.g. noreply@sentry.io appearing on stripe.com because of an embedded Sentry init).
## `emitFlatEmails` (type: `boolean`):

In addition to the per-domain row, emit one extra row per email with {domain, email, role, mxValid}. CSV export from Apify console becomes a usable email list. Billing still charges 1× per domain — flat rows are derived views, not paid data.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "supabase.com",
    "linear.app"
  ],
  "verifyEmails": true,
  "useResidentialProxy": false,
  "proxyCountry": "US",
  "extraPaths": [],
  "strictSameDomain": false,
  "emitFlatEmails": false
}
````

# 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 = {
    "domains": [
        "stripe.com",
        "supabase.com",
        "linear.app"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("v0iddo/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 = { "domains": [
        "stripe.com",
        "supabase.com",
        "linear.app",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("v0iddo/website-contact-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "stripe.com",
    "supabase.com",
    "linear.app"
  ]
}' |
apify call v0iddo/website-contact-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=v0iddo/website-contact-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Website Contact Extractor — Email, Phone, Socials",
        "description": "One row per input domain. Visits the homepage plus up to 5 standard contact pages (/contact, /about, /team, /imprint, /privacy). Surfaces emails (optionally MX-verified), phone numbers (E.164 + raw), social links, mailing addresses, and embedded platforms like Calendly, Hubspot, Mailchimp.",
        "version": "0.2",
        "x-build-id": "LC9UG2kzaRCpZd89X"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/v0iddo~website-contact-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-v0iddo-website-contact-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/v0iddo~website-contact-extractor/runs": {
            "post": {
                "operationId": "runs-sync-v0iddo-website-contact-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/v0iddo~website-contact-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-v0iddo-website-contact-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains or URLs",
                        "type": "array",
                        "description": "Domains or URLs to crawl. \"acme.com\", \"https://acme.com\", \"https://acme.com/about\" — all valid. URLs with a path crawl just that page; bare domains crawl /, /contact, /about, /team, /imprint, /privacy.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "verifyEmails": {
                        "title": "Verify emails (MX lookup)",
                        "type": "boolean",
                        "description": "For every extracted email, run a DNS MX lookup on the domain. Slower but filters obviously-dead inboxes. No SMTP probing — just MX-record presence.",
                        "default": true
                    },
                    "useResidentialProxy": {
                        "title": "Use Apify residential proxy",
                        "type": "boolean",
                        "description": "Route requests via Apify residential proxy. Slower and consumes proxy quota. Only flip on if target sites refuse datacenter IPs.",
                        "default": false
                    },
                    "proxyCountry": {
                        "title": "Proxy country (ISO-2)",
                        "type": "string",
                        "description": "Two-letter country code for the residential exit (US, GB, DE, …). Ignored unless useResidentialProxy is true.",
                        "default": "US"
                    },
                    "extraPaths": {
                        "title": "Extra paths to probe",
                        "type": "array",
                        "description": "Optional additional paths to fetch per domain on top of the defaults. Example: [\"/legal\", \"/kontakt\", \"/sobre\"]. Use a leading slash.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "strictSameDomain": {
                        "title": "Strict same-domain emails only",
                        "type": "boolean",
                        "description": "Drop emails whose host doesn't match the input domain (or a subdomain of it). Removes noise from embedded SDKs (e.g. noreply@sentry.io appearing on stripe.com because of an embedded Sentry init).",
                        "default": false
                    },
                    "emitFlatEmails": {
                        "title": "Also emit one flat row per email (for CSV export)",
                        "type": "boolean",
                        "description": "In addition to the per-domain row, emit one extra row per email with {domain, email, role, mxValid}. CSV export from Apify console becomes a usable email list. Billing still charges 1× per domain — flat rows are derived views, not paid data.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
