# Facebook Page Posts Scraper - Reactions, Comments, Shares (`pomlabs/facebook-page-posts-scraper`) Actor

Get the public posts of any Facebook page: text, date, link, total reactions and each reaction type, comments, shares, photos and video links. Page URL, name or ID. No login, no cookies.

- **URL**: https://apify.com/pomlabs/facebook-page-posts-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 post delivereds

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/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 Posts Scraper - Reactions, Comments, Shares

Get the **public posts of any Facebook page** as clean JSON: the text, the date, the post link, the **total reactions and each reaction type** (like, love, care, haha, wow, sad, angry), the number of comments and shares, and the photo and video links. Give a page link, its name or its numeric ID.

**No login, no cookies, no Facebook account. You pay only for posts delivered.** Pages that do not exist or are not public are listed with the reason and never charged.

### What you get

For each post:

- Post ID and post link (`/posts/...` or `/reel/...`)
- Full text of the post (and the text of the shared post, when it is a share)
- Date and time (UTC) and the Unix timestamp
- Total reactions and the count of each reaction type
- Number of comments and number of shares
- Media: photo links, video links (thumbnail, page link and playable MP4 link)
- The page: name, ID, link and number of followers
- The author (name, ID, link, profile picture) and the collaborators of a collab post
- Links, hashtags and @mentions written in the text
- The link preview card of a shared link: title, description, source site, destination URL and image
- The top comment Facebook shows under the post (text, author, date, reactions)
- Video or not, video length, thumbnail, tagged place, call-to-action button, privacy and the full shared post (author, text, date, media) when it is a share
- Each reaction type also as its own number (`reactionLikeCount`, `reactionLoveCount`...), ready for a spreadsheet
- Optional page details row (`includePageDetails`): bio, categories, e-mails, phones, WhatsApp, address, all websites and social links, rating (recommend % and number of reviews), price range, services, opening status, verified badge, confirmed owner, followers and following, profile and cover photo. With `maxPostsPerPage: 0` you get only the page details, like a Facebook pages scraper
- Optional comments of each post (`includeComments`), and their replies (`includeCommentReplies`): text, date, author name, link and photo, likes, number of replies, the comment a reply answers, links, mentions and hashtags, stickers and GIFs, language, comment link. Orders: most relevant, newest first or all comments
- Optional video transcript (`includeTranscript`): the video's own captions as text and with times, and the caption languages of each video, free
- Only new posts on repeat runs (`onlyNewPosts`): each run gets only what the page published since your last run, so a scheduled monitor never pays twice for the same post
- Never a silent short result: each page says why reading stopped and whether your date window was read to the end (`includeCoverage`, also in the summary and in the final status line)
- One limit for the whole run (`maxPostsTotal`), on top of the per-page limit, so a list of pages never goes over budget
- `photoCount`: the real number of photos of an album post (Facebook sends at most 5 photos of an album to visitors)
- Comments of a single post: put the link of a post, photo, video or reel in `pages` and you get its comments, like a Facebook comments scraper
- Optional free summary row per page: totals and averages, engagement by post type, posts per week, the best post, top hashtags and the busiest hours and days

### Use cases

- **Social listening and competitor tracking:** follow what brands post and which posts get the most reactions and shares.
- **Content research:** find the posts that worked best on any page, to plan your own.
- **Reports and dashboards:** feed daily post metrics into a sheet, a BI tool or an AI agent.
- **Academic and media research:** collect the posts of public institutions, newspapers and politicians.

### Input

