# Facebook Reel, Post and video stats Scraper (`cyrolix/facebook-reel-posts-video-stats-scraper`) Actor

Scrapes Facebook reels and posts for views, likes, comments and shares without login

- **URL**: https://apify.com/cyrolix/facebook-reel-posts-video-stats-scraper.md
- **Developed by:** [Cyrolix](https://apify.com/cyrolix) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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 Reel & Post Scraper

Scrape Facebook reels and posts for engagement metrics — views, likes, comments, and shares — **without requiring login or cookies**.

Supports reels, video posts, image posts, and text posts. Resolves shortened URLs (fb.watch, /share/r/, /share/p/) automatically.

***

### Features

| Feature | Details |
|---------|---------|
| Likes | ✅ |
| Views | ✅ |
| Comment Count | ✅ |
| Share Count | ✅ |
| Caption / Title | ✅ |
| Upload Date | ✅ |
| Thumbnail URL | ✅ |
| Direct Video URL | ✅ |
| Author Name | ✅ |
| Author Profile URL | ✅ |
| Author ID | ✅ |
| Exact Count Flags | ✅ (tells you if count is precise or rounded) |
| Shortened URL Resolution | ✅ (`fb.watch`, `/share/r/`, `/share/p/`) |
| Supports Reels & Posts | ✅ (image, video, text posts) |
| No Login Required | ✅ |
| Batch URLs | ✅ |

***

### Supported URL Formats

| Type | Example |
|------|---------|
| Reel | `https://www.facebook.com/reel/1234567890` |
| Reel (reels/) | `https://www.facebook.com/reels/1234567890` |
| Shared reel | `https://www.facebook.com/share/r/XXXXXXXX/` |
| Short reel | `https://fb.watch/XXXXXXXX/` |
| Watch video | `https://www.facebook.com/watch/?v=1234567890` |
| Video post | `https://www.facebook.com/username/videos/1234567890` |
| Post | `https://www.facebook.com/username/posts/pfbid...` |
| Shared post | `https://www.facebook.com/share/p/XXXXXXXX/` |
| Permalink | `https://www.facebook.com/permalink.php?story_fbid=...` |

***

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | String | No\* | Single Facebook reel or post URL |
| `urls` | Array of Strings | No\* | Multiple Facebook URLs to scrape |

\*At least one of `url` or `urls` must be provided.

#### Example Input

```json
{
  "url": "https://www.facebook.com/reel/1234567890"
}
```

```json
{
  "urls": [
    "https://www.facebook.com/reel/1234567890",
    "https://fb.watch/XXXXXXXX/",
    "https://www.facebook.com/share/p/XXXXXXXX/"
  ]
}
```

***

### Output

Each scraped URL produces one result object pushed to the dataset.

#### Full Output Schema

```json
{
  "url": "https://www.facebook.com/reel/1234567890",
  "shortcode": "XXXXXXXX",
  "realId": "1234567890",
  "platform": "FACEBOOK",

  "views": 95000,
  "likes": 3200,
  "comments": 148,
  "shares": 560,

  "views_display": "95K",
  "views_reported": 95000,
  "views_reported_display": "95K",

  "caption": "Check out this amazing video!",
  "datePosted": "2026-08-10T00:00:00.000Z",
  "thumbnailUrl": "https://example.com/thumbnail.jpg",

  "author": "Page Name",
  "authorName": "Page Name",
  "authorId": "987654321",
  "authorUrl": "https://www.facebook.com/pagename",

  "cdnUrl": "https://video.xx.fbcdn.net/...",

  "scrapedAt": "2026-08-22T12:00:00.000Z",
  "status": "available",
  "error": null,

  "exact": {
    "views": true,
    "likes": true,
    "comments": true,
    "shares": false
  }
}
```

#### Output Fields Reference

| Field | Type | Description |
|-------|------|-------------|
| `url` | String | Resolved canonical Facebook URL |
| `shortcode` | String | Short ID from the URL path |
| `realId` | String | Numeric Facebook reel/post ID |
| `platform` | String | Always `"FACEBOOK"` |
| `views` | Number / null | Exact video play count |
| `likes` | Number / null | Total reaction count (likes, loves, etc.) |
| `comments` | Number / null | Total comment count |
| `shares` | Number / null | Total share count |
| `views_display` | String / null | Human-readable views (e.g. `"1.2K"`) |
| `views_reported` | Number / null | Display-formatted view number |
| `views_reported_display` | String / null | Human-readable reported views |
| `caption` | String / null | Post title or description |
| `datePosted` | ISO 8601 / null | Upload date |
| `thumbnailUrl` | String / null | Cover image URL |
| `author` | String / null | Creator name or username |
| `authorName` | String / null | Creator display name |
| `authorId` | String / null | Numeric Facebook user/page ID |
| `authorUrl` | String / null | Link to creator profile/page |
| `cdnUrl` | String / null | Direct video CDN URL (time-limited) |
| `scrapedAt` | ISO 8601 | Timestamp of when the scrape ran (UTC) |
| `status` | String | `"available"` on success, `"error"` on failure |
| `error` | String / null | Error message if `status` is `"error"` |
| `exact.views` | Boolean | Whether the view count is exact (`true`) or rounded (`false`) |
| `exact.likes` | Boolean | Whether the like count is exact |
| `exact.comments` | Boolean | Whether the comment count is exact |
| `exact.shares` | Boolean | Whether the share count is exact |

#### Error Response

```json
{
  "url": "https://www.facebook.com/reel/1234567890",
  "status": "error",
  "error": "HTTP 404 – page not found",
  "scrapedAt": "2026-08-22T12:00:00.000Z"
}
```

***

### Limitations

- Only works on **public** Facebook content (private/friends-only posts are not accessible)
- Direct video CDN URLs (`cdnUrl`) are **time-limited** and expire after a few hours
- Share counts may not always be exact due to Facebook's display rounding
- Facebook may rate-limit or block requests for very high-volume batches — add delays between runs if needed

# Actor input Schema

## `url` (type: `string`):

Single Facebook URL. Reels: /reel/, /share/r/, fb.watch, /watch/?v=. Posts: /posts/pfbid…, /share/p/.

## `urls` (type: `array`):

List of Facebook reel or post URLs to scrape.

## Actor input object example

```json
{}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All scraped Facebook reel/post metadata and engagement metrics

## `datasetItemsCsv` (type: `string`):

Download all scraped items as CSV

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("cyrolix/facebook-reel-posts-video-stats-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("cyrolix/facebook-reel-posts-video-stats-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call cyrolix/facebook-reel-posts-video-stats-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cyrolix/facebook-reel-posts-video-stats-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/oio3skuokraxq4Dul/builds/Slkgfps6kgpGJtrch/openapi.json
