# Facebook Pages Scraper — Emails, Phones, Followers & Ratings (`maged120/facebook-pages-scraper`) Actor

Extract public Facebook page details in bulk: name, category, followers, email, phone, address, website, social profiles, rating, price range and page ID.

- **URL**: https://apify.com/maged120/facebook-pages-scraper.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.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.
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

**Turn a list of Facebook pages into a lead sheet.** Get each page's **email, phone, address, website, followers, category, rating, check-ins, price range** and social profiles — in bulk, as clean structured data.

### What does Facebook Pages Scraper do?

Facebook Pages Scraper takes Facebook page URLs, usernames or page IDs and extracts the public details of each [Facebook](https://www.facebook.com) page: **name, categories, exact follower count, likes, "talking about this", check-ins ("were here"), intro text, email, phone number, address, websites, linked social profiles (Instagram and others), recommendation rating and review count, price range, services (dine-in, delivery…), opening status, verified badge, page ID and profile ID**.

Running on Apify gives you an API, scheduling, monitoring and integrations with Google Sheets, HubSpot, Zapier, Make and webhooks.

### Why use Facebook Pages Scraper?

- **Local lead generation** — get emails and phone numbers of restaurants, shops, clinics and agencies.
- **Influencer and brand research** — compare follower counts and engagement across pages.
- **CRM enrichment** — add Facebook contact data, ratings and IDs to company records.
- **Competitor monitoring** — track followers, ratings and reviews over time with scheduled runs.
- **Ad targeting and outreach** — build lists of businesses by category with verified contact details.

### How to scrape Facebook pages

1. Click **Try for free**.
2. Paste page URLs, usernames or IDs into **Facebook pages**, one per line.
3. Click **Start**.
4. Download the results as CSV, Excel or JSON.

### Input

| Field | Description |
|---|---|
| `pages` | Page URLs (`facebook.com/katzsdeli`), usernames (`NASA`) or numeric IDs. Up to 2,000 per run. |
| `proxyConfiguration` | Proxy settings; the default works well. |

### Output

One row per page. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

```json
{
    "status": "ok",
    "name": "Katz's Delicatessen",
    "pageUrl": "https://www.facebook.com/katzsdeli/",
    "pageId": "89033874836",
    "profileId": "100064806517961",
    "categories": ["Deli"],
    "followers": 952490,
    "talkingAbout": 58651,
    "checkins": 529670,
    "intro": "New York City's most iconic deli.",
    "email": "cs@katzsdelicatessen.com",
    "phone": "+1 212-254-2246",
    "address": "205 E Houston St, New York, NY, United States, 10002",
    "website": "http://katzsdelicatessen.com/",
    "socialProfiles": [{ "platform": "Instagram", "handle": "katzsdeli" }],
    "recommendPercent": 98,
    "reviewCount": 52497,
    "services": ["Dine in", "Outdoor seating"],
    "verified": false
}
```

### Data fields

| Field | Meaning |
|---|---|
| `name`, `pageUrl`, `pageId`, `profileId`, `verified` | Identity |
| `categories`, `intro` | What the page is about |
| `followers`, `likes`, `talkingAbout`, `checkins` | Audience |
| `email`, `phone`, `address`, `website`, `websites`, `socialProfiles` | Contacts |
| `recommendPercent`, `reviewCount`, `ratingText` | Reputation |
| `priceRange`, `services`, `hoursStatus` | Business details |
| `status`, `error` | `ok`, `not_found` or `error` |

Views: **Pages**, **Contacts**, **Details**.

### How many results will I get?

Exactly one row per unique page you submit, including pages that are not found, so you always know what happened to every input.

### Tips

- Combine with a Google Maps or website scraper to collect Facebook page links, then enrich them here.
- Schedule weekly runs to track follower growth and ratings.
- Only details the page owner made public are available; empty fields mean the page doesn't show them.

### FAQ

**What do I need to provide?** Just the page links, usernames or IDs.

**Does it work for personal profiles?** It is built for public pages (businesses, brands, organisations, public figures).

**Is it legal?** It collects information that businesses publish publicly on their pages. Use contact data in line with GDPR, CAN-SPAM and similar laws.

**Need posts or reviews too?** Open an issue in the **Issues** tab.

# Actor input Schema

## `pages` (type: `array`):

Page URLs, usernames or numeric page IDs, one per line. Duplicates are removed. Up to 2,000 per run.

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

The default works well. Switch to residential proxies if many pages fail.

## Actor input object example

```json
{
  "pages": [
    "https://www.facebook.com/katzsdeli",
    "NASA",
    "https://www.facebook.com/TheHalalGuys"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "pages": [
        "https://www.facebook.com/katzsdeli",
        "NASA",
        "https://www.facebook.com/TheHalalGuys"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/facebook-pages-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 = {
    "pages": [
        "https://www.facebook.com/katzsdeli",
        "NASA",
        "https://www.facebook.com/TheHalalGuys",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("maged120/facebook-pages-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 '{
  "pages": [
    "https://www.facebook.com/katzsdeli",
    "NASA",
    "https://www.facebook.com/TheHalalGuys"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call maged120/facebook-pages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maged120/facebook-pages-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/nv1gccMtVUVN2ZhWn/builds/ITo9vfDhTGm433Hqq/openapi.json
