# Contact Info Scraper Pro (`crawlerbros/contact-info-scraper-pro`) Actor

Crawl any website and extract emails, phones, and social media profiles. Pro: domain allow/blocklists, role-prefix exclusion (info@/support@), per-site dedup, first.last format filter, prioritises /contact, /about, /team. HTTP-only.

- **URL**: https://apify.com/crawlerbros/contact-info-scraper-pro.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 22 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Contact Info Scraper Pro

Crawl websites and extract emails, phone numbers, and social media profiles. The actor is HTTP-first and works well on server-rendered pages, static sites, and contact pages that expose data directly in HTML.

### What this actor extracts

Per-domain record with:

- `websiteUrl` - normalized start URL
- `domain` - extracted hostname
- `emails` - unique list of cleaned emails
- `phones` - unique list of cleaned phone numbers
- `socialLinks` - first discovered profile URL per supported platform
- `contactPageUrl` - direct contact-page link when discovered
- `pagesCrawled`
- `crawledAt`

Supported social platforms include Facebook, Instagram, LinkedIn, X/Twitter, YouTube, TikTok, Pinterest, GitHub, Threads, Telegram, Discord, Mastodon, WhatsApp, and Reddit.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | string[] | `["https://apify.com"]` | Websites to scan. Empty-input cloud runs use this default. |
| `maxPagesPerSite` | integer | `20` | Max pages to crawl per domain. |
| `maxConcurrency` | integer | `5` | Parallel fetches per site. |
| `requestTimeoutSecs` | integer | `15` | HTTP timeout per page. |
| `useProxy` | boolean | `false` | Enable Apify proxy for sites that block datacenter IPs. |
| `smartPrioritise` | boolean | `true` | Visit likely contact/about/team pages first. |
| `maxDepth` | integer | `2` | Maximum link depth from the start URL. |
| `domainAllowlist` | array | `[]` | Pro filter: only crawl matching hosts. |
| `domainBlocklist` | array | `[]` | Pro filter: skip matching hosts. |
| `excludeRolePrefixes` | array | `[]` | Pro filter: drop emails whose local part starts with any of these prefixes. |
| `requireFirstAndLastName` | boolean | `false` | Pro filter: keep only personal-looking dotted names such as `jane.doe@example.com`. |
| `outputDedupBy` | enum | `domain` | Pro dedup mode: `domain`, `email`, or `none`. |

#### Example input

```json
{
  "urls": ["https://example.com", "https://another.com"],
  "maxPagesPerSite": 10,
  "smartPrioritise": true,
  "excludeRolePrefixes": ["info", "support", "hello"],
  "requireFirstAndLastName": true,
  "outputDedupBy": "email"
}
````

### Output

One record per domain by default, or one record per email when `outputDedupBy=email`.

```json
{
  "recordType": "contact_domain",
  "websiteUrl": "https://example.com",
  "domain": "example.com",
  "emails": ["jane.doe@example.com", "john.smith@example.com"],
  "phones": ["+1 (555) 867-5309"],
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/example",
    "twitter": "https://x.com/example",
    "instagram": "https://www.instagram.com/example"
  },
  "contactPageUrl": "https://example.com/contact",
  "pagesCrawled": 7,
  "crawledAt": "2026-04-30T14:00:00Z"
}
```

Empty fields are omitted. `recordType` is `contact_domain` for per-domain output and `contact_email` for per-email output.

### Reliability notes

- No browser is required for the standard flow.
- The actor extracts emails from visible text, `mailto:` links, Cloudflare `data-cfemail`, and simple `[at]` / `[dot]` obfuscation.
- Placeholder values from form fields are intentionally ignored.
- If every discovered value is filtered out, the actor still finishes cleanly and sets a status message instead of pushing placeholder error rows.

### FAQ

**Do I need a proxy?**\
Usually no. Enable `useProxy` for sites that return 403 or otherwise block cloud IPs.

**Does it render JavaScript?**\
Not in the HTTP-first path. It works best on pages that expose contact data directly in HTML.

**Why are some emails missing?**\
Some sites only reveal them after client-side rendering, login, or anti-bot challenges. Increasing crawl depth can help for multi-page sites, but JS-only contact data may still stay hidden.

**What does `requireFirstAndLastName` do?**\
It keeps dotted personal-style addresses like `jane.doe@company.com` and drops generic role addresses such as `info@`, `hello@`, or `support@`.

**What happens when emails are filtered out?**\
The actor can still emit phones, socials, and `contactPageUrl`. Fields with no data are omitted.

# Actor input Schema

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

List of website URLs to scan for contact info. Each URL is treated as a domain root.

## `maxPagesPerSite` (type: `integer`):

Maximum pages to crawl per domain (contact + about + homepage + linked pages).

## `maxConcurrency` (type: `integer`):

Parallel fetches per site.

## `requestTimeoutSecs` (type: `integer`):

HTTP timeout per page in seconds.

## `useProxy` (type: `boolean`):

Enable Apify residential proxy when a site blocks datacenter IPs.

## `smartPrioritise` (type: `boolean`):

Visit /contact, /about, /team pages first before crawling general links.

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

Maximum link-graph depth from a start URL. 0 = only the start URL; 1 = pages it links to.

## `domainAllowlist` (type: `array`):

Only crawl pages whose host matches one of these domains (case-insensitive substring). e.g. \['example.com'].

## `domainBlocklist` (type: `array`):

Skip pages whose host matches one of these domains. e.g. \['google.com','facebook.com'].

## `excludeRolePrefixes` (type: `array`):

Drop emails starting with these local-parts (case-insensitive). e.g. \['info','support','noreply','admin'].

## `requireFirstAndLastName` (type: `boolean`):

Only emit emails whose local-part looks like `first.last` or `firstlast` (drops generic role addresses).

## `outputDedupBy` (type: `string`):

How to dedupe emitted records. `domain` (one record per domain), `email` (one record per unique email), `none` (no dedup).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com"
  ],
  "maxPagesPerSite": 20,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 15,
  "useProxy": false,
  "smartPrioritise": true,
  "maxDepth": 2,
  "domainAllowlist": [],
  "domainBlocklist": [],
  "excludeRolePrefixes": [],
  "requireFirstAndLastName": false,
  "outputDedupBy": "domain"
}
```

