# Contact Info Scraper with Emails and Phones (`intelecta/fast-contact-info-scraper-with-emails`) Actor

A powerful Apify actor that scrapes emails, phone numbers, and social media profiles from a list of websites, following internal links for thorough contact extraction. Ideal for lead generation, research, and building structured contact databases.

- **URL**: https://apify.com/intelecta/fast-contact-info-scraper-with-emails.md
- **Developed by:** [Intelecta.ai](https://apify.com/intelecta) (community)
- **Categories:** Automation, Lead generation, Social media
- **Stats:** 177 total users, 3 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: 3.32 out of 5 stars

## 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/actors/running/actors-in-store.md#pay-per-usage

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

## Deep Web Scraper: Email, Phone, and Social Media Extractor

A robust web scraping actor for the Apify platform that extracts contact information—emails, phone numbers, and social media profiles—from a list of websites. This tool is ideal for lead generation, market research, and building contact databases.

### What This Actor Does

- **Bulk Website Processing:** Scrape multiple websites in a single run by providing a list of URLs.
- **Contact Extraction:** Finds emails, phone numbers, and social media links from each website.
- **Intelligent Crawling:** Follows internal links (contact, about, team pages, etc.) up to a configurable depth for more thorough extraction.
- **Duplicate Removal:** Ensures only unique contact information is collected.
- **Flat Structured Output:** Each contact found (email, phone, or social) is output as a separate record, not grouped by URL.
- **Error Handling:** Gracefully skips failed requests and logs errors.
- **Proxy Support:** Integrates with Apify's proxy services for reliable scraping.

### How It Works

1. **Input:**
   - Provide a list of website URLs (`start_urls`) and set the crawl depth (`max_crawl_depth`).
   - Example `INPUT.json`:
     ```json
     {
       "start_urls": [
         "https://example.com",
         "https://another.com"
       ],
       "max_crawl_depth": 1
     }
     ```
2. **Crawling:**
   - For each URL, the actor fetches the main page and follows internal links up to the specified depth, prioritizing pages likely to contain contact info.
3. **Extraction:**
   - Extracts emails (using regex and mailto links), phone numbers (international and local formats), and social media links (from 15+ platforms).
4. **Output:**
   - For each contact found, the actor outputs a separate record with the following fields:
     - `type`: "email", "phone", or "social"
     - `value`: The email address, phone number, or social handle/username
     - `sourceUrl`: The root URL where the contact was found
     - `platform`: (only for social) The social media platform name (e.g., "Instagram")
     - `url`: (only for social) The full profile URL
   - **Example output (email):**
     ```json
     {
       "type": "email",
       "value": "info@example.com",
       "sourceUrl": "https://example.com/"
     }
     ```
   - **Example output (social):**
     ```json
     {
       "type": "social",
       "value": "bbcafrica",
       "sourceUrl": "https://www.bbc.com/",
       "platform": "Instagram",
       "url": "https://www.instagram.com/bbcafrica/"
     }
     ```

### Supported Social Media Platforms

- Facebook
- Instagram
- LinkedIn
- WhatsApp
- Telegram
- Twitter/X
- TikTok
- YouTube
- Discord
- Pinterest
- GitHub
- Reddit
- Snapchat
- Medium

### Use Cases

- Lead generation for sales and marketing
- Building contact databases for outreach
- Market and competitor research
- Social media influencer discovery
- Academic or business directory building

### Limitations & Notes

- **No JavaScript Rendering:** This actor does not use Playwright or a browser; it cannot extract data hidden behind JavaScript or dynamic content.
- **Basic Anti-Bot:** Uses standard headers and Apify proxy, but not advanced anti-bot or CAPTCHA solving.
- **Regex-based Extraction:** Email and phone detection is regex-based; some edge cases may be missed or false positives may occur.
- **Phone Detection:** Supports international and local formats, including DACH-region numbers, but may not catch all regional variations.
- **No Cloudflare/obfuscated email decoding.**
- **No advanced scheduling or incremental crawling.**

### How to Use

1. Deploy or run the actor on Apify.
2. Provide your list of URLs and crawl depth in the input.
3. Run the actor and wait for completion.
4. Download the results from the Apify dataset in JSON, CSV, or Excel format.

### Example Input

```json
{
  "start_urls": [
    "https://example.com",
    "https://another.com"
  ],
  "max_crawl_depth": 1
}
```

### Example Output

```json
{
  "type": "email",
  "value": "info@example.com",
  "sourceUrl": "https://example.com/"
}
```

```json
{
  "type": "social",
  "value": "bbcafrica",
  "sourceUrl": "https://www.bbc.com/",
  "platform": "Instagram",
  "url": "https://www.instagram.com/bbcafrica/"
}
```

***

**This actor is perfect for anyone needing to automate the collection of contact information from multiple websites, with a focus on reliability, clarity, and structured results.**

# Actor input Schema

## `start_urls` (type: `array`):

A list of website URLs to scrape.

## `max_crawl_depth` (type: `integer`):

How many levels of internal links to follow from each start URL (minimum 1, maximum 5).

## Actor input object example

```json
{
  "start_urls": [
    "https://elsabordelaesquina.wixsite.com/website"
  ],
  "max_crawl_depth": 1
}
```

# 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 = {
    "start_urls": [
        "https://elsabordelaesquina.wixsite.com/website"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("intelecta/fast-contact-info-scraper-with-emails").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 = { "start_urls": ["https://elsabordelaesquina.wixsite.com/website"] }

# Run the Actor and wait for it to finish
run = client.actor("intelecta/fast-contact-info-scraper-with-emails").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 '{
  "start_urls": [
    "https://elsabordelaesquina.wixsite.com/website"
  ]
}' |
apify call intelecta/fast-contact-info-scraper-with-emails --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,intelecta/fast-contact-info-scraper-with-emails"
        }
    }
}
```

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/G1M9RlrJr0bJGm3pq/builds/WyejLesUfm9o6wZaY/openapi.json
