# Facebook Post Engagement Tracker (`alpha-scraper/facebook-post-engagement-tracker`) Actor

\[ 1k/1.49$ ] Facebook Post Engagement Tracker snapshots reactions (with breakdown), comments, shares and views of public Facebook posts and compares them with the previous run: deltas, growth per hour and growth percent, plus a summary of top gainers and fastest-growing posts.

- **URL**: https://apify.com/alpha-scraper/facebook-post-engagement-tracker.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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 Post Engagement Tracker

**Facebook Post Engagement Tracker** takes an engagement snapshot of public Facebook posts and compares it with the snapshot from the previous run. Give Facebook Post Engagement Tracker a Page username or a post URL, and it records reactions with a breakdown, comments, shares and views, then shows how much each Facebook post grew since last time.

Run Facebook Post Engagement Tracker on a schedule and every post gets deltas, growth per hour and growth percent. A final summary record lists totals, top gainers and the posts that grow the most per hour. You do not need a Facebook account, a login or an API key.

> **📌 At a glance**
>
> - **Input:** Facebook Page usernames, Page URLs and single post, reel, video or photo URLs
> - **Output:** one snapshot record per post, plus a summary record
> - **Comparison:** each run is compared with the previous snapshot of the same post
> - **Control:** `maxItems` limits the latest posts per Page, and `keepHistory` limits saved snapshots

Social media managers, agencies, analysts and creators use Facebook Post Engagement Tracker to watch how Facebook posts perform after publishing. Because every snapshot uses one JSON structure, the data is easy to chart, export or feed into a dashboard.

### 🔹 Facebook Post Engagement Tracker – Key Features

Facebook Post Engagement Tracker turns one-off counters into a growth record.

- **Engagement snapshot:** reactions, comments, shares and views of each Facebook post.
- **Reaction breakdown:** counts per Facebook reaction type, such as Like, Love and Wow.
- **Change since last run:** `delta` shows how many reactions, comments and shares each Facebook post gained.
- **Growth per hour:** the change of a Facebook post divided by the hours since its previous snapshot.
- **Growth percent:** the change as a share of the previous value.
- **Lifetime rate:** average engagement per hour since the Facebook post was published.
- **Pages and single posts:** track the latest posts of a Facebook Page or specific Facebook post URLs.
- **Run summary:** totals, top gainers, posts ranked by growth per hour and the most engaged of your Facebook posts.
- **Saved targets:** leave the input lists empty and Facebook Post Engagement Tracker reuses the sources of the previous run.

> **✅ Why use this Actor**
>
> Facebook Post Engagement Tracker replaces manual screenshots and spreadsheets. Facebook Post Engagement Tracker keeps the earlier snapshots for you and calculates the growth on every run.

### 🔍 What Data Does Facebook Post Engagement Tracker Extract?

Each snapshot record describes one Facebook post at one point in time. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Post | `postId`, `url`, `type`, `author`, `authorId`, `textPreview` | Which Facebook post was tracked |
| Timing | `publishedAt`, `postAgeHours`, `snapshotAt`, `firstSeenAt` | Publish time, age and snapshot times |
| Metrics | `metrics` | Reactions, comments, shares, views, plays, breakdown and total |
| Change | `delta`, `hoursSincePrevious`, `previousSnapshotAt` | What changed since the previous snapshot |
| Growth | `growthPerHour`, `growthPercent`, `lifetimePerHour` | Speed and size of growth |
| History | `isFirstSnapshot`, `snapshotsRecorded` | How many snapshots exist for the post |
| Source | `facebookUrl`, `scrapedAt` | The Facebook source and collection time |

The `metrics` object holds `reactions`, `comments`, `shares`, `views`, `plays`, `reactionBreakdown`, `totalEngagement` and `sharesApproximate`. Views and plays exist only for videos and reels.

### 🚀 How to Use Facebook Post Engagement Tracker

