# 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/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 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(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 '{
  "urls": [
    "https://example.com"
  ]
}' |
apify call reflective_plagioclase/website-contact-scraper --silent --output-dataset

```

## MCP server setup

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