# Facebook Groups Posts Scraper (`alpha-scraper/facebook-groups-posts-scraper`) Actor

\[ 1k/1.49$ ] Facebook Groups Posts Scraper collects posts from public Facebook groups without login: text, time, author, reaction, comment and share counts, attachments, shared posts, hashtags and links. Private or unavailable groups return a status record explaining why.

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

## Pricing

from $1.49 / 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.
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 Groups Posts Scraper

**Facebook Groups Posts Scraper** collects the posts of public Facebook groups and returns them as clean, structured data. Give Facebook Groups Posts Scraper a group name, a numeric group id or a group URL, and it returns each Facebook group post with its text, publish time, author, reactions, comments, shares, attachments, shared posts, hashtags and links.

Facebook Groups Posts Scraper reads only what a logged-out visitor can see. You do not need a Facebook account, a login or an API key. When a group is private or hidden from visitors, you still get a status record that explains why no posts came back.

> **📌 At a glance**
>
> - **Input:** public Facebook group slugs, numeric group ids or Facebook group URLs
> - **Output:** one dataset record per group post, plus a status record for groups without visible posts
> - **Filters:** a feed order (`sortBy`) and a start date (`postsNewerThan`)
> - **Control:** a per-group limit, so Facebook Groups Posts Scraper never collects more than you ask for

Community managers, researchers, marketers and analysts use Facebook Groups Posts Scraper to follow discussions, measure engagement and archive public Facebook group content. Every Facebook post arrives in the same JSON structure, so the data is easy to export, filter or feed into a dashboard.

### 🔹 Facebook Groups Posts Scraper – Key Features

Facebook Groups Posts Scraper focuses on the details that matter when you study a group feed.

- **Public group posts:** collect posts from open Facebook groups without any login.
- **Several groups per run:** mix `groups` and `startUrls`, and every entry gets its own post limit.
- **Three feed orders:** choose newest posts, recent activity or the most relevant posts of the Facebook group.
- **Date filter:** keep only Facebook group posts created on or after a day you choose.
- **Engagement counters:** reaction total, top reaction types, comment count and share count.
- **Attachments:** photos, albums, videos and shared links are listed for each post.
- **Shared posts:** when a member re-shares a Facebook post, its link, text, time and author are included when visible.
- **Text signals:** hashtags and external links found in the post are extracted for you.
- **Group context:** every record carries the group name, privacy label and member count text.
- **Clear status records:** private, removed or empty groups return a `groupStatus` record instead of silence.

> **✅ Why use this Actor**
>
> Facebook Groups Posts Scraper replaces manual scrolling and copy-and-paste. Facebook Groups Posts Scraper pages through the Facebook group feed, stops at your limit and returns consistent fields that you can export as JSON, CSV or Excel.

### 🔍 What Data Does Facebook Groups Posts Scraper Extract?

Each dataset item describes one Facebook group post. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Identity | `id`, `storyId`, `url`, `number` | Post ids, permalink and position in the run |
| Timing | `time`, `creationTime` | Creation time as an ISO string and a Unix timestamp |
| Content | `text`, `hashtags`, `links`, `isTextOnly` | Post text, tags and external links |
| Author | `author` | Author id, name, profile URL, account type and anonymity flag |
| Group | `group`, `groupUrl`, `groupName`, `groupPrivacy`, `groupMembers` | Which Facebook group the post belongs to |
| Engagement | `reactionCount`, `topReactions`, `commentCount`, `shareCount` | Public counters |
| Media | `attachments` | Photos, albums, videos and link previews |
| Sharing | `sharedPostUrl`, `sharedPost` | The original post when a member re-shared one |
| Run info | `type`, `sortBy`, `scrapedAt` | Record type, feed order used and collection time |

Facebook Groups Posts Scraper marks normal records with `type` set to `post`. Groups that return nothing use `type` set to `groupStatus`.

### 🚀 How to Use Facebook Groups Posts Scraper

