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

Extracts public Facebook business page identity, metrics, contact metadata, media, ratings, offers, and detail-section evidence.

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

## Pricing

from $2.99 / 1,000 business pages

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?

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 Business Page Scraper

Extract public Facebook Page identity, social metrics, contact evidence, ratings, offers, hours, media, and public detail-section headings from direct Page URLs. The Actor reads the rendered public page, standard metadata, and valid embedded JSON/JSON-LD; it does not use authenticated state or private endpoints.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/facebook-business-page-scraper) and select **Try for free** or open the **Input** tab.
2. Set `pageUrls` and `maxItems` for the data you need.
3. Keep `maxItems` and the other limits small for the first run.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to check the outcome and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `pageUrls` | string array | Optional | `["https://www.facebook.com/google"]` | Direct public Facebook page URLs or page usernames. Search endpoints, private pages, and non-Facebook URLs are rejected. up to 100 items. |
| `maxItems` | integer | Optional | `10` | Maximum number of input pages to visit; successful pages and diagnostics are never conflated. 1–100. |
| `maxConcurrency` | integer | Optional | `1` | Maximum number of public page navigations running at once. 1–3. |
| `maxRequestRetries` | integer | Optional | `2` | Retries for ordinary navigation failures. Access barriers are not retried or bypassed. 0–3. |
| `navigationTimeoutSecs` | integer | Optional | `90` | Maximum time allowed for one public page navigation. 10–120. |
| `requestHandlerTimeoutSecs` | integer | Optional | `180` | Maximum time allowed for one page request handler. 30–240. |
| `postNavigationDelayMs` | number | Optional | `1000` | Bounded pause after DOM content loads so public page metadata can settle without aggressive pacing. 0–10000. |
| `includeDetails` | boolean | Optional | `true` | Extract public category, hours, and detail-section headings. |
| `includeContact` | boolean | Optional | `true` | Extract public address, phone, email, website, and external links when present. |
| `includeSocialStats` | boolean | Optional | `true` | Extract public likes, followers, and talking-about-this labels and counts. |
| `includeRatings` | boolean | Optional | `true` | Extract public rating, review count, price, offer, and availability evidence when embedded data exposes it. |
| `includeMedia` | boolean | Optional | `true` | Extract public image metadata and up to 20 image URLs. |
| `includeAbout` | boolean | Optional | `true` | Extract the public page description/about text when present. |
| `proxyConfiguration` | object | Optional | Not supplied | Optional Apify proxy configuration passed to PlaywrightCrawler. The actor does not create or rotate proxies itself. |

Full default input:

```json
{
  "pageUrls": [
    "https://www.facebook.com/google"
  ],
  "maxItems": 10,
  "maxConcurrency": 1,
  "maxRequestRetries": 2,
  "navigationTimeoutSecs": 90,
  "requestHandlerTimeoutSecs": 180,
  "postNavigationDelayMs": 1000,
  "includeDetails": true,
  "includeContact": true,
  "includeSocialStats": true,
  "includeRatings": true,
  "includeMedia": true,
  "includeAbout": true
}
```

The Actor reads public data from Facebook. Optional `proxyConfiguration` uses the standard Apify Proxy settings; when omitted, the Actor uses a direct browser connection.

### Output

The dataset contains one row per accessible public Page. The schema declares no required fields; optional values are present only when Facebook publishes them in the rendered page, standard metadata, embedded JSON, or JSON-LD. No diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `url` | string | When exposed | Canonical public Facebook Page URL used as the dataset record URL. |
| `sourceUrl` | string | When exposed | Input Page URL that produced this record. |
| `itemPosition` | integer | When a record is saved | One-based position of the input Page in this run. |
| `pageId` | string | When exposed | Public Facebook Page identifier. |
| `pageUsername` | string | When exposed | Public Page username or first canonical path segment. |
| `pageName` | string | When exposed | Public Facebook Page name. |
| `isVerified` | boolean | When exposed | Whether the public Page shows a verification indicator. |
| `category` | string | When exposed | Public Page category. |
| `likes` | string | When exposed | Likes label as displayed on the Page. |
| `likesCount` | integer | When exposed | Numeric likes count parsed from the displayed label. |
| `followers` | string | When exposed | Followers label as displayed on the Page. |
| `followersCount` | integer | When exposed | Numeric followers count parsed from the displayed label. |
| `talkingAbout` | string | When exposed | Talking-about-this label as displayed on the Page. |
| `talkingAboutCount` | integer | When exposed | Numeric talking-about-this count when available. |
| `address` | string | When disclosed | Public business address. |
| `phone` | string | When disclosed | Public business phone number. |
| `email` | string | When disclosed | Public business email address. |
| `website` | string | When disclosed | First public non-Facebook website link. |
| `externalLinks` | string array | When exposed | Deduplicated public non-Facebook links from page metadata or structured data. |
| `about` | string | When exposed | Public Page description or about text. |
| `rating` | number | When exposed | Public rating score. |
| `ratingText` | string | When exposed | Rating label or source text. |
| `reviewCount` | integer | When exposed | Public review count. |
| `priceRange` | string | When exposed | Public price-range label. |
| `offerPrice` | string | When exposed | First public structured offer price. |
| `availability` | string | When exposed | First public structured offer availability. |
| `offers` | object array | When exposed | Bounded public structured offers. |
| `hours` | string | When exposed | Business-hours text or normalized opening-hours evidence. |
| `profileImageUrl` | string | When exposed | Public profile image URL. |
| `imageAlt` | string | When exposed | Profile or Page image alternative text. |
| `imageUrls` | string array | When exposed | Deduplicated public image URLs, bounded to 20 values. |
| `publishedAt` | string | When exposed | Public published timestamp. |
| `updatedAt` | string | When exposed | Public modified timestamp. |
| `canonicalUrl` | string | When exposed | Canonical Page URL from metadata or the rendered URL. |
| `locale` | string | When exposed | Open Graph locale. |
| `availableSections` | string array | When exposed | Detail-section names or headings observed on the Page. |
| `sourceType` | string | When exposed | Human-readable source type, such as metadata, JSON-LD, or rendered page. |
| `link` | string | When exposed | Input Page link retained for compatibility. |
| `scrapedAt` | string | When a record is saved | Time the Page record was normalized, in ISO UTC. |

