# Facebook Page Scraper (no login) (`myagizm/facebook-page-scraper`) Actor

Scrape public Facebook pages — name, likes, followers, talking-about count, category, about text, website and profile image. No login, no cookies, no API key.

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

## Pricing

from $2.30 / 1,000 facebook page scrapeds

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/platform/actors/running/actors-in-store#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 Page Scraper — Scrape Facebook Pages (No API Key, No Login)

<p align="center">
<b>Scrape Facebook pages</b> in seconds — get name, likes, followers, talking‑about count, category, about text, website, and profile image — with <b>no login</b>, <b>no cookies or account required</b>, and <b>no API key</b>. Scrape one page or scrape Facebook pages at scale. Export scraped data to JSON, CSV, Excel, or XML, schedule runs via API, and integrate with your tools and AI workflows.
</p>

<p align="center">
<b>Built for AI agents:</b> plug this Facebook page scraper straight into <b>Claude</b>, <b>ChatGPT / Codex</b>, and <b>Cursor</b> through the Apify MCP server and let your agent pull live Facebook page data on demand.
</p>

<p align="center">
<a href="https://apify.com/myagizm/facebook-page-scraper"><img src="https://img.shields.io/badge/Try%20Now-Facebook%20Page%20Scraper-1877F2?style=for-the-badge" alt="Try Now"></a>
<a href="https://apify.com/myagizm/facebook-page-scraper/input-schema"><img src="https://img.shields.io/badge/Input%20Schema-View-2ea44f?style=for-the-badge" alt="Input Schema"></a>
<a href="https://docs.apify.com/api/v2"><img src="https://img.shields.io/badge/API%20Docs-Apify-orange?style=for-the-badge" alt="API Docs"></a>
</p>

<p align="center">
<a href="#what-can-facebook-page-scraper-do">What it does</a> •
<a href="#use-facebook-page-scraper-with-ai-agents-mcp">AI agents (MCP)</a> •
<a href="#how-to-scrape-facebook-pages">How to scrape</a> •
<a href="#what-data-can-you-scrape-from-facebook-pages">Data fields</a> •
<a href="#limits">Limits</a> •
<a href="#output-example">Output</a> •
<a href="#how-much-does-scraping-facebook-pages-cost">Pricing</a> •
<a href="#integrations">Integrations</a> •
<a href="#want-other-facebook-data">Cross-sell</a> •
<a href="#faq">FAQ</a> •
<a href="#disclaimer">Disclaimer</a>
</p>

***

### What can Facebook Page Scraper do? {#what-can-facebook-page-scraper-do}

**Facebook Page Scraper** turns any public Facebook page into clean, structured JSON. Give it a list of page usernames or URLs and it returns each page's public profile data — the display name, total likes, follower count, "talking about this" engagement number, category, about/description text, website link, and profile image URL.

There is **no login, no cookies or account required, and no API key**. You don't manage tokens, sessions, or proxies — the actor handles everything for you and hands back ready‑to‑use data you can pipe into a spreadsheet, database, dashboard, or AI agent. It collects only **publicly available data** — the same information anyone could see in a browser — and lets you **go beyond the limitations of the official Facebook API** with **no limitations on requests**.

Front and center: this is the fastest way to **scrape Facebook pages at scale** for competitor research, lead generation, social‑media monitoring, brand tracking, and CRM enrichment. **Get your first results free in under 2 minutes.**

#### ✅ Scrape any public Facebook page

Point the scraper at a single page or scrape hundreds of Facebook pages at once. It accepts plain usernames (`nasa`), vanity handles, or full URLs (`https://facebook.com/cocacola`) — mix and match freely in one run.

#### 📊 Scrape Facebook page engagement metrics

