# Facebook Groups Scraper - Public Group Posts (`automly/facebook-public-group-posts-scraper`) Actor

Scrape posts from public Facebook groups: text, author, date, reactions by type, comments and shares counts, photos and videos, plus the group's details. Newest or top posts, no login.

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

## Pricing

from $1.20 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Groups Scraper - Public Group Posts

### What is Facebook Group Posts Scraper?

**Facebook Group Posts Scraper** is a tool that lets you **scrape posts from public Facebook groups**: post text, author name and profile link, publish date, reactions by type, comment and share counts, photos, videos and links, plus the group's name, privacy, member count and description. Paste group links, click **Start**, and download the posts as Excel, CSV or JSON.

- ⚡ **Speed:** about 260 posts per minute (240 posts from 3 groups in 55 seconds in our test)
- 🔃 **Your order:** new posts, top posts or recent activity, as in the group's own menu
- 📅 **Date filter:** only posts published after a date you choose
- 🔓 **No login:** no Facebook account, cookies or API key needed
- 💸 **Free to try:** the $5 of free usage every Apify account gets each month covers about 4,000 posts

### What can Facebook Group Posts Scraper do?

- Scrape posts from any public Facebook group
- Get the **newest posts**, the **top posts**, or the posts with **recent activity**
- Keep only posts published **after a date you choose**
- Get **reactions by type** (Like, Love, Care, Haha, Wow, Sad, Angry), comments and shares for every post
- Get the post author's name and profile link, photos, video links and shared links
- Get the group's name, privacy, member count and description
- Scrape many groups 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 groups?

| | | |
|---|---|---|
| 📝 Post text | 📅 Publish date and time | 🔗 Post link |
| 👤 Author name | 🌐 Author profile link | 🆔 Author ID |
| 👍 Total reactions | 😍 Reactions by type | 💬 Number of comments |
| 🔁 Number of shares | 🖼️ Photos and videos | 🔗 Shared link and title |
| 👥 Group name and ID | 🔒 Public or private | 📈 Member count |

### How to scrape Facebook group posts

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

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

You pay **$1.20 per 1,000 rows** (plus $0.00005 when a run starts), and only for the rows you get. For example, 1,000 group posts cost $1.20. Every Apify account gets **$5 of free usage each month**, so you can try it at no cost. See the **Pricing** tab for the current prices; paid Apify plans get the same price per result.

### ⬇️ Input

Groups can be a link (`https://www.facebook.com/groups/dogspotting`), the group's short name (`dogspotting`) or its numeric ID.

| Setting | What it does |
|---|---|
| Public groups | The groups to scrape |
| Posts per group | How many posts to get from each group (default 20). Set 0 to get the group details only |
| Sort posts by | New posts (default), top posts, or recent activity |
| Posts published after | Only posts published on or after this date |
| Include group details | Add one row per group with its name, privacy, member count and description (on by default) |

Example: the newest 200 posts from two groups.

```json
{
  "groups": [
    "https://www.facebook.com/groups/dogspotting",
    "https://www.facebook.com/groups/sciencehumor"
  ],
  "resultsPerGroup": 200,
  "sortOrder": "new"
}
```

Example: everything posted in a group since 20 September 2026.

```json
{
  "groups": ["https://www.facebook.com/groups/sciencehumor"],
  "resultsPerGroup": 2000,
  "postsPublishedAfter": "2026-09-20"
}
```

### ⬆️ Output

