# Facebook Business Page Scraper (`scrapeai/facebook-business-page-scraper`) Actor

Scrapes rich Facebook business page data including name, category, likes, followers, address, phone, website, about, rating, hours, and more.

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

## Pricing

from $2.49 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Facebook Business Page Scraper

Extract rich and comprehensive business information from Facebook pages and profiles without requiring logins. Extract page names, categories, verified badges, follower counts, likes, visitor check-ins, descriptions, contact details (phone, email, website, physical address), operating hours, review ratings, profile pictures, and cover photos in real-time.

### Features

- 🏢 **Comprehensive Business Intelligence** — Scrapes business categories, verification badges, contact information, operating hours, ratings, and bios.
- 👥 **Audience & Engagement Metrics** — Extracts total followers, page likes, talking about counts, and visitor check-in counts.
- 🌐 **Contact & Location Details** — Collects official external websites, phone numbers, contact emails, and physical street addresses.
- ⚡ **Dynamic Input Handling** — Supports full Facebook URLs, shortened links, mobile URLs, or simple usernames/slugs (e.g. `google`, `facebook.com/Microsoft`, `https://www.facebook.com/Starbucks`).
- 🛡️ **Anti-Bot & Popup Handling** — Automatically handles cookie consent dialogs, login prompts, and localized content formatting.
- 📊 **Structured Dataset Output** — Validated against Apify Dataset and Output schemas with table overview views.

### Use Cases

- **Lead Generation & B2B Outreach** — Extract verified business emails, phone numbers, and websites for sales prospecting.
- **Competitor Benchmarking** — Monitor competitors' audience growth, likes, and engagement metrics over time.
- **Local Business Directory Enrichment** — Aggregate location data, operating hours, and customer ratings for local businesses.
- **Brand & Social Monitoring** — Track verified page statuses, bio descriptions, and social media footprints.

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `pageUrls` | Array of Strings | `["https://www.facebook.com/google"]` | List of Facebook business page URLs, page slugs, or usernames to scrape. |
| `maxItems` | Integer | `10` | Maximum number of Facebook pages to scrape per run. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Proxy configuration. Apify Residential proxies are recommended for high-volume scraping. |

#### Sample Input

```json
{
    "pageUrls": [
        "https://www.facebook.com/google",
        "https://www.facebook.com/Microsoft",
        "https://www.facebook.com/Starbucks"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
}
```

***

### Output Data Structure

Each item pushed to the dataset contains the following fields:

| Field | Type | Description |
|---|---|---|
| `pageId` | String | Unique numeric Facebook page ID (e.g., `"104958162837"`). |
| `pageName` | String | Official name of the Facebook business page or brand. |
| `category` | String | Primary business or content category (e.g., `"Food & beverage company"`). |
| `likes` | String | Formatted number of page likes (e.g., `"34,146,131"`). |
| `followers` | String | Formatted follower count (e.g., `"34M followers"`). |
| `talkingAbout` | String | Number of users talking about the page (e.g., `"69,249"`). |
| `wereHere` | String | Number of visitor check-ins (e.g., `"1,865,457"`). |
| `isVerified` | Boolean | `true` if the page has a verified blue badge, `false` otherwise. |
| `address` | String | Physical address or location of the business. |
| `phone` | String | Public contact phone number. |
| `email` | String | Business contact email address. |
| `website` | String | Official business website URL. |
| `about` | String | Bio, description, or mission statement. |
| `rating` | Number | Average review rating score out of 5 (e.g., `4.8`). |
| `ratingCount` | String | Number of user ratings/reviews submitted. |
| `priceRange` | String | Price level indicator (e.g. `$`, `$$`, `$$$`). |
| `hours` | String | Business operating hours. |
| `profilePicture` | String | URL of the page profile avatar / picture. |
| `coverPhoto` | String | URL of the header banner / cover photo. |
| `link` | String | Canonical URL of the scraped Facebook page. |
| `error` | String | Error description if scraping failed for this URL. |

#### Sample Output

```json
{
  "pageId": "22092443056",
  "pageName": "Starbucks",
  "category": "Food & beverage company",
  "likes": "34,146,131",
  "followers": "34M followers",
  "talkingAbout": "69,249",
  "wereHere": "1,865,457",
  "isVerified": true,
  "address": "2401 Utah Ave S, Seattle, WA 98134",
  "phone": "+1 800-782-7282",
  "email": "info@starbucks.com",
  "website": "https://www.starbucks.com/",
  "about": "The Starbucks Coffee Company ☕️",
  "rating": 4.5,
  "ratingCount": "12,450 reviews",
  "priceRange": "$$",
  "hours": "Open now (6:00 AM - 8:00 PM)",
  "profilePicture": "https://scontent.fixm3-1.fna.fbcdn.net/v/t1.30497-1/84702798_579370612644419_4516628711310622720_n.png",
  "coverPhoto": "https://scontent.fixm3-1.fna.fbcdn.net/v/t39.30808-6/734461833_1490993426393554_3403382049394179168_n.png",
  "link": "https://www.facebook.com/Starbucks"
}
```

***

### Tips & Best Practices

- **Proxies**: When scraping at scale on Apify, enable Residential Proxies (`{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }`) to prevent rate limits and geographical blocks.
- **Scheduling**: Run on a recurring schedule with Apify Scheduler to keep track of changing follower counts, business hours, and contact details.

# Actor input Schema

## `pageUrls` (type: `array`):

List of Facebook business page URLs to scrape.

## `maxItems` (type: `integer`):

Maximum number of pages to scrape.

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

Proxy configuration for the scraper.

## Actor input object example

```json
{
  "pageUrls": [
    "https://www.facebook.com/Google",
    "https://www.facebook.com/Microsoft",
    "https://www.facebook.com/Meta",
    "https://www.facebook.com/OpenAI",
    "https://www.facebook.com/DeepMindAI"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset containing all scraped Facebook business page data

# 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 = {
    "pageUrls": [
        "https://www.facebook.com/Google",
        "https://www.facebook.com/Microsoft",
        "https://www.facebook.com/Meta",
        "https://www.facebook.com/OpenAI",
        "https://www.facebook.com/DeepMindAI"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/facebook-business-page-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 = { "pageUrls": [
        "https://www.facebook.com/Google",
        "https://www.facebook.com/Microsoft",
        "https://www.facebook.com/Meta",
        "https://www.facebook.com/OpenAI",
        "https://www.facebook.com/DeepMindAI",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/facebook-business-page-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 '{
  "pageUrls": [
    "https://www.facebook.com/Google",
    "https://www.facebook.com/Microsoft",
    "https://www.facebook.com/Meta",
    "https://www.facebook.com/OpenAI",
    "https://www.facebook.com/DeepMindAI"
  ]
}' |
apify call scrapeai/facebook-business-page-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeai/facebook-business-page-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/9nTBFhALKkkmNSBK6/builds/ycapUuFb9PhlDsYTs/openapi.json
