# Facebook Email Scraper · Collecteur d'e-mails (`scraper-fleet/facebook-email-scraper`) Actor

Facebook Email Scraper extrait automatiquement les adresses e-mail publiques, les profils, les noms et les coordonnées depuis Facebook. Idéal pour la génération de prospects, la prospection commerciale, le marketing ciblé et le développement de votre clientèle.

- **URL**: https://apify.com/scraper-fleet/facebook-email-scraper.md
- **Developed by:** [Scraper Fleet](https://apify.com/scraper-fleet) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What is Facebook Email Scraper? · Collecteur d’e-mails Facebook

**Facebook Email Scraper** finds **public email addresses in Google search snippets associated with Facebook pages**. Enter a keyword, optionally add a location and country preference, choose the email domains and content type, then collect a dataset with the email and its source context.

The Actor helps teams research published contact information for a specific topic or business category. It reads search results without a Facebook login. It does not open private inboxes, reveal hidden account email addresses, or provide a complete directory of Facebook users.

**En français :** recherchez des adresses e-mail publiées dans les extraits Google liés à Facebook. Un mot-clé, un lieu facultatif et les domaines souhaités suffisent pour préparer la recherche. Vous récupérez les résultats dans Apify, avec leur source lorsque le lien peut être résolu.

Start with a narrow, useful question, such as finding published contacts associated with a type of local business. The dataset helps you review relevance and provenance before deciding how the information may be used.

### Why use this Facebook email finder? · Pourquoi l’utiliser ?

The Actor combines topic search, email-domain selection, source classification and a delivery limit in one configurable workflow.

- **Keyword search:** each keyword is searched separately, with an optional location added to the query.
- **Domain selection:** choose the popular-provider group or specify your own domains.
- **Content types:** search Profiles, Posts, Groups, Marketplace, Events, Videos, Photos, or All.
- **Source context:** retain the result title, snippet and Facebook URL when resolved.
- **Per-run deduplication:** an email address appears once during the run.
- **Result limits:** stop at your selected email maximum or applicable run limit.
- **Incremental delivery:** saved rows remain available when collection stops.
- **Diagnostics:** a run with no delivered email can explain the outcome through an uncharged error row.

Apify supplies the cloud runtime, dataset storage, API, scheduling and webhooks. A spreadsheet or CRM connection can be added in your own automation. These platform features make the collected rows easier to reuse, while the Actor handles the target-specific search and extraction.

#### Search snippets are the source

The email, title and description come from Google result snippets. A snippet can show only part of a Facebook page and may differ from its current contents. The Actor extracts what is exposed in that search result; it does not verify mailbox ownership, deliverability or permission to contact the address.

**À retenir :** une adresse trouvée n’est pas une adresse validée. Le résultat conserve le contexte de recherche pour vous aider à vérifier la pertinence et l’usage autorisé.

#### Proxy handling and retries

Searches normally use Apify’s Google SERP proxy. The standard proxy-off choice and the older Residential choice are mapped to the search proxy by the current implementation. Each retry requests a new proxy URL, with up to three attempts and increasing pauses.

Resolving a Google result redirect is a separate step. The Actor first tries a direct lookup and can then use a residential proxy for additional attempts. If resolution fails, an email can still be saved with a null source URL. Review those rows separately when your workflow requires traceable sources.

### How to use Facebook Email Scraper · Mode d’emploi

A small first search lets you confirm that the chosen keywords and email domains produce the kind of published contacts you need.

1. Open [the Actor](https://apify.com/scraper-fleet/facebook-email-scraper) in your Apify account.
2. Enter one or more keywords, for example a business type.
3. Add a city or region if it improves the topic, and choose a supported country preference.
4. Select Popular emails or Other domains.
5. If using Other, enter at least one valid domain under `customDomains`.
6. Choose one content type or keep All, and set a small `maxEmails`.
7. Review the current price and your run budget, then start the Actor.
8. Check the run status and dataset before exporting or integrating the results.

This **illustrative configuration** uses a reserved example domain. Replace it with domains relevant to your permitted research; it is not a promise that the sample query will find contacts.

```json
{
  "keywords": ["yoga studio"],
  "location": "Berlin",
  "platform": "Facebook",
  "country": "Germany",
  "emailType": "other",
  "customDomains": ["@example.com"],
  "maxEmails": 5,
  "scrapeFrom": "All"
}
```

#### Choose a search that answers your question

A keyword describes the subject; the location adds context. Avoid adding unrelated cities or many near-identical terms to the first run. Start with a clear business or topic phrase, examine the source snippets, then adjust the phrase based on what you actually receive.

Choose a content type when you have a reason to focus on that source. Groups may suit a community-focused question; Events may suit published organizer information. All searches the supported types in sequence, so it can provide a broader initial view.

The country setting is a Google preference, not a strict geographic filter. A German country choice can still produce results from elsewhere. Check the returned snippet and source context when location is essential to your task.

#### Copy to your AI assistant · Copier dans votre assistant IA

Use this prompt with an assistant that can read documentation or connect to Apify:

```text
Help me use scraper-fleet/facebook-email-scraper on Apify.
Read https://apify.com/scraper-fleet/facebook-email-scraper.
I want to research published email addresses in Google snippets
associated with Facebook content for my keyword and location.
Explain keywords, emailType, customDomains, scrapeFrom and maxEmails.
Help me inspect an existing dataset, including null URLs and error rows.
Ask before starting a paid run. Keep API tokens out of messages and code.
Réponds en français si je le demande et conserve les clés JSON originales.
```

The assistant needs the appropriate browsing or connected tools. Copying a prompt does not install an integration or grant account access.

### Input parameters · Paramètres d’entrée

The [Input tab](https://apify.com/scraper-fleet/facebook-email-scraper/input) presents the current form. Use the exact JSON keys in API requests, even when the labels are translated.

| Parameter | Description | Required | Example |
| --- | --- | --- | --- |
| `keywords` | Nonempty list of search phrases; each searched separately | Yes | `["yoga studio"]` |
| `location` | City or region appended to the search; empty by default | No | `Berlin` |
| `platform` | Supported network; only Facebook is available | No | `Facebook` |
| `country` | Supported country preference; omitted means worldwide preference | No | `Germany` |
| `emailType` | `popular` or `other`; the form prefills Popular | No | `other` |
| `customDomains` | Valid domains for Other; default list contains gmail.com | For Other, a valid domain is needed | `["@example.com"]` |
| `maxEmails` | Total email maximum; 1–10,000, default 20; form prefills 5 | No | `5` |
| `scrapeFrom` | All or one supported content type; default All | No | `Posts` |
| `proxyConfiguration` | Search proxy configuration; standard choices use Google SERP | No | Google SERP in the form |
| `engine` | Internal legacy-engine setting; leave unchanged | No | `legacy` |
| `feedback` | Optional note for maintainers; hidden field | No | Missing-field description |

Popular selects gmail.com, yahoo.com and hotmail.com. Other uses your domain list. Domain entries are lowercased, checked for a plausible domain format and supplied with a leading @ when needed. Invalid entries are ignored.

If you explicitly choose Other and no valid domain remains, the Actor stops with an input message. When `emailType` is omitted in an older API request, the custom-domain configuration is used. Specify the type and domains explicitly in a new workflow to make its behavior clear.

#### Understand the different limits

`maxEmails` applies to the total delivered emails across the run, not separately to every keyword. A nonpaying account is additionally capped at twenty delivered emails by the current Actor code. That cap is an execution limit, not an allowance of free results.

Google may expose fewer relevant results than your selected maximum. The Actor also advances to the next search after repeated empty pages or pages without a new email. Increasing the maximum does not create missing data or ensure that every content type will contribute.

**Conseil :** définissez un maximum modeste pour le premier essai. Vérifiez la qualité des extraits et la provenance avant d’élargir les mots-clés ou les domaines.

### What does Facebook Email Scraper return? · Sortie

Each delivered email is a dataset row with the search context and source classification. The following **fictional example** matches the illustrative input above. It is not an observed contact or a deliverability claim.

```json
{
  "network": "Facebook.com",
  "keyword": "yoga studio",
  "title": "Example Yoga Studio | Facebook",
  "description": "Illustrative contact information: hello@example.com",
  "url": "https://www.facebook.com/example-yoga/posts/123456789",
  "email": "hello@example.com",
  "proxyGroups": ["GOOGLE_SERP"],
  "scrape_from": "Posts",
  "status": "success",
  "error_message": null
}
```

| Field | Meaning |
| --- | --- |
| `network` | Facebook.com on a delivered email row |
| `keyword` | Search phrase that produced the result |
| `title` | Google result title |
| `description` | Search snippet containing the extracted address |
| `url` | Resolved Facebook source URL, or null if resolution failed |
| `email` | Lowercased extracted email address |
| `proxyGroups` | Proxy group information associated with the search |
| `scrape_from` | Content type inferred from the actual URL, or Unknown |
| `status` | Success on an email row; error on a diagnostic row |
| `error_message` | Explanation on an error row |

The input `scrapeFrom` selects where to search. The output `scrape_from` describes the resolved source. These are different keys with different purposes. When All is selected, you should expect the output to contain the actual types discovered, rather than the literal word All.

#### An error row is different from an email result

If no email is delivered, the Actor can write a diagnostic row explaining that no email matched or that Google requests were blocked. The error row does not trigger the result billing event.

```json
{
  "network": null,
  "keyword": null,
  "title": null,
  "description": null,
  "url": null,
  "email": null,
  "proxyGroups": ["GOOGLE_SERP"],
  "scrape_from": null,
  "status": "error",
  "error_message": "Illustrative diagnostic: no email matched the selected search."
}
```

Filter for `status == "success"` before treating dataset rows as contact records. A completed run can contain an error row instead of email data; run success alone does not prove that matching emails were found.

#### Exports and deduplication

JSON retains the structure and null values clearly. CSV or Excel works well for reviewing the email, keyword, title and source URL. Dataset exports are Apify functions; the Actor does not need an `outputFormat` input.

Emails are deduplicated within the run. If the same address appears for several keywords, its retained context reflects the delivered occurrence rather than a complete list of every match. Separate scheduled runs can discover the same address again, so use your own deduplication step when combining datasets.

#### Prepare a review table

A useful review table keeps the email beside its keyword, title, source URL and content classification. Add your own review status in the destination system, so a colleague can distinguish a newly discovered address from one whose source and purpose have already been checked.

Keep rows with unresolved URLs in a separate queue when your process requires a verifiable page. They may contain an extracted email, but their missing source limits what you can conclude from them. Excluding or reviewing those rows is a decision for your workflow, rather than an extra search filter in the Actor.

When a dataset contains only a diagnostic, preserve its message for troubleshooting instead of importing an empty contact into your table. This small distinction makes automated exports easier to interpret.

### Practical use cases · Cas d’usage

#### Research published business contacts

A business-research team can search for a local category and inspect the snippets associated with published email addresses. The keyword, title and source URL help decide whether a record belongs to the intended type of business.

Keep the review step before any downstream action. A result may be old, a business may have changed its contact address, or a snippet may refer to someone outside your intended audience. The Actor provides searchable evidence, while your process verifies current relevance.

#### Discover contact context for events

Teams researching local events can select Events and use a relevant keyword. The returned source classification helps distinguish event-related results from other Facebook content. Titles and descriptions provide a starting point for checking the associated organizer or activity.

This workflow extracts emails exposed in snippets, not all event organizers, attendee lists or private registrations. Use the source context to identify records worth reviewing rather than assuming that every event has a discoverable contact.

#### Compare sources for a research topic

An analyst can begin with All, then group delivered rows by `scrape_from`. This shows which supported content types contributed to that specific search and can guide a later, more focused configuration.

The proportions describe your collected dataset. They are not a measurement of all Facebook content or of email availability across the platform. Preserve the search settings when comparing runs so that changes in configuration are not mistaken for changes in the underlying topic.

#### Feed a reviewed dataset into an internal workflow

Developers can send successful rows to a review queue, where a colleague checks the source before a record enters a business system. Include the original keyword and URL alongside the email so that the reason for collecting it remains clear.

**En français :** le dataset peut alimenter un tableau de contrôle ou un workflow interne. Conservez la source et le contexte, puis décidez quelles données sont nécessaires à votre objectif. Une adresse publique ne vaut pas autorisation de prospection.

### How much does Facebook Email Scraper cost? · Tarifs

Pricing checked on **November 12, 2026** is pay per event. Each saved email triggers one `result` event. A start event is also configured. Consult the current [Pricing tab](https://apify.com/scraper-fleet/facebook-email-scraper/pricing) for the rate applied to your account.

| Pricing tier | Price per email event | Result events for 1,000 emails |
| --- | --- | --- |
| FREE | USD 0.00299 | USD 2.99 |
| BRONZE | USD 0.00270 | USD 2.70 |
| SILVER | USD 0.00240 | USD 2.40 |
| GOLD, PLATINUM, DIAMOND | USD 0.00210 | USD 2.10 |

At the FREE result rate, twenty saved emails represent `20 × 0.00299 = USD 0.05980` in result events. The start event is USD 0.00005 per event, defined as one per GB of memory with at least one event.

These figures calculate the Actor events. The current Pricing tab lists platform usage as included in the event pricing for the displayed plan tiers. Account subscriptions and downstream services follow their own terms. A selected maximum is a ceiling, not a guarantee of that many results.

#### What happens when no email is found?

The diagnostic row does not incur the result event. The Actor-start charge can still apply. An uncharged diagnostic therefore does not mean that every possible run expense is zero.

Emails are saved and charged as they are delivered. If the configured event budget is reached, the Actor keeps the already saved data and stops collecting further emails. Check both the dataset and status message when comparing your requested maximum with the final count.

Apify’s Free plan currently advertises USD 5 in monthly usage credit. The available balance and applicable charge rules determine what it covers. Neither that credit nor the twenty-email code limit should be described as twenty guaranteed free contacts.

### Facebook Email Scraper API and automation · Automatisation

The [API tab](https://apify.com/scraper-fleet/facebook-email-scraper/api) provides this Actor’s endpoints. You can submit the same configuration from Python and retrieve the dataset afterward.

Install the [Apify Python client](https://docs.apify.com/api/client/python/) and supply your credential through `APIFY_TOKEN`. **Executing this example starts a run and can incur charges.** The reserved domain remains illustrative; replace it for your actual research.

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scraper-fleet/facebook-email-scraper").call(
    run_input={
        "keywords": ["yoga studio"],
        "location": "Berlin",
        "platform": "Facebook",
        "country": "Germany",
        "emailType": "other",
        "customDomains": ["@example.com"],
        "maxEmails": 5,
        "scrapeFrom": "All"
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("status") == "success":
        print(item)
```

For an existing run, use its dataset ID directly instead of starting another search. This is useful when you only need to export or review previously collected emails.

Save a task to reuse a configuration and add an Apify schedule when recurring collection fits your needs. A success webhook can trigger a review or export step. Check the rows inside that step: a successful run may have found no emails and produced only a diagnostic.

#### Facebook Email Scraper MCP server

Connect an MCP-capable client using Apify’s Streamable HTTP endpoint with this Actor selected:

```text
https://mcp.apify.com?tools=scraper-fleet/facebook-email-scraper
```

Add the endpoint to your client and use Apify OAuth authorization where supported. The [official MCP guide](https://docs.apify.com/platform/integrations/mcp) and configurator explain current connection options.

**En français :** après connexion, demandez à l’assistant de préparer les paramètres et de vérifier les résultats existants avant tout lancement. Les outils chargés et les permissions du compte déterminent les actions possibles. L’exécution via MCP utilise les tarifs habituels de l’Actor.

### Related Actors · Autres outils de Scraper Fleet

| Actor | Complementary purpose |
| --- | --- |
| [Facebook Group Scraper](https://apify.com/scraper-fleet/facebook-group-scraper) | Collect supported group information, posts and comments for a different research workflow |
| [LinkedIn Leads Generator](https://apify.com/scraper-fleet/mass-linkedin-leads-generator) | Find LinkedIn-profile leads through Google snippets, with parsed role and company fields |
| [LinkedIn Profile Scraper](https://apify.com/scraper-fleet/linkedin-profile-scraper) | Inspect known person and company profile URLs with coverage information |

Each tool has separate inputs, access limits and prices. Choose according to the data you need rather than assuming that an email search also extracts complete social profiles.

### FAQ and troubleshooting · Questions fréquentes

#### Do I need a Facebook account or cookies?

No Facebook login or session cookie is required. The Actor reads Google search results associated with Facebook content; it does not enter your account.

#### Can I find the hidden email address of a Facebook user?

No. Only email addresses exposed in the searched snippets can be extracted. The Actor does not access private account settings or unpublished contact information.

#### Why did I receive fewer emails than maxEmails?

Available search results, domain choices, content-type filters, deduplication and run limits can all reduce delivery. Check the status message and snippets before increasing the maximum.

#### Does country enforce an exact location?

No. Country sets a Google preference. Add a useful location phrase and review each result when geography matters to your task.

#### Why is the URL null or scrape_from Unknown?

The email was extracted, but its Google result link could not be resolved to a usable Facebook URL. Treat that record as having incomplete source attribution.

#### Will Other search any email address?

Other searches the valid custom domains you provide. It is not a domain-free mode. Enter a meaningful domain list; an explicitly selected Other mode without valid domains stops with an input message.

#### What does Google blocked every request mean?

Search retrieval was blocked rather than completed normally. Check the input and proxy configuration, and report repeated failures to our team. Changes to Google’s result layout may require an Actor update.

#### Does an email result mean I can send marketing?

No. A published email does not establish consent, a lawful basis or permission under the rules applying to your campaign. Decide its permitted use before contacting anyone.

#### Can repeated runs build a combined dataset?

Yes, if your own workflow combines the exports or API results. Apply deduplication across runs and retain the source context. The Actor’s built-in email deduplication applies within each run.

### Data access, legality and responsible use · Légalité

Facebook Email Scraper reads public Google results associated with Facebook pages. Those results may contain personal data, and public availability alone does not grant unrestricted collection, storage or marketing rights.

Consider Google’s and Facebook’s terms, the purpose of processing, privacy obligations and applicable messaging laws. GDPR, CAN-SPAM and PECR may be relevant depending on the people, jurisdictions and activity involved. Use only the information needed for your task and set an appropriate retention period.

**En français :** vérifiez les conditions des sites et les règles de protection des données et de prospection qui s’appliquent à votre activité. Une adresse extraite ne prouve ni consentement ni autorisation de réutilisation commerciale.

### Need help with Facebook Email Scraper? · Besoin d’aide ?

Contact our team through [this Actor’s Issues tab](https://apify.com/scraper-fleet/facebook-email-scraper/issues) for a problem, feature request or custom-workflow inquiry.

Include the selected content type, domain mode, result limit and a short description of the problem. Explain whether you received an input message, an error row, unresolved URLs or unexpected snippets. Keep credentials and private contact lists out of public messages.

# Actor input Schema

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

🎯 What to search for, one per line, e.g. <code>yoga studio</code> · Ce que vous cherchez, un par ligne, ex. <code>yoga studio</code><br>💡 Each keyword is searched separately · Chaque mot-clé est recherché séparément

## `location` (type: `string`):

🏙️ City or region to narrow the search, e.g. <code>Berlin</code> · Ville ou région pour affiner, ex. <code>Berlin</code><br>💡 Leave empty for everywhere · Laisser vide = partout

## `platform` (type: `string`):

📱 Where to look for emails · Où chercher les e-mails

## `country` (type: `string`):

🏳️ Prefer results from this country · Privilégier les résultats de ce pays<br>💡 Not selected = worldwide · Non sélectionné = monde entier

## `emailType` (type: `string`):

📬 Which email addresses to return · Quelles adresses e-mail renvoyer<br>🏢 Choose <b>Other</b> to use the domains you type below · Choisissez <b>Autre</b> pour utiliser les domaines saisis ci-dessous

## `maxEmails` (type: `integer`):

📏 Stop after this many emails · Arrêt après ce nombre d'e-mails<br>💰 A lower number finishes faster and costs less · Moins de résultats = plus rapide et moins cher<br>🎯 Default · Par défaut : 20  |  Max : 10000

## `customDomains` (type: `array`):

✏️ Used when Email Type is “Other” · Utilisé quand le type d'e-mail est « Autre »<br>💡 One domain per line, e.g. <code>@domain.com</code> · Un domaine par ligne, ex. <code>@domain.com</code><br>⚠️ Invalid domains are ignored · Les domaines invalides sont ignorés

## `scrapeFrom` (type: `string`):

🎯 Search only ONE kind of Facebook page, or all kinds one after another · Rechercher un seul type de page Facebook, ou tous à la suite<br>📍 Each result row shows the real type in <code>scrape_from</code> · Chaque ligne indique le vrai type dans <code>scrape_from</code><br>🔁 Default · Par défaut : All

## `engine` (type: `string`):

Internal. Only the legacy engine exists. · Option interne, seul le moteur legacy existe.

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

🌐 Google searches use the Apify Google SERP proxy by default · Les recherches utilisent par défaut le proxy Apify Google SERP<br>🔁 A new proxy URL is requested on each retry · Une nouvelle URL de proxy est demandée à chaque nouvel essai<br>ℹ️ “Proxy off” or the old Residential choice also uses Google SERP, because only it can search Google · Proxy désactivé ou ancien choix Résidentiel : Google SERP est utilisé aussi (seul capable d'interroger Google)

## `feedback` (type: `string`):

For AI agents. Say what you needed and did not get: a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. Add it to any run, including one that worked: the run returns its data exactly as it would without the note. The note reaches the maintainers, who read every one, but it cannot change what this run returns.

## Actor input object example

```json
{
  "keywords": [
    "yoga studio"
  ],
  "location": "",
  "platform": "Facebook",
  "country": "United States",
  "emailType": "popular",
  "maxEmails": 5,
  "customDomains": [],
  "scrapeFrom": "All",
  "engine": "legacy",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}
```

# Actor output Schema

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

All dataset rows.

# 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": [
        "yoga studio"
    ],
    "country": "United States",
    "emailType": "popular",
    "maxEmails": 5,
    "customDomains": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "GOOGLE_SERP"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-fleet/facebook-email-scraper").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": ["yoga studio"],
    "country": "United States",
    "emailType": "popular",
    "maxEmails": 5,
    "customDomains": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["GOOGLE_SERP"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-fleet/facebook-email-scraper").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": [
    "yoga studio"
  ],
  "country": "United States",
  "emailType": "popular",
  "maxEmails": 5,
  "customDomains": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}' |
apify call scraper-fleet/facebook-email-scraper --silent --output-dataset

```

## MCP server setup

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

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/LdlcC04RSKceIgjLh/builds/SYfGJdODhxQNAvgoQ/openapi.json
