# Facebook Email Finder & Contacts Scraper (`receptional_blender/facebook-contact-finder`) Actor

Discover public email contacts behind Facebook profiles and pages by keyword and location. Pay only for each contact delivered.

- **URL**: https://apify.com/receptional_blender/facebook-contact-finder.md
- **Developed by:** [Assia Fadli](https://apify.com/receptional_blender) (community)
- **Categories:** Lead generation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 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

## Facebook Contact Finder

Find the public **email contacts** behind Facebook profiles and pages, filtered by
keyword and (optionally) location. The actor runs targeted search-engine queries,
collects the Facebook links they surface, visits each one, and extracts any
publicly visible email addresses — then delivers them as a clean dataset.

You pay only for what you get: billing is **pay-per-event**, charged once per
contact delivered (`contact-scraped`).

### What it does

1. Turns each keyword (and optional location) into a `site:facebook.com` search
   query, restricted to the email providers you enable.
2. Crawls the search results, following the "Next" pages, and enqueues every
   Facebook link it finds.
3. Opens each Facebook page, scans it for email addresses, de-duplicates them,
   and delivers a record for every page that yields at least one email.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` **(required)** | array of strings | – | Search terms to find profiles/pages. At least one is required. |
| `locations` | array of strings | – | Optional locations; every keyword is searched once per location. |
| `gmail` | boolean | `true` | Target `@gmail.com` addresses. |
| `yahoo` | boolean | `true` | Target `@yahoo.com` addresses. |
| `outlook` | boolean | `true` | Target `@outlook.com` / `@hotmail.com` addresses. |
| `aol` | boolean | `true` | Target `@aol.com` addresses. |
| `icloud` | boolean | `true` | Target `@icloud.com` addresses. |
| `protonmail` | boolean | `true` | Target `@protonmail.com` addresses. |
| `other` | boolean | `false` | Also target the custom domains in `extraEmailProviders`. |
| `extraEmailProviders` | array of strings | – | Custom domains (without `@`) used when `other` is on. |
| `maxProfiles` | integer | `100` | Upper bound on contacts delivered per run. |
| `proxyConfiguration` | object | Apify residential proxy | Proxy applied to every request. |

The original field names are the primary input keys, and a few aliases are also
accepted (`search`/`queries` for `keywords`, `location` for `locations`,
`otherProviders` for `extraEmailProviders`, `maxContacts` for `maxProfiles`,
`proxyConfig` for `proxyConfiguration`).

#### Example input

```json
{
    "keywords": ["real estate agent", "wedding photographer"],
    "locations": ["New York", "London"],
    "gmail": true,
    "yahoo": true,
    "outlook": true,
    "aol": false,
    "icloud": false,
    "protonmail": false,
    "other": false,
    "extraEmailProviders": [],
    "maxProfiles": 50
}
```

### Output

Each dataset item represents one Facebook page that yielded at least one email:

| Field | Type | Description |
| --- | --- | --- |
| `url` | string | The Facebook page URL. |
| `emails` | array of strings | De-duplicated email addresses found on the page. |
| `username` | string | The profile/page name, when it can be read from the page. |

#### Example output

```json
[
    {
        "url": "https://www.facebook.com/example.page/",
        "emails": ["hello@example.com"],
        "username": "Example Page"
    },
    {
        "url": "https://www.facebook.com/another.page/",
        "emails": ["contact@agency.net", "info@agency.net"]
    }
]
```

### Pricing (pay-per-event)

This actor is billed per delivered contact. Exactly one `contact-scraped` event
is charged for each record pushed to the dataset, so you never pay for empty
pages or crawl overhead. Set `maxProfiles` to cap spend per run.

### Notes

- A **residential proxy** is strongly recommended (and enabled by default) —
  search engines aggressively rate-limit datacenter IPs.
- Availability of emails depends entirely on what each page chooses to make
  public; many pages expose none.

### Legal & ethical use

Use this actor only for data that is publicly available and only in compliance
with applicable laws (including GDPR/CCPA), Facebook's terms, and anti-spam
regulations. You are responsible for how you collect and use contact data.

### License

MIT © Assia Fadli

# Actor input Schema

## `keywords` (type: `array`):

Search terms used to find relevant Facebook profiles and pages (names, niches, business types, handles). At least one keyword is required. Each keyword is searched independently.

## `locations` (type: `array`):

Optional list of locations used to refine each keyword search, e.g. "New York" or "London". When provided, every keyword is searched once per location.

## `gmail` (type: `boolean`):

Target @gmail.com addresses.

## `yahoo` (type: `boolean`):

Target @yahoo.com addresses.

## `outlook` (type: `boolean`):

Target @outlook.com and @hotmail.com addresses.

## `aol` (type: `boolean`):

Target @aol.com addresses.

## `icloud` (type: `boolean`):

Target @icloud.com addresses.

## `protonmail` (type: `boolean`):

Target @protonmail.com addresses.

## `other` (type: `boolean`):

Also target the custom domains listed under "Extra email providers".

## `extraEmailProviders` (type: `array`):

Custom email domains to target when "Include other providers" is on, e.g. "company.com". Enter the domain without the leading @.

## `maxProfiles` (type: `integer`):

Upper bound on the number of contacts delivered in one run. Start small to validate your settings, then raise it. Larger values crawl deeper but cost more compute and time.

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

Proxy applied to every request. Residential proxy is strongly recommended for search engines; it reduces blocking and rate limiting.

## Actor input object example

```json
{
  "keywords": [
    "real estate agent",
    "wedding photographer"
  ],
  "locations": [
    "New York",
    "London"
  ],
  "gmail": true,
  "yahoo": true,
  "outlook": true,
  "aol": true,
  "icloud": true,
  "protonmail": true,
  "other": false,
  "extraEmailProviders": [
    "company.com",
    "agency.net"
  ],
  "maxProfiles": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "keywords": [
        "real estate agent"
    ],
    "maxProfiles": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("receptional_blender/facebook-contact-finder").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 = {
    "keywords": ["real estate agent"],
    "maxProfiles": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("receptional_blender/facebook-contact-finder").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 '{
  "keywords": [
    "real estate agent"
  ],
  "maxProfiles": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call receptional_blender/facebook-contact-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,receptional_blender/facebook-contact-finder"
        }
    }
}
```

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/E9IYSk88aT3tbVGZh/builds/CyU0VM4c6kFHsyHzq/openapi.json