No current-schema Page rows are stored in the Actor's default local dataset, so the example is an empty array rather than an invented Page record:

```json
[]
```

Contact fields such as `email` and `phone` are included only when the public Page discloses them as business contact data; personal contact details are not inferred.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`.

| Field | Meaning |
| --- | --- |
| `recordType` | Summary discriminator; always `facebook-business-page-run-summary`. |
| `id` | Run-summary identifier derived from the requested Page targets. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved Pages: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `requestedCount` | Number of input Page targets requested. |
| `successCount` | Pages that produced a saved record. |
| `datasetItems` | Dataset rows written, matching `successCount` for Page records. |
| `diagnosticItems` | Diagnostic dataset rows; always zero because diagnostics stay in the summary and logs. |
| `diagnosticCount` | Operational issues recorded for the run. |
| `failedCount` | Page requests or extractions that failed. |
| `emptyCount` | Accessible Pages that yielded no usable public data. |
| `dataAvailable` | Whether at least one source-backed Page was saved. |
| `proxyConfigured` | Whether an Apify Proxy configuration was supplied. |
| `scrapedAt` | Time the summary was written, in ISO UTC. |

No current-schema `OUTPUT` snapshot is stored in the Actor's default key-value store, so the summary table is shown without a value example.

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Eligible Pages were saved without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | Some Pages were saved, but a later navigation or extraction failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The requested Pages were processed cleanly but none yielded usable public data. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable Page was saved. |

### Coverage and limitations

The Actor reads direct public Facebook Page URLs only. It renders the public Page, then reads standard metadata, valid embedded JSON, and JSON-LD. Search URLs, group URLs, private Pages, and non-Facebook URLs are rejected by input validation.

Business contact fields such as address, phone, email, and website appear only when the public Page discloses them; personal contact details are not inferred. Ratings, offers, hours, media, and section headings appear only when public structured data or the rendered Page exposes them. Access barriers fail closed and are reported in the run summary rather than converted into Page rows. No login state, private endpoint, CAPTCHA bypass, or proxy-based restriction bypass is used.

### Usage and support

Cost depends on page count, navigation time, concurrency, and whether a proxy is configured. Start with small item and page limits, inspect the dataset and run summary, then scale gradually. See the Actor's Pricing tab for current account rates. Use the [Actor Issues page](https://apify.com/w3crawler/facebook-business-page-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Facebook. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/facebook-business-page-scraper/changelog.md

# Actor input Schema

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

Direct public Facebook page URLs or page usernames. Search endpoints, private pages, and non-Facebook URLs are rejected.

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

Maximum number of input pages to visit; successful pages and diagnostics are never conflated.

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

Maximum number of public page navigations running at once.

## `maxRequestRetries` (type: `integer`):

Retries for ordinary navigation failures. Access barriers are not retried or bypassed.

## `navigationTimeoutSecs` (type: `integer`):

Maximum time allowed for one public page navigation.

## `requestHandlerTimeoutSecs` (type: `integer`):

Maximum time allowed for one page request handler.

## `postNavigationDelayMs` (type: `number`):

Bounded pause after DOM content loads so public page metadata can settle without aggressive pacing.

## `includeDetails` (type: `boolean`):

Extract public category, hours, and detail-section headings.

## `includeContact` (type: `boolean`):

Extract public address, phone, email, website, and external links when present.

## `includeSocialStats` (type: `boolean`):

Extract public likes, followers, and talking-about-this labels and counts.

## `includeRatings` (type: `boolean`):

Extract public rating, review count, price, offer, and availability evidence when embedded data exposes it.

## `includeMedia` (type: `boolean`):

Extract public image metadata and up to 20 image URLs.

## `includeAbout` (type: `boolean`):

Extract the public page description/about text when present.

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

Optional Apify proxy configuration passed to PlaywrightCrawler. The actor does not create or rotate proxies itself.

## Actor input object example

```json
{
  "pageUrls": [
    "https://www.facebook.com/google"
  ],
  "maxItems": 10,
  "maxConcurrency": 1,
  "maxRequestRetries": 2,
  "navigationTimeoutSecs": 90,
  "requestHandlerTimeoutSecs": 180,
  "postNavigationDelayMs": 1000,
  "includeDetails": true,
  "includeContact": true,
  "includeSocialStats": true,
  "includeRatings": true,
  "includeMedia": true,
  "includeAbout": true
}
```

# Actor output Schema

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

Dataset containing normalized public page records and diagnostics.

## `summary` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/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 '{}' |
apify call w3crawler/facebook-business-page-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/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/I4gj4z7ei8tgAImub/builds/4u5c92ci4BoiTbXmF/openapi.json