Running Facebook Groups Posts Scraper takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Groups Posts Scraper from the Apify Store and open the Input tab.
- **Step 2 – Add groups:** type a group slug such as `python` into *Groups*, or paste Facebook group URLs into *Start URLs*.
- **Step 3 – Pick the feed order:** leave *Sort by* on *Newest posts*, or choose *Recent activity* or *Most relevant*.
- **Step 4 – Set limits:** choose *Max items* to cap the posts per group, and add *Posts newer than* if you need a date window.
- **Step 5 – Run:** start Facebook Groups Posts Scraper and watch the dataset fill with Facebook group posts.
- **Step 6 – Export:** download the results as JSON, CSV or Excel, or read them through the Apify API.

> **💡 Tip:** the input is prefilled with the sample group `python`. Clear it before you run Facebook Groups Posts Scraper if you only want your own Facebook groups.

### 📥 Facebook Groups Posts Scraper Input

Facebook Groups Posts Scraper has five input fields. All of them are optional, but you need at least one group or URL.

| Field | Type | Description |
|---|---|---|
| `groups` | array | Public group slugs (for example `python`), numeric group ids or `/groups/` URLs. |
| `startUrls` | array | Facebook group URLs such as `https://www.facebook.com/groups/bitcoin`. They run together with `groups`. Default: empty. |
| `sortBy` | string | Feed order. Accepted values: `CHRONOLOGICAL` (Newest posts), `RECENT_ACTIVITY` (Recent activity) and `TOP_POSTS` (Most relevant). Default: `CHRONOLOGICAL`. |
| `postsNewerThan` | string | Return only posts created on or after this date, written as `YYYY-MM-DD` (UTC). |
| `maxItems` | integer | Maximum number of posts read per group. Minimum 1, default 30. |

Every entry in `groups` and `startUrls` gets its own limit, so three groups with `maxItems` set to 20 can return up to 60 posts.

The date filter works well with `CHRONOLOGICAL`. With that order Facebook Groups Posts Scraper stops reading a group once it reaches an older post. With the other orders, older posts are skipped but still count toward `maxItems`, so fewer posts may be returned.

Here is a sample input for Facebook Groups Posts Scraper that reads up to 40 of the newest posts from two groups:

```json
{
  "groups": ["python"],
  "startUrls": ["https://www.facebook.com/groups/bitcoin"],
  "sortBy": "CHRONOLOGICAL",
  "postsNewerThan": "2026-10-01",
  "maxItems": 40
}
```

### 📤 Facebook Groups Posts Scraper Output

Facebook Groups Posts Scraper writes one record per Facebook group post to the default dataset. Fields that Facebook does not show for a post are returned as `null`.

```json
{
  "number": 1,
  "id": "1234567890123456",
  "storyId": "UzpfSTEwMDAwMDAwMDAwMDAwMjoxMjM0NTY3ODkwMTIzNDU2",
  "url": "https://www.facebook.com/groups/samplegroup/posts/1234567890123456/",
  "text": "Weekly question: which library do you use for data cleaning? #python #pandas",
  "time": "2026-10-30T09:15:00.000Z",
  "creationTime": 1793351700,
  "author": { "id": "100000000000001", "name": "Jane Doe", "url": null, "type": "User", "isAnonymous": false },
  "group": { "id": "100000000000002", "name": "Sample Python Group", "url": "https://www.facebook.com/groups/samplegroup/" },
  "reactionCount": 48,
  "commentCount": 17,
  "shareCount": 3,
  "topReactions": [ { "reaction": "Like", "count": 40 }, { "reaction": "Love", "count": 8 } ],
  "attachments": [
    { "type": "link", "url": "https://example.com/data-cleaning", "title": "Data cleaning guide", "linkUrl": "https://example.com/data-cleaning", "sourceDomain": "example.com" }
  ],
  "sharedPostUrl": null,
  "sharedPost": null,
  "hashtags": ["pandas", "python"],
  "links": ["https://example.com/data-cleaning"],
  "isTextOnly": false,
  "scrapedAt": "2026-11-06T15:15:41.000Z",
  "groupUrl": "https://www.facebook.com/groups/samplegroup/",
  "groupName": "Sample Python Group",
  "groupPrivacy": "Public group",
  "groupMembers": "12K members",
  "type": "post",
  "sortBy": "CHRONOLOGICAL"
}
```

