# Facebook Page Posts Scraper (`automly/facebook-page-posts-scraper`) Actor

Scrape posts from any public Facebook Page: text, date, reactions by type, comments and shares counts, photos, videos and links, plus the Page's followers and details. Date filters, no login.

- **URL**: https://apify.com/automly/facebook-page-posts-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** Social media
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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 Page Posts Scraper

### What is Facebook Page Posts Scraper?

**Facebook Page Posts Scraper** is a tool that lets you **scrape posts from public Facebook Pages**: post text, publish date, reactions by type, comment and share counts, photos, videos, shared links and shared posts, plus the Page's own details such as its exact follower count, category and website. Paste Page names or links, click **Start**, and download the posts as Excel, CSV or JSON.

- ⚡ **Speed:** about 370 posts per minute (1,200 posts from 4 Pages in 3.3 minutes in our test)
- 📅 **Date range:** only posts published between two dates you choose
- 📊 **Page details included:** exact followers, category, intro, contact details and websites
- 🔓 **No login:** no Facebook account, cookies or API key needed

### What can Facebook Page Posts Scraper do?

- Scrape the latest posts from any public Facebook Page, newest first
- Scrape Facebook posts **by date range**, for example everything a Page posted in August
- Get **reactions by type** (Like, Love, Care, Haha, Wow, Sad, Angry) for every post
- Get comment and share counts, photos, video links and durations, and shared links
- See when a post is a **share of another post**, with the original post's link and author
- Get a Page's **exact follower count**, category, intro, business e-mail, phone and websites
- Scrape many Pages in one run
- Get results in seconds over the **real-time API**, without starting a run
- Export to Excel, CSV, JSON, HTML or XML, or send them to Google Sheets, Make, Zapier and more

### What data can you extract from Facebook Pages?

| | | |
|---|---|---|
| 📝 Post text | 📅 Publish date and time | 🔗 Post link |
| 👍 Total reactions | 😍 Reactions by type | 💬 Number of comments |
| 🔁 Number of shares | 🖼️ Photos | 🎬 Videos and duration |
| 🌐 Shared link and title | ♻️ Shared post (original author, link, date) | 🏷️ Page name and ID |
| 👥 Exact followers | 📝 Intro text | 📇 Category, e-mail, phone, websites |

### How to scrape Facebook Page posts

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Facebook Page Posts Scraper**.
3. Paste one or more **Page names or links**, for example `NASA` or `https://www.facebook.com/natgeo`.
4. Choose how many posts you want per Page and, if you like, a date range. Click **Start**.
5. When the run finishes, download your posts as Excel, CSV, JSON, HTML or XML.

### ⬇️ Input

Pages can be a Page name (`NASA`), a link (`https://www.facebook.com/NASA`) or a `profile.php?id=...` link.

| Setting | What it does |
|---|---|
| Facebook Pages | The Pages to scrape |
| Posts per Page | How many of each Page's latest posts to scrape (default 20). Set 0 to get the Page details only |
| Posts published after | Only posts published on or after this date |
| Posts published before | Only posts published before this date |
| Include Page details | Add one row per Page with its followers, category, intro, contact details and websites (on by default) |

Example: the latest 100 posts from two Pages.

```json
{
  "pages": ["NASA", "https://www.facebook.com/natgeo"],
  "resultsPerPage": 100
}
```

Example: everything NASA posted in August 2026.

```json
{
  "pages": ["NASA"],
  "resultsPerPage": 1000,
  "postsPublishedAfter": "2026-08-01",
  "postsPublishedBefore": "2026-09-01"
}
```

### ⬆️ Output

You get one row per post (`"type": "post"`) and one row per Page (`"type": "page"`). The **Posts** and **Pages** tabs in Apify Console show each kind as its own table, and you can download everything as Excel, CSV, JSON, HTML or XML.

A post:

```json
{
  "type": "post",
  "id": "1637283811100322",
  "url": "https://www.facebook.com/NASA/posts/pfbid02Kv6L9cDGRgwHGjeYDdT5F2F6uCZMMyfeU27DYgsxNwtrgV6kN9rPFLfnHTDzdbcVl",
  "text": "Welcome to the Artemis Accords, Croatia 🇭🇷\n \nToday, Croatia became the 74th nation that has committed to a peaceful and prosperous exploration of space. https://go.nasa.gov/4hiGtaF",
  "createdAt": "2026-09-23T22:07:21Z",
  "authorName": "NASA - National Aeronautics and Space Administration",
  "authorId": "100044561550831",
  "authorUrl": "https://www.facebook.com/NASA",
  "reactions": 9853,
  "reactionsByType": {"like": 6641, "love": 2899, "care": 239, "haha": 39, "wow": 25, "angry": 7, "sad": 3},
  "comments": 385,
  "shares": 625,
  "media": [
    {
      "type": "photo",
      "id": "1637283797766990",
      "url": "https://www.facebook.com/photo.php?fbid=1637283797766990&set=a.416661013162614&type=3",
      "imageUrl": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/820088514_163728380...",
      "videoUrl": null,
      "durationSeconds": null
    }
  ],
  "link": null,
  "linkTitle": null,
  "sharedPost": null,
  "groupId": null,
  "source": "NASA",
  "fetchedAt": "2026-09-25T00:54:39Z"
}
```

