# Facebook Posts Scraper: Page Posts & Reels (`earlytern/facebook-posts-scraper`) Actor

Collect public Facebook page posts and Reels with text, media, dates and engagement. No login or cookies. Free blocked rows.

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

## Pricing

from $1.50 / 1,000 public 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: Page Posts & Reels

Collect posts visible on public Facebook pages and public profiles without logging in. Get post text, publication dates, photos, available video addresses, links, and public engagement counts in a dataset you can export as JSON, CSV, or Excel.

Use it to monitor public brand pages, compare engagement, or prepare a public-content research dataset. Reels appear when Facebook includes them in the public timeline; a separate Reels-only feed is not read.

### Quick start

```json
{
  "urls": ["https://www.facebook.com/nike/"],
  "maxItems": 10
}
```

For a date range, add `"since": "2026-01-01"` and `"until": "2026-01-31"`. Both dates are inclusive and use UTC. Date filtering has no extra fee. Older pinned posts do not stop the scan; it ends once two further feed requests return only posts older than the start date.

### Input

| Field | Meaning | Default |
|---|---|---|
| `urls` | 1–100 public Facebook page or profile addresses | Required |
| `maxItems` | Total posts across all requested pages, from 1 to 10,000 | 10 |
| `since` | Earliest publication date, YYYY-MM-DD | No lower date bound |
| `until` | Latest publication date, YYYY-MM-DD | No upper date bound |
| `proxyCountry` | Two-letter connection country | US |

Hosted runs use Apify residential proxy connections. Local development can use a direct connection if no proxy password is configured. The Actor sends no cookies, does not keep response cookies, and does not log in. Login walls, access restrictions, and unavailable public feeds produce a free `blocked` row. Temporary network failures are retried twice; access blocks are not bypassed.

### Output

Each `ok` row contains:

- `pageUrl`, `postId`, `url`, `publishedAt`, `text`, `type`, and `fetchedAt`.
- `authorName` and `authorUrl` for the public publisher when available.
- `images`, `videos`, and `externalLinks` as lists of addresses.
- `reactions`, `comments`, `shares`, and `videoViews` as public counts when provided.

`type` is `text`, `photo`, `video`, `reel`, `link`, or `share`. A missing value is returned as `null`, and missing media lists are empty. Unavailable counts are never replaced by zero. Media addresses may expire. Comments themselves, private content, and group member lists are not collected.

Example from a public Nike page response, shortened to selected fields (counts change over time):

```json
{
  "pageUrl": "https://www.facebook.com/nike/",
  "status": "ok",
  "reason": null,
  "postId": "1093582262136482",
  "url": "https://www.facebook.com/nike/posts/pfbid025EPsHxsGF3hbBUpfDCB5km6pcxt8exmDvHYGCqoXcKXnEsd7rkcJxzeF6SsyTk4Cl",
  "publishedAt": "2024-09-04T22:47:54.000Z",
  "text": "That’s one giant leap for humankind.\n\nWith a distance of 8.13 meters, @the.bladejumper secures his 4th straight @paralympics gold.\n\n#WinningIsntForEveryone #Paris2024",
  "type": "photo",
  "reactions": 5109,
  "videoViews": null
}
```

A `blocked`, `empty`, or `error` row explains a page that could not return posts. These rows are free. A page may return some posts followed by a free diagnostic if a later request is blocked. An empty row can mean that no posts matched the date range.

### Price

**$2 per 1,000 posts on Free**, $1.80 on Bronze, $1.60 on Silver, and $1.50 on Gold and above, with no start fee and no date-filter fee. Diagnostic rows have no charge. The Actor stops collecting posts at your maximum cost per run. Your Apify plan may separately account for compute and proxy usage.

### Limits and reliability

Facebook controls which posts, media, and engagement counts are available without login. Results may be incomplete or out of chronological order; this is not an archive guarantee. The Actor reads pages sequentially, pauses between feed requests, deduplicates posts within a run, and stops if Facebook repeats a continuation. A safety limit of 500 continuation requests per page bounds long date-filtered scans; reaching it produces a diagnostic. Large scans can reach the run timeout before the requested maximum. Restarting a run may return posts already saved in a previous run.

The public feed query is discovered from the scripts served with the page. If Facebook changes the feed format or feature configuration, the Actor may need maintenance. Do not provide passwords, cookies, or private page addresses.

### Responsible use

Public posts and publisher names may contain personal data. You are responsible for having a lawful basis to collect and process it, respecting applicable privacy laws and Facebook's terms, limiting retention, and honoring relevant rights requests. Public availability does not itself establish a lawful basis. This Actor is not affiliated with or endorsed by Meta or Facebook.

### Related Actors

Use [Facebook Pages Scraper](https://apify.com/earlytern/facebook-pages-scraper) for page details and [Meta Ad Library Scraper](https://apify.com/earlytern/facebook-ads-library-scraper) for public advertisements.

### FAQ

**Can I collect private posts or bypass login?** No. Only posts visible without login are supported. Access restrictions produce a free diagnostic.

**How can I use the results?** Export the dataset as CSV, Excel or JSON, or read it through the Apify dataset API. Filter for `status: "ok"` to work only with posts.

**Why are some counts or media missing?** Facebook does not expose every field to visitors. Missing counts remain empty rather than being estimated. A Reel is included only if it appears in the public timeline.

# Changelog

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

# Actor input Schema

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

Public Facebook pages or profiles with posts visible without login.

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

The total number of posts to return across all pages.

## `since` (type: `string`):

Earliest publication date, inclusive, in YYYY-MM-DD format.

## `until` (type: `string`):

Latest publication date, inclusive, in YYYY-MM-DD format.

## `proxyCountry` (type: `string`):

Country used to read public pages, such as US or GB.

## Actor input object example

```json
{
  "urls": [
    "https://www.facebook.com/nike/"
  ],
  "maxItems": 3,
  "proxyCountry": "US"
}
```

# 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 = {
    "urls": [
        "https://www.facebook.com/nike/"
    ],
    "maxItems": 3
};

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

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

```

## MCP server setup

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