Running Facebook Post Engagement Tracker takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Post Engagement Tracker from the Apify Store and open the Input tab.
- **Step 2 – Add sources:** enter Page usernames, or paste Page URLs and post URLs into *Start URLs* and *Post URLs*.
- **Step 3 – Set a limit:** choose *Max items* to cap the latest Facebook posts tracked per Page.
- **Step 4 – Run once:** the first run creates a first snapshot for each Facebook post, so there are no deltas yet.
- **Step 5 – Run again later:** start Facebook Post Engagement Tracker again, or schedule it, to get deltas and growth rates.
- **Step 6 – Export:** download JSON, CSV or Excel, or read the results through the Apify API.

> **💡 Tip:** the input is prefilled with the sample username `Cristiano`. Clear it if you only want to track your own Facebook posts.

### 📥 Facebook Post Engagement Tracker Input

Facebook Post Engagement Tracker has six input fields. All are optional, but you need at least one source, unless saved targets from a previous run exist.

| Field | Type | Description |
|---|---|---|
| `usernames` | array | Facebook Page or profile usernames, ids or URLs. The latest posts of each one are tracked. |
| `startUrls` | array | Facebook Page URLs and/or post URLs. A Page gives its latest posts, and a post, reel, video or photo URL gives that single post. Default: empty. |
| `postUrls` | array | Single posts to track, such as `/<page>/posts/<id>`, `/reel/<id>`, `/watch/?v=<id>`, `/photo.php?fbid=<id>` or `/share/p/<code>`. If all three lists are empty, the targets saved by the previous run are reused. Default: empty. |
| `resetState` | boolean | Ignore and overwrite saved snapshots, so every post starts again with a first snapshot and no deltas. Default: `false`. |
| `keepHistory` | integer | Number of snapshots kept per post. Older ones are dropped, and each run adds one snapshot per post. Minimum 1, default 60. |
| `maxItems` | integer | Maximum number of latest posts tracked per Page. Single post URLs are not counted. Minimum 1, default 30. |

Facebook Post Engagement Tracker gives every Page from `usernames` and `startUrls` its own `maxItems` limit, so two Pages with `maxItems` set to 20 track up to 40 posts, plus any single post URLs.

The saved snapshots belong to Facebook Post Engagement Tracker on your Apify account. Each run compares a post with its latest saved snapshot, whichever task or schedule created it.

Here is a sample input for Facebook Post Engagement Tracker that tracks the latest posts of one Page and one reel:

```json
{
  "usernames": ["Cristiano"],
  "startUrls": [],
  "postUrls": ["https://www.facebook.com/reel/1234567890123456"],
  "resetState": false,
  "keepHistory": 60,
  "maxItems": 20
}
```

### 📤 Facebook Post Engagement Tracker Output

Facebook Post Engagement Tracker writes one snapshot record per post, followed by one summary record. Fields without a value are returned as `null`.

```json
{
  "recordType": "snapshot",
  "postId": "1234567890123456",
  "url": "https://www.facebook.com/samplepage/posts/1234567890123456",
  "type": "photo",
  "author": "Sample Page",
  "authorId": "100000000000001",
  "publishedAt": "2026-11-05T09:00:00.000Z",
  "postAgeHours": 30,
  "textPreview": "Behind the scenes at this week's photo shoot.",
  "snapshotAt": "2026-11-06T15:00:00.000Z",
  "metrics": {
    "reactions": 375,
    "comments": 13,
    "shares": 24,
    "views": null,
    "plays": null,
    "reactionBreakdown": { "Like": 320, "Love": 48, "Wow": 7 },
    "totalEngagement": 412,
    "sharesApproximate": false
  },
  "isFirstSnapshot": false,
  "firstSeenAt": "2026-11-05T21:00:00.000Z",
  "previousSnapshotAt": "2026-11-06T09:00:00.000Z",
  "hoursSincePrevious": 6,
  "delta": { "reactions": 55, "comments": 1, "shares": 4, "views": null, "plays": null, "totalEngagement": 60, "reactionBreakdown": { "Like": 45, "Love": 9, "Wow": 1 } },
  "growthPerHour": { "reactions": 9.167, "comments": 0.167, "shares": 0.667, "views": null, "plays": null, "totalEngagement": 10 },
  "growthPercent": { "reactions": 17.188, "comments": 8.333, "shares": 20, "views": null, "plays": null, "totalEngagement": 17.045 },
  "lifetimePerHour": { "reactions": 12.5, "comments": 0.433, "shares": 0.8, "views": null, "plays": null, "totalEngagement": 13.733 },
  "snapshotsRecorded": 3,
  "facebookUrl": "https://www.facebook.com/samplepage",
  "scrapedAt": "2026-11-06T15:00:02.000Z"
}
```