| Field | Type | Description |
|---|---|---|
| `pages` | array of strings | Page links (`https://www.facebook.com/NASA`), page names (`NASA`) or numeric page IDs. A link to one post, photo, video or reel gives that post's comments |
| `maxPostsPerPage` | integer | Maximum posts for each page, newest first. Default `10` |
| `onlyPostsNewerThan` | string | Optional. A date (`2026-11-01`) or a relative time (`7 days`, `2 weeks`, `1 month`) |
| `onlyPostsOlderThan` | string | Optional. Skip posts newer than this (same formats); with the field above, a date window. Skipped posts are free |
| `includeSummary` | boolean | Add one free summary row per page (`"type": "summary"`). Default `false` |
| `includePageDetails` | boolean | Add one row per page with its details (`"type": "page"`), charged per page. With `maxPostsPerPage: 0`, only the page details. Default `false` |
| `includeTranscript` | boolean | For video posts, the captions as text (`videoTranscript`), with times (`transcriptSegments`) and the language, when the video has captions. Free. Default `false` |
| `transcriptLanguage` | string | Optional. Preferred caption language when a video has several (`en`, `pt`, `Spanish`) |
| `onlyNewPosts` | boolean | Only posts published since your last run on the same page; the first run gets posts as usual. Posts you already got are free and skipped. Default `false` |
| `stateKey` | string | Optional. A name for each monitor, if you run the same page in several tasks |
| `maxPostsTotal` | integer | Optional. Most posts for the whole run, across all pages. Pages after it are skipped for free |
| `includeCoverage` | boolean | One free row per page (`type: page_coverage`) with `stoppedBecause` (`date_reached`, `end_of_timeline`, `page_max_reached`, `run_max_reached`, `cost_limit_reached`, `facebook_rate_limit`, `blocked`, `window_not_reached`, `error`), `complete` (the date window or the whole page was read), `postsDelivered`, `postsRead`, `oldestPostTime` and `newestPostTime`. Default `false` |
| `includeComments` | boolean | Add the comments of each post, one row each (`"type": "comment"`), charged per comment. Default `false` |
| `maxCommentsPerPost` | integer | Comments and replies together, per post. Default `50` |
| `includeCommentReplies` | boolean | Add the replies and the replies to them (`"type": "reply"`). Default `false` |
| `commentsSortOrder` | string | `RANKED_THREADED` (most relevant, default), `RECENT_ACTIVITY` (newest first) or `RANKED_UNFILTERED` (all comments) |
| `onlyCommentsNewerThan` | string | Optional. Skip older comments (free); same formats as the post dates |

The field names of other Facebook posts scrapers also work: `startUrls` and `pageUrls` for `pages`; `resultsLimit` and `postsToScrape` for `maxPostsPerPage`; `postsNewerThan` and `postsOlderThan` for the dates; `fetchAllComments`, `fetchCommentReplies`, `includeNestedComments`, `viewOption` and `commentsLimit` for the comments; `captionText` for the transcript; `onlyNewPosts` as in other page scrapers. Switching from another Actor needs no change to your input.

```json
{
  "pages": ["https://www.facebook.com/NASA", "CocaCola", "100064458773195"],
  "maxPostsPerPage": 50,
  "onlyPostsNewerThan": "30 days"
}
```

### Output

```json
{
  "postId": "1696522545176448",
  "url": "https://www.facebook.com/reel/2688015701636592/",
  "text": "Happy Thanksgiving from the International Space Station! ...",
  "time": "2026-11-23T19:00:45Z",
  "timestamp": 1795460445,
  "reactionsCount": 346,
  "reactions": {"like": 282, "love": 57, "care": 5, "haha": 1, "angry": 1},
  "commentsCount": 23,
  "sharesCount": 49,
  "videoViews": null,
  "media": [{"type": "video", "url": "https://scontent...jpg", "link": "https://www.facebook.com/reel/2688015701636592/", "videoUrl": "https://video...mp4", "videoId": "2688015701636592"}],
  "isShare": false,
  "sharedPostText": null,
  "thumbnail": "https://scontent...jpg",
  "isVideo": true,
  "videoDurationSeconds": 166.0,
  "author": {"id": "100044561550831", "name": "NASA - National Aeronautics and Space Administration", "type": "User", "url": "https://www.facebook.com/NASA", "profilePic": "https://scontent...png"},
  "links": null,
  "hashtags": null,
  "mentions": [{"id": "100064698066408", "name": "International Space Station", "type": "User", "url": "https://www.facebook.com/ISS", "text": "International Space Station"}],
  "linkPreview": null,
  "topComments": [{"id": "2538344306689525", "text": "Beats where Apollo 12's crew had theirs. Turkey in a sealed quarantine trailer on the recovery ship, three days back from the Moon", "author": {"id": "61595259644335", "name": "Moon Journey", "type": "User"}, "reactionsCount": "6"}],
  "feedbackId": "ZmVlZGJhY2s6...",
  "isSponsored": false,
  "privacy": "Public",
  "callToAction": null,
  "place": null,
  "reactionLikeCount": 282, "reactionLoveCount": 57, "reactionCareCount": 5, "reactionHahaCount": 1, "reactionWowCount": 0, "reactionSadCount": 0, "reactionAngryCount": 1,
  "facebookUrl": "https://www.facebook.com/NASA",
  "pageName": "NASA - National Aeronautics and Space Administration",
  "pageId": "100044561550831",
  "pageUrl": "https://www.facebook.com/NASA",
  "pageFollowers": "28M",
  "input": "https://www.facebook.com/NASA",
  "status": "ok"
}
```

