# Facebook Posts Scraper & New Post Monitor (`hydedata/facebook-posts-scraper`) Actor

No login or cookies. Get the posts of Facebook business Pages, the newest, a date range or the full history, or any post by its link: text, exact reactions by type, comments, shares, video views, photos and videos. Monitor Pages for new posts with Slack, Discord or Telegram alerts.

- **URL**: https://apify.com/hydedata/facebook-posts-scraper.md
- **Developed by:** [Jacob Hyde](https://apify.com/hydedata) (community)
- **Categories:** Social media, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 posts

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 Posts Scraper & New Post Monitor

Get the posts of Facebook business Pages, the newest ones, a date range or the whole history, or any
post by its link: full text, exact reactions with a count per reaction type, comments, shares, video
views, photos and videos, plus the Page's follower count and an engagement rate on every post. No
Facebook account, login or cookies needed. $1 per 1,000 posts plus $3 per 1,000 Pages read.

Paste Pages, post links and business websites in one list. Turn on **monitor mode** and schedule it
to get only the posts a Page has published since the last run, sent straight to Slack, Discord or
Telegram. A Page with nothing new costs half a Page read.

**What to know before you start:**

- **Newest posts, a date range or the whole history.** With nothing else set a Page gives its 9
  newest posts. Set **Max posts per Page** to go further back, or **Posts newer than** to get every
  post since a date. Only what you ask for is read and charged.
- **Business Pages only.** Personal profiles and posts written by people are recognized and left
  out, at no charge.
- **Counts, not comments.** You get the exact number of comments. Comment text and the names of
  people who commented or reacted are never collected.

### What people use it for

- **New-post alerts.** Watch competitor, client or supplier Pages and get a Slack or Discord message
  when one posts, with the text, the link and the counts.
- **Engagement benchmarks.** Compare Pages by engagement rate, posts per week and share of video,
  with one summary row per Page.
- **Post performance.** Paste post links and get exact reactions by type, comments, shares and video
  views. Schedule it to track a campaign's posts over time.
- **Post history and date ranges.** Every post a Page published last quarter, or its last 500, for
  content audits, research and reports.
- **Content research.** Pull what a list of Pages posted this week, keep only reels or only posts
  that mention a word, and see which did best.
- **Feeds for apps and AI agents.** Give an agent a "latest posts of this Page" tool through Apify's
  MCP server, with a compact output that keeps answers short. See
  [Use it from AI agents (MCP)](#use-it-from-ai-agents-mcp).

### What you get

For every post:

| Field | Example |
| --- | --- |
| Text | the full post text |
| Posted at | 2026-11-20T16:32:48.000Z, also as a unix timestamp |
| Post link and ID | https://www.facebook.com/walmart/posts/pfbid02XU..., 1738932304932434 |
| Type | text, photo, video, reel, link, shared or other |
| Reactions (exact) | 2,173 |
| Reactions by type | like 1,922, love 201, wow 14, angry 14, haha 10, care 7, sad 5 |
| Comments, shares (exact) | 928, 675 |
| Video views | 168,832 |
| Engagement and engagement rate | 3,776, and 0.0118% of the Page's followers |
| Pictures | full-size link, width, height and Facebook's own description of each ("May be an image of text") |
| Videos | link to the video file in HD and SD, thumbnail, length, size, and the captions file when there is one |
| Video transcript (optional) | the video's captions as plain text |
| Shared link | the page it points at, title, description, site and preview picture |
| Shared post | link to the post that was shared |
| Hashtags, mentions, links in the text | RedCupDay; NASA Earth; https://go.nasa.gov/4jamgox |
| Tagged place | Austin, TX |
| Page | name, ID, link, username, category, exact followers, verified badge |
| Position on the Page | 1 for the newest post, counting back |

Counts are exact, not rounded: 2,173, not "2.1K".

### Ready-made examples

Open one, change the input to yours, and run it:

- [Latest posts of Facebook Pages](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-page-latest-posts-scraper)
- [Post metrics by URL: reactions, comments, shares](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-post-url-reactions-comments-shares)
- [New post monitor with alerts](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-new-post-monitor-alerts)
- [Reels and videos of a Page with views and video links](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-reels-scraper-views-video-links)
- [Compare Pages by engagement rate and posts per week](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-page-engagement-rate-benchmark)
- [What competitors posted this week](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-competitor-posts-this-week)
- [A company's Facebook posts from its website](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-posts-from-business-websites)
- [Every post of a Page between two dates](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-page-posts-by-date-range)
- [A Page's post history: its last 100 posts or all of them](https://apify.com/hydedata/facebook-posts-scraper/examples/facebook-page-post-history-scraper)

### How to use it

#### Latest posts of Pages

Paste Pages, one per line. A Page link, the username alone (`katzsdeli`) and the numeric ID all
work, and so do links like `/p/Name-123`, `/people/Name/123` and `profile.php?id=123`.

```json
{
  "urls": ["https://www.facebook.com/Starbucks", "NASA", "100064806517961"]
}
```

Each Page returns its newest posts, newest first: 9 when nothing else is set. Set **Max posts per
Page** for more or fewer, and **Max posts in total** to cap the whole run. Nothing past either limit
is read or charged.

Every input gets a row. A Page that doesn't exist, was unpublished or is limited by age or country
comes back with `status: "not-found"` and an explanation, a personal profile with
`status: "not-a-page"`, and a Page with no visible posts with `status: "no-posts"`. None of those are
charged. The same Page entered twice (say by link and by ID) is read once.

Facebook has no search for visitors who aren't logged in, so a Page can't be looked up by its name
alone. Use its link, or the business's website.

#### Older posts and date ranges

```json
{
  "urls": ["NASA"],
  "newerThan": "2026-07-01",
  "olderThan": "2026-10-01"
}
```

- **Posts newer than** on its own returns every post since then. Use a date (`2026-11-01`) or a
  period counted back from the run (`30 days`, `3 months`, `1 year`).
- **Posts newer than** with **Posts older than** returns every post between the two. A date means
  the start of that day in UTC, so the example above is July through September.
- **Max posts per Page** on its own returns that many of the newest: `500` is a Page's last 500
  posts. With a date range it caps the posts taken from the range.
- **Posts older than** on its own returns the 9 newest posts from before that date. Add a limit or a
  start date for more.

Only the range you ask for is read, so a quarter from five years ago costs the same as last quarter.
Posts come newest first and are delivered as they're read, so a spending limit or **Max posts in
total** stops a long read where it's reached, and what was delivered by then is yours.

A Page with posts but none in your range comes back with `status: "no-posts"` and isn't charged. If
Facebook interrupts a long read, the posts read so far are kept and the run's log says which date to
carry on from.

#### One post by its link

Paste the link of a post, reel or video and get that one post with exact counts. Every kind of link
Facebook hands out works:

```json
{
  "urls": [
    "https://www.facebook.com/Starbucks/posts/pfbid02ZQ55qr9QvT95csBdNUwysDMTfzghE7dU7rq25VuUoxtrmg7TTwPHhnufeDCWCGpDl",
    "https://www.facebook.com/permalink.php?story_fbid=1626049986221230&id=100064487329582",
    "https://www.facebook.com/reel/1839405820410438/",
    "https://www.facebook.com/katzsdeli/videos/2286816995508731/",
    "https://www.facebook.com/watch/?v=1009074271465972"
  ]
}
```

Links from Facebook's Share button (`/share/p/...`, `/share/r/...`) work the same way.

A post looked up this way can be of any age. It comes back with the same fields as a Page's posts,
including the Page's followers and the engagement rate. A deleted or private post comes back as
`not-found`, a post written by a person as `not-a-page`, and neither is charged. Links to groups,
events and single photos aren't read and say so in their row.

Pages and post links can go in the same list.

#### Business websites

Paste a company's website and the Actor reads its homepage for the company's own Facebook link, then
returns that Page's posts:

```json
{
  "urls": ["katzsdelicatessen.com", "https://www.starbucks.com"],
  "maxPostsPerPage": 3
}
```

A site with no Facebook link on its homepage comes back as `not-found` and isn't charged.

Have a long list? Upload a text or CSV file in **Or upload a list**, or paste a link to one.

#### Filters

Filters run before a post is charged, so a post that's filtered out never costs a post.

```json
{
  "urls": ["NASA", "Starbucks", "walmart"],
  "newerThan": "7 days",
  "postTypes": ["reel", "video"],
  "minReactions": 3000,
  "includeKeywords": ["holiday", "gift"],
  "excludeKeywords": ["giveaway"]
}
```

- **Posts newer than / older than**: a date (`2026-11-01`) or a period (`7 days`, `2 weeks`,
  `3 months`). They also say how far back a Page is read: see
  [Older posts and date ranges](#older-posts-and-date-ranges).
- **Post types**: text, photo, video, reel, link, shared.
- **Min reactions, comments, shares.**
- **Only posts containing / Skip posts containing**: words or phrases, matched in the post's text
  and in the title of a link it shares.
- **Only posts with these hashtags.**

#### A summary row per Page

Turn on **Add a summary row per Page** for one extra row per Page over the posts that were read:
posts per week, average and median engagement, average engagement rate, share of video, posts by
type and the best post. It's not charged.

```json
{
  "rowType": "page",
  "pageName": "Starbucks",
  "pageFollowers": 34028198,
  "postsRead": 9,
  "postsPerWeek": 3.46,
  "daysSinceLastPost": 7,
  "avgEngagement": 26778.22,
  "medianEngagement": 22906,
  "avgEngagementRate": 0.0787,
  "videoShare": 0.22,
  "postTypeCounts": { "text": 7, "reel": 2 },
  "bestPostUrl": "https://www.facebook.com/Starbucks/posts/pfbid02ZQ55qr9QvT95csBdNUwysDMTfzghE7dU7rq25VuUoxtrmg7TTwPHhnufeDCWCGpDl",
  "bestPostEngagement": 53913
}
```

#### Output formats

- **Full**: every field.
- **Compact (for AI agents)**: what's needed to read a post and judge how it did. Empty fields are
  left out, and a row is about a third of the size of a full one.
- **Media only**: which post, and its pictures and videos. Only posts that have any are delivered.

The price is the same in every format.

#### Video transcripts

Turn on **Add video transcripts** and a post whose video has captions gets them as plain text in
`transcript`. They're Facebook's own captions, often auto-generated. A video without captions gets
none. It's not charged.

#### Monitor mode: new posts only

Turn on **Monitor mode** and add a Schedule (e.g. every hour). The Actor remembers each Page's posts
between runs and only outputs posts it hasn't seen:

```json
{
  "urls": ["Starbucks", "https://www.facebook.com/NASA", "katzsdeli"],
  "monitorMode": true,
  "notifyWebhookUrl": "https://hooks.slack.com/services/..."
}
```

- **The first run** returns the posts each Page has now, marked `monitorStatus: "baseline"`. Turn on
  **First run: remember only** to skip that and start with the next new post.
- **Later runs** return only new posts, marked `monitorStatus: "new"`.
- **A Page with nothing new** outputs nothing and costs a check ($0.0015) instead of a Page read.
- A run that finds nothing new anywhere has an empty dataset and sends no alert.

Filters work in monitor mode too: a new post that doesn't pass them isn't delivered.

Monitor mode looks at a Page's 9 newest posts on each run and reads no further back. If a Page
posts more than 9 times between two runs, the older ones of those are missed, so schedule busy Pages
more often. To fill a gap afterwards, run once without monitor mode and with **Posts newer than**
set to the date of the last run.

#### Tracking engagement of known posts

Turn on **Also track engagement of known posts** in monitor mode. Each run then reads every post
again, and a post whose counts changed comes out again as `monitorStatus: "updated"` with the old
and new numbers:

```json
{
  "pageName": "Katz's Delicatessen",
  "postUrl": "https://www.facebook.com/reel/2286816995508731/",
  "monitorStatus": "updated",
  "reactions": 1560,
  "changes": [
    { "field": "reactions", "previous": 1200, "current": 1560, "change": 360, "changePercent": 30 },
    { "field": "videoViews", "previous": 63025, "current": 71357, "change": 8332, "changePercent": 13.22 }
  ]
}
```

**Min engagement change** sets how far a count must move since it was last reported, 10% by default.
Combined with a minimum, it gives you a "tell me when a post takes off" alert: with **Min reactions**
at 5,000, a post is held back while it's under and delivered once it passes.

Tracking reads each Page in full on every run, so each run costs a Page read per Page, plus the
add-on fee for each post that comes out with new counts. It covers the posts a Page still shows, its
9 newest.

#### Alerts in Slack, Discord or Telegram

Paste a Discord or Slack incoming webhook URL in **Send results to a webhook**. Each run posts what
it delivered: the Page, the post's text, link and counts, and for a post with new counts what
changed ("Reactions 1,200 → 1,560 (+30%)"). Any other URL gets the rows as JSON. For Telegram, add a
bot token and a chat ID. Quiet monitor runs send nothing.

#### Use it from AI agents (MCP)

The Actor works as a tool for Claude, Cursor, VS Code and any other client that speaks MCP, through
[Apify's MCP server](https://docs.apify.com/platform/integrations/mcp). Add this server URL to your
client and sign in to Apify when it asks:

```
https://mcp.apify.com?tools=hydedata/facebook-posts-scraper
```

The agent gets one tool, `hydedata--facebook-posts-scraper`, plus what it needs to read the results.
With the plain `https://mcp.apify.com` URL the agent can also find the Actor on its own through
Actor search.

The smallest useful input is a list of Pages or post links and the compact format:

```json
{
  "urls": ["Starbucks", "https://www.facebook.com/reel/1839405820410438/"],
  "maxPostsPerPage": 3,
  "outputFormat": "compact"
}
```

Prompts that work well:

- "What did Starbucks and Dunkin post on Facebook this week, and which post got the most
  reactions?"
- "Here's a Facebook post link. How many reactions, comments and shares does it have, and what's
  the breakdown by reaction type?"
- "Compare these five competitor Pages by posts per week and engagement rate." (the agent turns on
  `includePageSummary` for this one)

Each input gets a row, inputs that can't be read say why, and those rows cost nothing, so an agent
can tell "this Page hasn't posted" from "no such Page". Set `maxPostsTotal` for a hard cap on what
one call can deliver.

#### Coming from another Facebook posts scraper

Input field names from other Facebook post scrapers work as is: `startUrls`, `pageUrls`, `postUrls`,
`resultsLimit`, `maxItems`, `onlyPostsNewerThan`, `onlyPostsOlderThan`, `captionKeywords`,
`captionText`, `monitoringMode` and more. Rows of this Actor's own output work as input too: feed
post rows back in to look the same posts up again.

`resultsLimit` and `maxPosts` go as far back as the number says, and `onlyPostsNewerThan` with
`onlyPostsOlderThan` reads a date range.

### Pricing

Pay per result. Platform usage and proxies are included.

| Event | Price |
| --- | --- |
| Post | $0.001 ($1 per 1,000) |
| Page read | $0.003 ($3 per 1,000) |
| Monitor check of a Page with nothing new | $0.0015 |
| Engagement update add-on, per post with new counts | $0.0005 |
| Post read past a Page's 9 newest and held back by a filter | $0.0002 |

- **Post** is each post delivered: one of a Page's posts, a new post in monitor mode, or a post
  looked up by its link.
- **Page read** is charged once per Page per run, when its posts were read or one of its posts was
  looked up. Looking up 50 posts of one Page is one Page read and 50 posts.
- In monitor mode a Page with nothing new costs the **check** in place of the Page read.
- **Posts a filter holds back** are free among a Page's 9 newest. Further back, reading a post costs
  the same whether your keyword, type, hashtag or engagement filter lets it through or not, so a
  held-back one is charged a fifth of a post. The two dates aren't filters in this sense: posts
  outside a date range are never read or charged.
- On Apify's Starter, Scale and Business plans a post costs $0.0009, $0.0008 and $0.0007.
- Date ranges and older posts cost nothing extra: a post is a post, whenever it was published.

What that comes to:

| Run | Cost |
| --- | --- |
| 9 newest posts of 1 Page | $0.012 |
| 9 newest posts of 100 Pages | $1.20 |
| The last 500 posts of 1 Page | $0.503 |
| Every post of 20 Pages over 3 months, 60 posts each | $1.26 |
| The last 1,000 posts of 1 Page, filtered to the 50 with a keyword | $0.25 |
| 1 post by its link | $0.004 |
| 100 posts of one Page by their links | $0.103 |
| Hourly monitor of 10 Pages, on a day with 5 new posts in all | about $0.37 |

You're never charged for:

- Pages and posts that weren't found or couldn't be read. They come back as rows with `status` and
  `error`.
- Personal profiles and posts written by people, which are left out.
- Pages with no visible posts or none in your date range, and websites with no Facebook Page on
  them.
- Posts your filters hold back among a Page's 9 newest, and posts outside your date range. The Page
  read still applies, since the Page was read to find out.
- The same Page or post twice in one run.
- Summary rows and video transcripts.

With a spending limit, the run stops at the limit and never goes over it. Posts the limit can't
cover aren't read.

### Output

Results are in the run's dataset. Download them as JSON, CSV, Excel or HTML, or get them through the
Apify API, Make, Zapier or n8n. The dataset has views for an overview, engagement, media, links and
tags, monitor rows, Page summaries and what each input led to.

One post, as JSON (picture links are shortened here):

```json
{
  "input": "walmart",
  "inputType": "page",
  "rowType": "post",
  "status": "ok",
  "error": null,
  "postId": "1738932304932434",
  "postUrl": "https://www.facebook.com/walmart/posts/pfbid02XUnYmL54urxwhtQGbdj1n7PhLoLrnzmkjnf16F3yubxnDwKGEpeTQ2Buj5KiPnpql",
  "postType": "photo",
  "text": "Sending this to the group chat immediately 👀 \n\nGet the deets here: www.walmart.com/cp/3223063",
  "createdAt": "2026-11-20T16:32:48.000Z",
  "createdTimestamp": 1795192368,
  "feedPosition": 2,
  "hashtags": [],
  "mentions": [],
  "links": ["http://www.walmart.com/cp/3223063"],
  "reactions": 2173,
  "reactionsByType": { "like": 1922, "love": 201, "wow": 14, "angry": 14, "haha": 10, "care": 7, "sad": 5 },
  "comments": 928,
  "shares": 675,
  "videoViews": null,
  "engagement": 3776,
  "engagementRate": 0.0118,
  "imageCount": 1,
  "imageUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example_n.jpg",
  "images": [
    {
      "url": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example_n.jpg",
      "width": 1080,
      "height": 1080,
      "altText": "May be an image of video games and text",
      "photoUrl": "https://www.facebook.com/photo/?fbid=1738926531599678&set=a.711608800998128"
    }
  ],
  "videoUrl": null,
  "thumbnailUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example_n.jpg",
  "videoDurationSeconds": null,
  "videos": [],
  "linkUrl": null,
  "linkTitle": null,
  "linkDomain": null,
  "linkDescription": null,
  "linkImageUrl": null,
  "isShared": false,
  "sharedPostUrl": null,
  "sharedPostId": null,
  "taggedPlace": null,
  "taggedPlaceUrl": null,
  "pageName": "Walmart",
  "pageId": "100064470440594",
  "pageUrl": "https://www.facebook.com/walmart",
  "pageUsername": "walmart",
  "pageCategory": "Retail company",
  "pageFollowers": 31928206,
  "pageLikes": null,
  "pageVerified": true,
  "pageLegacyId": "159616034235",
  "scrapedAt": "2026-11-24T17:30:27.513Z"
}
```

A video or reel has its files in `videos`:

```json
{
  "postType": "reel",
  "videoViews": 168832,
  "videoUrl": "https://video.xx.fbcdn.net/o1/v/t2/f2/m366/example-hd.mp4",
  "thumbnailUrl": "https://scontent.xx.fbcdn.net/v/t15.5256-10/example.jpg",
  "videoDurationSeconds": 3.52,
  "videos": [
    {
      "id": "1839405820410438",
      "url": "https://www.facebook.com/reel/1839405820410438/",
      "hdUrl": "https://video.xx.fbcdn.net/o1/v/t2/f2/m366/example-hd.mp4",
      "sdUrl": "https://video.xx.fbcdn.net/o1/v/t2/f2/m412/example-sd.mp4",
      "thumbnailUrl": "https://scontent.xx.fbcdn.net/v/t15.5256-10/example.jpg",
      "durationSeconds": 3.52,
      "width": 2160,
      "height": 3840,
      "captionsUrl": "https://scontent.xx.fbcdn.net/v/t39.2093-6/example.srt",
      "isLive": false
    }
  ]
}
```

In monitor mode a row also has `monitorStatus`, `changes`, `previousCheckAt` and `firstSeenAt`.

The same post in the **compact** format:

```json
{
  "input": "walmart",
  "inputType": "page",
  "rowType": "post",
  "status": "ok",
  "scrapedAt": "2026-11-24T17:30:27.513Z",
  "postId": "1738932304932434",
  "postUrl": "https://www.facebook.com/walmart/posts/pfbid02XUnYmL54urxwhtQGbdj1n7PhLoLrnzmkjnf16F3yubxnDwKGEpeTQ2Buj5KiPnpql",
  "postType": "photo",
  "createdAt": "2026-11-20T16:32:48.000Z",
  "text": "Sending this to the group chat immediately 👀 \n\nGet the deets here: www.walmart.com/cp/3223063",
  "reactions": 2173,
  "comments": 928,
  "shares": 675,
  "engagementRate": 0.0118,
  "imageUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example_n.jpg",
  "pageName": "Walmart",
  "pageId": "100064470440594",
  "pageFollowers": 31928206
}
```

An input that led to no posts:

```json
{
  "input": "https://www.facebook.com/zuck",
  "inputType": "page",
  "rowType": "input",
  "status": "not-a-page",
  "error": "This is a personal profile, not a business Page. Personal profiles are never scraped.",
  "scrapedAt": "2026-11-24T17:21:55.360Z"
}
```

### Tips

- Keep the proxy on residential (the default). Facebook sends other IPs to its login page.
- Picture and video file links expire after a few days. Download the files if you need to keep
  them. Post links don't expire.
- Engagement rate is reactions plus comments plus shares, divided by the Page's followers, as a
  percent. A Page with 34 million followers and a post with 53,913 interactions is at 0.1584%.
- For a daily digest, schedule a plain run with **Posts newer than** set to `1 day`. For alerts on
  each new post, use monitor mode: it doesn't depend on when the run happens.
- A Page can come back with fewer posts than you asked for: it has no more, or no more in your date
  range. A post that someone else wrote on the Page's timeline is left out.
- One Page reads at 100 to 200 posts a minute, and Pages are read side by side. For tens of
  thousands of posts of a single Page, raise the run's timeout in the run options or split the job
  by date. The run's status shows how far back a long read has got.
- The run's status message says what was delivered and why a run came back short or empty.

### FAQ

#### Is there a Facebook posts API without login?

Facebook's own API needs a developer app, an access token and app review before it returns another
business's posts. This Actor gives you the same kind of answer for public Page posts without any of
that: send Pages or post links to it through the Apify API, a schedule, Make, Zapier, n8n or MCP,
and get JSON back. No Facebook account, app, token or cookies.

#### How many posts can I get from one Page?

As many as it has published. With nothing else set you get the 9 newest. Set **Max posts per Page**
to a number for that many, or **Posts newer than** for every post since a date. There's no upper
limit: a Page can be read back to its first post.

#### Can I get posts from a date range?

Yes. Set **Posts newer than** and **Posts older than**, and every post between the two comes back.
Only that range is read and charged, however long ago it is.

#### Can I scrape all posts of a Facebook Page?

Yes. Set **Max posts per Page** higher than the Page has posts, or **Posts newer than** to a date
before its first one. Posts are delivered as they're read, newest first, and a spending limit on the
run stops it where you want.

#### How do I get an alert when a Facebook Page posts?

Turn on **Monitor mode**, paste a Slack or Discord webhook URL (or a Telegram bot token and chat
ID), and schedule the Actor. Each run sends only the posts published since the last one, and costs a
tenth of a cent per Page when there's nothing new.

#### How do I track likes and shares on a post over time?

Two ways. Schedule a run with the post's link and you get a fresh row with exact counts each time.
Or use monitor mode with **Also track engagement of known posts**, which reports a post again when
its counts moved, with the old and new numbers.

#### Does it get comments?

It gets the exact number of comments on each post. It doesn't collect comment text or who wrote
them.

#### Can I scrape a personal profile's posts?

No. Only business Pages are read. A personal profile, and a post written by a person, comes back
with `status: "not-a-page"` and isn't charged.

#### Can I scrape Facebook groups?

No. Group posts are written by people, and most groups need a login.

#### Do I need a Facebook account or cookies?

No. Everything comes from what Facebook shows to visitors who aren't logged in.

#### Can I download the videos and photos?

Each row has direct links to the picture files and to the video file in HD and SD. They're
Facebook's own links and expire after a few days, so download what you want to keep soon after the
run.

#### Why is a Page or post "not-found" when I can see it?

Some Pages and posts are only shown to logged-in users: those limited by age or country, posts
shared with a limited audience, and some Pages that sell restricted goods. They can't be read
without an account, and you aren't charged for them.

#### Is the pinned post included?

Not as such. What this Actor reads is the list Facebook's own page asks for when you aren't logged
in: the Page's posts newest first, without the pinned post. So a pinned post can be missing from a
Page's results, and there's no field saying a post is pinned. If you have the pinned post's link, it
can be looked up like any other post.

#### Is it legal to scrape Facebook posts?

This Actor only reads what business Pages publish to anyone without signing in. It doesn't collect
personal profiles, comment text or the names of people who commented or reacted. Check the rules
that apply to your use of the data.

# Changelog

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

# Actor input Schema

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

One per line, mixed as you like. A Page (https://www.facebook.com/katzsdeli, its username katzsdeli or its numeric ID) returns its newest posts: 9 unless a limit or a start date below says otherwise. A link to a post, reel or video returns that one post with exact counts: /posts/..., permalink.php, /reel/..., /videos/..., /watch/?v=... and links from the Share button all work. A business website (katzsdelicatessen.com) is read for its Facebook Page first. Page names can't be looked up, so paste a link.

## `urlsFileUrl` (type: `string`):

A text or CSV file with Page links, post links, usernames, IDs or websites. Every Facebook link in the file is used; with none, the first column of each line is. Upload a file or paste a link to one.

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

How many of each Page's posts to read, newest first. Any number works: 500 reads a Page's last 500 posts. Leave empty for the 9 newest, or for every post since "Posts newer than" when that's set. The other filters pick among the posts read. Monitor mode reads up to 9.

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

Upper limit of posts delivered by the whole run, across every Page and post link. Leave empty for no limit. Posts past it are never read, delivered or charged.

## `newerThan` (type: `string`):

Only posts published after this. A date (2026-11-01, the start of that day in UTC) or a period counted back from the run: 7 days, 2 weeks, 3 months. With no limit above, every post since then is read.

## `olderThan` (type: `string`):

Only posts published before this, in the same formats. With "Posts newer than" it makes a date range, and only that range is read. On its own it gives the 9 newest posts from before that date, or as many as "Max posts per Page" says.

## `postTypes` (type: `array`):

Only posts of these types. Leave empty for all of them.

## `minReactions` (type: `integer`):

Only posts with at least this many reactions.

## `minComments` (type: `integer`):

Only posts with at least this many comments.

## `minShares` (type: `integer`):

Only posts with at least this many shares.

## `includeKeywords` (type: `array`):

Keep a post when its text, or the title of the link it shares, contains at least one of these words or phrases. Upper and lower case don't matter.

## `excludeKeywords` (type: `array`):

Drop a post when its text, or the title of the link it shares, contains any of these words or phrases.

## `hashtags` (type: `array`):

Keep a post when it carries at least one of these hashtags, with or without the #.

## `outputFormat` (type: `string`):

Full has every field. Compact keeps what's needed to read a post and judge how it did, and leaves empty fields out: made for AI agents and MCP clients, where every field costs tokens. Media keeps a post's pictures and videos and delivers only posts that have any. Same price in every format.

## `includePageSummary` (type: `boolean`):

One extra row per Page over the posts read: posts per week, average and median engagement, engagement rate, share of video and the best post. Not charged.

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

For posts with a video that has captions, add the captions as plain text in a transcript field. They're Facebook's own captions, often auto-generated. A video without captions gets none. Not charged.

## `monitorMode` (type: `boolean`):

Remembers the posts of each Page from run to run and only outputs posts it hasn't seen. Use with a Schedule. The first run returns the posts a Page has now as the baseline, unless you turn that off below. A Page with nothing new outputs nothing and costs a small check fee instead of a Page read. Post links are always looked up, monitor mode or not.

## `skipBaseline` (type: `boolean`):

On the first run for a Page, remember its current posts without outputting them, so alerts start with the next new post. The Page read is still charged, the posts aren't.

## `trackEngagement` (type: `boolean`):

In monitor mode, read every post again each run and output a post again when its reactions, comments, shares or video views changed, with the old and new numbers. A post that was held back by a minimum above is delivered once it passes it. Every run reads each Page in full, so it costs a Page read per run, plus an add-on fee per post with new counts.

## `minEngagementChangePercent` (type: `number`):

With engagement tracking on, report a count once it moved by at least this percent since it was last reported.

## `notifyWebhookUrl` (type: `string`):

Paste a Discord or Slack incoming webhook URL to get each run's posts as a message: the Page, the post's text, link and counts, and for a post with new counts what changed (e.g. Reactions 1,200 → 1,560 (+30%)). Any other URL gets the rows as JSON. Only sent when the run delivers something, so quiet monitor runs stay silent.

## `telegramBotToken` (type: `string`):

Also send alerts to Telegram. Create a bot with @BotFather and paste its token here.

## `telegramChatId` (type: `string`):

The chat, group or channel ID the bot posts to.

## `stateStoreName` (type: `string`):

Named key-value store that keeps monitor memory between runs. Use different names to run independent monitors.

## `stateRetentionDays` (type: `integer`):

Pages not checked for this many days are dropped from monitor memory.

## `maxConcurrency` (type: `integer`):

Proxy sessions reading at the same time. Small runs use fewer on their own. Lower it if inputs come back as failed.

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

Keep this on RESIDENTIAL. Facebook sends datacenter IPs to its login page.

## Actor input object example

```json
{
  "urls": [
    "https://www.facebook.com/Starbucks",
    "NASA"
  ],
  "outputFormat": "full",
  "includePageSummary": false,
  "includeTranscript": false,
  "monitorMode": false,
  "skipBaseline": false,
  "trackEngagement": false,
  "minEngagementChangePercent": 10,
  "stateStoreName": "facebook-posts-monitor-state",
  "stateRetentionDays": 90,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

Dataset items: one per post, plus one per input that led to no posts and, when asked for, one summary per Page. Field meanings are in the dataset schema.

# 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 = {
    "urls": [
        "https://www.facebook.com/Starbucks",
        "NASA"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydedata/facebook-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 = {
    "urls": [
        "https://www.facebook.com/Starbucks",
        "NASA",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("hydedata/facebook-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 '{
  "urls": [
    "https://www.facebook.com/Starbucks",
    "NASA"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call hydedata/facebook-posts-scraper --silent --output-dataset

```

## MCP server setup

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