# Website Contact Scraper (`cool_ya/website-contact-scraper`) Actor

Extract business emails, phone numbers and social media links from any list of company websites. Great for lead generation and sales prospecting. Billed only per domain where a contact is found.

- **URL**: https://apify.com/cool\_ya/website-contact-scraper.md
- **Developed by:** [Y A](https://apify.com/cool_ya) (community)
- **Categories:** Lead generation, Business
- **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 founds

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 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

## Website Contact Scraper

**Turn a list of domains into a clean contact database — emails, phones, and social profiles.**

Feed this Actor a list of company websites and it returns structured contact details for each: **business email addresses, phone numbers, and social-media profile links** (LinkedIn, X/Twitter, Facebook, Instagram, YouTube, TikTok, GitHub). Built for **sales prospecting, lead generation, and market research**.

### What it does

- 📧 **Emails** — from `mailto:` links, page text, and even **Cloudflare-obfuscated** addresses.
- 📞 **Phone numbers** — from `tel:` links and page content.
- 🔗 **Social profiles** — canonical links to the company's social accounts.
- 📄 **Smart page coverage** — scans the homepage plus common `/contact`, `/about`, `/impressum` pages.
- ⚡ **HTTP-only & fast** — no headless browser, so it's cheap and quick even for large lists.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `startUrls` | array | Domains or URLs to scrape. |
| `url` | string | Convenience field for a single domain. |
| `scanContactPages` | boolean | Also scan `/contact`, `/about`, etc. Default `true`. |
| `maxPagesPerSite` | integer | Max pages fetched per domain (1–9). Default `4`. |

#### Example input

```json
{
    "startUrls": ["apify.com", "https://crawlee.dev"],
    "scanContactPages": true,
    "maxPagesPerSite": 4
}
```

### Output

One record per domain:

```json
{
    "domain": "apify.com",
    "url": "https://apify.com",
    "emails": ["hello@apify.com"],
    "phones": ["+420123456789"],
    "socials": {
        "linkedin": "https://linkedin.com/company/apify",
        "twitter": "https://twitter.com/apify"
    },
    "pagesScanned": 4,
    "hasContact": true
}
```

Export as **JSON, CSV, Excel**, or pull via the Apify API into your CRM.

### Pricing

Billed **per domain where at least one contact detail is found** (`contact-found` event). Domains that yield no contacts are effectively free — you only pay for real leads.

### Responsible use

- Identifies itself with a clear User-Agent and only fetches publicly available pages.
- Intended for **B2B business-contact discovery**. You are responsible for complying with applicable laws (GDPR, CAN-SPAM, etc.) and each site's Terms of Service when using the extracted data.

# Actor input Schema

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

List of company websites or domains to extract contact details from. The Actor scans the homepage and common contact pages of each.

## `url` (type: `string`):

Optional convenience field for a single domain. Use 'startUrls' for multiple.

## `scanContactPages` (type: `boolean`):

In addition to the homepage, also fetch common pages like /contact, /about, /impressum where contact details usually live.

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

Upper bound on the number of pages fetched per domain (homepage counts as one). Keeps runs fast and cheap.

## Actor input object example

```json
{
  "startUrls": [
    "example.com",
    "https://another-company.com"
  ],
  "scanContactPages": true,
  "maxPagesPerSite": 4
}
```

# Actor output Schema

## `results` (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://apify.com"
    ]
};

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

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

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/20i5fP4QApHe87tZ6/builds/FrifYjaX0fhm4Nh7r/openapi.json
