# Website Contact & Email Extractor (`smarcell/website-contact-extractor`) Actor

Extract emails, phone numbers, and social profile links from company websites. Ideal for B2B lead generation and sales prospecting.

- **URL**: https://apify.com/smarcell/website-contact-extractor.md
- **Developed by:** [Seres Marcell](https://apify.com/smarcell) (community)
- **Categories:** Lead generation, Marketing, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 contact leads

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does this Actor do?

**Website Contact & Email Extractor** discovers **public contact details** on company websites — emails, phone numbers, and social profile links.

Give it a list of domains or URLs. It fetches the homepage plus common contact paths (`/contact`, `/about`, `/kapcsolat`, `/impressum`, …) and returns structured JSON ready for lead generation, CRM import, or sales prospecting.

No login. No browser. Public HTML only via HTTP requests.

### Ready-to-run examples (no setup)

- [Extract contacts from SaaS websites](https://apify.com/smarcell/website-contact-extractor/examples/saas-company-contacts)
- [Email & phone finder (demo domains)](https://apify.com/smarcell/website-contact-extractor/examples/website-contact-leads)

### Why use it?

- **B2B lead generation** — build prospect lists from company websites
- **Sales enrichment** — add emails and phones to existing domain lists
- **Agency workflows** — export JSON / CSV / Excel or pipe results into Make, n8n, Zapier, or Apify API
- **Predictable pricing** — pay-per-event when at least one email is found on a domain

### What data can it extract?

| Field | Type | Description |
| --- | --- | --- |
| `domain` | string | Normalized domain (without `www.`) |
| `url` | string | Primary page URL scanned |
| `emails` | string\[] | Public email addresses found in HTML |
| `phones` | string\[] | Phone numbers from `tel:` links and page text |
| `socialLinks` | object | LinkedIn, Facebook, X/Twitter, Instagram, YouTube URLs when present |
| `emailCount` | integer | Number of unique emails |
| `phoneCount` | integer | Number of unique phone numbers |
| `pagesScanned` | string\[] | Final URLs fetched for this domain |
| `status` | string | `ok`, `no_contacts`, `blocked`, or `failed` |
| `error` | string | Short error summary when pages fail |
| `scrapedAt` | string | UTC timestamp (ISO-8601) |

Not every site publishes contact details in public HTML. Cloudflare or bot protection may return `blocked`.

### How to use

1. Open the **Input** tab.
2. Add **Website URLs or domains** (e.g. `apify.com`, `https://stripe.com`).
3. Set **Maximum pages per domain** (default 5).
4. Set **Maximum domains** for the run.
5. Run the Actor. Results appear in the default dataset.

Local test:

```bash
cd website-contact-extractor
apify run --input-file example_input.json
```

### Input

| Field | Required | Default | Notes |
| --- | --- | --- | --- |
| `startUrls` | yes | — | URLs or bare domains |
| `maxPagesPerDomain` | no | 5 | 1–10 public pages per domain |
| `maxItems` | no | 50 | Max domains per run (1–500) |

### Pricing

Pay-per-event:

| Event | Price | When charged |
| --- | --- | --- |
| `contact-lead` | $0.005 | Once per domain where at least one email is found |
| `apify-actor-start` | $0.01 | Actor run start (Apify platform) |

Domains with no emails found are stored for transparency but are not charged the lead event.

### Limitations

- **Public HTML only** — does not bypass CAPTCHA, Cloudflare challenges, or login walls
- **Regex extraction** — may miss contacts rendered only via heavy JavaScript SPAs
- **False positives** — junk filters remove common placeholders; always verify leads before outreach
- **Compliance** — you are responsible for GDPR/CAN-SPAM and local marketing laws when using extracted contacts

### Related Actors

- [Google Maps Places Scraper](https://apify.com/smarcell/google-maps-places-scraper) — find local businesses, then enrich with this Actor
- [EU TED Tender Scraper](https://apify.com/smarcell/eu-ted-tender-scraper) — public procurement leads
- [Hungary Procurement Monitor](https://apify.com/smarcell/hungary-procurement-monitor) — Hungarian national tenders

### Author

Built by [smarcell](https://apify.com/smarcell) on Apify.

# Actor input Schema

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

Public website URLs or bare domains to scan, e.g. https://stripe.com or apify.com. Each entry is normalized to a domain; common contact paths are tried automatically.

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

How many public pages to fetch per domain (homepage + common contact/about paths). Stops early when emails are found.

## `maxItems` (type: `integer`):

Maximum number of domains to scan in one run (1–500).

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com",
    "https://stripe.com"
  ],
  "maxPagesPerDomain": 5,
  "maxItems": 50
}
```

# Actor output Schema

## `contacts` (type: `string`):

Emails, phones, and social links discovered on public company websites.

# 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://apify.com",
        "https://stripe.com"
    ]
};

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

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

```

## MCP server setup

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