# B2B Website Contact, Email & Social Media Scraper (`unique_dev/b2b-website-contact-scraper`) Actor

Extract business emails, phone numbers, LinkedIn, Twitter/X, Facebook, Instagram, and YouTube links from any list of company websites. Automatically crawls internal /contact and /about pages to find hidden B2B leads for cold outreach and CRM enrichment.

- **URL**: https://apify.com/unique_dev/b2b-website-contact-scraper.md
- **Developed by:** [Ship AI agents](https://apify.com/unique_dev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

## B2B Website Contact, Email & Social Media Scraper

Extract **email addresses, phone numbers, and social media profiles** (LinkedIn, Twitter/X, Facebook, Instagram, YouTube) from any list of company websites.

Unlike basic scrapers that only check the homepage, this Actor **automatically finds and crawls internal `/contact`, `/about`, and `/support` pages** to uncover hidden B2B contact details.

### Features

- **Bulk URL Scraping:** Pass 1, 100, or 10,000 company website URLs at once.
- **Deep Contact Page Discovery:** Automatically detects and visits `/contact`, `/about`, `/support`, and `/impressum` pages on the same domain.
- **Email & Phone Extraction:** Captures both plain-text emails and `mailto:` / `tel:` links while filtering out false positives (like image filenames).
- **Social Media Profile Finder:** Extracts official company links for LinkedIn, Twitter/X, Facebook, Instagram, and YouTube.
- **Ultra-Fast & Lightweight:** Built on pure HTTP requests (no slow headless browsers), keeping your Apify compute costs near zero.

### Use Cases

- **B2B Lead Generation:** Enrich Google Maps, Apollo, or directory domain lists with direct emails and LinkedIn pages.
- **No-Code Automation (Make.com, n8n, Zapier):** Automatically enrich new leads or signups via Apify API.
- **Market Research & Cold Outreach:** Build clean contact lists in CSV, Excel, or JSON format.

### Legal & Ethical Usage

This Actor only extracts publicly available business contact information from public web pages. Users are responsible for complying with applicable data protection laws (such as GDPR or CCPA) and terms of service when using extracted data.

### Input Parameters

| Field | Type | Description |
|---|---|---|
| `urls` | Array of Strings | List of company URLs to scrape (e.g., `https://apify.com`). |
| `crawlContactPages` | Boolean | When enabled (`true`), automatically visits up to 2 internal contact/about pages per website. |

### Output Example

````json
{
  "url": "https://apify.com",
  "company_title": "Apify: Full-stack web scraping and data extraction platform",
  "description": "Cloud platform for web scraping, browser automation, and data for AI.",
  "emails": ["hello@apify.com"],
  "phones": [],
  "linkedin": ["https://www.linkedin.com/company/apifytech"],
  "twitter_x": ["https://x.com/apify"],
  "facebook": [],
  "instagram": [],
  "youtube": ["https://www.youtube.com/apify"],
  "contact_pages_checked": ["https://apify.com/contact"]
}



# Actor input Schema

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

Enter one or more company website URLs to extract emails, phone numbers, and social media links.
## `crawlContactPages` (type: `boolean`):

Automatically visit /contact, /about, and /support pages on the same website to find hidden emails and phone numbers.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.python.org"
  ],
  "crawlContactPages": true
}
````

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("unique_dev/b2b-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("unique_dev/b2b-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 '{}' |
apify call unique_dev/b2b-website-contact-scraper --silent --output-dataset

```

## MCP server setup

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