#### 🧾 Output field guide

- `id` and `storyId` identify the post, and `url` links to it on Facebook.
- `time` and `creationTime` give the creation time in two formats.
- `text` holds the post text, and `hashtags` and `links` list what was found inside it.
- `author` identifies who posted. Anonymous group posts set `isAnonymous` to `true`.
- `group`, `groupName`, `groupPrivacy` and `groupMembers` describe the Facebook group.
- `reactionCount` is the total, and `topReactions` breaks it down by reaction type.
- `attachments` lists photos, albums, videos and link previews with sizes, titles and thumbnails.
- `sharedPost` holds the original post when a member re-shared one.
- `isTextOnly` is `true` for posts without attachments or shared content.
- `sortBy` and `scrapedAt` record how and when Facebook Groups Posts Scraper collected the post.

#### 🚧 Group status record

When a group returns no posts, Facebook Groups Posts Scraper adds one status record for it:

```json
{
  "type": "groupStatus",
  "groupUrl": "https://www.facebook.com/groups/samplegroup/",
  "groupId": "100000000000002",
  "groupName": "Sample Private Group",
  "privacy": "Private group",
  "members": "5.2K members",
  "status": "private_group",
  "message": "Group is private: Facebook only shows its posts to members.",
  "scrapedAt": "2026-11-06T15:20:10.000Z"
}
```

- `private_group` means the group exists but only members can read its posts.
- `not_available_logged_out` means the group was removed, does not exist or needs a login.
- `public_group_no_posts_visible` means the group is public, but Facebook showed no posts to visitors.
- `invalid_input` appears when an entry is not a group slug, id or URL.
- `error` appears when one group could not be processed, and the run continues with the next one.

### 🧵 How to Scrape Posts from a Public Facebook Group

To scrape posts from a public Facebook group with Facebook Groups Posts Scraper, enter the part of the URL after `/groups/`. For `https://www.facebook.com/groups/python`, the value is `python`. Numeric group ids and full URLs work as well.

To follow a group over time, keep `sortBy` on `CHRONOLOGICAL` and set `postsNewerThan` to the day of your last run. Each run of Facebook Groups Posts Scraper then reads only the newest Facebook group posts and stops as soon as it reaches older ones.

### 🎯 Facebook Groups Posts Scraper Use Cases

Facebook Groups Posts Scraper fits many workflows that depend on public Facebook group content.

- **Community research:** see which questions, topics and hashtags come up in a Facebook group.
- **Engagement analysis:** compare reactions, comments and shares across posts and post formats.
- **Brand and topic monitoring:** keep an archive of public group discussions about your market.
- **Content ideas:** collect the most relevant Facebook group posts to learn what members care about.
- **Link tracking:** list the external links and domains that members share most.
- **Moderator reporting:** export a post history to a spreadsheet for community reports.
- **Academic studies:** build a dataset of public Facebook group posts for text or network analysis.

### 💰 Pricing