The summary record closes the dataset:

```json
{
  "recordType": "summary",
  "snapshotAt": "2026-11-06T15:02:10.000Z",
  "previousRunAt": "2026-11-06T09:02:05.000Z",
  "inputs": { "pages": ["https://www.facebook.com/samplepage"], "posts": [] },
  "postsTracked": 31,
  "newPostsThisRun": 1,
  "postsComparedWithPrevious": 30,
  "totals": { "reactions": 126825, "comments": 3616, "shares": 7503, "views": 1850747, "plays": null, "totalEngagement": 137944 },
  "totalDelta": { "reactions": 1980, "comments": 64, "shares": 150, "views": 20400, "plays": null, "totalEngagement": 2194 },
  "hoursSincePreviousRun": 6,
  "avgEngagementPerPost": 4449.81,
  "topGainers": [ { "postId": "1234567890123456", "url": "https://www.facebook.com/samplepage/posts/1234567890123456", "totalEngagement": 60 } ],
  "mostEngaged": [ { "postId": "1234567890123999", "url": "https://www.facebook.com/samplepage/posts/1234567890123999", "totalEngagement": 69460 } ],
  "note": null
}
```

#### 🧾 Output field guide

- `postId`, `url` and `type` identify the Facebook post and its format.
- `metrics` holds the counters at `snapshotAt`, and `totalEngagement` adds reactions, comments and shares.
- `sharesApproximate` is `true` when Facebook shows a rounded share count, as it does for some reels.
- `isFirstSnapshot` is `true` on the first run for a post, when `delta` and the growth fields are `null`.
- `delta` is the change since `previousSnapshotAt`, and `hoursSincePrevious` is the time between them.
- `growthPerHour` and `growthPercent` express that change as a speed and as a percentage.
- `lifetimePerHour` averages the counters over `postAgeHours`.
- The summary of Facebook Post Engagement Tracker lists `postsTracked`, `newPostsThisRun` and `postsComparedWithPrevious`.
- `topGainers` ranks posts by added engagement, and a second list ranks them by growth per hour.
- `note` explains when a first run has no comparison yet.

### 📈 How to Track Facebook Post Engagement Over Time

To track Facebook post engagement over time with Facebook Post Engagement Tracker, run it at a fixed rhythm, for example every few hours for new posts or once a day for older ones. Each run adds one snapshot per post, so the history becomes a growth curve.

To start fresh with Facebook Post Engagement Tracker, switch on `resetState` for one run. Every post then begins again with a first snapshot, and the next run produces deltas.

### 🎯 Facebook Post Engagement Tracker Use Cases

Facebook Post Engagement Tracker fits many workflows that depend on public Facebook post performance.

- **Launch monitoring:** watch how a new Facebook post grows during its first hours.
- **Viral post spotting:** find posts with the highest growth per hour in the summary.
- **Campaign reporting:** compare totals and deltas between two reporting dates.
- **Competitor tracking:** follow how rival Facebook Pages' posts gain reactions and comments.
- **Content timing research:** see when Facebook posts gain most of their engagement.
- **Reaction mix analysis:** study the reaction breakdown behind a Facebook post.
- **Dashboards:** send snapshots from Facebook Post Engagement Tracker to a spreadsheet or BI tool for charts.

### 💰 Pricing

