# Facebook Posts Scraper · No Login · $1.4/1k (`alfalfa/facebook-posts-scraper`) Actor

Scrape public Facebook page and profile posts without login. Get text, post type, hashtags, links, photo and video URLs, reactions, comments and shares. Deep pagination and date filters included. Posts cost $1.40/1k on Business or $2/1k on Free; no start fee or platform charge.

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

## Pricing

from $1.40 / 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 (No Login)

Scrape posts from public **Facebook pages and profiles**: text, post format, hashtags, external links, photos, videos, reels, reactions, comment and share counts, top comments and co-authors. Follow a page's timeline beyond its first few posts, or use a date filter to collect only new posts. No Facebook account or login needed. **Official-compatible fields plus useful extras** at **$1.40 per 1,000 posts on Business** or **$2 per 1,000 on Free**, with no start fee.

Not affiliated with, endorsed by or connected to Meta Platforms, Inc. Facebook is a trademark of Meta.

### What you can do with Facebook post data

- **Social listening and brand monitoring**: pull every new post from the pages you watch on a schedule and track reactions, comments and shares over time.
- **Competitor content analysis**: see what a competitor posts, how often, which formats they use and what actually gets engagement.
- **Content archiving**: keep a copy of a page's posts with media URLs, timestamps and engagement counts.
- **Feeding dashboards and AI workflows**: clean JSON with stable field names goes straight into a spreadsheet, a database, or an LLM pipeline.
- **Influencer and creator research**: post frequency, reaction mix and top comments for any public profile.
- **Incremental scraping that stays cheap**: `onlyPostsNewerThan` stops the run as soon as it reaches posts you already have, so a daily job costs a few cents.

### What data do you get

| Field | Example |
|---|---|
| `text`, `textReferences`, `link` | post text, hashtags and mentions with URLs, the shared link |
| `previewTitle`, `previewDescription`, `previewSource`, `previewTarget`, `actionLink` | link preview card of a shared link and its call-to-action button |
| `time`, `timestamp`, `timeCreated`, `timestampCreated` | `2026-09-02T04:52:09.000Z`, `1788382329` |
| `likes`, `comments`, `shares`, `topReactionsCount` | `2275`, `86`, `169` |
| `reactionLikeCount`, `reactionLoveCount`, `reactionHahaCount`, ... | reaction breakdown by type |
| `media` | photos with full-size URLs and Facebook's image description, videos with playable URL, thumbnail, duration and play counts |
| `isVideo`, `viewsCount`, `videoPostViewCount`, `liveViewerCount` | video metrics (live viewers only while a broadcast is running) |
| `paidPartnership` | `true` when the post is labelled as a paid partnership |
| `captionText` | transcript of the video (with the `captionText` option on) |
| `topComments` | text, author, date and likes of the comments Facebook shows first |
| `collaborators`, `sharedPost` | co-authors and the original post of a share |
| `user`, `pageName`, `facebookId`, `pageAdLibrary` | author profile, page IDs, Ad Library ID |
| `url`, `topLevelUrl`, `postId`, `feedbackId` | post URLs and IDs |
| `storyId`, `postType`, `isShare` | opaque feed-story ID, post format (`Share`, `Video`, `Album`, `Photo`, `Link`, `Text`), and share flag |
| `hashtags`, `links`, `topReactions` | hashtags, external destinations, and reaction types with counts |
| `images`, `videos`, `imageCount`, `videoCount` | direct media URLs and counts of exposed photo/video entries; URLs may expire |
| `pageId`, `pageProfilePicture`, `scrapedAt` | page ID, author picture, and the UTC time this record was collected |

### How to scrape Facebook posts