Facebook Groups Posts Scraper runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` value such as 10 or 20. Check the output, then raise the limit once the data looks right.

### 💡 Tips and Best Practices

- **Start small:** a short test run of Facebook Groups Posts Scraper confirms the Facebook group name and shows the fields before a large collection.
- **Use the newest order for date filters:** `CHRONOLOGICAL` lets the run stop early, which keeps runs short.
- **Clear the sample group:** remove the prefilled `python` if you only want your own groups.
- **Public groups only:** Facebook Groups Posts Scraper returns what a logged-out visitor can see. Private groups return a status record.
- **Plan your limit:** each group has its own `maxItems`, so multiply by the number of groups to estimate the dataset size.
- **Check nulls:** a `null` field means the value was not shown for that post, not that Facebook Groups Posts Scraper failed.
- **Check status records:** if a group is missing from your results, look for its `groupStatus` record.
- **Schedule runs:** use Apify schedules to keep a Facebook group archive up to date.

> **⚠️ Important:** only collect data you are allowed to use. Public Facebook group posts can contain personal data, so follow Facebook's terms and the privacy rules that apply to you, such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Groups Posts Scraper?

Facebook Groups Posts Scraper is an Apify Actor that collects posts from public Facebook groups. It returns text, time, author, reactions, comments, shares, attachments and links in a structured format.

#### 🧭 How do I scrape posts from a Facebook group?

Open Facebook Groups Posts Scraper, enter a group slug or paste a group URL, set `maxItems` and start the run. The posts appear in the dataset.

#### 🔐 Does Facebook Groups Posts Scraper need a Facebook login?

No. Facebook Groups Posts Scraper reads publicly visible content, so no account, cookies or API key are required.

#### 🚫 Can I scrape private Facebook groups?

No. Private groups only show their posts to members. For those groups, Facebook Groups Posts Scraper returns a `groupStatus` record with the status `private_group` and no posts.

#### 🧩 Can I scrape several Facebook groups in one run?

Yes. Add several slugs, ids or URLs, and Facebook Groups Posts Scraper collects up to `maxItems` posts from each Facebook group.

#### 📅 Can I scrape Facebook group posts from a specific date?

Yes. Set `postsNewerThan` to a `YYYY-MM-DD` date. Use `CHRONOLOGICAL` order so Facebook Groups Posts Scraper stops once it reaches older posts.

#### 📦 What data does Facebook Groups Posts Scraper return?

Each record includes ids, links, time, text, author, group details, reaction, comment and share counts, attachments, shared posts, hashtags and links.

#### 🔀 What is the difference between the sort orders?

`CHRONOLOGICAL` returns the newest posts first, `RECENT_ACTIVITY` orders posts by recent activity in the group, and `TOP_POSTS` uses Facebook's own relevance order.

#### 🧐 Why did a Facebook group return no posts?

The Facebook group may be private, removed or visible only after login. Facebook Groups Posts Scraper then writes a `groupStatus` record that gives the reason. A date filter can also remove every post it reads.

#### 📊 Can I export Facebook group posts to CSV or Excel?

Yes. Any Apify dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the Apify API.

#### ⚖️ Is it legal to scrape Facebook group posts?

Facebook Groups Posts Scraper collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms, local laws and privacy rules before you store or share personal information.

### 📞 Support

If you have questions, ideas for new fields or find a Facebook group that does not return the expected posts, send the group name and the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

Public group slugs (e.g. python), numeric group IDs or /groups/ URLs.

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

Group URLs, e.g. https://www.facebook.com/groups/bitcoin. Scraped together with 'Groups'.

## `sortBy` (type: `string`):

Order of the group feed. 'Posts newer than' works best with 'Newest posts'.

## `postsNewerThan` (type: `string`):

Only return posts created on or after this date (YYYY-MM-DD, UTC). With 'Newest posts' the group is no longer read once an older post is reached; with other sort orders older posts are skipped but still count toward 'Max items'.

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

Maximum number of posts read per group - every entry of 'Groups' and 'Start URLs' gets its own limit, so N groups return up to N x this value. The date filter is applied to these posts, so fewer may be returned.

## Actor input object example

```json
{
  "groups": [
    "python"
  ],
  "startUrls": [
    "https://www.facebook.com/groups/bitcoin"
  ],
  "sortBy": "CHRONOLOGICAL",
  "maxItems": 15
}
```

# Actor output Schema

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

Structured records extracted by Facebook Groups Posts Scraper and stored in the run's default dataset.

# 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": [
        "python"
    ],
    "startUrls": [
        "https://www.facebook.com/groups/bitcoin"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-groups-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": ["python"],
    "startUrls": ["https://www.facebook.com/groups/bitcoin"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-groups-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": [
    "python"
  ],
  "startUrls": [
    "https://www.facebook.com/groups/bitcoin"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-groups-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-groups-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/sQElFilMcGc2GKefA/builds/cLqkrAqgE7V08TdBF/openapi.json