You get one row per post (`"type": "post"`) and one row per group (`"type": "group"`). The **Posts** and **Groups** 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": "28965769336392747",
  "url": "https://www.facebook.com/groups/sciencehumor/posts/28965769336392747/",
  "text": "When they try to roast you in Celsius, but you operate at 293.15 K.",
  "createdAt": "2026-09-24T15:39:19Z",
  "authorName": "Gregory Logro Bolide",
  "authorId": "100076849825419",
  "authorUrl": "https://www.facebook.com/universegreg123",
  "reactions": 1113,
  "reactionsByType": {"haha": 724, "like": 372, "love": 13, "care": 2, "wow": 2},
  "comments": 23,
  "shares": 108,
  "media": [
    {
      "type": "photo",
      "id": "1099704735934510",
      "url": "https://www.facebook.com/photo.php?fbid=1099704735934510&set=gm.28965769336392747&type=3",
      "imageUrl": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/820181011_109970358...",
      "videoUrl": null,
      "durationSeconds": null
    }
  ],
  "link": null,
  "linkTitle": null,
  "sharedPost": null,
  "groupId": "226096020786795",
  "source": "https://www.facebook.com/groups/sciencehumor/",
  "fetchedAt": "2026-09-25T01:00:31Z"
}
```

A group:

```json
{
  "type": "group",
  "id": "226096020786795",
  "name": "Science Humor",
  "url": "https://www.facebook.com/groups/sciencehumor",
  "privacy": "Public",
  "membersText": "2.6M members",
  "description": "\"Seeing Humor in Life, The Universe and Everything Since 2011.\" ...",
  "source": "https://www.facebook.com/groups/sciencehumor/",
  "fetchedAt": "2026-09-25T01:00:31Z"
}
```

Each run also saves a short report with how many groups and rows it covered, and any group it could not scrape with the reason (for example, a private group).

### How can I use Facebook group data?

- **Market research:** read what a community asks, recommends and complains about
- **Lead generation:** find people asking for a product or service in niche groups
- **Trend spotting:** see which posts and topics get the most reactions and shares
- **Community analytics:** measure how active a group is and what content works there
- **Sentiment analysis and AI:** build post datasets for topic or sentiment analysis

### Real-time Facebook groups 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?group=https://www.facebook.com/groups/dogspotting&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-public-group-posts-scraper").call(run_input={
    "groups": ["https://www.facebook.com/groups/dogspotting"],
    "resultsPerGroup": 200,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row["type"] == "post":
        print(row["authorName"], row["reactions"], row["text"][:80])
```

### ❓FAQ

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

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.

#### Can I scrape private Facebook groups?

No. Only public groups can be scraped. Private groups are listed in the run report as not scraped.

#### How many posts can I scrape from one group?

Hundreds or more; set **Posts per group** to the number you need, or use **Posts published after** to get everything since a date.

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

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

#### Why is the member count text like "2.6M members"?

That is how Facebook shows a group's size to visitors, so it is given exactly as shown.

#### Can I also get the comments of group posts?

Yes. Paste the post links into [Facebook Comments Scraper](https://apify.com/automly/facebook-post-comments-scraper).

#### Do I need a Facebook account?

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

#### Can I connect Facebook Group Posts Scraper to other tools or AI agents?

Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let AI assistants and agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

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

This scraper only collects posts from groups that are public, which anyone can read. It does not collect private data such as e-mail addresses or phone numbers. 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 Group 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 group link 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 Page Posts Scraper](https://apify.com/automly/facebook-page-posts-scraper) | Posts from public Pages |
| [Facebook Page Details Scraper](https://apify.com/automly/facebook-page-details-scraper) | Followers, category and contact details of many Pages |

### ⭐ Your feedback

Ideas, missing fields or problems: open the **Issues** tab and we'll take a look. If Facebook Group Posts Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `groups` (type: `array`):

Links to public Facebook groups, e.g. https://www.facebook.com/groups/dogspotting.

## `resultsPerGroup` (type: `integer`):

How many posts to scrape from each group. Set 0 to get the group details only.

## `sortOrder` (type: `string`):

Which posts come first, as in the group's own sort menu.

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

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

## `includeGroupInfo` (type: `boolean`):

Add one row per group with its name, privacy, member count and description.

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

Proxy settings. The default works for most runs.

## Actor input object example

```json
{
  "groups": [
    "https://www.facebook.com/groups/dogspotting"
  ],
  "resultsPerGroup": 20,
  "sortOrder": "new",
  "includeGroupInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

## `groups` (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 = {
    "groups": [
        "https://www.facebook.com/groups/dogspotting"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

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

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

```

## MCP server setup

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