# Facebook Page Posts Scraper: Posts & New-Post Alerts (`alexmorain/facebook-page-posts-scraper`) Actor

Scrape public Facebook page posts: text, date, reactions by type, comments, shares and media, back to a start date. About 10 to 15 posts per minute per page, pages read in parallel. Watch mode returns only new posts, with a webhook. From $2.70 per 1,000 posts.

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

## Pricing

from $2.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

### What does Facebook Page Posts Scraper do?

**Facebook Page Posts Scraper** reads the public posts of any [Facebook](https://www.facebook.com) page and returns one clean row per post: text, date, link, reactions by type, comments, shares, photos and video thumbnails. It works as a **Facebook Pages API alternative** that needs no login, no cookies and no proxy setup.

Give it a list of page URLs, names or ids, a start date and a cap. It reads each page from the newest post backwards and stops where you tell it to. Turn on **watch mode** and a scheduled run returns only the posts you have not received yet, which makes it a **Facebook page monitor** you can wire to Slack, Discord, Zapier or your own endpoint.

It does not read private profiles, groups, comments or direct messages, and it does not post, like or follow anything.

### Why use Facebook Page Posts Scraper?

- **New posts only.** Run it every hour or once a day. A named watch memory remembers what you got, so you are never charged twice for the same post.
- **Webhook alerts.** When a run ends with new posts, the summary and the latest posts are sent to your URL. A social team can ping a channel when a competitor posts.
- **Far back in time.** A test read a local business page to the end of its public feed: 107 posts back to July 2020, with no duplicate, the same set a second independent source returned (107 of 108).
- **Engagement you can rank.** Every post has total reactions plus the split by type (like, love, care, haha, wow, sad, angry), comments and shares.
- **Fair price.** From **$2.70 per 1,000 posts** at the Gold tier, $3.00 on the standard plan. Only delivered posts are charged: unknown pages, repeated posts in watch mode and posts beyond your limits cost nothing.
- **Apify platform.** Schedules, API access, webhooks, datasets in JSON, CSV, Excel or XML, and integrations with Make, Zapier and n8n.

#### Who uses it

- **Social media and brand teams**: benchmark competitors' posting rhythm and engagement, with the best posts ranked by reactions.
- **Agencies**: a weekly report of what a client's market posted.
- **Researchers and journalists**: an archive of a public page with dates and counters.
- **Lead generation and local marketing**: see which local businesses are active and what they promote.

### What data can Facebook Page Posts Scraper extract?

| Field | Type | Description |
|---|---|---|
| `id`, `url` | string | Post id and link |
| `createdAt`, `timestamp` | string, number | Publication time, ISO 8601 UTC and Unix seconds |
| `text` | string | Post text (null for a photo or video without caption) |
| `pageName`, `pageId`, `pageInput` | string | Page that published it, its Facebook id, and the entry of your list it came from |
| `reactionsCount` | number | Total reactions at read time |
| `reactions` | object | `like`, `love`, `care`, `haha`, `wow`, `sad`, `angry` |
| `commentsCount`, `sharesCount` | number | Comments and shares at read time |
| `image`, `media`, `mediaCount`, `hasVideo` | mixed | Main image, photos and videos (`type`, `url`, `width`, `height`; a video's `url` is its thumbnail) |
| `scrapedAt` | string | When the post was read |

### How to scrape Facebook page posts

1. Open the Actor and add one or more pages in **Facebook pages**: `https://www.facebook.com/NASA`, `NASA`, `@NASA` or a numeric page id.
2. Optional: set **Only posts newer than** to a date, for example `2026-11-01`.
3. Set **Max posts per page**. About 3 posts come back per request. To archive a whole page, raise it together with **Max posts in total** and the run timeout.
4. Click **Start**. Results appear in the **Output** tab and download as JSON, CSV or Excel.
5. To monitor pages, tick **Watch mode**, choose a **Watch name**, add a **Webhook URL** and schedule the run.

#### How to monitor competitors' Facebook pages

List the pages of your competitors, tick **Watch mode: only new posts**, name the watch `competitors`, and schedule the Actor every hour or every day. The first run delivers the latest posts and sets the starting point. Each later run returns only what was posted since. A run that finds nothing new sends nothing and costs only the start fee plus a few requests.

### How much does it cost to scrape Facebook pages?

Pricing is pay per event: a small fee when the run starts ($0.002 per GB of memory, 256 MB by default is still billed as one event) and a price per post delivered.

| Plan | Per 1,000 posts |
|---|---|
| Free and Starter | $3.00 |
| Scale | $2.80 |
| Business | $2.70 |

Examples at the Starter price: 100 posts cost about $0.30. Watching 10 pages that post once a day each costs about $0.90 a month in posts, plus $0.002 per run. Set **Max total cost per run** in the run options to cap spending: the Actor stops cleanly and keeps what it delivered.

Accounts on the Free Apify plan have a small daily limit on this Actor. A paid Apify plan removes it.

### Input

See the **Input** tab for every option. The main ones:

| Field | Description |
|---|---|
| `pages` | Page URLs, names or numeric ids, one per line |
| `onlyPostsNewerThan` | `YYYY-MM-DD`, UTC. Reading stops at older posts |
| `maxPostsPerPage` | Default 50 |
| `maxItems` | Default 1,000 posts in total |
| `newOnly`, `watchName` | Watch mode and its memory |
| `webhookUrl` | Called by POST at the end of a run with new posts. Never written to a log |

```json
{
  "pages": ["https://www.facebook.com/NASA", "lemonde.fr", "100044561550831"],
  "onlyPostsNewerThan": "2026-11-01",
  "maxPostsPerPage": 200,
  "newOnly": true,
  "watchName": "news",
  "webhookUrl": "https://hooks.slack.com/services/..."
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

```json
[
  {
    "id": "1690599575768745",
    "url": "https://www.facebook.com/NASA/posts/pfbid0mWQ6eDmdn3nKnMyTx4m...",
    "createdAt": "2026-11-17T22:03:34Z",
    "timestamp": 1794953014,
    "text": "Beauty in chaos ...",
    "pageName": "NASA - National Aeronautics and Space Administration",
    "pageId": "100044561550831",
    "pageInput": "https://www.facebook.com/NASA",
    "reactionsCount": 1901,
    "reactions": {"like": 1350, "love": 487, "care": 32, "haha": 3, "wow": 27, "sad": 1, "angry": 1},
    "commentsCount": 51,
    "sharesCount": 190,
    "image": "https://scontent...jpg",
    "media": [{"type": "photo", "url": "https://scontent...jpg", "width": 526, "height": 526}],
    "mediaCount": 1,
    "hasVideo": false,
    "scrapedAt": "2026-11-18T13:54:42Z"
  }
]
```

The **SUMMARY** record of the run key-value store lists, per page, the posts delivered, the posts read, the requests made and how the read ended (`end`, `since`, `known`, `page_cap`).

### Tips

- Facebook returns about 3 posts per request and a request takes 5 to 30 seconds. One page advances at roughly 10 to 15 posts per minute; up to 8 pages are read at the same time. A 500-post page takes about 40 minutes: raise the run timeout above that, or use **Only posts newer than** to keep runs short.
- A page only exposes what its public feed shows. A small page may end after a few dozen or a few hundred posts, and some large brand pages show only a handful. The run status says how each read ended.
- Counters (reactions, comments, shares) are read when the post is read. A post read an hour after it went out has more reactions than one read after a minute.
- In watch mode, use one **Watch name** per list of pages and per purpose. Two schedules that share a name share a memory.
- The first run of a watch sets the starting point. Set **Max posts per page** low (10 or 20) for it if you only want what comes next.
- Webhook payload: `text`, `postsDelivered`, `latestPosts` (up to 10 posts with `id`, `url`, `createdAt`, `pageName`, `text`), `perPage`, `runId`, `datasetId`.

#### Run it from code

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("alexmorain/facebook-page-posts-scraper").call(run_input={
    "pages": ["https://www.facebook.com/NASA"],
    "maxPostsPerPage": 30,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["createdAt"], post["reactionsCount"], post["url"])
```

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

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('alexmorain/facebook-page-posts-scraper').call({
    pages: ['https://www.facebook.com/NASA'],
    onlyPostsNewerThan: '2026-11-01',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);
```

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~facebook-page-posts-scraper/runs?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"pages": ["https://www.facebook.com/NASA"], "maxPostsPerPage": 30}'
```

### FAQ

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

No. The Actor reads public pages. You only need an Apify account.

#### Can I scrape a Facebook group or a personal profile?

No. Only public pages. Group and profile links are skipped and listed in the run log.

#### How far back can I go?

To the end of the public feed of the page, as Facebook serves it. Use **Only posts newer than** to stop earlier, or raise the caps to read everything the feed exposes.

#### Is there a Facebook API for page posts?

The official Graph API only returns posts of pages you manage and needs an app review. This Actor gives you the public posts of any page as structured data over the Apify API.

#### How do I get an alert when a page posts?

Use watch mode with a webhook URL and a schedule. Slack and Discord incoming webhooks work as they are. For keyword filters, send the webhook to Zapier, Make or n8n and filter on `latestPosts[].text`.

#### Why is a page skipped?

The page does not exist, is not public, or the entry is not a page URL, name or id. It is listed in the run status and nothing is charged for it.

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

Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. This Actor is not affiliated with Meta Platforms.

#### Something is missing or wrong

Open a ticket in the **Issues** tab of this Actor. Programmatic access is in the **API** tab.

### Guide and use cases

Use cases, output fields, pricing and common questions are on the [Facebook Page Posts Scraper page](https://alexis.morain.fr/en/scrapers/facebook-page-posts-scraper/) of my site. The [Social media and content family page](https://alexis.morain.fr/en/scrapers/families/social-content/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

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

One Facebook page per line: a URL such as <code>https://www.facebook.com/NASA</code>, a page name such as <code>NASA</code> or <code>@NASA</code>, or a numeric page id. <code>profile.php?id=…</code> links work too. Pages that do not exist are skipped and not charged. Groups, private profiles and personal timelines are not supported.

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

Optional. Only posts published on or after this date, written <code>YYYY-MM-DD</code> (UTC). Reading stops as soon as older posts are reached, so a short window is also a cheap and fast run. Leave empty to read as far back as the caps below allow.

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

Stop reading a page after this many posts. Each page is read one request at a time, at roughly 10 to 15 posts per minute: 500 posts take about 40 minutes. Many pages are read in parallel.

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

Hard cap on posts for the whole run, all pages together. Only delivered posts are charged.

## `newOnly` (type: `boolean`):

Returns only the posts you have not received in an earlier run with the same watch name. The first run sets the starting point and delivers the posts it reads. Run it on a schedule (hourly, daily) to monitor pages.

## `watchName` (type: `string`):

Memory of what was already delivered. Use one name per list of pages and per purpose, for example <code>competitors</code> and <code>research-archive</code>, so two schedules do not share the same memory.

## `webhookUrl` (type: `string`):

Optional. When the run ends with new posts, a summary and the latest posts are sent there by POST (Slack, Discord, Zapier, your own endpoint). The URL is never written to a log.

## Actor input object example

```json
{
  "pages": [
    "https://www.facebook.com/NASA"
  ],
  "maxPostsPerPage": 15,
  "maxItems": 1000,
  "newOnly": false,
  "watchName": "default"
}
```

# Actor output Schema

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

All posts in the default dataset.

## `summary` (type: `string`):

Posts delivered per page, requests made, and how the read of each page ended.

# 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": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/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": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/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": 15
}' |
apify call alexmorain/facebook-page-posts-scraper --silent --output-dataset

```

## MCP server setup

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