A page with no posts:

```json
{"input": "https://www.facebook.com/naoexiste.pagina.xyz.8812", "status": "not_found", "error": "Facebook asks for login to see this page: it does not exist, is not public, or is age/country restricted"}
```

A shared link post brings `linkPreview`: `{"title": "Along Each Coast, Weather Puts a Damper on Thanksgiving", "description": "Disrupted parades and a canceled turkey trot...", "source": "nytimes.com", "url": "https://nyti.ms/4jcAvcf", "image": "https://external...jpg"}`.

With `includeTranscript`, a video post adds `"videoTranscript": "Three. Two. One. Europa is one of the, if not the most exciting...", "transcriptSegments": [{"start": 0.0, "end": 1.167, "text": "Three."}], "transcriptLanguage": "English", "transcriptStatus": "ok"`. A video without captions comes with `"transcriptStatus": "no_captions"`.

Video posts also carry `isLive` (a live broadcast now) and, while live, `liveViewerCount`. Posts marked by Facebook as a paid partnership carry `paidPartnership: true` and the sponsor in `paidPartnershipSponsor`.

A comment row (`includeComments`):

```json
{"type": "comment", "facebookUrl": "https://www.facebook.com/NASA/posts/pfbid0p1m9WeaS3AhspVA64kvq2YKiPijxMyVKfYZrxnwqCpUh4Q7rGtYCBPoYDPuDWX9Tl", "postId": "1697460178416018", "pageName": "NASA - National Aeronautics and Space Administration", "commentId": "2105745976735619", "commentUrl": "https://www.facebook.com/NASA/posts/pfbid0p1m9WeaS3AhspVA64kvq2YKiPijxMyVKfYZrxnwqCpUh4Q7rGtYCBPoYDPuDWX9Tl?comment_id=2105745976735619", "date": "2026-11-24T17:06:54.000Z", "text": "In 1969, humanity took its first steps on the Moon. Now we’re talking about building a permanent home there...", "language": "en_XX", "profileId": "61590395142848", "profileName": "The Human Timeline", "profileUrl": "https://www.facebook.com/people/The-Human-Timeline/61590395142848/", "likesCount": 5, "repliesCount": 1, "threadingDepth": 0, "status": "ok"}
```

A reply (`includeCommentReplies`) adds `"type": "reply"`, `threadingDepth` 1 or 2, `parentCommentId` (the comment it answers), `replyToName` and `threadCommentId` (the top comment of the thread).

The page details row (`includePageDetails`):

```json
{"type": "page", "pageId": "100077152846762", "pageName": "Bráz Pizzaria - Moema | São Paulo SP", "pageUrl": "https://www.facebook.com/pizzariabraz", "username": "pizzariabraz", "followers": "5K", "categories": ["Pizza place"], "email": "contato@ciatc.com.br", "phone": "+55 11 5049-3918", "address": "Rua Grauna 125, São Paulo, SP, Brazil, 04514-000", "website": "http://www.brazpizzaria.com.br/", "recommendPercent": 92, "reviewsCount": 2991, "priceRange": "£££", "services": ["Dine in", "Roadside collection"], "hoursNow": "Closed now", "verified": false, "pageType": "page", "aboutRead": true, "status": "ok"}
```

The summary row (`includeSummary`), free:

```json
{"type": "summary", "pageName": "Lula", "pageFollowers": "8M", "postsAnalyzed": 6, "postsPerWeek": 14.6, "avgReactions": 4532.0, "avgComments": 839.0, "avgShares": 1497.7, "avgEngagement": 6868.7, "medianEngagement": 6383, "postTypes": {"photo": 3, "video": 2, "text": 1}, "avgEngagementByType": {"photo": 6955.0, "video": 7560.0, "text": 5227.0}, "topPost": {"url": "https://www.facebook.com/Lula/posts/...", "engagement": 12738}, "topHashtags": null, "busiestHoursUtc": [22, 11, 14], "busiestDays": ["Tuesday", "Sunday", "Monday"]}
```

`reactions` lists the reaction types Facebook shows for the post (its top types); for most posts that is every type used. `videoViews` comes only when Facebook shows it to logged-out visitors (usually not).

### Pricing

| Event | Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Post delivered | $0.002 | $0.0015 | $0.0012 | $0.001 |
| Page details (only with `includePageDetails`) | $0.0108 | $0.0074 | $0.0058 | $0.0049 |
| Comment or reply (only with comments on, or a post link) | $0.00225 | $0.0018 | $0.00153 | $0.00126 |