Pull the numbers that matter for social analytics: total **likes**, **followers**, and the **talking‑about** count (Facebook's rolling engagement indicator). Track them over time by scheduling repeat runs.

#### 🗂️ Scrape full Facebook page profile data

Capture the page **name**, **category**, **about** text, **website**, and **profile image** URL in a single pass — everything you need to build a directory, enrich a lead list, or profile a competitor.

#### 💬 Bulk & list input

Feed an array of pages and the actor iterates through all of them, returning one tidy record per page. Ideal for enriching an existing list of Facebook handles — **scrape Facebook pages at once** instead of one at a time.

#### 🔄 Consistent, structured output

Every page produces the same predictable JSON shape, so downstream code, spreadsheets, and agents never have to guess. Failed lookups are flagged clearly instead of breaking your pipeline.

#### ⚡ Fast, fresh data

No browser to drive, no anti‑bot puzzles to solve, no infrastructure to run. Fast response times deliver data in seconds 🚀 — no caching, fresh data on every run. Start a run from the UI, API, or an AI agent.

#### 🔑 No API key, no login

You never supply Facebook credentials or an access token. The scraper reads only **publicly available** page data. No cookies or account required.

***

### Use Facebook Page Scraper with AI agents — Claude, ChatGPT & Cursor (MCP) {#use-facebook-page-scraper-with-ai-agents-mcp}

Facebook Page Scraper is exposed through the **Apify MCP server**, so you can call it directly from AI agents and copilots to scrape Facebook pages inside your own workflows:

- **Claude** (Desktop & API) — add the Apify MCP connector and ask Claude to "get the follower count and about text for these Facebook pages."
- **ChatGPT / Codex** — wire the actor in as a tool and let the model fetch live page metrics mid‑conversation.
- **Cursor** — pull Facebook page data into your coding workflow without leaving the editor.

Because the output is clean JSON, agents can chain it into downstream **MCP connectors** — push results into **Slack**, **Notion**, **Airtable**, **Google Sheets**, or automate multi‑step workflows through **Zapier**, **Make**, and **n8n**.

> Tip: Ask your agent for exactly the fields you need — e.g. "return only `name`, `followers`, and `website` for each page as a table."

***

### How to scrape Facebook pages {#how-to-scrape-facebook-pages}

Scraping Facebook pages takes four steps and about two minutes:

1. **Open the actor** — go to [Facebook Page Scraper](https://apify.com/myagizm/facebook-page-scraper) and click **Try for free**.
2. **Add your pages** — in the **Facebook pages** field, paste one username or URL per line (e.g. `nasa`, `bbcnews`, `https://facebook.com/cocacola`).
3. **Set a limit** (optional) — adjust **Max pages** to cap how many pages the run processes.
4. **Run it** — click **Start**. Results stream into the dataset as each page is resolved.
5. **Export** — download the scraped data as **JSON, CSV, Excel, or XML**, or pull it via the API / MCP.

That's it — no account, no cookies, no proxy setup, and no API key.

***

### What data can you scrape from Facebook pages? {#what-data-can-you-scrape-from-facebook-pages}

Each Facebook page you scrape returns one record with the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `ok` | boolean | `true` if the page was scraped successfully. |
| `url` | string | Canonical Facebook URL of the page. |
| `name` | string | Public display name of the page. |
| `about` | string | About / description text shown on the page. |
| `error` | string | null | Error message if the page could not be scraped, otherwise `null`. |
| `likes` | integer | null | Total number of page likes. |
| `website` | string | null | External website linked on the page. |
| `category` | string | null | Facebook category (e.g. "Government Organization"). |
| `username` | string | Resolved page username / handle. |
| `followers` | integer | null | Total number of followers. |
| `inputPage` | string | The exact username or URL you supplied as input. |
| `profileImage` | string | null | URL of the page's profile picture. |
| `talkingAbout` | integer | null | Facebook "talking about this" engagement count. |

> Some fields may be `null` when a page does not publish that information (for example, a page without a website or a hidden follower count).

***

### Use cases — why scrape Facebook pages?

- **Competitor analysis** — benchmark likes, followers, and engagement across rival brand pages.
- **Lead generation** — enrich a list of Facebook handles with website links and categories.
- **Social‑media monitoring** — track how a page's follower and talking‑about numbers change over time.
- **Brand & reputation tracking** — snapshot your own pages and those of partners on a schedule.
- **Market research** — build directories of pages within an industry or region.
- **CRM enrichment** — attach up‑to‑date Facebook metrics to company or contact records.
- **Influencer & partner vetting** — verify audience size and category before outreach.
- **Campaign tracking** — measure how a page's audience responds during and after a campaign.
- **AI agent workflows** — let Claude or ChatGPT fetch live page data as part of a larger task.

***

### Input examples

The scraper takes two inputs: a list of **pages** (required) and an optional **maxItems** cap.

#### Scrape a single Facebook page

```json
{
  "pages": ["nasa"]
}
```

#### Scrape multiple Facebook pages by username

```json
{
  "pages": ["nasa", "bbcnews", "cocacola"]
}
```

#### Scrape Facebook pages by full URL

```json
{
  "pages": [
    "https://facebook.com/cocacola",
    "https://www.facebook.com/bbcnews"
  ]
}
```

#### Mix usernames and URLs, with a cap

```json
{
  "pages": [
    "nasa",
    "bbcnews",
    "https://facebook.com/cocacola"
  ],
  "maxItems": 10
}
```

#### Enrich a larger list at scale

```json
{
  "pages": [
    "nike",
    "adidas",
    "puma",
    "reebok",
    "underarmour"
  ],
  "maxItems": 50
}
```

***

### Limiting results {#limits}

Use **`maxItems`** to control how many Facebook pages a single run scrapes:

- **Type:** integer
- **Default:** `50`
- **Minimum:** `1`
- **Maximum:** `100`

```json
{
  "pages": ["nasa", "bbcnews", "cocacola"],
  "maxItems": 3
}
```

If your `pages` list is longer than `maxItems`, only the first `maxItems` entries are scraped. Each run lasts at most about **10 minutes**; for very large lists, split them across multiple runs or schedule them.

***

### Output example {#output-example}

A real record returned when you scrape the `nasa` page:

```json
{
  "ok": true,
  "url": "https://www.facebook.com/nasa",
  "name": "NASA - National Aeronautics and Space Administration",
  "about": "Explore the universe and discover our home planet. \nThere's space for everybody. ✨",
  "error": null,
  "likes": 28660443,
  "website": null,
  "category": null,
  "username": "nasa",
  "followers": null,
  "inputPage": "nasa",
  "profileImage": "https://lookaside.fbsbx.com/lookaside/crawler/media/?media_id=100044561550831",
  "talkingAbout": 28517
}
```

Every page in your run produces one object in this shape. Results are stored in the run's dataset and can be exported as **JSON, CSV, Excel, or XML**.

***

### How much does scraping Facebook pages cost? {#how-much-does-scraping-facebook-pages-cost}

Facebook Page Scraper runs on a **pay‑per‑result** model — you pay for the pages you successfully scrape, not for time spent or infrastructure. Because the scraper is lightweight and fully managed, costs stay low and predictable even when you **scrape Facebook pages at scale**.

New Apify accounts include free monthly usage credits, so you can **get your first results free in under 2 minutes** and test the actor at no cost. See the pricing tab on the [actor page](https://apify.com/myagizm/facebook-page-scraper) for current rates.

***

### Integrate with n8n, Zapier, and Make {#integrations}

Run the actor and fetch results directly over the Apify API. The actor path is **`myagizm~facebook-page-scraper`**.

#### Run synchronously and get dataset items

Best for small lists — starts the run and returns the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~facebook-page-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "pages": ["nasa", "bbcnews"],
    "maxItems": 10
  }'
```

#### Start a run asynchronously

Best for larger lists — kicks off the run and returns immediately:

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~facebook-page-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "pages": ["nasa", "bbcnews", "cocacola"],
    "maxItems": 50
  }'
```

Then poll the run and retrieve its dataset:

```bash
curl "https://api.apify.com/v2/actor-runs/RUN_ID?token=YOUR_APIFY_TOKEN"
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_APIFY_TOKEN&clean=true&format=json"
```

**No‑code connectors:** use the official Apify integrations for **Make, Zapier, n8n, Slack, Airbyte, Gumloop, CrewAI, IFTTT, Lindy, GitHub, Google Sheets, and Google Drive** to trigger runs and route results into your apps without writing code. You can also connect via **webhooks** and the **Apify MCP server**.

***

### Want other Facebook data? {#want-other-facebook-data}

Facebook Page Scraper is part of a full family of social and web scrapers by **myagizm**. If you need to scrape other platforms or richer data, pair it with these sibling actors:

- [Instagram Profile Scraper](https://apify.com/myagizm/instagram-profile-scraper) — public Instagram profile data, followers, and bio.
- [LinkedIn Company Scraper](https://apify.com/myagizm/linkedin-company-scraper) — company page details, size, and metrics.
- [LinkedIn People Scraper](https://apify.com/myagizm/linkedin-people-scraper) — public LinkedIn profile data at scale.
- [Reddit Scraper](https://apify.com/myagizm/reddit-scraper) — posts, comments, and communities.
- [YouTube Channel Scraper](https://apify.com/myagizm/youtube-channel-scraper) — channel stats and metadata.
- [YouTube Video Info](https://apify.com/myagizm/youtube-video-info) — per‑video metadata and statistics.

Browse the full catalog on the [myagizm store page](https://apify.com/myagizm).

***

### Support {#support}

Questions, bugs, or feature requests? Open an **issue** on the [actor page](https://apify.com/myagizm/facebook-page-scraper) or contact the developer through Apify. Feedback on new fields and options is always welcome.

***

### FAQ — scraping Facebook pages {#faq}

#### Is it legal to scrape Facebook pages?

This actor collects only **publicly available** information — data anyone can view without logging in. As with any scraping, you are responsible for how you use the data and for complying with applicable laws (such as GDPR) and Facebook's terms. Avoid collecting personal data unlawfully and consult legal counsel if unsure.

#### Do I need a Facebook account or API key to scrape Facebook pages?

No. There is **no login, no cookies or account required, and no API key**. You just provide page usernames or URLs.

#### Can I use Facebook Page Scraper with the Apify API?

Yes. Start runs and fetch datasets over the Apify API using the actor path `myagizm~facebook-page-scraper`. See [Integrations](#integrations) for ready‑to‑paste `curl` examples.

#### Can I get Facebook page data through an MCP server?

Yes. The actor is available through the **Apify MCP server**, so AI agents like **Claude, ChatGPT, and Cursor** can call it directly. See [Use with AI agents](#use-facebook-page-scraper-with-ai-agents-mcp).

#### Do I need proxies to scrape Facebook pages?

No. The actor handles everything for you — you don't configure proxies, sessions, or anti‑bot measures.

#### Can I integrate Facebook page data with other apps?

Yes. Route results into **Make, Zapier, n8n, Slack, Airtable, Notion, Google Sheets, Google Drive**, and more via the official Apify connectors, webhooks, or MCP.

#### Can I export scraped Facebook data to CSV, Excel, or JSON?

Yes. Results can be downloaded as **JSON, CSV, Excel, or XML**, or pulled via the API.

#### Can I scrape multiple Facebook pages at once?

Yes. Pass an array of usernames or URLs and the actor scrapes them all in one run — up to **100** pages per run (the `maxItems` maximum), with no limitations on the number of runs.

#### Can I schedule the Facebook page scraper?

Yes. Use Apify **Schedules** to run the scraper hourly, daily, or on any cron interval — ideal for tracking metrics over time.

#### Can I scrape data from private Facebook accounts?

No. The scraper only collects **publicly available** page data. Private accounts and content behind a login are not accessible.

#### Can I scrape Facebook pages by URL instead of username?

Yes. Both plain usernames and full Facebook URLs work, and you can mix them in the same run.

#### Why are some fields `null`?

Facebook does not publish every field for every page. If a page hides its follower count or has no website, that field returns `null` while the rest of the record is still populated.

#### How do I track Facebook follower growth over time?

Schedule repeated runs on the same page list and store each run's dataset. Comparing `followers`, `likes`, and `talkingAbout` across runs shows the trend.

#### How fast is it?

Most pages resolve in seconds. Total run time scales with how many pages you request, capped at roughly 10 minutes per run. No caching — fresh data every run.

#### What happens if a Facebook page can't be scraped?

The record is returned with `ok: false` and an `error` message instead of failing the whole run, so your pipeline keeps working.

***

### Related searches {#related-searches}

facebook page scraper · facebook page data extractor · facebook likes count scraper · facebook followers count · scrape facebook without login · facebook page api alternative · facebook graph api alternative · facebook business page data · facebook page category scraper · facebook page csv export · facebook brand monitoring · facebook page followers export

***

### Disclaimer {#disclaimer}

This is an independent tool and is not affiliated with, endorsed by, or sponsored by Facebook or Meta Platforms, Inc. All product names, logos, and brands are property of their respective owners. Use this scraper responsibly and only to collect publicly available data in compliance with applicable laws and platform terms.

***

### Resources {#resources}

- **Apify API docs:** https://docs.apify.com/api/v2
- **Apify MCP server:** https://docs.apify.com/platform/integrations/mcp
- **Dataset export docs:** https://docs.apify.com/platform/storage/dataset
- **Run this actor:** https://apify.com/myagizm/facebook-page-scraper
- **Input schema:** https://apify.com/myagizm/facebook-page-scraper/input-schema

***

## 中文说明 —— Facebook 公共主页抓取工具

**抓取 Facebook 公共主页的公开信息** —— 不需要登录、Cookie、Graph API 应用、app review 或 access token。填入主页名称或链接，即可返回：主页名称、用户名、点赞数、关注数、「正在讨论」人数、分类、简介、官网与头像。适合品牌监测、竞品对标与商家数据补全。

> **两分钟内免费拿到第一批数据** —— 填入内容、点击 Start 即可。无需配置，试用不需要信用卡。

### 能做什么

- 📘 **按主页名称或链接抓取公开信息**。
- 👍 **点赞数与关注数**，衡量主页体量。
- 💬 **「正在讨论」人数**，反映近期活跃度。
- 🏷️ **主页分类**（如 Government organization、Media/news company）。
- 🌐 **官网链接与简介**。
- 🖼️ **头像地址**。
- 🧑‍🤝‍🧑 **一次可排队多个主页**。
- 🚫 **无需 Graph API 应用，也不需要 app review**。
- 📤 **导出** JSON / CSV / Excel / XML。

### 谁在用

- 🏢 **品牌与竞品监测** —— 对比各品牌主页体量与活跃度。
- 💼 **本地商家线索** —— 拿到分类与官网做业务开发。
- 📊 **市场研究** —— 统计某行业主页的规模分布。
- 🗂️ **数据补全** —— 为公司主数据补上社交维度。

### 使用建议

- 📈 **定期快照点赞数**，增长速度比绝对值更有信息量。
- 💬 「正在讨论」人数比点赞数更能反映当下热度。
- 🌐 用官网字段串联到网站抓取做深度补全。
- 🧑‍🤝‍🧑 批量核查比逐个查便宜得多。

### 相关工具

- 🐦 **[X（推特）推文抓取](https://apify.com/myagizm/x-tweets-scraper)** · 👤 **[X 账号资料](https://apify.com/myagizm/x-profile-scraper)**
- 📸 **[Instagram 资料抓取](https://apify.com/myagizm/instagram-profile-scraper-v2)** · 🎵 **[TikTok 资料抓取](https://apify.com/myagizm/tiktok-profile-scraper-v2)**
- 🤖 **[Reddit 抓取](https://apify.com/myagizm/reddit-scraper-v2)** · ▶️ **[YouTube 频道抓取](https://apify.com/myagizm/youtube-channel-scraper)** · 🗺️ **[Google 地图抓取](https://apify.com/myagizm/google-maps-scraper)**

完整工具家族见 **[myagizm 商店主页](https://apify.com/myagizm)**。

### 配合 AI 智能体使用（MCP）

本 Actor 已接入 **Apify MCP 服务器**，Claude、ChatGPT、Cursor 等助手可以把它当作工具直接调用，用自然语言提问即可拿到结构化结果。

### 集成与 API

支持 **Make、Zapier、n8n、Slack、Airbyte、CrewAI、Google Sheets** 等，以及 Webhook、定时任务与 MCP 服务器。

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~facebook-page-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{}'
```

把 `format` 改成 `json`、`csv`、`xlsx` 或 `xml` 即可导出不同格式。

### 常见问题

**需要 Facebook Graph API 应用或 access token 吗？**
不需要，也不需要 app review。

**能抓个人主页或私密内容吗？**
不能，只抓公开的公共主页信息。

**能抓主页的帖子吗？**
本工具返回主页概况；帖子属于另一个入口。

**数据有多新？**
不缓存，每次运行都读取当前公开页面。

**需要配置代理吗？**
不需要，已内置托管。

**支持导出 CSV / Excel / JSON 吗？**
支持 JSON、CSV、Excel、XML。

**可以定时运行吗？**
可以，支持 Apify Schedules、API 与 Webhook。

### 免责声明

本工具为独立第三方工具，与 Facebook 及 Meta Platforms, Inc. 无任何隶属、认可或赞助关系，所有商标归各自所有者。

本 Actor 只采集**公开可见**的数据，不登录、不绕过访问控制、不获取私密内容。数据使用的合规责任由使用者承担。

### 相关搜索

facebook 主页抓取 · facebook 页面数据提取 · facebook 点赞数抓取 · facebook 关注数 · 免登录抓取 facebook · facebook graph api 替代 · facebook 商家数据 · facebook 主页分类 · facebook 品牌监测 · facebook 主页导出 csv

# Actor input Schema

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

Facebook page usernames or URLs, e.g. "nasa", "bbcnews", "https://facebook.com/cocacola".

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

Hard cap on how many pages to scrape in this run. A run lasts at most ~10 minutes.

## Actor input object example

```json
{
  "pages": [
    "nasa",
    "bbcnews"
  ],
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped items as structured JSON.

# 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": [
        "nasa",
        "bbcnews"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/facebook-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 = {
    "pages": [
        "nasa",
        "bbcnews",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("myagizm/facebook-page-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "nasa",
    "bbcnews"
  ],
  "maxItems": 50
}' |
apify call myagizm/facebook-page-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=myagizm/facebook-page-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MPfeVg5fV4HRRzblb/builds/vBWSICQm2rnS7tD02/openapi.json
