# Facebook Pages Scraper (`alpha-scraper/facebook-pages-scraper`) Actor

\[ 1k/1.49$ ] Facebook Pages Scraper extracts public information from Facebook Pages by URL, @handle, vanity name or ID without login: name, IDs, categories, followers and likes, intro, photos, verified badge, contacts, hours, rating, description and transparency data.

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

## Pricing

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

### Facebook Pages Scraper

**Facebook Pages Scraper** extracts the public information of Facebook Pages and returns it as clean, structured data. Give Facebook Pages Scraper a Facebook Page URL, an @handle, a vanity name or a numeric Page id, and it returns the Page name, ids, categories, follower and like counts, intro, profile and cover photo, verified badge, contact details, opening hours, price range, rating, description and Page transparency data.

Facebook Pages Scraper reads publicly visible Facebook content only. You do not need a Facebook account, a login or an API key, so you can turn a list of Page names into a ready dataset in a few minutes.

> **📌 At a glance**
>
> - **Input:** Facebook Page URLs, @handles, vanity names or numeric Page ids
> - **Output:** one dataset record per Facebook Page, with the same fields every time
> - **Extras:** switch About, details and transparency on or off to match the data you need
> - **Control:** you decide which Facebook Pages are processed, so cost follows the size of your list

Teams use Facebook Pages Scraper for lead research, competitor analysis, brand monitoring, directory building and Page audits. Because every Facebook Page comes back in one JSON structure, the data is easy to export, join with other sources or load into a CRM.

### 🔹 Facebook Pages Scraper – Key Features

Facebook Pages Scraper focuses on the details that describe a Page as a business or brand.

- **Flexible sources:** mix Facebook URLs, @handles, vanity names and numeric ids in one run.
- **Core Page facts:** name, Page id, profile id, categories and the public intro text.
- **Audience counts:** followers, following, likes, talking-about and were-here numbers when Facebook shows them.
- **Contact data:** email, phone, address, website, social links and a Messenger link when the Page publishes them.
- **Business details:** opening hours, price range, services and a rating or recommendation summary.
- **Page description:** the long About text and any extra detail rows from the details page.
- **Transparency data:** creation date, ad status, Page id and confirmed owner when Facebook shows them.
- **Media links:** profile photo, cover photo and the photo sizes, plus the Page navigation tabs.
- **Optional verified badge:** include or remove the `verified` field with one switch.

> **✅ Why use this Actor**
>
> Facebook Pages Scraper replaces manual copy-and-paste from the Facebook About tab. Facebook Pages Scraper visits each Page for you and delivers consistent fields that you can export as JSON, CSV or Excel.

### 🔍 What Data Does Facebook Pages Scraper Extract?

Each dataset item describes one Facebook Page. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Identity | `title`, `pageName`, `pageId`, `profileId`, `facebookId`, `type` | Names and ids of the Page |
| Links | `facebookUrl`, `pageUrl`, `inputUrl`, `messenger` | The canonical Page URL, your input and a Messenger link |
| Category | `categories`, `category`, `info`, `intro`, `introTiles` | What kind of Page it is and its intro text |
| Audience | `followers`, `following`, `likes`, `talkingAboutCount`, `wereHereCount` | Public counters shown on the Page |
| Contact | `email`, `phone`, `address`, `website`, `websites`, `alternativeSocialMedia` | Contact points and linked profiles |
| Business | `hours`, `priceRange`, `services`, `rating`, `ratingText`, `recommendPercent`, `reviewCount` | Opening hours, price level and review summary |
| Description | `about_me`, `details` | The Page description and extra detail rows |
| Transparency | `creation_date`, `ad_status`, `transparencyPageId`, `confirmed_owner`, `admin_info` | Creation date, ad status and owner information |
| Media | `profilePictureUrl`, `profilePhotoUrl`, `profilePhotoId`, `profileVideo`, `coverPhotoUrl`, `coverPhotoPageUrl`, `coverPhotoSize` | Profile and cover photo links |
| Page extras | `verified`, `gender`, `alternateName`, `tabs`, `pageAdLibrary`, `scrapedAt` | Badge, alternate name, tabs, ad activity flag and collection time |

The `type` field is `page` for a Page and `profile` when the address points to a personal profile instead.

### 🚀 How to Use Facebook Pages Scraper