1. Paste page or profile URLs into **Start URLs**, one per line.
2. Set **Results limit** per URL, and optionally **Only posts newer than** (`2026-01-31`, `7 days`, `3 months`) to skip old posts for free.
3. Click **Start**. Posts stream into the dataset as they are found; export as JSON, CSV, Excel or XML, or read them through the API.

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array of `{ "url": ... }` | Page or profile URLs (same format as the official Actor, plain strings work too): `https://www.facebook.com/humansofnewyork/`, `https://www.facebook.com/zuck`, `https://www.facebook.com/profile.php?id=100044561550831`. |
| `resultsLimit` | integer | Max posts per URL, newest first. Empty = no limit. |
| `onlyPostsNewerThan` | string | `YYYY-MM-DD`, ISO date-time, or relative (`1 day`, `2 weeks`, `3 months`). Stops scraping when older posts are reached. |
| `onlyPostsOlderThan` | string | Same formats. Newer posts are skipped for free. |
| `captionText` | boolean | Add the video transcript (auto-generated captions) to video posts, same field as the official Actor. Add-on: $0.002 per video post looked up. Off by default. |
| `maxConcurrency` | integer | Pages scraped in parallel (default 5). |
| `proxyConfiguration` | object | Residential proxies by default, included in the price. Optionally pick a country or use your own proxy servers. |

Example:

```json
{
  "startUrls": [{ "url": "https://www.facebook.com/NASA/" }, { "url": "https://www.facebook.com/cern" }],
  "resultsLimit": 50,
  "onlyPostsNewerThan": "30 days"
}
```

### Output

One dataset record per post. Field names match the official Facebook Posts Scraper:

```json
{
  "facebookUrl": "https://www.facebook.com/NASA",
  "postId": "1619357056226331",
  "pageName": "NASA",
  "url": "https://www.facebook.com/NASA/posts/pfbid02UWQesyMaGaXHYs988uMZHerM5NuzhHxcnQp93c5BhLEXNRqphHTWqa81y7WYppKRl",
  "time": "2026-09-02T04:52:09.000Z",
  "timestamp": 1788382329,
  "user": {
    "id": "100044561550831",
    "name": "NASA - National Aeronautics and Space Administration",
    "profileUrl": "https://www.facebook.com/100044561550831",
    "profilePic": "https://scontent.xx.fbcdn.net/v/t39.30808-1/....png"
  },
  "collaborators": [],
  "text": "Red Moon over Louisiana\n\nOn the night of Aug. 27-28, the full moon slipped through Earth's shadow...",
  "textReferences": [],
  "link": null,
  "likes": 2275,
  "comments": 86,
  "shares": 169,
  "topReactionsCount": 2275,
  "isVideo": false,
  "media": [
    {
      "thumbnail": "https://scontent.xx.fbcdn.net/v/t39.30808-6/....jpg",
      "__typename": "Photo",
      "url": "https://www.facebook.com/photo/?fbid=1619357049559665",
      "id": "1619357049559665",
      "ocrText": "May be an image of the moon"
    }
  ],
  "topComments": [
    { "id": "Y29tbWVudDo...", "text": "Beautiful!", "date": "2026-09-02T06:11:03.000Z", "likes": 12,
      "author": { "id": "100000000000000", "name": "Jane Doe", "url": "https://www.facebook.com/jane.doe" } }
  ],
  "topLevelUrl": "https://www.facebook.com/100044561550831/posts/1619357056226331",
  "facebookId": "100044561550831",
  "pageAdLibrary": { "is_business_page_active": false, "id": "26325324934" },
  "inputUrl": "https://www.facebook.com/NASA/"
}
```

Video posts add `playable_url`, `playable_duration_in_ms` and play counts inside `media`; shared posts add `sharedPost` with the original post's ID, URL and author. The convenience `images` and `videos` arrays repeat direct URLs already found inside `media`; `media[].url` is a Facebook post, photo, or video page URL. Direct CDN URLs can expire. `storyId` is an opaque feed-story ID and should not be treated as a permalink.

### Pricing

