# Facebook Posts Scraper: Page Posts, Likes, Comments, Shares (`themineworks/facebook-posts-scraper`) Actor

Scrape posts from public Facebook Pages: text, date, likes and reactions by type, comments count, shares, video views, photo and video links, link previews and post URL. Free date window. No login, no cookies. One row per post.

- **URL**: https://apify.com/themineworks/facebook-posts-scraper.md
- **Developed by:** [The Mine Works](https://apify.com/themineworks) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 7 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 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: Page Posts, Likes, Comments, Shares

[![20 Facebook Page posts with likes, comments and shares in 19 seconds](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/facebook-posts-scraper-hero.png)](https://console.apify.com/actors/ZzM6i7QYJ381Wx1V2/input?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

Returns the posts of public Facebook Pages, one row per post with text, date, likes and every reaction type, comments count, shares, video views, photo and video links, link previews and the post URL. No login, no cookies, no API key. You pay $4.50 per 1,000 posts on the Free plan and $1.80 per 1,000 on the Gold plan, plus $0.0009 per run. The date window costs nothing extra.

From **The Mine Works**, makers of [Threads Scraper](https://apify.com/themineworks/threads-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral) and [B2B Leads Finder](https://apify.com/themineworks/b2b-leads-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), with over 335,000 runs across 320+ public actors.

Updated 12 Nov 2026: first release. Page posts newest first, a date window in both directions, reactions by type, video views, photos, videos and link previews, one flat row per post. Bookmark this Actor on its Store page so it is one click away next time.

### Why choose this actor?

- **Every number a social media report needs, in columns.** `reactions_count` (all likes and reactions), `reactions` split into like, love, care, haha, wow, sad and angry, `comments_count`, `shares_count` and, on videos and reels, `video_views`. In our test runs on 12 November 2026, 980 posts from 14 Pages (NASA, National Geographic, Nike, Starbucks, Red Bull, BBC News, The Economist, NDTV, El País, Lufthansa and others) all came back with post id, link, date, reactions, comments and shares.
- **Old posts without paying for new ones.** Set `onlyPostsOlderThan` and Facebook is asked to start the Page at that date, so the posts after it are never read or charged. `onlyPostsNewerThan` stops the Page at the first post older than your date. Both are free; there is no filter fee.
- **You pay only for posts.** Personal profiles, groups, events, Pages that do not exist and duplicates each get a free error row with the reason. A run whose Pages all fail costs a few datacenter requests and is never charged a start fee.

[![Run it on Apify](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/button-run.png)](https://console.apify.com/actors/ZzM6i7QYJ381Wx1V2/input?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Part of The Mine Works Social media and video family:** [Threads Scraper](https://apify.com/themineworks/threads-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Reddit Scraper](https://apify.com/themineworks/reddit-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Threads Search Scraper](https://apify.com/themineworks/threads-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Instagram Profile Scraper](https://apify.com/themineworks/instagram-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Instagram Followers & Following](https://apify.com/themineworks/instagram-followers-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Reddit Search Scraper](https://apify.com/themineworks/reddit-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral).

### Try it in one minute

Paste this into the JSON tab of the input page. It returns the 10 newest posts of NASA and of Humans of New York. On Apify it took 19 seconds.

```json
{
  "startUrls": [
    { "url": "https://www.facebook.com/nasa" },
    { "url": "https://www.facebook.com/humansofnewyork" }
  ],
  "resultsLimit": 10
}
```

Apify's free plan includes $5 of credit every month, which covers about 1,100 posts at this actor's Free plan price.

#### Copy to your AI assistant

```
themineworks/facebook-posts-scraper on Apify. Reads the posts of public Facebook Pages as a logged out visitor and returns one row per post: post_id, post_url, page_name, page_id, page_url, author_name, author_id, author_url, post_type (text, photo, album, video, reel, link, shared), text, created_at, timestamp, reactions_count, reactions (like, love, care, haha, wow, sad, angry), comments_count, shares_count, video_views, media, media_urls, link_url, link_title, link_domain, link_image, is_reshare, shared_post, sponsored, input, scraped_at. Call ApifyClient("TOKEN").actor("themineworks/facebook-posts-scraper").call(run_input={"startUrls": [{"url": "https://www.facebook.com/nasa"}], "resultsLimit": 50}), then client.dataset(run["defaultDatasetId"]).list_items().items. Give startUrls (Page links or public post links) and/or usernames (Page names or numeric Page ids). Optional: resultsLimit (posts per Page, default 20, up to 5000), onlyPostsNewerThan and onlyPostsOlderThan (YYYY-MM-DD, an ISO time, or "7 days", "3 months"). Skip rows with a _type field (summary, info, error: never charged). Full spec: GET https://api.apify.com/v2/acts/themineworks~facebook-posts-scraper/builds/default (Bearer TOKEN). Token: https://console.apify.com/account/integrations?fpr=ymnoit&utm_source=apify-readme&utm_medium=referral
```

### Key features

- **28 fields per post**: the post (id, link, type, full text with line breaks, date as ISO and Unix time), the Page (name, id, link), the author (for co-authored posts), engagement (reactions total and by type, comments, shares, video views), media (each photo with size and Facebook's own image description, each video or reel with thumbnail, length and direct SD and HD video links), link posts (URL, title, website, preview image) and reshares (the original post's id, link, author and date).
- **Newest first, as deep as the Page goes.** Our test read 250 NASA posts back to August 2025 in one run. Pinned posts are left out so the order is by date.
- **Date window both ways**, as dates (`2026-10-01`), full times, or relative times (`7 days`, `2 weeks`, `3 months`). Handy for a weekly report on a schedule.
- **Any common input form**: Page links from `www`, `m.`, `web.` or `fb.com`, links to a Page tab or post (cut back to the Page), `profile.php?id=` links, `pages/<name>/<id>` links, usernames and numeric Page ids. Links to single public posts return that one post.
- **Public Pages only**: a personal profile is recognised from the Page header and skipped with a free `personal_profile` row. Nothing from it is read.

### How to use it

#### Basic: the latest posts of a few Pages

```json
{
  "startUrls": [{ "url": "https://www.facebook.com/nike" }, { "url": "https://www.facebook.com/redbull" }],
  "resultsLimit": 30
}
```

#### Competitor tracking every week

Save this as a task and schedule it weekly. Each run returns only the last 7 days of posts, so you compare engagement week on week without paying for old posts again.

```json
{
  "startUrls": [{ "url": "https://www.facebook.com/Starbucks" }, { "url": "https://www.facebook.com/nike" }],
  "resultsLimit": 200,
  "onlyPostsNewerThan": "7 days"
}
```

#### Posts from one month in the past

```json
{
  "startUrls": [{ "url": "https://www.facebook.com/natgeo" }],
  "resultsLimit": 500,
  "onlyPostsNewerThan": "2026-06-01",
  "onlyPostsOlderThan": "2026-06-30"
}
```

#### A list of Page names from a sheet or a pipeline

```json
{
  "usernames": ["nasa", "@bbcnews", "100044561550831"],
  "resultsLimit": 20
}
```

### Input parameters

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array of `{ "url": ... }` | NASA and Humans of New York | Public Facebook Page links, `profile.php?id=` links, or links to single public posts. |
| `usernames` | array of strings | none | Page usernames (`nasa`, `@nasa`) or numeric Page ids, read the same way as links. |
| `resultsLimit` | integer | 20 | Posts per Page, newest first. Up to 5,000. |
| `onlyPostsNewerThan` | string | none | Only posts from this date on: `YYYY-MM-DD` (whole day included), an ISO time, or `7 days`, `2 weeks`, `3 months`, `1 year`. |
| `onlyPostsOlderThan` | string | none | Only posts up to this date, in the same forms. Facebook is asked to start the Page here. |

`startUrls` must hold links; put bare names and ids in `usernames`. Up to 5,000 entries per run.

### What data do you get?

One row per post. Fields a post does not have (for example `video_views` on a photo) are left out of that row rather than filled with empty values.

**Post**: `post_id`, `post_url`, `post_type` (`text`, `photo`, `album`, `video`, `reel`, `link` or `shared`), `text`, `created_at` (ISO 8601 UTC), `timestamp` (Unix seconds), `sponsored`.

**Page and author**: `page_name`, `page_id`, `page_url`, `author_name`, `author_id`, `author_url`.

**Engagement**: `reactions_count`, `reactions` (`like`, `love`, `care`, `haha`, `wow`, `sad`, `angry`), `comments_count`, `shares_count`, `video_views`.

**Media and links**: `media` (each photo or video with `type`, `url`, `thumbnail`, `width`, `height`, `alt`, `id`, `duration_seconds`, `video_url_sd`, `video_url_hd`), `media_urls` (just the image and thumbnail links), `link_url`, `link_title`, `link_domain`, `link_image`.

**Reshares**: `is_reshare`, `shared_post` (`id`, `url`, `author_name`, `text`, `created_at` of the original post).

**Run fields**: `input` (your entry as given), `scraped_at`.

#### Stable fields for automations

These were present in every one of the 980 rows of our test runs:

| Field | What it holds |
|---|---|
| `post_id` | Facebook id of the post |
| `post_url` | Link to the post |
| `page_name` | Name of the Page |
| `page_id` | Facebook id of the Page |
| `post_type` | text, photo, album, video, reel, link or shared |
| `created_at` | When it was posted, ISO 8601 UTC |
| `timestamp` | The same as Unix seconds |
| `reactions_count` | All reactions |
| `comments_count` | Comments |
| `shares_count` | Shares |
| `input` | Your entry as given |
| `scraped_at` | When the row was read |

These names will not change. New fields may be added; existing ones will not be renamed or removed.

#### Output examples

A link post from The Economist:

```json
{
  "post_id": "1668469251978255",
  "post_url": "https://www.facebook.com/TheEconomist/posts/pfbid0221e7UFjgTLA4CiRSSaYaoPY8me92Aw7xj1hXo8N8FMNv9AKtrBm5qT9waNu3oM5rl",
  "page_name": "The Economist",
  "page_id": "100064455893534",
  "page_url": "https://www.facebook.com/TheEconomist",
  "post_type": "link",
  "text": "In the David and Goliath war between Ukraine and Russia, drones have proved a great equaliser. Not all, however, carry warheads. Many are used instead for spying and target location",
  "created_at": "2026-11-11T15:30:19.000Z",
  "timestamp": 1794411019,
  "reactions_count": 23,
  "reactions": { "like": 23, "love": 0, "care": 0, "haha": 0, "wow": 0, "sad": 0, "angry": 0 },
  "comments_count": 0,
  "shares_count": 1,
  "link_url": "https://www.economist.com/science-and-technology/2026/11/04/drones-dont-just-blow-up-the-enemy",
  "link_title": "Drones don’t just blow up the enemy",
  "link_domain": "economist.com",
  "is_reshare": false,
  "sponsored": false,
  "input": "https://www.facebook.com/TheEconomist"
}
```

A reel from NASA (media links trimmed):

```json
{
  "post_id": "1678344756994227",
  "post_url": "https://www.facebook.com/reel/1056346190744779/",
  "page_name": "NASA - National Aeronautics and Space Administration",
  "page_id": "100044561550831",
  "post_type": "reel",
  "text": "NASA astronaut Anil Menon and CSA (Canadian Space Agency) astronaut ...",
  "created_at": "2026-11-05T22:04:27.000Z",
  "reactions_count": 17770,
  "reactions": { "like": 15879, "love": 1120, "care": 110, "haha": 508, "wow": 142, "sad": 3, "angry": 8 },
  "comments_count": 732,
  "shares_count": 411,
  "video_views": 461265,
  "media": [
    {
      "type": "reel",
      "url": "https://www.facebook.com/reel/1056346190744779/",
      "thumbnail": "https://scontent-iad6-1.xx.fbcdn.net/v/t15.5256-10/892188584_n.jpg?...",
      "width": 1080,
      "height": 1920,
      "duration_seconds": 23.1,
      "video_url_sd": "https://video-iad3-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQP4BGjf.mp4?..."
    }
  ]
}
```

A photo album from Lufthansa (two of five photos shown):

```json
{
  "post_id": "1590660203102271",
  "post_url": "https://www.facebook.com/Lufthansa/posts/pfbid0r8iwqpktPN136nLcXGYGceUX4DH7ZcfYuvEdry3qgD39cFe92qiqsPmAEx3AgMaSl",
  "page_name": "Lufthansa",
  "post_type": "album",
  "text": "Explore the world in style with our new loungewear. ✨ ...",
  "created_at": "2026-11-10T10:03:59.000Z",
  "reactions_count": 156,
  "reactions": { "like": 127, "love": 24, "care": 3, "haha": 1, "wow": 0, "sad": 0, "angry": 1 },
  "comments_count": 9,
  "shares_count": 15,
  "media": [
    { "type": "photo", "url": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.99422-6/902143141_n.png?...", "width": 1080, "height": 1440, "alt": "May be an image of text" },
    { "type": "photo", "url": "https://scontent-dfw6-2.xx.fbcdn.net/v/t39.99422-6/902547803_n.png?...", "width": 1080, "height": 1440, "alt": "May be an image of aircraft and text" }
  ]
}
```

An error row, never charged:

```json
{
  "_type": "error",
  "error_type": "personal_profile",
  "identifier": "zuck",
  "reason": "This is a personal profile, not a Page. This actor reads public Pages only. Nothing was charged."
}
```

### Pricing

Pay per event: you pay for the post rows you receive, plus a flat $0.0009 per run, whatever memory you choose.

| Event | When it is charged | Free plan | Bronze (Starter) | Silver (Scale) | Gold (Business) |
|---|---|---|---|---|---|
| `post-scraped` | Once per post row stored in your dataset | $4.50 per 1,000 | $3.60 per 1,000 | $2.25 per 1,000 | $1.80 per 1,000 |
| `run-start` | Once per run, after the first post is delivered | $0.0009 | $0.0009 | $0.0009 | $0.0009 |

Never charged:

- the date window (no filter fee);
- personal profiles, groups, events and links that are not Pages;
- Pages that do not exist, were removed, or are limited by age or country;
- posts outside your date window and duplicates;
- the summary, info and error rows;
- a run that delivers no posts: the start fee is charged only after the first post is in your dataset;
- anything past your "Max cost per run": the actor stops delivering when your limit is reached instead of sending rows for free.

### How it compares

| Actor | Price per 1,000 on the Free plan | Price per 1,000 on Gold | Start fee | Date filter | Login or cookies needed |
|---|---|---|---|---|---|
| **This actor** | $4.50 | $1.80 | $0.0009 per run | Free, both directions | None needed |
| [Facebook Posts Scraper (Apify)](https://apify.com/apify/facebook-posts-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral) | $5.00 | $2.00 | $0.001 per run | Yes, $2.00 per 1,000 extra on Free (stated) | not stated |
| [Facebook Posts Scraper (scraper_one)](https://apify.com/scraper_one/facebook-posts-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral) | $3.00 | $2.00 | $0.00005 per run | Yes; older than for Pages only (stated) | not stated |
| [Facebook Profile & Posts Scraper (cleansyntax)](https://apify.com/cleansyntax/facebook-profile-posts-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral) | $6.00 | $6.00 | None listed | Yes, start and end date (stated) | not stated |

Checked 11 Nov 2026 from the public Store listings.

### Run it on a schedule

1. Open the actor in Apify Console, set your Pages and `onlyPostsNewerThan` (for example `7 days`), and click **Save as a new task**.
2. In the task, open **Schedules**, click **Add schedule** and pick how often (every Monday at 08:00, every day and so on).
3. Join runs on `post_id` to follow how reactions, comments and shares on a post grow over time.
4. Optional: add an integration (Google Sheets, Slack, a webhook) so each run lands where your team works.

### FAQ

#### What does this actor read?

The posts of a public Facebook Page as Facebook shows them to someone who is not logged in: the Page's timeline, newest first, without the pinned post. It does not read comments, groups, events, Marketplace or personal profiles. For comments, use our [Facebook Comments Scraper](https://apify.com/themineworks/facebook-comments-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral).

#### Do I need an account, cookies or an API key?

No. The actor never logs in and never asks for your cookies or a Facebook token. It reads what any visitor sees on the open web.

#### How many posts can I get per Page?

Up to 5,000 per Page per run, as far back as the Page's public timeline goes. Our test read 250 posts each from NASA and National Geographic in one run. Some Pages post rarely: Coca-Cola's global Page showed 27 posts in total, back to 2015, and the actor stops there.

#### How fast is it?

Facebook hands out a Page's timeline 3 posts at a time, so one Page runs at about 1 post every 2 seconds, and three Pages are read at once. In our tests 147 posts from 5 Pages took 2 minutes and 500 posts from 2 Pages took 9 minutes. If you ask for more than about 1,500 posts from one Page, raise the run timeout above the default hour.

#### Why are some posts typed as text?

They have no photo, video or link. Starbucks, for example, posts many short text updates. Their text, reactions, comments and shares are all there.

#### Why did a Page come back with an error row?

Facebook sends logged out visitors to its login page for Pages that do not exist, were removed or renamed, and for Pages limited by age or country (some alcohol brands). The actor tries such a Page 3 times as a new visitor and then returns `page_not_found_or_limited`, never charged. Personal profiles return `personal_profile`, and links to groups or events return `not_a_page`.

#### Which proxy does it use?

Apify proxy, chosen by the actor: datacenter for the Page itself and residential for the Page's timeline, which Facebook refuses from datacenter IPs. It is included in the price; you set nothing.

#### Can I get the data in Excel, CSV or Google Sheets?

Yes. Download the dataset as CSV, Excel, JSON, XML or HTML from the run page, or send it to Google Sheets with the Apify integration. The main columns are flat; `media` and `reactions` spread over numbered or named columns in CSV.

#### Can I use it from Claude, ChatGPT or another AI assistant?

Yes, through Apify's MCP server. Connector URL: https://mcp.apify.com/?tools=themineworks/facebook-posts-scraper

- Claude: Settings > Connectors > Add custom connector, paste the URL, sign in with Apify.
- ChatGPT: turn on developer mode, add an MCP connector with the URL, sign in with Apify.
- Cursor or VS Code: add it as an HTTP MCP server with that URL.
- Claude Code: `claude mcp add -t http facebook-posts-scraper "https://mcp.apify.com/?tools=themineworks/facebook-posts-scraper"`

#### Is it legal to scrape Facebook?

The actor reads only posts that public Pages show to anyone without logging in, and it skips personal profiles. Posts can still mention or show people, so treat the data as possibly personal. You are responsible for how you use it and for following Facebook's terms and data protection law such as the GDPR and the CCPA.

### Integrations

- **Google Sheets**: send each run's posts to a sheet with the Google Sheets integration.
- **Make, Zapier and n8n**: start a run on a schedule or from a new row, and pass the posts on when the run finishes.
- **Webhooks**: get a call when a run succeeds and fetch the dataset from it.
- **API**: start runs and read results from any language with the Apify API or the Python and JavaScript clients.
- **MCP clients**: Claude, ChatGPT, Cursor and others, through the connector URL above.

### More from The Mine Works

**Social media and video**

- [Threads Scraper](https://apify.com/themineworks/threads-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Reddit Scraper](https://apify.com/themineworks/reddit-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Threads Search Scraper](https://apify.com/themineworks/threads-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Instagram Profile Scraper](https://apify.com/themineworks/instagram-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Instagram Followers & Following](https://apify.com/themineworks/instagram-followers-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Reddit Search Scraper](https://apify.com/themineworks/reddit-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Twitter / X Scraper](https://apify.com/themineworks/twitter-x-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [YouTube Transcript](https://apify.com/themineworks/youtube-transcript-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Xiaohongshu (RED) Scraper](https://apify.com/themineworks/xiaohongshu-explore-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Telegram Channel Scraper](https://apify.com/themineworks/telegram-channel-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Telegram Channel Finder](https://apify.com/themineworks/telegram-channel-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Pinterest Profile Scraper](https://apify.com/themineworks/pinterest-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Leads and business directories**

- [B2B Leads Finder](https://apify.com/themineworks/b2b-leads-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Skip Trace Lookup](https://apify.com/themineworks/skip-trace-lookup?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Maps Email Scraper](https://apify.com/themineworks/maps-leads?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [2GIS Places Scraper](https://apify.com/themineworks/2gis-places-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Marketing, SEO and reviews**

- [Facebook Ad Library Scraper](https://apify.com/themineworks/meta-ad-library-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Ads Transparency Scraper](https://apify.com/themineworks/google-ads-transparency?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Similarweb Scraper](https://apify.com/themineworks/similarweb-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google News Scraper](https://apify.com/themineworks/google-news?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**LinkedIn**

- [LinkedIn Company Scraper](https://apify.com/themineworks/linkedin-company-details?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Post Scraper](https://apify.com/themineworks/linkedin-post-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Employees Scraper](https://apify.com/themineworks/linkedin-employees?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Profile Scraper](https://apify.com/themineworks/linkedin-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Real estate**

- [Zillow Rentals Scraper](https://apify.com/themineworks/zillow-rental-listings?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Zillow Sold Comps Scraper](https://apify.com/themineworks/zillow-recently-sold?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [India Real Estate MCP](https://apify.com/themineworks/india-real-estate-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Housing.com Scraper](https://apify.com/themineworks/housing-com-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Science, health and government data**

- [Academic Research MCP](https://apify.com/themineworks/academic-research-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [CourtListener Scraper](https://apify.com/themineworks/courtlistener-court-records?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Socrata Open Data Scraper](https://apify.com/themineworks/socrata-open-data?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [OpenAlex Scraper](https://apify.com/themineworks/openalex-scholarly-works?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Jobs and hiring**

- [Foundit Monster India Jobs](https://apify.com/themineworks/foundit-jobs-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Hirist Jobs Scraper](https://apify.com/themineworks/hirist-jobs-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [India Jobs MCP](https://apify.com/themineworks/india-jobs-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Naukri Jobs Scraper](https://apify.com/themineworks/naukri-jobs?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Company and business data**

- [Company Domain Finder](https://apify.com/themineworks/company-domain-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GST Taxpayer Lookup](https://apify.com/themineworks/gst-taxpayer-lookup?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Company KYB Resolver](https://apify.com/themineworks/company-identity-resolver?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [SEC EDGAR Filings Scraper](https://apify.com/themineworks/sec-edgar-filings?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**E-commerce and marketplaces**

- [Ozon.ru Scraper](https://apify.com/themineworks/ozon-product-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [⭐ Amazon Reviews Scraper](https://apify.com/themineworks/amazon-reviews?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Amazon Product Scraper](https://apify.com/themineworks/amazon-products?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Etsy Listings Scraper](https://apify.com/themineworks/etsy-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Food and local services**

- [NoBroker Scraper](https://apify.com/themineworks/nobroker-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Swiggy Restaurant Scraper](https://apify.com/themineworks/swiggy-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Zomato Scraper](https://apify.com/themineworks/zomato-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Developer and AI tools**

- [Website to Markdown Crawler](https://apify.com/themineworks/rag-crawler?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Skill Finder](https://apify.com/themineworks/github-skill-discovery?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Repo Scraper](https://apify.com/themineworks/github-repo-intelligence?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Trending Scraper](https://apify.com/themineworks/github-trending-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**More tools**

- [G2 Reviews Scraper](https://apify.com/themineworks/g2-reviews-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Naver Blog Scraper](https://apify.com/themineworks/naver-blog-posts-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [WeChat Article Scraper 微信公众号文章](https://apify.com/themineworks/wechat-article-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Taobao Products Scraper 淘宝 天猫](https://apify.com/themineworks/taobao-products-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

If this actor saved you time, a short rating on the Store helps other buyers find it.

### Support

Found a Page that should work and does not, or a field you need? Open an issue in the Issues tab with the Page link and the run ID. For new sources or a custom version, email dmineworks@gmail.com.

*Facebook Posts Scraper turns public Facebook Pages into one row per post, with text, date, reactions by type, comments, shares, video views and media, and charges only for the posts you receive.*

# Actor input Schema

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

Public Facebook Page links, one per line, for example https://www.facebook.com/nasa. A profile.php?id= link or a link to a single public post works too. Personal profiles, groups and events are skipped and never charged.

## `usernames` (type: `array`):

Optional. Page usernames such as nasa or @nasa, or numeric Page ids, one per line. Handy when your list comes from a sheet or a pipeline. Read the same way as the links above.

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

Stop after this many posts for each Page, newest first. Each post is charged once.

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

Only posts from this date on: YYYY-MM-DD (that whole day included), a full date and time, or a relative time such as 7 days, 2 weeks or 3 months. The Page is read until a post is older than this, then the actor moves on.

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

Only posts up to this date: YYYY-MM-DD (that whole day included), a full date and time, or a relative time such as 1 month. Facebook is asked to start the Page at this date, so newer posts are skipped without being read or charged.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/nasa"
    }
  ],
  "usernames": [
    "nasa",
    "100044561550831"
  ],
  "resultsLimit": 10
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/nasa"
        },
        {
            "url": "https://www.facebook.com/humansofnewyork"
        }
    ],
    "resultsLimit": 10
};

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

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

```

## MCP server setup

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