Facebook Post Engagement Tracker 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 posts tracked and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` value such as 10 or 20, and track single posts with `postUrls` when you only care about a few. Fewer posts mean cheaper scheduled runs of Facebook Post Engagement Tracker.

### 💡 Tips and Best Practices

- **Run Facebook Post Engagement Tracker at least twice:** growth fields appear from the second run for each post.
- **Use a steady schedule:** equal gaps between runs make growth per hour easier to compare.
- **Keep enough history:** raise `keepHistory` if Facebook Post Engagement Tracker follows a post for many runs.
- **Clear the sample username:** remove the prefilled `Cristiano` if you only want your own sources.
- **Mind shared snapshots:** all runs of Facebook Post Engagement Tracker on your account share the saved snapshots.
- **Watch for rounded shares:** Facebook Post Engagement Tracker sets `sharesApproximate` when Facebook rounds a count.
- **Check nulls:** Facebook Post Engagement Tracker returns `null` views and plays for posts that are not videos.
- **Schedule regular runs:** use Apify schedules to build the history automatically.

> **⚠️ Important:** only collect data you are allowed to use. Public Facebook posts can contain personal data, 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 Post Engagement Tracker?

Facebook Post Engagement Tracker is an Apify Actor that snapshots the engagement of public Facebook posts and compares each snapshot with the previous run to show growth.

#### 🧭 How do I track Facebook post engagement over time?

Add a Page or post URLs, run Facebook Post Engagement Tracker once, then run it again later or schedule it. From the second run on, each record contains deltas and growth rates.

#### 🔐 Does Facebook Post Engagement Tracker need a Facebook login?

No. Facebook Post Engagement Tracker reads publicly visible content, so no account, cookies or API key are required.

#### 📊 What engagement data does Facebook Post Engagement Tracker return?

Each snapshot has reactions with a breakdown, comments, shares, views for videos, a total, and the change since the previous snapshot.

#### 🔗 Can I track one specific Facebook post or reel?

Yes. Put the post, reel, video or photo URL into `postUrls` or `startUrls`, and Facebook Post Engagement Tracker tracks that single post.

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

Yes. Add several usernames or URLs, and Facebook Post Engagement Tracker tracks up to `maxItems` latest posts for each Page.

#### ♻️ Can I reuse the sources of my previous run?

Yes. Leave `usernames`, `startUrls` and `postUrls` empty, and the targets saved by the previous run are used again.

#### 🧹 How do I start tracking from scratch?

Turn on `resetState` for one run of Facebook Post Engagement Tracker. It ignores and overwrites the saved snapshots, so every post gets a new first snapshot.

#### 🧐 Why are the growth fields empty?

Facebook posts on their first run have no earlier snapshot, so `delta`, `growthPerHour` and `growthPercent` are `null`. Run Facebook Post Engagement Tracker again to fill them.

#### 📤 Can I export Facebook engagement 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.

#### ⚖️ Is it legal to track Facebook post engagement?

Facebook Post Engagement Tracker 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 post that does not return the expected counts, send the post URL and the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

Page or profile usernames, IDs or URLs. The latest posts of each one are tracked (see 'Max items').

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

Page URLs and/or post URLs. Each entry is recognised automatically: a Page gives its latest posts, a post, reel, video or photo URL gives that single post.

## `postUrls` (type: `array`):

Single posts to track: /<page>/posts/<id>, /permalink.php?story_fbid=...\&id=..., /reel/<id>, /watch/?v=<id>, /<page>/videos/<id>, /photo.php?fbid=<id> or /share/p/<code>. If all three input lists are empty, the targets saved by the previous run are reused.

## `resetState` (type: `boolean`):

Ignore and overwrite the snapshots saved by previous runs, so every post starts again with a first snapshot and no deltas.

## `keepHistory` (type: `integer`):

Number of snapshots kept per post in the saved state; older ones are dropped. Each run adds one snapshot per post.

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

Maximum number of latest posts tracked per Page - every Page from 'Usernames' and 'Start URLs' gets its own limit. Single post URLs are not counted.

## Actor input object example

```json
{
  "usernames": [
    "Cristiano"
  ],
  "startUrls": [],
  "postUrls": [],
  "resetState": false,
  "keepHistory": 60,
  "maxItems": 15
}
```

# Actor output Schema

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

Structured records extracted by Facebook Post Engagement Tracker 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 = {
    "usernames": [
        "Cristiano"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-post-engagement-tracker").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 = {
    "usernames": ["Cristiano"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-post-engagement-tracker").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 '{
  "usernames": [
    "Cristiano"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-post-engagement-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-post-engagement-tracker"
        }
    }
}
```

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/HFWdH9eHdHjNNRrC9/builds/mgcaFE1FUhWSpGIMI/openapi.json