**$2 per 1,000 posts on Free; $1.80 on Starter, $1.60 on Scale, and $1.40 on Business.** There is **no start fee**. Platform usage and residential proxies are included. You pay only for posts written to the dataset, so date filters cut the bill directly. Set the maximum budget per run in the Actor settings; the scraper stops when it is reached.

**Final price.** With optional video transcripts off, the rate shown for your plan on the Pricing tab is everything you pay: platform usage is included, with no start fee or per-run minimum. Video transcript lookups have the separate add-on price below.

#### What that buys you

Your Apify plan comes with a monthly usage allowance, and this Actor draws from it at your plan's rate.

| Plan allowance | Posts it covers at that plan's rate |
|---|---|
| $5, which is what the free plan includes | about 2,500 |
| $29 on Starter | about 16,100 |
| $199 on Scale | about 124,300 |

Nothing extra is deducted for platform compute or for the residential proxies. Both are already inside the price per post.

#### What you are never charged for

- Posts that never reach your dataset, including anything skipped by a filter or hidden by Facebook.
- An input that returns nothing at all.
- Compute time and proxy traffic.
- Date filters stop paging as soon as older posts appear, so posts you filter out never reach the dataset and never appear on the bill.

#### The cap is a cap

Result limits and the run budget are checked **before** a record is fetched, not after it has been stored, so a run cannot overshoot the number you type. Set the maximum cost per run in the Actor settings and the scraper works out how many posts fit and stops there.

Optional add-on: **video transcripts** (`captionText`) cost $0.002 per video post looked up. On Free, a run over an all-video page costs at most $4 per 1,000 posts; paid plans cost less for the posts. Posts without video are never charged for the add-on.

For comparison, the official Facebook Posts Scraper charges $5 per 1,000 posts on the free plan, less on higher plans, plus a start fee and a fee per filter.

### Switching from the official Facebook Posts Scraper

1. Replace the Actor ID in your integration and keep your input (`startUrls`, `resultsLimit`, `onlyPostsNewerThan`, `onlyPostsOlderThan`).
2. Every field of the official dataset schema is present with the same type, including the `reaction*Count` breakdown, `media`, `topComments`, `pageAdLibrary`, `paidPartnership` and `liveViewerCount`. The new fields listed above are additive.
3. Posts come newest first, same as the official Actor.

### Limitations

- Groups need a login and are not supported; single post, photo and video URLs are not accepted, use the page or profile URL.
- `paidPartnership` is detected from the post header and sponsor tags; `liveViewerCount` is only available while a live broadcast is running, otherwise `null`.
- Private profiles and pages Facebook hides from logged-out visitors return nothing.
- Video transcripts (`captionText`) are Facebook's auto-generated captions; videos without captions return `null` (the lookup is still charged).

### FAQ

#### Can I scrape Facebook posts without logging in?

Yes. No account, cookies or API key are needed, and nothing you own can get blocked or rate-limited.

#### How do I scrape only new posts every day?

Set `onlyPostsNewerThan` to `1 day` (or the date of your last run) and schedule the Actor. It stops as soon as it reaches older posts, so a daily run over a handful of pages costs a few cents.

#### Can I scrape comments?

The comments Facebook shows first are included in `topComments` with author, date and likes. Full comment threads are a separate job; tell us in the Issues tab if you need them.

#### Can I scrape a personal profile?

Yes, if the profile is public. Use the profile URL or `profile.php?id=...`.

#### How fast is it and how many posts can I get?

10 posts take about 5 seconds, 100 posts under a minute, and pages are scraped in parallel. There is no fixed limit.

#### Is scraping Facebook posts legal?

The scraper collects only what Facebook shows to anyone without logging in. Results can still contain personal data, so use them lawfully (GDPR and local rules) and do not use them for unsolicited bulk messaging.

### Use it from n8n, Make, Zapier or an AI agent

