# Facebook Reels Scraper | Plays, Likes, Shares | $2.85/1K reels (`dataizi-srl/facebook-reels-scraper`) Actor

Public reels from Pages and profiles: plays, likes, comments, shares, HD video. A reel link gives views. $2.85/1,000 reels on Free, $2.09 on Gold. No login.

- **URL**: https://apify.com/dataizi-srl/facebook-reels-scraper.md
- **Developed by:** [Dataizi SRL](https://apify.com/dataizi-srl) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 88.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.09 / 1,000 results

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/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 Reels Scraper: views, likes, comments and shares

Collect **public Facebook Reels** from any **Page or profile** (or from reel links you paste), and get one clean row per reel: caption with hashtags, mentions and links, publish time, duration, HD and SD video links, thumbnail, audio, the owner, the **play count** and the **reactions, comments and shares**. Optionally add the first page of public comments. No Facebook login, no cookies, no account of yours is used. Export to JSON, CSV or Excel, call it from the API, or schedule it.

**What to expect, before you run it.** You give the scraper **Pages, profiles or reel links**. It does not search Facebook, and it cannot list "all reels about a topic", because Facebook shows that to signed-in visitors only. Plays of reels found on a Page are exact below 1 million and rounded to 0.1 million above; a reel link shows its views as text. Reels found on a Page come with their reactions, comments and shares at no extra cost, and **Include exact counts** reads each reel's own page for them too; the comments layer returns the first page, about 9 top-level comments per reel, and no replies. The sections "What you get" and "What it can't do" list the rest.

### 🚀 Quick start

1. Click **Try for free** (or **Start**) with the default input. In about a minute you get the 10 newest public Reels of one Page, with their reactions, comments and shares and, with exact counts on, related reels.
2. Replace the Page with your own. Paste a Page or profile link such as `https://www.facebook.com/natgeo/reels/`, or the link of a single reel.
3. Open the **Output** tab, choose a view (Reels, Engagement, Video and audio, Creators, Captions, Comments) and export.

### ✅ What you get

- **Reels per Page or profile**, newest first, up to the number you set per source. The scraper has been proven to a depth of 400 reels on one Page.
- **Single reels** from a link: `facebook.com/reel/<id>`, `facebook.com/watch/?v=<id>`, `facebook.com/<page>/videos/<id>`, or a share link (`facebook.com/share/r/...`).
- **Engagement.** Plays on every reel found on a Page; a reel link gives its views as shown (`playCountText`). Reactions, comments and shares on every reel found on a Page, as the Page lists them, with no extra request. **Include exact counts** also opens each reel's page, for related reels and the reaction label. A reel link always gets them.
- **Video and audio.** HD and SD video links, thumbnail, creator-chosen cover, first frame, duration, size, the audio title, whether it is original audio, and the audio's id.
- **Owner.** Name, profile link, id, username, verified badge, avatar and, for Pages, the Page id. Reels found on a Page also carry its follower count as the Page shows it (`51 Mio. Follower`).
- **Caption data.** The text, the hashtags, the mentioned people and the links, as separate fields.
- **Related reels** from the same owner, with exact counts on.
- **Comments, on request.** The first page of public top-level comments, nested in the reel row (see "Personal data").
- **Filters that skip, not bill.** Reels from a date, up to a date, with chosen words in the caption, with a minimum number of plays, or not in your skip list. Reels a filter removes are never billed.
- **Clean rows.** Camel-case names, numbers are numbers, flags are true or false, dates are ISO 8601, links are absolute, a missing value is `null`. No tracking or debug fields.
- **A reason for every empty source.** A Page without Reels, a private or removed reel, a login wall or a format change is named in the run summary and the run status. A run never ends green and empty without saying why.

### 🚫 What it can't do

- **No keyword, hashtag, audio or "trending" search.** Facebook shows those only to signed-in visitors. Give it Pages, profiles or reel links. A filter such as **Caption contains** keeps only the reels of your sources that match; it does not search Facebook.
- **No login-only content.** Private profiles, groups, stories, ads and anything behind the login wall are out of scope.
- **Comments: first page only.** About 9 top-level comments per reel, no replies, no further pages.
- **Plays above 1 million are rounded**, as Facebook shows them (for example `1,1 Mio.`). Below 1 million they are exact for reels found on a Page. A reel link returns its **views** instead, a separate counter that can be far higher than the Page's plays (one reel showed 220,546 views from its link and 62,365 plays on its Page). When the reel page shows no views, `playCountText` is empty (`null`) for that reel.
- **No transcripts and no downloaded video files.** The video links are the same files Facebook's player uses; they are signed and **expire about 5 days after the run**. Download them soon, or run again.
- **Not every Page has Reels.** A Page without a Reels tab returns no rows and the status `no_reels`.

### 💡 Use cases

- **Track a brand or a competitor.** Schedule a daily run with **Only reels newer than** `1 day` and pass last run's `reelId` values in **Reel ids to skip**: you collect only new reels and pay only for new rows.
- **Find what goes viral.** Set **Minimum plays** and read the `engagement` view for plays, reactions, comments and shares.
- **Influencer and creator research.** Collect owner names, profile links, verified flags and each creator's latest reels from a list of Pages.
- **Content and trend analysis.** Feed captions, hashtags and mentions to a text model or a spreadsheet.
- **Archive links and metadata.** Keep the reel link, thumbnail and caption for reporting.

### 🔧 Input

Only **Facebook links** is required. The default input is a ready-to-run example.

| Field | What it does |
|---|---|
| **Facebook links** (`startUrls`) | Pages, profiles, Reels tabs or reel links, one per line. Anything that is not a Facebook link is skipped and named in the run summary, never billed. |
| **Maximum reels per Page or profile** (`maxReelsPerSource`) | Reels collected from each Page or profile. Default 20. |
| **Maximum reels in total** (`maxItems`) | Stops the run after this many rows over all sources. The default of 100 keeps a first run small; raise it for bigger jobs. |
| **Only reels newer than** (`onlyPostsNewerThan`) | A date (`2026-10-01`) or a relative time (`7 days`). A Page stops being read once its newest-first listing passes the date, so this also saves time. |
| **Only reels older than** (`onlyPostsOlderThan`) | The upper end of a date window. Newer reels are read and skipped, within the limit below. |
| **Caption contains** (`captionKeywords`) | Keep only reels whose caption or hashtags contain any of these words, ignoring case and accents. |
| **Minimum plays** (`minPlays`) | Keep only reels with at least this many plays, as Facebook rounds them. |
| **Reel ids to skip** (`excludeReelIds`) | Reel ids or links you already hold. They are skipped and never billed. |
| **Include exact counts** (`includeExactCounts`) | Opens each reel's page for related reels and the reaction label, and reads the counts there too. Reels found on a Page carry reactions, comments and shares without it. One extra page read per reel. |
| **Include comments** (`includeComments`) | Adds the first page of public comments to each row. Contains personal data. |
| **Proxy** (`proxyConfiguration`) | No proxy by default. Apify Proxy (datacenter) is available. Residential proxies and custom proxy URLs are not supported. |

Example input:

```json
{
  "startUrls": [{ "url": "https://www.facebook.com/natgeo/reels/" }],
  "maxReelsPerSource": 10,
  "includeExactCounts": true,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

Examples of useful combinations:

- **New reels, every day:** `"onlyPostsNewerThan": "1 day"` and last run's `reelId` values in `excludeReelIds`.
- **Viral reels of a Page:** `"minPlays": 1000000` with `"maxReelsPerSource": 100`.
- **A topic across Pages:** `"captionKeywords": ["recipe"]` with several food Pages.
- **One reel, all the numbers:** paste the reel link and leave the rest empty.

**Filters that skip reels.** The date, caption, minimum-plays and skip-list filters keep newest-first order and read the Page as it goes. To protect you, a Page stops being read once it has scanned about 500 reels plus 25 more for every row it returned without finding enough matches; the run summary then says `filtered_out` or names the stop (`scan_cap`). The skip list also stops a Page after 10 already-listed reels in a row, because Pages list newest first. Reels a filter skips are never billed.

### 📊 Output

One row per reel in the default dataset. The Output tab shows six views of the same rows:

| View | What it shows |
|---|---|
| **Reels** | The overview: link, owner, caption, date, duration, plays, reactions, comments, shares, thumbnail. |
| **Engagement** | Plays as shown and as a number, whether the number is exact, reactions, comments and shares. |
| **Video and audio** | Video links, thumbnails, cover, first frame, size, duration and the audio. |
| **Creators** | The owners: name, username, profile link, ids, verified badge, avatar. |
| **Captions** | Caption, hashtags, mentions and links. |
| **Comments** | One row per comment (needs **Include comments**), with the reel it belongs to. |

Example row (shortened):

```json
{
  "reelId": "1234567890123456",
  "reelUrl": "https://www.facebook.com/reel/1234567890123456",
  "caption": "Meet the deep-sea explorers ...",
  "hashtags": ["ocean", "explore"],
  "publishedAt": "2026-11-02T14:30:00Z",
  "durationSeconds": 38,
  "playCountText": "383.456",
  "playCount": 383456,
  "playCountIsExact": true,
  "reactionsCount": 2814,
  "commentsCount": 211,
  "sharesCount": 97,
  "ownerName": "National Geographic",
  "ownerIsVerified": true,
  "exactCountsFetched": true,
  "comments": null
}
```

#### Reel fields

| Field | What it holds |
|---|---|
| `reelId`, `reelUrl` | The reel's id and link. The id is the deduplication key: one row per reel in a run. |
| `caption` | The caption text. |
| `hashtags` | The hashtags in the caption, as a list. |
| `captionLinks` | The links in the caption, as the address they lead to. |
| `captionMentions` | The people and Pages mentioned in the caption: `name`, `id`, `url`. |
| `publishedAt`, `publishedAtTimestamp` | When the reel was published: ISO 8601 UTC and unix seconds. |
| `durationSeconds`, `width`, `height`, `aspectRatio` | The video's length and dimensions. |
| `videoUrlHd`, `videoUrlSd` | Links to the HD and SD video files. They expire about 5 days after the run. |
| `thumbnailUrl`, `coverImageUrl`, `firstFrameUrl` | The poster image, the creator-chosen cover and the first frame. |
| `ownerId`, `ownerName`, `ownerUrl`, `ownerUsername`, `ownerPageId` | The owner: id, name, profile link, username (vanity) and, for a Page, its Page id. |
| `ownerIsVerified`, `ownerAvatarUrl` | The verified badge and the owner's picture. |
| `pageFollowerCountText`, `pageFollowerCount` | The followers of the Page or profile you gave, as its Reels tab shows them (`51 Mio. Follower`) and as a number (rounded as shown). `null` for reel links. |
| `audioTitle`, `audioIsOriginal`, `audioId`, `audioCoverUrl` | The audio line, whether it is the creator's own audio, the audio's id and its cover art. |
| `isReshare`, `privacy` | Whether the reel is a reshare, and the audience label as Facebook shows it in the number format's language (`Öffentlich` for a public reel). |
| `playCountText`, `playCount`, `playCountIsExact` | The play count as shown (a dot separates thousands, so `383.456` is 383,456), as a number, and whether it is exact (below 1 million) or rounded. For a reel link the text is its view count and the number is `null`. |
| `reactionsCount`, `reactionsText` | The reactions, exact (from the Page's listing, or from the reel's page with **Include exact counts**), and the label as shown on the reel's page. |
| `commentsCount` | The number of comments, exact, from the Page's listing or the reel's page. |
| `sharesCount`, `sharesText` | The shares as a number and as shown. |
| `relatedReels` | The next reels of the same owner shown beside the reel: `reelId`, `reelUrl`. |
| `exactCountsFetched`, `countsLocale` | Whether the reel's own page was read (with **Include exact counts**, or for a reel link), and the number format used to read counts. |
| `sourceInput`, `sourceType`, `scrapedAt` | The link you gave, `page` or `reel`, and when the reel was read. |
| `comments` | `null` when comments were not requested, `[]` when requested and the reel has none, `null` too when they could not be loaded (the run log says so), else a list of comments. |

A count Facebook did not show is `null`, not `0`. `relatedReels` and `reactionsText` need **Include exact counts** (or a reel link).

#### Comment fields (inside `comments`)

| Field | What it holds |
|---|---|
| `commentId`, `commentUrl`, `commentText` | Facebook's text id of the comment, its link (with the numeric `comment_id`) and its text. |
| `commentCreatedAt` | When it was posted, ISO 8601. |
| `commentAuthorId`, `commentAuthorName`, `commentAuthorUrl` | Who wrote it. The profile link is missing on about a third of comments. |
| `commentAuthorIsVerified`, `commentAuthorBadges` | The verified badge and badges such as "Top fan". |
| `commentReplyCount`, `commentReactionsText` | How many replies and the reactions label. Replies themselves are not collected. |
| `commentTimestampInVideo`, `commentHasAttachments` | The video time a comment points to, and whether it has a photo, sticker or GIF. |
| `commentDepth` | The comment's level: always 0, because only top-level comments are collected. |

### 🗂️ Where are my results?

The **Export** button, the "run and get items" API endpoint and the task pages read the default dataset: the reels. The run summary is separate.

- **In Apify Console:** open the run's **Output** tab and click **Reels**, **Comments** or **Run summary**. Each opens with its own Export button.
- **Run summary through the API:**

```
GET https://api.apify.com/v2/actor-runs/<RUN_ID>/key-value-store/records/OUTPUT?token=<YOUR_TOKEN>
```

It lists every source with a status (`ok`, `no_reels`, `unavailable`, `login_wall`, `blocked`, `drift`, `ignored`, `unresolved`, `filtered_out`, `skipped_charge_limit`, `skipped_timeout`), the reels delivered and the reason a source stopped, plus the run totals. If a run returns fewer reels than you expected, read this record first.

### 🔌 Integrations and API

Run the scraper from your own code with the Apify API clients. Replace `<YOUR_TOKEN>` with your API token from **Settings > API & Integrations** in Apify Console.

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("dataizi-srl/facebook-reels-scraper").call(run_input={
    "startUrls": [{"url": "https://www.facebook.com/natgeo/reels/"}],
    "maxReelsPerSource": 20,
})
for reel in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(reel["reelUrl"], reel["playCount"], reel["reactionsCount"])
```

JavaScript (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_TOKEN>' });
const run = await client.actor('dataizi-srl/facebook-reels-scraper').call({
    startUrls: [{ url: 'https://www.facebook.com/natgeo/reels/' }],
    maxReelsPerSource: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'reels');
```

- **Schedules.** Save your input as a task and schedule it. A daily run with **Only reels newer than** set to `1 day` collects each new reel once.
- **Webhooks.** Have Apify call your URL when a run succeeds or fails, and fetch the dataset from there.
- **No-code tools.** Use the Apify integrations for Zapier, Make and n8n, or send results to Google Drive, Slack, Keboola or Airbyte.
- **AI agents.** Connect an AI assistant to the Apify MCP server at `https://mcp.apify.com` and it can run this scraper and read its results.

### 💸 Pricing

Pay per result: **$2.85 per 1,000 reels** on the Apify Free plan, and **from $2.09 per 1,000** on paid plans. That is below Apify's own Facebook Reels scraper on most plans.

- One reel row is one result. Comments, exact counts and related reels are part of the row: they are **not billed separately**.
- Reels removed by your filters, reels in your skip list, links that are not Facebook links, and Pages that cannot be read give no row and **no charge**.
- You are not billed separately for compute.
- Set a maximum cost per run and the scraper stops cleanly when it reaches it, keeping everything it saved. The Free plan has the same features: its only limit is your monthly credit.

### ⚡ Speed

The scraper reads one page at a time, with a short pause between requests, as a polite visitor would. A Page gives 10 reels per request, so the default input finishes in about a minute. **Include exact counts** opens one more page per reel, so a run with it on takes longer. A run that nears its timeout stops cleanly and keeps every row it saved.

### ⚠️ Limitations

- **Pages and links in, not search.** See "What it can't do".
- **Depth.** Facebook may stop listing a Page's reels after some hundreds. The scraper has been proven to 400 reels on one Page. The run summary names a Page that stopped early.
- **Filters read the Page as they go.** A filter that matches few reels can scan many. The stop rules above bound it, and skipped reels are free.
- **Facebook changes its pages.** When it does, a run reports `drift` for the affected sources and keeps the rest. Report it in the **Issues** tab and we fix it.
- **Public means public.** A reel that needs a login, is age-restricted or is removed gives `login_wall` or `unavailable` for that link and no row.
- **A reel link gives views, not plays.** The views of a reel read from its link are a different counter from the plays a Page lists, and can be several times higher. They come from the reel page's title; when the reel page shows no views, `playCountText` is `null`. `playCount` is `null` for a reel link. For plays you can rely on, give the Page.
- **A snapshot.** Counts change. Run again, or schedule the scraper, to track them.
- **Proxy.** The default is no proxy. If Facebook refuses a run, switch on Apify Proxy (datacenter). Residential proxies and custom proxy URLs are not supported, which keeps the price low.

### 🔁 Switching from another Facebook Reels scraper

Field and input names in other Reels scrapers, and their names here:

| Other scrapers | Here |
|---|---|
| `topLevelReelUrl`, `url` | `reelUrl` |
| `text`, `description` | `caption` |
| `time`, `createdAt`, `datePosted` | `publishedAt` |
| `creation_time`, `createdTimestamp` | `publishedAtTimestamp` |
| `playCountRounded`, `views` | `playCount` (as a number) and `playCountText` (as shown) |
| `likes` | `reactionsCount` |
| `comments` (a count) | `commentsCount` |
| `shares` | `sharesCount` |
| `ownerVerified`, `is_verified` | `ownerIsVerified` |
| `trackTitle`, `track_title` | `audioTitle` |
| `pageFollowerCountText` | `pageFollowerCountText` |
| input `resultsLimit` | `maxReelsPerSource` |
| input `onlyPostsNewerThan` | `onlyPostsNewerThan` (same name) |

### ❓ FAQ

**Can I search Facebook Reels by keyword or hashtag?**
No. Facebook shows search results only to signed-in visitors, and this scraper never logs in. Give it Pages, profiles or reel links. **Caption contains** filters the reels of your sources.

**Do I need to log in or give you my Facebook account?**
No. The scraper reads only pages that any visitor can open.

**Does Facebook have an official API for Reels?**
Meta's Graph API returns Reels only for Pages you manage, through an app and an access token. This scraper reads the public Reels of any Page or profile, without an account.

**Why are likes, comments and shares empty?**
Reels found on a Page carry them as the Page lists them. If a row has them `null`, the Page did not list them for that reel: switch on **Include exact counts**, which reads each reel's own page. A reel link always gets them. The play count as shown (`playCountText`) is there for every reel found on a Page; for a reel link it holds the views and is `null` when the reel page shows none. `playCount` is `null` for a reel link.

**Why is the play count rounded?**
Facebook shows plays rounded above one million (`1,1 Mio.` in the format the scraper reads). Below that, for reels found on a Page, the scraper returns the exact number. `playCountIsExact` tells you which one you have.

**How many reels can I get from one Page?**
Up to the limit you set. The scraper has been proven to 400 reels on one Page. The run summary says when a Page stopped earlier.

**Do the video links last?**
No. They are signed by Facebook and expire about 5 days after the run.

**How do I get only new reels?**
Use **Only reels newer than** with a relative date such as `1 day`, or keep the `reelId` values of your last run and pass them in **Reel ids to skip**. Skipped reels are not charged.

**What happens when I hit my spending limit?**
The run stops cleanly, marks itself as finished and keeps every row it saved. You are never charged past your limit.

**Why did a run return nothing?**
Open the **Run summary** record or read the run's final status message. Each empty source names its reason: no Reels tab, a private or removed reel, a login wall, a link that is not Facebook, or filters that removed every reel.

**Is it legal to scrape Facebook?**
The scraper reads only public pages that any visitor can open, with no login and at a polite pace. Facebook's terms restrict automated collection of data, so check that your use case is lawful and allowed, and see the personal data note below.

**Something is missing or broken.**
Open an issue in the **Issues** tab with your run link. We read every one.

### 🔒 Personal data

Reels are published by Pages and by private people. The output includes the owners' names, ids, profile links, usernames, pictures and follower counts, the names of people mentioned in captions and, with **Include comments**, the names, ids and profile links of commenters and the comment text. Captions, comments, pictures and videos are free content and can contain anything, including sensitive personal data. If you process this data you need a lawful basis under the GDPR and other privacy laws, and you are responsible for it. Do not use it for unsolicited marketing or to build profiles of private people.

### Disclaimer

This is an unofficial tool. It is not affiliated with, endorsed by or sponsored by Meta Platforms, Inc. or Facebook. The names "Facebook" and "Reels" and the site's icon belong to their owners and are used here only to identify the website the scraper reads.

# Changelog

This Actor's version history is a separate document: https://apify.com/dataizi-srl/facebook-reels-scraper/changelog.md

# Actor input Schema

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

Pages, profiles, Reels tabs or single reel links, one per line, for example `https://www.facebook.com/natgeo/reels/` or `https://www.facebook.com/reel/1234567890123456`. A Page or profile returns its newest public reels; a reel link returns that one reel with its exact counts. Share links (`facebook.com/share/r/...`, `fb.watch/...`) are followed to the reel. A link that is not a Facebook link is skipped, named in the run summary and never billed. This scraper does not search Facebook: it needs Pages, profiles or reel links.

## `maxReelsPerSource` (type: `integer`):

The most reels collected from each Page or profile in `Facebook links`. A Page lists 10 reels per request, newest first. Default 20. Reel links are not affected.

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

Stops the run after this many reel rows over all Pages, profiles and reel links. The default of 100 keeps a first run small; raise it for bigger jobs. The run also stops cleanly when your maximum cost per run is reached, and keeps every row it saved.

## `onlyPostsNewerThan` (type: `string`):

Keep only reels published on or after this date. Use a date such as `2026-10-01` or a relative time such as `7 days`, `2 weeks`, `3 months`. Pages list newest first, so a Page stops being read once it passes the date: this filter also saves time. A reel link is always returned.

## `onlyPostsOlderThan` (type: `string`):

Keep only reels published before this date, for a historic window. Use a date or a relative time. Newer reels are read and skipped, never billed, and a Page stops after a large number of reels without a match (the run summary says so). Combine with `Only reels newer than` for a window.

## `captionKeywords` (type: `array`):

Only keep reels whose caption or hashtags contain any of these words, ignoring case and accents. This filters the reels of your Pages; it does not search Facebook. Skipped reels are never billed, and a Page stops after a large number of reels without a match (the run summary says so).

## `minPlays` (type: `integer`):

Only keep reels with at least this many plays, using the number Facebook shows (rounded to 0.1 million above 1 million). Skipped reels are never billed, and a Page stops after a large number of reels without a match. Leave empty, or 0, for no minimum.

## `excludeReelIds` (type: `array`):

Reel ids or links you already hold, for example the `reelId` column of an earlier run. They are skipped and never billed. A Page stops being read after 10 skipped reels in a row, because Pages list newest first: use it to collect only new reels on repeat runs.

## `includeExactCounts` (type: `boolean`):

Adds related reels and the reaction label by opening each reel's page, and reads reactions, comments and shares there too. One extra page read per reel, so the run takes longer. Without it, reels found on a Page still carry the reactions, comments and shares the Page lists, and `relatedReels` and `reactionsText` are `null` (reel links always get them). Plays stay as Facebook shows them: exact below 1 million, rounded above.

## `includeComments` (type: `boolean`):

Adds the first page of public top-level comments to each reel: about 9 comments, no replies. Comments contain names and profile links of private people, so you need a lawful basis under the GDPR and other privacy laws to use them. One extra page read per reel. Off by default.

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

No proxy by default, which works for most runs. If Facebook refuses a run, switch on Apify Proxy (datacenter). Residential proxies, search-engine proxies and custom proxy URLs are not supported.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/natgeo/reels/"
    }
  ],
  "maxReelsPerSource": 10,
  "maxItems": 100,
  "includeExactCounts": true,
  "includeComments": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `reels` (type: `string`):

One row per reel in the Reels view: link, owner, caption, date, duration, plays, reactions, comments, shares and thumbnail.

## `comments` (type: `string`):

One row per comment, with its reel. Filled only when Include comments is on.

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

A status and a reason for every source, the reels delivered and the run totals. Read it when a run returns fewer reels than expected.

# 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": [
        {
            "url": "https://www.facebook.com/natgeo/reels/"
        }
    ],
    "maxReelsPerSource": 10,
    "maxItems": 100,
    "includeExactCounts": true,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataizi-srl/facebook-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 = {
    "startUrls": [{ "url": "https://www.facebook.com/natgeo/reels/" }],
    "maxReelsPerSource": 10,
    "maxItems": 100,
    "includeExactCounts": True,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dataizi-srl/facebook-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 '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/natgeo/reels/"
    }
  ],
  "maxReelsPerSource": 10,
  "maxItems": 100,
  "includeExactCounts": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dataizi-srl/facebook-reels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataizi-srl/facebook-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/ZhZTJZGlmdfuumiun/builds/uIQt7d5AJydg3n5GS/openapi.json