Running Facebook Pages Scraper takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Pages Scraper from the Apify Store and go to the Input tab.
- **Step 2 – Add your Facebook Pages:** paste URLs into *Start URLs* or type names such as `natgeo` into *Usernames / IDs*.
- **Step 3 – Choose the extras:** keep *Include About*, *Include details* and *Include transparency* on, or turn off what you do not need.
- **Step 4 – Decide on the badge:** leave `showVerifiedBadge` on to keep the `verified` field in every record.
- **Step 5 – Run:** start Facebook Pages Scraper and watch the dataset fill with one record per Page.
- **Step 6 – Export:** download the results as JSON, CSV or Excel, or read them through the Apify API.

> **💡 Tip:** the input is prefilled with two sample Facebook Pages. If you only want your own list, replace the *Start URLs* entries before you run Facebook Pages Scraper.

### 📥 Facebook Pages Scraper Input

Facebook Pages Scraper has six input fields. You need at least one entry in `startUrls` or `usernames`.

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Facebook Page URLs, @handles, vanity names or numeric Page ids. The prefilled samples are `https://www.facebook.com/copperkettleyqr` and `https://www.facebook.com/nike`. |
| `usernames` | array | Alternative or addition to `startUrls`: Page usernames such as `natgeo` or `Cristiano`, or numeric ids such as `100044541544829`. Default is an empty list. |
| `showVerifiedBadge` | boolean | Keep the `verified` field in each record. When off, the field is removed. Default is `true`. |
| `includeAbout` | boolean | Also read the About page for email, phone, address, websites, social links, hours, price range, services and rating summary. Default is `true`. |
| `includeDetails` | boolean | Also read the About details page for the Page description. Default is `true`. |
| `includeTransparency` | boolean | Also read the Page transparency info for creation date, ad status, Page id and confirmed owner. Default is `true`. |

In Facebook Pages Scraper, the three include switches each add one extra page visit per Page, so turning them off makes a run faster and lighter. When you fill in either list yourself, the prefilled sample Pages are not added to your run.

Here is a sample input for Facebook Pages Scraper that reads two Pages with every extra switched on:

```json
{
  "startUrls": ["https://www.facebook.com/natgeo"],
  "usernames": ["copperkettleyqr"],
  "showVerifiedBadge": true,
  "includeAbout": true,
  "includeDetails": true,
  "includeTransparency": true
}
```

### 📤 Facebook Pages Scraper Output

Facebook Pages Scraper writes one record per Facebook Page to the default dataset. Fields without a value are returned as `null`, so every record has the same shape.

```json
{
  "facebookUrl": "https://www.facebook.com/samplecoffeeroasters",
  "pageUrl": "https://www.facebook.com/samplecoffeeroasters",
  "inputUrl": "https://www.facebook.com/samplecoffeeroasters",
  "type": "page",
  "title": "Sample Coffee Roasters",
  "pageName": "samplecoffeeroasters",
  "pageId": "100000000000002",
  "profileId": "100000000000001",
  "facebookId": "100000000000001",
  "categories": ["Page", "Coffee shop"],
  "category": "Coffee shop",
  "info": ["Sample Coffee Roasters. 12,480 followers · 85 talking about this · 640 were here."],
  "likes": null,
  "followers": 12480,
  "following": 32,
  "talkingAboutCount": 85,
  "wereHereCount": 640,
  "verified": false,
  "gender": "NEUTER",
  "alternateName": null,
  "intro": "Small-batch roasting and a cozy cafe in the city center.",
  "introTiles": ["Intro", "Page · Coffee shop", "Price Range · $$"],
  "profilePictureUrl": "https://example.com/profile.jpg",
  "profilePhotoUrl": "https://www.facebook.com/photo/?fbid=100000000000003",
  "profilePhotoId": "100000000000003",
  "profileVideo": null,
  "coverPhotoUrl": "https://example.com/cover.jpg",
  "coverPhotoPageUrl": "https://www.facebook.com/photo/?fbid=100000000000004",
  "coverPhotoSize": { "width": 960, "height": 641 },
  "tabs": [{ "name": "About", "key": "about", "url": "https://www.facebook.com/samplecoffeeroasters/about" }],
  "pageAdLibrary": { "is_business_page_active": false, "id": "100000000000002" },
  "email": "hello@example.com",
  "phone": "+1 555-010-0199",
  "address": "12 Example Street, Sampletown",
  "website": "example.com",
  "websites": ["https://example.com"],
  "messenger": "https://m.me/samplecoffeeroasters",
  "priceRange": "$$",
  "services": "Outdoor seating",
  "hours": "Mon-Fri 8:00 AM - 5:00 PM",
  "rating": null,
  "ratingText": "94% recommend (74 reviews)",
  "recommendPercent": 94.0,
  "reviewCount": 74,
  "alternativeSocialMedia": [{ "platform": "Instagram", "handle": "samplecoffeeroasters", "url": "https://www.instagram.com/samplecoffeeroasters" }],
  "about_me": { "title": "Our story", "text": "We roast coffee in small batches.", "urls": [] },
  "creation_date": "March 3, 2014",
  "ad_status": "This Page isn't currently running ads.",
  "confirmed_owner": null,
  "admin_info": null,
  "transparencyPageId": "100000000000002",
  "scrapedAt": "2026-11-06T15:15:23.000Z"
}
```

