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

Collect posts from public Facebook groups with text, author, media, dates and engagement. No login or cookies. Private groups free.

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

## Pricing

from $1.50 / 1,000 group 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 Group Posts Scraper: Public Groups

Collect posts from public Facebook groups without logging in. Get post text, the author's public name and profile link, publication dates, photos, available video addresses, links, public engagement counts, and the group's name and member count in a dataset you can export as JSON, CSV, or Excel.

Use it to find leads in industry groups (real estate, jobs, travel), listen to community conversations about a product or brand, or build a research dataset from public discussions. Private groups are never read.

### What does Facebook Group Posts Scraper do?

- Reads the post feed of one or more **public** Facebook groups, newest posts first.
- Returns one row per post: address, time, author, text, images, videos, outgoing links, reactions, comments, and shares.
- Adds the group name and the member count Facebook shows, such as `904.0K members`.
- Filters by publication date and stops at your maximum number of posts.
- Returns a free row for a private, removed, or unavailable group.

### Quick start

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

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

### Input

| Field | Meaning | Default |
|---|---|---|
| `urls` | 1–100 public Facebook group addresses, such as `https://www.facebook.com/groups/python/` | Required |
| `maxItems` | Total posts across all requested groups, from 1 to 10,000 | 10 |
| `since` | Earliest publication date, YYYY-MM-DD | No lower date bound |
| `until` | Latest publication date, YYYY-MM-DD | No upper date bound |
| `proxyCountry` | Two-letter connection country | US |

Links to a post inside a group are accepted and read as the whole group. Links to a group's member, about, or event sections are refused: only group posts are collected.

Hosted runs use Apify residential proxy connections. The Actor sends no cookies, does not keep response cookies, and does not log in. Private groups, login walls, and access restrictions produce a free `blocked` row. Temporary network failures are retried twice; access blocks are not bypassed.

### Output

Each `ok` row contains:

- `groupUrl`, `groupName`, and `groupMembers` (the member count as Facebook shows it).
- `postId`, `url`, `publishedAt`, `text`, `type`, and `fetchedAt`.
- `authorName` and `authorUrl` for the public author when available.
- `images`, `videos`, and `externalLinks` as lists of addresses.
- `reactions`, `comments`, `shares`, and `videoViews` as public counts when provided.

`type` is `text`, `photo`, `video`, `reel`, `link`, or `share`. For a shared post, `text` holds only the sharer's own words. A missing value is returned as `null`, and missing media lists are empty. Unavailable counts are never replaced by zero. Media addresses may expire. Comments themselves, private content, and member lists are not collected.

Example from the public Python group, with author details removed (counts change over time):

```json
{
  "groupUrl": "https://www.facebook.com/groups/python/",
  "groupName": "Python",
  "groupMembers": "904.0K members",
  "status": "ok",
  "reason": null,
  "postId": "2330392087801342",
  "url": "https://www.facebook.com/groups/python/posts/2330392087801342/",
  "publishedAt": "2026-10-07T21:55:47.000Z",
  "text": "We have just reached \nthe mark of 900K\n🐍",
  "type": "text",
  "images": [],
  "externalLinks": [],
  "reactions": 1,
  "comments": 1,
  "shares": 0,
  "videoViews": null
}
```

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

### Price

**$2 per 1,000 posts on Free**, $1.80 on Bronze, $1.60 on Silver, and $1.50 on Gold and above, plus a **$0.02 start fee per run** on every plan, with no date-filter fee. Rows for private, blocked, or empty groups have no charge. The Actor stops collecting posts at your maximum cost per run. Your Apify plan may separately account for compute and proxy usage.

### Limits and reliability

Facebook controls which posts, media, and engagement counts visitors can see without login. Results may be incomplete; this is not an archive guarantee. The Actor reads groups one at a time, pauses between feed requests, removes duplicate posts within a run, and stops if Facebook repeats a page. A safety limit of 500 feed requests per group bounds long date-filtered scans; reaching it produces a free row. Large scans can reach the run timeout before the requested maximum. Restarting a run may return posts already saved in a previous run.

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

### Responsible use

Group posts and author names are personal data. You are responsible for having a lawful basis to collect and process them (for example under the GDPR or other applicable privacy laws), respecting Facebook's terms, limiting retention, and honoring rights requests such as deletion. Public availability does not itself establish a lawful basis. This Actor does not collect member lists, private groups, or anything behind a login. It is not affiliated with or endorsed by Meta or Facebook.

### Related Actors

Use [Facebook Posts Scraper](https://apify.com/earlytern/facebook-posts-scraper) for public page posts and [Facebook Pages Scraper](https://apify.com/earlytern/facebook-pages-scraper) for page details.

### FAQ

**Can I collect posts from a private group?** No. Only public groups whose posts anyone can see without login are supported. A private group returns a free `blocked` row.

**Can I get the list of group members?** No. The Actor returns posts only, with the member count Facebook shows on the group page.

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

**Why are some counts or media missing?** Facebook does not show every field to visitors. Missing counts remain empty rather than being estimated.

# Changelog

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

# Actor input Schema

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

Public Facebook groups whose posts anyone can see without login. Private groups return a free row.

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

The total number of posts to return across all groups.

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

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

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

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

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

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

## Actor input object example

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

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.facebook.com/groups/python/"
    ],
    "maxItems": 3
};

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

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

```

## MCP server setup

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