A Page:

```json
{
  "type": "page",
  "id": "100044561550831",
  "pageId": "54971236771",
  "name": "NASA - National Aeronautics and Space Administration",
  "url": "https://www.facebook.com/NASA/",
  "category": "Government organization",
  "followers": 28729058,
  "intro": "Explore the universe and discover our home planet. \nThere's space for everybody.",
  "verified": true,
  "email": "public-inquiries@hq.nasa.gov",
  "websites": ["nasa.gov/nasa-app", "nasa.gov"],
  "responsibleEntity": "NATIONAL AERONAUTICS AND SPACE ADMINISTRATION",
  "source": "NASA",
  "fetchedAt": "2026-09-25T00:54:39Z"
}
```

Each run also saves a short report with how many Pages and rows it covered, and any Page it could not scrape with the reason (for example, a Page that does not exist or is not public).

### How can I use Facebook Page posts data?

- **Competitor monitoring:** see what competitors post, how often, and which posts get the most reactions
- **Social media reporting:** track your own Page's engagement over time without exporting by hand
- **Content research:** find the post formats and topics that work best in your niche
- **Brand and media analysis:** collect news Pages' posts for topic, sentiment or trend analysis
- **Lead lists:** collect Pages' categories, business e-mails and websites

### Monitor Facebook Pages on a schedule

1. Set **Posts published after** to a recent date, or keep **Posts per Page** small.
2. [Schedule the actor](https://docs.apify.com/platform/schedules) to run every day or every hour.
3. Send new posts to Slack, e-mail or a spreadsheet with an [integration](https://apify.com/integrations).

### Real-time Facebook posts API

Need posts right away inside your app? Call the actor's API and get the posts back in the response, without starting a run:

```
GET https://<your-actor-standby-url>/posts?page=NASA&limit=20
Authorization: Bearer <YOUR_APIFY_TOKEN>
```

You can also run the actor from your own code with the [Apify API](https://docs.apify.com/api/v2) or the Python and JavaScript clients:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("automly/facebook-page-posts-scraper").call(run_input={
    "pages": ["NASA"],
    "resultsPerPage": 200,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row["type"] == "post":
        print(row["createdAt"], row["reactions"], row["text"][:80])
```

### ❓FAQ

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

You pay only for the results you get, per 1,000 results. See the **Pricing** tab for the current price. Every Apify account gets $5 of free usage each month, so you can try it at no cost.

#### How many posts can I scrape from one Facebook Page?

Hundreds to thousands. In our tests a single Page returned 1,325 posts going back three years. Set **Posts per Page** to the number you need, or use the date range.

#### Can I scrape Facebook posts from a specific date range?

Yes. Set **Posts published after** and **Posts published before**. Only posts from that range are returned, and you don't pay for posts outside it.

#### Does it include the pinned post?

No. Pinned posts are skipped so the list is strictly newest first.

#### Why is the text empty on some posts?

Some posts are photos or videos without a caption, or shares of another post. For shares, `sharedPost` has the original post's link, author and date.

#### Do I need a Facebook account?

No. You don't need a Facebook account, cookies or an API key.

#### Can I scrape personal profiles or private content?

No. It scrapes public Facebook Pages only. Private content is never collected, and contact details are only taken from Pages, never from personal profiles.

#### Is it legal to scrape Facebook?

This scraper only collects posts and details that Pages chose to publish publicly. It does not collect private data. Posts can still contain personal data, which may be protected by laws such as GDPR, so only scrape it for a legitimate reason and ask a lawyer if you are unsure. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

Facebook Page Posts Scraper is an independent tool. It is not affiliated with, endorsed by or sponsored by Facebook or Meta.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the Page and what you expected. We usually reply within a day.

### Scrape more Facebook data

| Actor | What it gets |
|---|---|
| [Facebook Comments Scraper](https://apify.com/automly/facebook-post-comments-scraper) | Comments and replies from any public post |
| [Facebook Group Posts Scraper](https://apify.com/automly/facebook-public-group-posts-scraper) | Posts from public groups |
| [Facebook Page Details Scraper](https://apify.com/automly/facebook-page-details-scraper) | Followers, category and contact details of many Pages |
| [Facebook Ad Library Scraper](https://apify.com/automly/facebook-ad-library-scraper) | Ads from Meta's Ad Library |

# Actor input Schema

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

Page names or links, e.g. NASA or https://www.facebook.com/NASA.

## `resultsPerPage` (type: `integer`):

How many of each Page's latest posts to scrape (after the date filters). Set 0 to get the Page details only.

## `postsPublishedAfter` (type: `string`):

Only posts published on or after this date, e.g. 2026-08-01 (UTC if no time zone).

## `postsPublishedBefore` (type: `string`):

Only posts published before this date, e.g. 2026-09-01 (UTC if no time zone).

## `includePageInfo` (type: `boolean`):

Add one row per Page with its followers, category, intro, contact details and websites.

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

Proxy settings. The default works for most runs.

## Actor input object example

```json
{
  "pages": [
    "NASA"
  ],
  "resultsPerPage": 20,
  "includePageInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

## `pages` (type: `string`):

No description

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

No description

## `report` (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": [
        "NASA"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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": ["NASA"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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