# Facebook Page Reels Scraper (`powerai/facebook-page-reels-scraper`) Actor

Export Facebook Page Reels with video links, stats, thumbnails, and author info—paginated up to your cap.

- **URL**: https://apify.com/powerai/facebook-page-reels-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Social media, Videos, Integrations
- **Features:** Limited permissions
- **Stats:** 63 total users, 34 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.99 / 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?

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

Collect **short-form Reels** published under a **Facebook Page** you identify by **numeric page id** and/or a **Reels page id** (the feed token when you already have it). Each dataset row is one reel with a link, description, timing, engagement counts, thumbnail, and author block when returned.

### Who it’s for

- **Social teams** reviewing a brand’s Reels performance in a spreadsheet-friendly form.
- **Analysts** who need stable **`video_id`** / **`post_id`** keys across runs.
- **Automation** that already stores Page ids or Reels feed ids from other steps.

### What you can do with it

- **Target a Page** with its **numeric id**, and/or supply a **Reels page id** when you have it. **At least one** of these two identifiers is required.
- **Collect up to your chosen cap**; the run loads successive batches until the limit is reached or the list ends.

### How it works (in plain terms)

You pass **one or both** of the identifiers above and a **maximum row count**. The tool retrieves reels in batches and keeps going automatically while more results exist and your cap allows—you do not manage paging yourself.

### Input

| Field | Required | What it means |
|-------|----------|----------------|
| **Page ID** (`pageId`) | One of two | Numeric id of the Facebook Page. |
| **Reels page ID** (`reelsPageId`) | One of two | The reels feed token for that Page (often from page details). |
| **Maximum results** (`maxResults`) | No | Upper limit on how many reel rows to save (default **50**). |

You must provide **at least one** of **Page ID** or **Reels page ID**. You may provide both when your workflow supplies them.

### Output

- **One row per reel** (until your cap). Duplicates in the same run are skipped when the same **`video_id`** (or **`post_id`** / URL) appears again.
- **Reel**: typically **`type`**, **`video_id`**, **`post_id`**, **`url`**, **`description`**, **`timestamp`**, **`length_in_seconds`**, **`browser_native_hd_url`**, **`play_count`**, **`comments_count`**, **`reactions_count`**, **`reshare_count`**, **`thumbnail_uri`**.
- **Author**: **`author`** with **`id`**, **`name`**, **`url`**, **`profile_picture_url`** when returned.
- **Extra fields**: rows may include **additional properties** beyond those listed.
- **Export metadata**: **`pageId`** appears when you scoped the run with a page id; **`reelsPageId`** appears when you set the reels page input; **`scrapedAt`** is when that row was saved.

Field availability depends on each reel. Details may change as the product evolves.

#### Sample output (one dataset row, illustrative)

```json
{
  "type": "reel",
  "video_id": "9876543210987654321",
  "post_id": "pfbid02AbCdEfGhIjKlMnOpQrStUvWxYz",
  "url": "https://www.facebook.com/reel/1234567890123456/",
  "description": "Behind the scenes at our office.",
  "timestamp": 1711300800,
  "length_in_seconds": 42,
  "browser_native_hd_url": "https://video.xx.fbcdn.net/...",
  "play_count": 15000,
  "comments_count": 120,
  "reactions_count": 890,
  "reshare_count": 45,
  "author": {
    "id": "100064830872783",
    "name": "Example Page",
    "url": "https://www.facebook.com/examplepage",
    "profile_picture_url": "https://scontent.xx.fbcdn.net/..."
  },
  "thumbnail_uri": "https://scontent.xx.fbcdn.net/...",
  "pageId": "100064830872783",
  "scrapedAt": "2025-03-25T11:05:33.789Z"
}
```

# Actor input Schema

## `pageId` (type: `string`):

Numeric id of the Facebook Page. Use this and/or Reels page ID—at least one is required.

## `reelsPageId` (type: `string`):

Reels feed token for the Page (often a long string from page details). Optional if Page ID is set—at least one of the two is required.

## `maxResults` (type: `integer`):

How many reel rows to save in total (across pages).

## Actor input object example

```json
{
  "reelsPageId": "YXBwX2NvbGxlY3Rpb246cGZiaWQwcTJrTWJVVTF2Tlg4NmhzZTlmMllXb1lkZEY3Tm1ZZDZkYW45S0w1YkdwdGV1allQSEFzdVRzeEVKNkdYNmdnWDhxWlRuWWlEQUZTeUtyNHNMc2NpMXJCTWZlYlRWbnB6S1VYUVBs",
  "maxResults": 10
}
```

# 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 = {
    "reelsPageId": "YXBwX2NvbGxlY3Rpb246cGZiaWQwcTJrTWJVVTF2Tlg4NmhzZTlmMllXb1lkZEY3Tm1ZZDZkYW45S0w1YkdwdGV1allQSEFzdVRzeEVKNkdYNmdnWDhxWlRuWWlEQUZTeUtyNHNMc2NpMXJCTWZlYlRWbnB6S1VYUVBs",
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/facebook-page-reels-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 = {
    "reelsPageId": "YXBwX2NvbGxlY3Rpb246cGZiaWQwcTJrTWJVVTF2Tlg4NmhzZTlmMllXb1lkZEY3Tm1ZZDZkYW45S0w1YkdwdGV1allQSEFzdVRzeEVKNkdYNmdnWDhxWlRuWWlEQUZTeUtyNHNMc2NpMXJCTWZlYlRWbnB6S1VYUVBs",
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/facebook-page-reels-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 '{
  "reelsPageId": "YXBwX2NvbGxlY3Rpb246cGZiaWQwcTJrTWJVVTF2Tlg4NmhzZTlmMllXb1lkZEY3Tm1ZZDZkYW45S0w1YkdwdGV1allQSEFzdVRzeEVKNkdYNmdnWDhxWlRuWWlEQUZTeUtyNHNMc2NpMXJCTWZlYlRWbnB6S1VYUVBs",
  "maxResults": 10
}' |
apify call powerai/facebook-page-reels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,powerai/facebook-page-reels-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/4zfoXBzcljfgy6N30/builds/WkLFVr70xqBHSpDtl/openapi.json
