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

- **URL**: https://apify.com/reflective\_plagioclase/website-contact-scraper.md
- **Developed by:** [Matt](https://apify.com/reflective_plagioclase) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.95 / 1,000 contact extracteds

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/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 Details Scraper

**Extract emails, phone numbers, and social media links from any website.** Give it a URL (or a list of URLs) and it returns all contact information found on the page and its subpages — including /contact, /about, /support, and more.

### How It Works

1. Takes URLs as input (single URL or array)
2. Scrapes each URL plus common contact pages: /contact, /about, /about-us, /contact-us, /contacts, /support, /help
3. Searches DuckDuckGo Lite for additional relevant pages on the domain
4. Extracts email addresses, phone numbers, and social media links from all collected content
5. Returns structured output per URL

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `urls` | array | ✅\* | — | List of website URLs to scrape |
| `url` | string | ✅\* | — | Alternative: single URL to process |
| `includeEmails` | boolean | — | true | Extract email addresses |
| `includePhones` | boolean | — | true | Extract phone numbers |
| `includeSocial` | boolean | — | true | Extract social media links |
| `maxResults` | integer | — | 50 | Max URLs to process |

\*Either `urls` or `url` is required.

### Output Example

```json
{
  "url": "https://example.com",
  "domain": "example.com",
  "emails": ["info@example.com", "support@example.com", "jane.doe@example.com"],
  "phones": ["+15551234567", "+15557654321"],
  "social": {
    "linkedin": ["https://linkedin.com/company/example"],
    "twitter": ["https://twitter.com/example"],
    "facebook": ["https://facebook.com/example"],
    "instagram": ["https://instagram.com/example"]
  },
  "pages_scraped": [
    "https://example.com",
    "https://example.com/contact",
    "https://example.com/about",
    "https://example.com/support"
  ]
}
```

### Use Cases

- **CRM enrichment** — Fill in missing contact details for your existing accounts
- **Competitor analysis** — Gather contact info from competitor websites
- **Partnership research** — Find the right contact at potential partner companies
- **Website audit** — Check if your own contact pages are leaking unwanted information
- **Recruiting** — Find hiring contacts at target companies

### Pricing

Pay-per-event: **$0.00095 per URL processed** ($0.95 per 1,000 URLs). You only pay for URLs successfully scraped and output in the dataset.

### Tips

- Upload a CSV with URLs for bulk processing, or pass a single URL
- The actor checks up to 15 subpages per domain for maximum coverage
- Social media extraction supports: LinkedIn, Twitter/X, Facebook, Instagram, YouTube, GitHub
- Email filtering removes noise (image urls, example domains, system addresses)
- International phone numbers with country codes are supported

# Actor input Schema

## `urls` (type: `array`):

List of website URLs to scrape for contacts

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

Alternative: a single URL to process

## `includeEmails` (type: `boolean`):

Extract email addresses from pages

## `includePhones` (type: `boolean`):

Extract phone numbers from pages

## `includeSocial` (type: `boolean`):

Extract LinkedIn, Twitter, Facebook, Instagram, GitHub URLs

## `maxResults` (type: `integer`):

Maximum number of URLs to process

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "includeEmails": true,
  "includePhones": true,
  "includeSocial": true,
  "maxResults": 50
}
```

# 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 = {
    "urls": [
        "https://example.com"
    ]
};

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

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

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/3idi2Lu1HX5F204Kv/builds/INanISQ4C0EThMoLz/openapi.json