No start fee. Set a maximum cost per run in the Apify console, or use `maxPostsPerPage`, and the Actor stops cleanly.

### FAQ

**Do I need a Facebook account or cookies?** No. The Actor reads only what Facebook shows to anyone who opens the page without logging in.

**How fast is it?** Facebook sends 3 posts per request. 15 posts of one page took 14 to 29 seconds in our tests, 10 posts about 12 seconds.

**Does it work for groups or personal profiles?** It is made for pages. Groups need login and are not supported. Public profiles of public figures may work.

**Is it legal?** The Actor reads only public posts that Facebook shows to anyone. You are responsible for how you use the data.

***

# Actor input Schema

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

One per line: the page link (https://www.facebook.com/NASA), its name in the link (NASA) or its numeric ID. Public pages only. A link to one post, photo, video or reel gives the comments of that post.

## `maxPostsPerPage` (type: `integer`):

Stop after this many posts for each page (newest first, pinned post left out). 0 with 'Page details' gives the page data only.

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

Optional. A date (2026-11-01) or a relative time (7 days, 2 weeks, 1 month). Older posts are skipped and not charged.

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

Optional. A date (2026-10-01) or a relative time (30 days). Newer posts are skipped and not charged; use it with 'Only posts newer than' for a date window.

## `includeSummary` (type: `boolean`):

One free row per page with totals and averages of reactions, comments and shares, engagement by post type (video, photo, link, text), posts per week, the best post, top hashtags and the busiest hours and days.

## `includePageDetails` (type: `boolean`):

One row per page with what the page shows logged out: bio, categories, e-mails, phones, WhatsApp, address, websites and social links, rating (recommend % and reviews), price range, services, opening status, verified badge, confirmed owner, followers, profile and cover photo. Charged per page.

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

One row per comment ("type": "comment"), charged per comment: text, date, author name, link and photo, likes, number of replies, links, mentions and hashtags, language, comment link.

## `maxCommentsPerPost` (type: `integer`):

Comments and replies together, per post. Default 50.

## `includeCommentReplies` (type: `boolean`):

Replies and replies to replies ("type": "reply"), with the comment they answer.

## `commentsSortOrder` (type: `string`):

The same orders as the post's comment menu on Facebook.

## `onlyCommentsNewerThan` (type: `string`):

2026-11-01 or a relative time like 7 days. Older comments are skipped and not charged.

## `includeTranscript` (type: `boolean`):

For video posts, the video's own captions as text (videoTranscript) and with times (transcriptSegments), when the video has captions. Free, included in the post price.

## `transcriptLanguage` (type: `string`):

Optional. Preferred caption language when a video has several (en, pt, Spanish...). Default: the first one.

## `onlyNewPosts` (type: `boolean`):

Turn this on to get only new posts when you run the same page again. The first run gets posts as usual; every next run gets only posts published after the last run, so you never pay twice for the same post. Great for scheduled runs that monitor a page.

## `stateKey` (type: `string`):

Optional. Give each of your monitors its own name if you run the same page in several tasks with different settings. Default: one place per page.

## `maxPostsTotal` (type: `integer`):

One limit across all pages together, so a long list of pages never goes over your budget. Pages after the limit are skipped for free. Empty: only the per-page limit.

## `includeCoverage` (type: `boolean`):

One free row per page saying why reading stopped (date reached, end of the page, page max, run max, Facebook limit) and whether your date window was read to the end, so a short result is never silent.

## Actor input object example

```json
{
  "pages": [
    "https://www.facebook.com/NASA"
  ],
  "maxPostsPerPage": 10,
  "includeSummary": false,
  "includePageDetails": false,
  "includeComments": false,
  "maxCommentsPerPost": 50,
  "includeCommentReplies": false,
  "commentsSortOrder": "RANKED_THREADED",
  "includeTranscript": false,
  "onlyNewPosts": false,
  "includeCoverage": false
}
```

# Actor output Schema

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

No description

# 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": [
        "https://www.facebook.com/NASA"
    ],
    "maxPostsPerPage": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/facebook-page-posts-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": ["https://www.facebook.com/NASA"],
    "maxPostsPerPage": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/facebook-page-posts-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 '{
  "pages": [
    "https://www.facebook.com/NASA"
  ],
  "maxPostsPerPage": 10
}' |
apify call pomlabs/facebook-page-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/facebook-page-posts-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/kREJ0zi7sTS3wGy3W/builds/cjomMqo6UCVLyXNby/openapi.json
