# Website Contact Scraper: Email Extractor (`deepmine/website-contact-scraper`) Actor

Paste business website URLs or domains into this website contact scraper and email extractor. Get public emails, phone numbers, WhatsApp and social profiles, with one row per website. Export the results for your CRM or lead list.

- **URL**: https://apify.com/deepmine/website-contact-scraper.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (community)
- **Categories:** Lead generation, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 96.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.79 / 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

Give the Actor website URLs, bare domains, one URL per line, or Apify request objects with a URL. It reads each domain once, starting at the supplied page, then follows the same site's contact, about, team, location, and imprint links found there. Set `maxPagesPerSite` to limit the crawl to 1–50 pages (10 by default). No browser or JavaScript execution is required.

The default dataset contains one row per site with a contact. Rows can contain email addresses, confirmed phone numbers, WhatsApp, social profiles, less certain phone numbers, the discovered contact page, the page count, and the website status. Set `includeSocials` to false to omit social profiles. Sites with no exportable contact go to the free No contacts dataset. `OUTPUT` reports delivery and crawl progress. An empty or 404 site can finish successfully; a run where no site can be reached fails without charging for results.

Mycelium v1.0.0 runs the Actor and saves paid results. Before enqueueing, the Actor checkpoints the physical row floor and pending IDs. Restarts also read Python delivery records and the free dataset so they can skip earlier work. The HTTP client uses Chrome 150, checks DNS before each request and redirect, and connects to a validated address. It rotates sessions for refusals and uses no paid Apify proxy groups or warmup requests. The server response limit is a 3 MB prefix and the dataset row limit is 64 KiB.

Build on Linux x86-64 with Rust, binutils, and the pinned Mycelium curl archive (libcurl-impersonate 2.2.2). Point `ACTOR_CORE_CURL_DIR` to the directory containing `libcurl-impersonate.a`. Run `cargo test` and `cargo build --release`. The standard Dockerfile stages the release binary; `Dockerfile.source` builds it from the included sources. The image runs at a 512 MB default and minimum on Apify.

For a local run, put the input in `storage/key_value_stores/default/INPUT.json` and run the binary with `ACTOR_CORE_LOCAL_DIRECT=1`. Only the test harness permits loopback websites. The managed smoke test uses a local mock storage API; the production binary test verifies that its loopback guard cannot be overridden.

# Actor input Schema

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

The websites to read, one per line: a link or a bare domain, e.g. acme.com. A domain listed twice is read once.

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

The homepage plus the contact, about, team and imprint pages it links. Same price whatever you set; fewer pages finish sooner. Reads up to 50 pages per site.

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

Adds Instagram, Facebook, LinkedIn, TikTok, YouTube and X. Off: emails and phones only, and a site with neither is free.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.habitat.org",
    "https://www.mozilla.org",
    "https://www.patagonia.com"
  ],
  "maxPagesPerSite": 10,
  "includeSocials": true
}
```

# Actor output Schema

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

No description

## `noContacts` (type: `string`):

No description

## `summary` (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 = {
    "startUrls": [
        "https://www.habitat.org",
        "https://www.mozilla.org",
        "https://www.patagonia.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/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 = { "startUrls": [
        "https://www.habitat.org",
        "https://www.mozilla.org",
        "https://www.patagonia.com",
    ] }

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

```

## MCP server setup

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