If a Page cannot be read, Facebook Pages Scraper still adds a short record for it, so you can see which entry failed.

```json
{
  "inputUrl": "https://www.facebook.com/this-page-does-not-exist-example",
  "error": "HTTP 404 loading https://www.facebook.com/this-page-does-not-exist-example",
  "scrapedAt": "2026-11-06T15:15:25.000Z"
}
```

#### 🧾 Output field guide

Use this guide to read each record from Facebook Pages Scraper.

- `title`, `pageName`, `pageId` and `profileId` identify the Page.
- `facebookUrl` is the clean Page address, and `inputUrl` echoes what you entered.
- `categories` and `category` describe the type of Page, and `intro` holds the short intro.
- `followers`, `following`, `likes`, `talkingAboutCount` and `wereHereCount` are the public counters.
- `email`, `phone`, `address`, `website` and `websites` come from the About page.
- `hours`, `priceRange`, `services`, `rating` and `reviewCount` describe the business side.
- `about_me` and `details` come from the details page, and `creation_date`, `ad_status` and `confirmed_owner` come from transparency.
- `scrapedAt` tells you when the Page was collected.

### 📇 How to Extract Contact Details from Facebook Pages

Many Pages publish an email address, phone number, website and social links on the About tab. Keep `includeAbout` switched on, and Facebook Pages Scraper copies those details into `email`, `phone`, `address`, `website`, `websites` and `alternativeSocialMedia`.

For lead lists, run Facebook Pages Scraper on your Facebook Page URLs, export to CSV and filter rows where `email` or `phone` is not empty. If a Page shows no contact data, those fields stay `null`.

### 🎯 Facebook Pages Scraper Use Cases

Facebook Pages Scraper fits many workflows that depend on public Facebook Page data.

- **Lead research:** collect public contact details and websites from lists of local businesses on Facebook.
- **Competitor analysis:** compare follower counts, categories and descriptions across rival Facebook Pages.
- **Brand monitoring:** keep a record of how your own Page presents itself over time.
- **Directory building:** enrich a business directory with Facebook categories, hours and links.
- **Due diligence:** check the creation date, ad status and confirmed owner of a Page before a partnership.
- **Influencer vetting:** review audience size, category and verified badge before outreach.
- **Data enrichment:** add Facebook ids and Page facts to an existing spreadsheet or CRM.

### 💰 Pricing

Facebook Pages Scraper runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of Pages and the resources used by the run.

> **💡 Cost tip:** each extra switch (`includeAbout`, `includeDetails`, `includeTransparency`) adds one more page visit per Page. Turn off the parts you do not need, and test with a short list before you scale up.

### 💡 Tips and Best Practices

- **Start small:** a run with two or three Pages confirms the names and shows the fields.
- **Use clean names:** `natgeo`, `@natgeo` and the full Facebook URL all point to the same Page.
- **Skip what you do not need:** switch off transparency if you only want contact details, and Facebook Pages Scraper finishes sooner.
- **Expect public data only:** Facebook Pages Scraper returns what a logged-out visitor can see. Some Pages hide counters or contact data.
- **Check nulls:** a `null` field means Facebook did not show the value for that Page, not that Facebook Pages Scraper failed.
- **Mind personal profiles:** a profile address returns `type` set to `profile`, usually with fewer fields than a Page.
- **Schedule regular runs:** use Apify schedules to keep a Page dataset fresh.

