# B2B Lead & Contact Extractor (Emails, Phones, Social Profiles) (`pagerka/b2b-lead-contact-extractor`) Actor

Lightning-fast website contact scraper. Extracts verified business emails, telephone numbers, LinkedIn, Twitter/X, Instagram, Facebook, and company addresses from any website or domain list.

- **URL**: https://apify.com/pagerka/b2b-lead-contact-extractor.md
- **Developed by:** [Stepan Pagerka](https://apify.com/pagerka) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## 🎯 B2B Lead & Contact Extractor (Emails, Phones, Social Profiles)

Lightning-fast website contact & lead scraper. Extract verified business emails, phone numbers, LinkedIn company pages, Twitter/X, Instagram, Facebook, and company metadata from any domain or list of URLs.

***

### ⚡ Key Features

- **📧 High-Accuracy Email Extraction**: Discovers `mailto:` links, page text, and metadata with built-in deduplication and noise filtering (skips `.png`, `.jpg`, `.svg` and fake placeholder emails).
- **📞 Phone Number Detection**: Extracts international (E.164) and local phone numbers from `tel:` links and text.
- **🌐 Social Media Profiles**: Finds company links for LinkedIn, Twitter/X, Instagram, Facebook, YouTube, GitHub, and Telegram.
- **🔍 Smart Contact Page Discovery**: Automatically detects and inspects `/contact`, `/about`, `/team`, `/support`, and `/impressum` subpages.
- **⚡ Super Lightweight & Fast**: Built on Crawlee & Cheerio for maximum speed, 99.9% uptime, and ultra-low compute unit (CU) consumption.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | `["https://apify.com"]` | List of target websites or domains to extract contacts from. |
| `maxDepth` | Integer | `1` | Depth of crawl per site (`0` = only home page, `1` = home + contact/about pages). |
| `maxPagesPerDomain` | Integer | `5` | Maximum number of subpages to inspect per domain. |
| `extractSocials` | Boolean | `true` | Whether to extract social media profile URLs. |
| `extractPhones` | Boolean | `true` | Whether to extract phone numbers. |
| `proxyConfiguration` | Object | `{ useApifyProxy: true }` | Proxy settings to ensure smooth scraping. |

***

### 📤 Sample Output (JSON)

```json
{
  "domain": "example.com",
  "websiteUrl": "https://example.com",
  "companyName": "Example Global Corp",
  "description": "Enterprise cloud and data software provider.",
  "emails": [
    "contact@example.com",
    "support@example.com",
    "sales@example.com"
  ],
  "phones": [
    "+1 (555) 234-5678",
    "+1 800-555-0199"
  ],
  "socials": {
    "linkedin": ["https://www.linkedin.com/company/example-corp"],
    "twitter": ["https://twitter.com/example_corp"],
    "facebook": ["https://facebook.com/examplecorp"],
    "github": ["https://github.com/example-corp"]
  },
  "pagesScanned": 3,
  "scannedUrls": [
    "https://example.com",
    "https://example.com/contact-us",
    "https://example.com/about"
  ],
  "scannedAt": "2026-08-17T12:00:00.000Z"
}
```

***

### 🚀 Integrations

Export results directly to:

- **Google Sheets / Excel**
- **Zapier / Make / n8n**
- **Webhook notifications**
- **REST API / Python / Node.js SDK**

# Actor input Schema

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

List of website URLs or domain names to extract contacts from (e.g., https://example.com, stripe.com, shopify.com).

## `maxDepth` (type: `integer`):

How deep to crawl internal contact pages (0 = only start URL, 1 = start URL + linked /contact, /about pages). Recommended: 1

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

Maximum number of subpages to inspect per domain to save execution time.

## `extractSocials` (type: `boolean`):

Extract LinkedIn, Twitter/X, Instagram, Facebook, YouTube, and GitHub links.

## `extractPhones` (type: `boolean`):

Extract international and local telephone numbers.

## `proxyConfiguration` (type: `object`):

Use Apify default datacenter or residential proxies to avoid rate limits.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxDepth": 1,
  "maxPagesPerDomain": 5,
  "extractSocials": true,
  "extractPhones": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Access the extracted domain contacts, emails, phones, and social links in JSON, CSV, or Excel format.

# 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": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://crawlee.dev"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pagerka/b2b-lead-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": [
        { "url": "https://apify.com" },
        { "url": "https://crawlee.dev" },
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("pagerka/b2b-lead-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": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://crawlee.dev"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call pagerka/b2b-lead-contact-extractor --silent --output-dataset

```

## MCP server setup

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