- **n8n, Make, Zapier**: add the Apify node, pick `alfalfa/facebook-posts-scraper` as the Actor, paste the same JSON input as above and read the run's dataset in the next step. A scheduled workflow that scrapes Facebook posts every morning and appends them to Google Sheets or a database takes three nodes. See the [Apify integrations docs](https://docs.apify.com/platform/integrations).
- **AI agents and MCP (Claude, Cursor, VS Code, ChatGPT)**: connect the Apify MCP server with this Actor as a tool, `https://mcp.apify.com/?tools=alfalfa/facebook-posts-scraper`, and the agent can call it by describing what it wants in plain language. The input and output schemas are published, so the agent knows every field. See [Apify MCP docs](https://docs.apify.com/platform/integrations/mcp).
- **API and scheduling**: every run is available through the [Apify API](https://docs.apify.com/api/v2) and the Apify CLI; schedules, webhooks and dataset exports (JSON, CSV, Excel, XML) are built into the platform.

### Examples you can run in one click

Each example opens with its input already filled in and a sample of the results, so you can change any field and run it right away.

- [Competitor Facebook content audit](https://apify.com/alfalfa/facebook-posts-scraper/examples/competitor-facebook-content-audit)
- [Daily new posts of a Facebook page](https://apify.com/alfalfa/facebook-posts-scraper/examples/daily-new-posts-of-a-facebook-page)
- [Download all posts of a Facebook page](https://apify.com/alfalfa/facebook-posts-scraper/examples/download-facebook-page-posts)
- [Export Facebook posts to CSV](https://apify.com/alfalfa/facebook-posts-scraper/examples/export-facebook-posts-to-csv)
- [Facebook post engagement metrics](https://apify.com/alfalfa/facebook-posts-scraper/examples/facebook-post-engagement-metrics)
- [Facebook post scraper for n8n, Make and Zapier](https://apify.com/alfalfa/facebook-posts-scraper/examples/facebook-post-scraper-for-n8n-make-zapier)
- [Facebook posts in a date range](https://apify.com/alfalfa/facebook-posts-scraper/examples/facebook-posts-in-a-date-range)
- [Facebook posts newer than a date](https://apify.com/alfalfa/facebook-posts-scraper/examples/facebook-posts-newer-than-a-date)
- [Facebook profile posts](https://apify.com/alfalfa/facebook-posts-scraper/examples/facebook-profile-posts)
- [Facebook video and reel posts](https://apify.com/alfalfa/facebook-posts-scraper/examples/facebook-video-and-reel-posts)

Need something the examples do not cover? Every field is on the Input tab, and any example input works unchanged in an API call or an n8n, Make or Zapier workflow.

### Was this useful?

If this Actor saved you time, a short review on its Store page helps others find it and tells me what to improve next. Missing a field or stuck on an input? Open an Issue on the Actor page; issues are answered within a day.

### More Facebook scrapers by Alfalfa

All four read only what Facebook shows a signed-out visitor, use the same field names as the official Apify Actors, and charge only for records that reach your dataset.

| Actor | What it returns | Price |
|---|---|---|
| [Facebook Events Scraper](https://apify.com/alfalfa/facebook-events-scraper) | Events by keyword, city, page or URL: dates, venue with GPS, tickets, organizer, going counts, every date of a recurring event, optional organizer email | $3 / 1,000 events |
| [Facebook Posts Scraper](https://apify.com/alfalfa/facebook-posts-scraper) | Posts from pages and profiles: text, media, reaction breakdown, comments, shares, top comments, co-authors | $1.40 / 1,000 on Business; $2 on Free |
| [Facebook Pages Scraper](https://apify.com/alfalfa/facebook-pages-scraper) | Page profile: email, phone, website, address, likes, followers, rating, price range, About text, recent posts | from $2.50 / 1,000 pages |
| [Facebook Comments Scraper](https://apify.com/alfalfa/facebook-comments-scraper) | Comments and reply threads of any public post: text, author, date, likes, replies with parent links, three sort modes, date filter without surcharge | $0.30 / 1,000 comments |
| [Facebook Ads Library Scraper](https://apify.com/alfalfa/facebook-ads-library-scraper) | ads from the Meta Ad Library by keyword, advertiser page or URL, with creatives, dates, platforms and EU reach | $0.45 per 1,000 ads |
| [Google Ads Transparency Scraper](https://apify.com/alfalfa/google-ads-transparency-scraper) | every Google ad of an advertiser or website domain with format, dates, regions, previews and YouTube video ids | $0.30 per 1,000 ads |
| [Google Maps Scraper](https://apify.com/alfalfa/google-maps-scraper) | places from any search and location with address, phone, website, rating and hours, plus reviews and website emails | $0.07 per 1,000 places |
| [Amazon Product Scraper](https://apify.com/alfalfa/amazon-product-scraper) | products from searches, Best Sellers lists and ASINs in 22 Amazon stores with price, rating, BSR and details | $0.28 per 1,000 products |
| [LinkedIn Jobs Scraper](https://apify.com/alfalfa/linkedin-jobs-scraper) | public LinkedIn job postings by keyword, location, date, company or URL, with full description, salary, applicants, seniority and poster | $0.30 per 1,000 jobs |
| [LinkedIn Company Scraper](https://apify.com/alfalfa/linkedin-company-scraper) | LinkedIn company pages from URLs, names, websites or a filtered keyword search with size, employee count, followers, offices and recent posts | $1 per 1,000 companies |
| [YouTube Scraper](https://apify.com/alfalfa/youtube-scraper) | videos of a search, channel, playlist or URL list with views, likes, date, tags, plus transcripts and comments; no API key | $0.50 per 1,000 rows |

### Not working?

Facebook changes things regularly. If a page that opens in your browser returns no posts, open an issue in the Issues tab with the URL; fixes are usually deployed within a day. If the scraper saved you time, a short review on the Actor page helps other users find it.

# Changelog

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

# Actor input Schema

## `startUrls` (type: `array`):

Public page or profile URLs, e.g. <code>https://www.facebook.com/humansofnewyork/</code>, <code>https://www.facebook.com/zuck</code> or <code>https://www.facebook.com/profile.php?id=100044561550831</code>. One URL = one feed. Groups and single post URLs are not supported. Same format as the official Facebook Posts Scraper.

## `resultsLimit` (type: `integer`):

Maximum number of posts per page/profile, newest first. Leave empty for no limit (use a date filter or the run budget instead).

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

Keep only posts published after this date. Absolute <code>YYYY-MM-DD</code> (or full ISO date-time, UTC) or relative like <code>1 day</code>, <code>2 weeks</code>, <code>3 months</code>. Scraping stops when older posts are reached, so you pay only for the posts you get.

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

Keep only posts published before this date. Absolute <code>YYYY-MM-DD</code> (or full ISO date-time, UTC) or relative like <code>1 day</code>, <code>2 months</code>. Newer posts are skipped for free.

## `captionText` (type: `boolean`):

Add <code>captionText</code> with the transcript of each video post (Facebook's auto-generated captions, English preferred), same field as the official scraper. Add-on: $0.002 per video post looked up. Leave off unless you need the text.

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

How many pages/profiles are scraped in parallel (default 5). Posts of one page are always read in order.

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

Residential proxies are included in the price per post. Leave the default unless you want to route the traffic through your own proxy servers.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/humansofnewyork/"
    }
  ],
  "resultsLimit": 10,
  "captionText": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All scraped posts as JSON (official-compatible fields plus post type, hashtags, external links, direct media URLs, and other extras). Append ?format=csv for CSV.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/humansofnewyork/"
        }
    ],
    "resultsLimit": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("alfalfa/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 = {
    "startUrls": [{ "url": "https://www.facebook.com/humansofnewyork/" }],
    "resultsLimit": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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