> **⚠️ Important:** only collect data you are allowed to use. Public Pages can contain personal data such as names, emails and phone numbers, so follow Facebook's terms and the privacy rules that apply to you, such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Pages Scraper?

Facebook Pages Scraper is an Apify Actor that collects public information from Facebook Pages. Facebook Pages Scraper returns names, ids, counters, contact details, hours, descriptions and transparency data in a structured format.

#### 🧭 How do I scrape Facebook Page information?

Open Facebook Pages Scraper, paste Facebook Page URLs or type usernames, keep the extras you want and start the run. One record per Page appears in the dataset.

#### 🧩 Can I scrape several Facebook Pages in one run?

Yes. Add as many entries as you need to `startUrls` and `usernames`, and Facebook Pages Scraper returns one record for each Page.

#### 📞 Can I get the email and phone number of a Facebook Page?

Yes, when the Page publishes them. Keep `includeAbout` on, and Facebook Pages Scraper fills `email` and `phone`. If a Page shows neither, both fields are `null`.

#### 🔐 Does Facebook Pages Scraper need a Facebook login?

No. Facebook Pages Scraper reads publicly visible content, so no account, cookies or API key are required.

#### 📦 What data does Facebook Pages Scraper return?

Each record includes ids, categories, follower and like counts, intro, photos, contact details, hours, price range, rating, description and transparency fields such as creation date, ad status and confirmed owner.

#### 🏛️ Can I see who owns a Facebook Page?

When Facebook shows a confirmed owner in the Page transparency section, Facebook Pages Scraper returns it in `confirmed_owner`, together with `creation_date` and `ad_status`.

#### 🚫 Can I scrape private Facebook profiles or groups?

No. Facebook Pages Scraper only returns public content. Facebook Pages Scraper is built for Pages, and personal profiles return only the public parts.

#### 📊 Can I export Facebook Page data to CSV or Excel?

Yes. Any Apify dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the Apify API.

#### 🧐 Why are some fields empty?

Pages differ. When a value is not public for a Page, Facebook Pages Scraper returns `null` for that field.

#### ⚖️ Is it legal to scrape Facebook Pages?

Facebook Pages Scraper collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms, local laws and privacy rules before you store or share personal information.

### 📞 Support

If you have questions, ideas for new fields or find a Facebook Page that does not return the expected data, send the Page name and the input you used with Facebook Pages Scraper.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

## `startUrls` (type: `array`):

Facebook Page URLs, @handles, vanity names or numeric Page ids. Use this field, 'Usernames / IDs', or both; at least one entry is required.

## `usernames` (type: `array`):

Alternative or addition to 'Start URLs': Page usernames such as natgeo or Cristiano, or numeric Page ids such as 100044541544829. Processed together with 'Start URLs'.

## `showVerifiedBadge` (type: `boolean`):

Include the 'verified' field in each record. When off, the field is removed.

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

Also read the About page: email, phone, address, website(s), social links, hours, price range, services and rating summary. One extra request per Page.

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

Also read the About details page for the Page description. One extra request per Page.

## `includeTransparency` (type: `boolean`):

Also read the Page transparency info: creation date, ad status, Page ID and confirmed owner. One extra request per Page.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.facebook.com/copperkettleyqr",
    "https://www.facebook.com/nike"
  ],
  "usernames": [
    "leomessi"
  ],
  "showVerifiedBadge": true,
  "includeAbout": true,
  "includeDetails": true,
  "includeTransparency": true
}
```

# Actor output Schema

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

Structured records extracted by Facebook Pages Scraper and stored in the run's default dataset.

# 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 = {
    "startUrls": [
        "https://www.facebook.com/copperkettleyqr",
        "https://www.facebook.com/nike"
    ],
    "usernames": [
        "leomessi"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/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 = {
    "startUrls": [
        "https://www.facebook.com/copperkettleyqr",
        "https://www.facebook.com/nike",
    ],
    "usernames": ["leomessi"],
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/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 '{
  "startUrls": [
    "https://www.facebook.com/copperkettleyqr",
    "https://www.facebook.com/nike"
  ],
  "usernames": [
    "leomessi"
  ]
}' |
apify call alpha-scraper/facebook-pages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/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/010qplk2CVtKMprJ7/builds/PeTqVib8vNlsrHwfS/openapi.json