# 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://apify.com"
    ],
    "maxPagesPerSite": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/contact-info-scraper-pro").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://apify.com"],
    "maxPagesPerSite": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/contact-info-scraper-pro").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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://apify.com"
  ],
  "maxPagesPerSite": 20
}' |
apify call crawlerbros/contact-info-scraper-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/contact-info-scraper-pro",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Contact Info Scraper Pro",
        "description": "Crawl any website and extract emails, phones, and social media profiles. Pro: domain allow/blocklists, role-prefix exclusion (info@/support@), per-site dedup, first.last format filter, prioritises /contact, /about, /team. HTTP-only.",
        "version": "1.0",
        "x-build-id": "HuwPUfv9doso830ET"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~contact-info-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-contact-info-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~contact-info-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-contact-info-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~contact-info-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-contact-info-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "Website URLs",
                        "type": "array",
                        "description": "List of website URLs to scan for contact info. Each URL is treated as a domain root.",
                        "default": [
                            "https://apify.com"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPagesPerSite": {
                        "title": "Max pages per site",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum pages to crawl per domain (contact + about + homepage + linked pages).",
                        "default": 20
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Parallel fetches per site.",
                        "default": 5
                    },
                    "requestTimeoutSecs": {
                        "title": "Request timeout (s)",
                        "minimum": 5,
                        "maximum": 60,
                        "type": "integer",
                        "description": "HTTP timeout per page in seconds.",
                        "default": 15
                    },
                    "useProxy": {
                        "title": "Use proxy",
                        "type": "boolean",
                        "description": "Enable Apify residential proxy when a site blocks datacenter IPs.",
                        "default": false
                    },
                    "smartPrioritise": {
                        "title": "Smart prioritisation",
                        "type": "boolean",
                        "description": "Visit /contact, /about, /team pages first before crawling general links.",
                        "default": true
                    },
                    "maxDepth": {
                        "title": "Max link depth",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Maximum link-graph depth from a start URL. 0 = only the start URL; 1 = pages it links to.",
                        "default": 2
                    },
                    "domainAllowlist": {
                        "title": "Domain allowlist (Pro)",
                        "type": "array",
                        "description": "Only crawl pages whose host matches one of these domains (case-insensitive substring). e.g. ['example.com'].",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "domainBlocklist": {
                        "title": "Domain blocklist (Pro)",
                        "type": "array",
                        "description": "Skip pages whose host matches one of these domains. e.g. ['google.com','facebook.com'].",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "excludeRolePrefixes": {
                        "title": "Exclude role-prefixed emails (Pro)",
                        "type": "array",
                        "description": "Drop emails starting with these local-parts (case-insensitive). e.g. ['info','support','noreply','admin'].",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "requireFirstAndLastName": {
                        "title": "Require first.last email format (Pro)",
                        "type": "boolean",
                        "description": "Only emit emails whose local-part looks like `first.last` or `firstlast` (drops generic role addresses).",
                        "default": false
                    },
                    "outputDedupBy": {
                        "title": "Dedup mode (Pro)",
                        "enum": [
                            "domain",
                            "email",
                            "none"
                        ],
                        "type": "string",
                        "description": "How to dedupe emitted records. `domain` (one record per domain), `email` (one record per unique email), `none` (no dedup).",
                        "default": "domain"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
