# Website Lead & Contact Info Extractor (`pirapaakaranpirathapan/website-lead-contact-extractor`) Actor

Extract verified business emails, phone numbers, and social media links (LinkedIn, Twitter, Instagram, Facebook, YouTube, TikTok) from any website for B2B lead generation

- **URL**: https://apify.com/pirapaakaranpirathapan/website-lead-contact-extractor.md
- **Developed by:** [Pirapaakaran Pirathapan](https://apify.com/pirapaakaranpirathapan) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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

## 🎯 Website Lead & Contact Info Extractor (Apify Actor)

> **Effortlessly extract verified business emails, phone numbers, and social media handles (LinkedIn, Twitter/X, Instagram, Facebook, YouTube, GitHub) from any website.**

[![Apify](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com)
[![Crawlee](https://img.shields.io/badge/Powered%20by-Crawlee-blue)](https://crawlee.dev)
[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)

***

### 💡 What Does This Actor Do?

The **Website Lead & Contact Info Extractor** automatically crawls target websites to discover valuable B2B contact details.

Instead of manually browsing hundreds of websites looking for email addresses and contact pages, this Actor visits:

1. The **Homepage**
2. High-priority contact pages (e.g. `/contact`, `/about`, `/team`, `/support`, `/impressum`)

It intelligently filters noise (like image assets or spam trackers) and delivers **clean, enriched contact profiles** ready to export to **CSV, Excel, JSON, or Google Sheets**.

***

### ✨ Features

- ✉️ **Email Address Extractor**: Extracts and sanitizes valid emails from `mailto:` links and page text.
- 📞 **Phone Number Extractor**: Discovers phone numbers from `tel:` links and standard international number patterns.
- 🌐 **Social Profile Links**: Finds profiles for:
  - **LinkedIn** (Company & Personal profiles)
  - **Twitter / X**
  - **Facebook**
  - **Instagram**
  - **YouTube**
  - **GitHub**
  - **TikTok**
- 🏷️ **Website Metadata**: Captures site title, meta description, and CMS generator hints.
- ⚡ **Blazing Fast & Low Cost**: Powered by `Crawlee` CheerioCrawler — uses minimal compute units (CUs) and no heavy headless browser overhead.
- 🛡️ **Anti-Noise Filtering**: Automatically discards common false positives (e.g. `.png`, `sentry.io`, `example.com`).

***

### 💼 High-Value Use Cases

- **B2B Cold Email Outreach**: Build targeted prospect lists for SDRs and sales teams.
- **Agency Client Prospecting**: Find decision makers and contact information for local or global businesses.
- **Influencer & Creator Discovery**: Find direct contact emails from creator websites and portfolios.
- **Competitor & Market Research**: Audit competitor websites, social presence, and tech footprints.

***

### ⚙️ Input Parameters

Configure the Actor in the Apify Console or via JSON:

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | `["https://crawlee.dev", "https://apify.com"]` | Target URLs to crawl and extract contacts from. |
| `maxDepth` | Integer | `1` | `0` = Homepage only; `1` = Homepage + contact/about pages. |
| `maxPagesPerDomain` | Integer | `5` | Maximum subpages to crawl per target domain. |
| `maxRequestsPerCrawl` | Integer | `50` | Safety limit for total HTTP requests across all domains. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": false }` | Apify Proxy settings (optional). |

#### Example Input JSON

```json
{
  "startUrls": [
    { "url": "https://stripe.com" },
    { "url": "https://github.com" }
  ],
  "maxDepth": 1,
  "maxPagesPerDomain": 3,
  "maxRequestsPerCrawl": 20
}
```

***

### 📊 Sample Output Data

Each result in the dataset contains structured contact and metadata information:

```json
{
  "domain": "example.com",
  "homepageUrl": "https://example.com",
  "title": "Example Business - Modern Cloud Solutions",
  "description": "Leading cloud solutions and developer tooling for global enterprises.",
  "emails": [
    "contact@example.com",
    "sales@example.com",
    "press@example.com"
  ],
  "phones": [
    "+1 (555) 234-5678"
  ],
  "linkedin": "https://www.linkedin.com/company/example",
  "twitter": "https://x.com/example",
  "facebook": "https://facebook.com/example",
  "instagram": "https://instagram.com/example",
  "youtube": "https://youtube.com/@example",
  "github": "https://github.com/example",
  "tiktok": null,
  "pagesVisitedCount": 3,
  "pagesVisited": [
    "https://example.com",
    "https://example.com/contact",
    "https://example.com/about"
  ],
  "scrapedAt": "2026-10-20T16:00:00.000Z"
}
```

***

### 🚀 How to Publish to Apify.com

#### Method 1: Push via GitHub (Recommended)

1. Push this folder to a GitHub repository (e.g. `github.com/your-username/website-contact-extractor`).
2. Go to [Apify Console](https://console.apify.com/) > **Actors** > **Create new**.
3. Choose **Link Git repository** and connect your repo.
4. Click **Build & Save**. Apify will automatically build the Docker image using `Dockerfile` and setup the input UI using `.actor/input_schema.json`!

#### Method 2: Push via Apify CLI

1. Install Apify CLI globally:
   ```bash
   npm install -g apify-cli
   ```
2. Log in with your Apify API Token:
   ```bash
   apify login
   ```
3. In this directory, push your Actor:
   ```bash
   apify push
   ```

***

### 💰 How to Monetize on Apify Store

1. In your Actor dashboard on Apify, click **Publication** > **Publish to Apify Store**.
2. Select your monetization model:
   - **Pay per result (PPR)**: e.g. `$2.00 - $5.00` per 1,000 scraped leads.
   - **Monthly Rental**: e.g. `$19 - $49 / month` for unlimited runs.
3. Add a clear description, icon, and tags (`lead-generation`, `contact-scraper`, `email-finder`).
4. Apify reviews and publishes your Actor to their marketplace, and you earn monthly payouts!

***

### 💻 Local Testing & Development

Run the Actor locally on your computer:

```bash
## 1. Install dependencies
npm install

## 2. Run the crawler
npm start
```

Results will be stored locally in `./storage/datasets/default/`.

# Actor input Schema

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

List of website URLs to extract contacts, emails, phones, and social media from.

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

0 = Homepage only. 1 = Homepage + high-priority contact/about/team pages (Recommended). 2 = Follow links 2 levels deep.

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

Maximum number of pages to inspect per website (e.g. homepage, /contact, /about, /team).

## `maxRequestsPerCrawl` (type: `integer`):

Maximum total HTTP requests allowed for the whole run to prevent unexpected credit usage.

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

Select Apify Proxy to bypass geo-blocks or rate-limits.

## Actor input object example

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

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing verified emails, phones, and social media handles.

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

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

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

```

## MCP server setup

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