# Facebook Groups Scraper: Public Group Posts, No Login (`locaihost/facebook-groups`) Actor

Scrape posts from public Facebook groups: text, author name, time, reactions by type, comments and shares, photos, videos and links, plus each group's members, privacy and description. Member change since your last run. No login. $2 per 1,000 posts.

- **URL**: https://apify.com/locaihost/facebook-groups.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (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.65 / 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 Groups Scraper: Public Group Posts, No Login

Give it a list of public Facebook groups. You get the posts from each group with their text, time, the poster's public name and profile link, reactions split by type, comment and share counts, photos, videos and links. Each group also gets one free row with its member count, privacy, description and creation date. You don't need a Facebook account or cookies.

### What does it return?

One **post row** per post (paid):

- post id, link, text and hashtags
- time posted (ISO date and time)
- the poster's public display name and profile link (left empty for anonymous posts)
- reactions in total and split into like, love, care, haha, wow, sad and angry, where Facebook shows them
- number of comments and number of shares
- photo links, video links and a media list with size and video length
- video plays for video posts
- the first outside link in the post, and the link to the post it shares, if any
- the group's id, name and link

One **group row** per group (free):

- group name, id, link and the name in its link
- privacy (public or private) and member count
- members at the last run and the change since then
- description, creation date (when shown) and cover photo

A free **summary row** comes last: groups read, posts per group, the five posts with the most reactions, the date range covered and what was left out.

### How do I use it?

1. Paste group links under **Facebook groups**, one per line. Bare group ids like `874728723021553` and group names from the link work too.
2. Set how many posts you want per group (20 by default).
3. Start the run. Rows appear in the dataset as each group is read.

Example input:

```json
{
  "groups": ["https://www.facebook.com/groups/874728723021553/"],
  "maxPostsPerGroup": 50,
  "sortBy": "newest",
  "onlyNew": true
}
```

Inputs copied from other tools work as they are: `startUrls`, `groupUrls`, `resultsLimit`, `maxItems`, `maxPosts`, `onlyPostsNewerThan`, `onlyPostsNewerThanHours`, `viewOption`, `search` and `monitoringMode` are read too.

### Which links work?

Group links in any of the usual forms: `facebook.com/groups/874728723021553`, `facebook.com/groups/group.name`, `m.facebook.com/groups/...`, and links to one of a group's posts or its About tab. A link to a single post reads that whole group.

Pages, personal profiles, events, share links and Marketplace are not supported. They get a free status row that says so, and nothing is charged for them.

### Can it read private groups?

No. Only public groups can be read, because private groups need a member login and this tool never logs in. A private group gets a free status row with its public name, and nothing is charged.

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

Up to 2,000 per group. Facebook hands out a group's posts about three at a time, so large counts take longer. If Facebook stops giving a logged-out visitor older posts before your number is reached, the run says so in its status message, the summary row marks that group, and you are only charged for what you got. If Facebook shows only the posts on the group page itself, you get those plus a free `feed-limited` status row.

### Which order do the posts come in?

Pick **Order**: newest posts first (the default), recent activity (posts with new comments come up) or top posts. Newest first works best with dates and "Only posts not returned before", because paging can stop as soon as it reaches posts you already have.

### Can I get only posts I have not seen yet?

Yes. Turn on **Only posts not returned before**. The run remembers which posts it returned for the same list of groups and leaves them out next time, so a daily schedule gives you just the new posts. The memory is kept in your own account and is separate for each list of groups. Repeats are never charged.

You can also set **Posts since** and **Posts until** to a date like `2026-11-01` or a period like `7 days`, and keep or drop posts by words in their text. Posts left out by these filters are not charged.

### Does it track member growth?

Yes, always. Every group row shows the members at the last run that read the same group and the change since then. The first run for a group leaves those two fields empty.

### Does it collect comments or the people who reacted?

No. Comments come as a count only, and reactions as counts by type. The scraper never collects who commented or reacted, or what they wrote, and it never reads a group's member list or admins.

### Does it need my Facebook login or cookies?

No. It reads what Facebook shows any logged-out visitor on a public group. You never enter an account, a password or cookies.

### What personal data does it collect?

Only what a public group shows any logged-out visitor: public posts and the public display name and profile link of whoever posted them. It does not collect private contact details, member lists, commenters or reactors, and it leaves out the original author of a shared post. You are responsible for using the data lawfully where you are, including privacy rules such as the GDPR, and for respecting the group's own rules.

### What fields does a post row have?

| field | meaning |
| --- | --- |
| `type` | `post` |
| `postId` | Facebook's id for the post |
| `url` | Link to the post |
| `text` | Post text |
| `hashtags` | Hashtags in the text |
| `createdAt` | When the post was published (ISO) |
| `authorName` | The poster's public display name |
| `authorUrl` | Link to the poster's public profile, empty for anonymous posts |
| `reactions` | All reactions |
| `reactionsByType` | Reactions split by like, love, care, haha, wow, sad and angry |
| `commentsCount` | Number of comments |
| `sharesCount` | Number of shares |
| `media` | Photos and videos: type, url, thumbnailUrl, videoUrl, width, height, durationSec |
| `imageUrls` | Photo links |
| `videoUrls` | Video links |
| `isVideo` | True for video posts |
| `videoViews` | Video plays |
| `linkUrl` | First outside link in the post |
| `sharedPostUrl` | Link to the post this one shares |
| `groupId` | Facebook's id for the group |
| `groupName` | Group name |
| `groupUrl` | Link to the group |
| `scrapedAt` | When the row was read |

### What fields does a group row have?

| field | meaning |
| --- | --- |
| `type` | `group` |
| `groupId` | Facebook's id for the group |
| `groupName` | Group name |
| `groupUrl` | Link to the group |
| `vanity` | The group's name in its link, when it has one |
| `privacy` | `public` or `private` |
| `memberCount` | Members |
| `memberCountBefore` | Members at the last run that read this group |
| `memberCountChange` | Change in members since that run |
| `description` | The group's description |
| `createdAt` | When the group was created, when shown |
| `coverUrl` | Cover photo |
| `input` | The input this row came from |
| `scrapedAt` | When the row was read |

### How much does it cost?

You pay per post row: $3.00 per 1,000 posts ($2.25 on Scale, $1.65 on Business), plus $0.003 when a run starts. Group rows, status rows and the summary row are free. Set a maximum charge for the run and it stops cleanly when that is reached.

On the free Apify plan each run returns up to 1,000 rows. Paid plans have no row limit.

If your date or word filters leave very few posts for the pages read, the run stops early with a message asking you to widen them, so a filter that matches almost nothing never runs for long.

### What happens when Facebook blocks a request?

Facebook sometimes answers a logged-out visitor with a login wall. The scraper then starts a fresh session on a different kind of address and tries again, up to three times per group. If a group still will not load, you get a free status row for it, the other groups carry on, and you can re-run just that group later. A run with nothing returned is never charged.

### What do the status rows mean?

| status | meaning |
| --- | --- |
| `private` | A private group, which needs a member login and is never read |
| `not-found` | The group does not exist or has been removed |
| `unsupported` | A Page, profile, event, Marketplace or other link that is not a group |
| `blocked` | Facebook kept asking for a login for this group; try it again later |
| `no-posts` | The group loaded but shows no public posts |
| `feed-limited` | Facebook showed only the posts on the group page, so fewer posts came back |

### Can I use it from my own code or an agent?

Yes. Run it through the Apify API or any Apify client, or connect it as a tool through the Apify MCP server. The input is plain JSON and every row has a `type` field (`post`, `group`, `status` or `summary`), so you can filter rows easily. The dataset has a Posts view, a Groups view and a Summary view.

### Something is missing or broken. What should I do?

Open an issue on the Issues tab with the group link and what you expected. Facebook changes its pages often; reports help get fixes out fast.

# Changelog

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

# Actor input Schema

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

Group links (facebook.com/groups/874728723021553, facebook.com/groups/name, m.facebook.com links), bare group ids or group names. A link to one of a group's posts or its About tab reads that group. Only public groups can be read; private groups, Pages, profiles and Marketplace come back as a free status row.

## `maxPostsPerGroup` (type: `integer`):

How many posts to return from each group. Facebook hands out about 3 posts per request, so large numbers take longer.

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

The order Facebook gives the group's posts in. Newest first works best with dates and "Only posts not returned before".

## `onlyNew` (type: `boolean`):

Remembers which posts this exact list of groups returned in earlier runs and leaves them out, so a daily schedule only brings new posts. Group rows still come every run. Repeats are never charged.

## `postsSince` (type: `string`):

Leave out posts older than this. A date (2026-11-01) or a period such as "7 days", "2 weeks" or "3 months". With newest first, paging stops once the posts get older than this.

## `postsUntil` (type: `string`):

Leave out posts newer than this. A date (2026-11-01) or a period such as "1 day".

## `keywords` (type: `array`):

Keep a post only when its text contains at least one of these words or phrases (not case sensitive). Posts left out are not charged.

## `excludeKeywords` (type: `array`):

Drop any post whose text contains one of these words or phrases (not case sensitive).

## `summaryRow` (type: `boolean`):

A free last row with the groups read, posts per group, the top posts by reactions, the date range and what was left out. Never charged.

## Actor input object example

```json
{
  "groups": [
    "https://www.facebook.com/groups/874728723021553/",
    "874728723021553"
  ],
  "maxPostsPerGroup": 20,
  "sortBy": "newest",
  "onlyNew": false,
  "postsSince": "7 days",
  "postsUntil": "2026-11-01",
  "keywords": [
    "for sale",
    "hiring"
  ],
  "excludeKeywords": [
    "spam"
  ],
  "summaryRow": true
}
```

# Actor output Schema

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

Post rows

## `groups` (type: `string`):

Group rows with members, privacy and description

## `summary` (type: `string`):

The free summary row

# 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/874728723021553/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/facebook-groups").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/874728723021553/"] }

# Run the Actor and wait for it to finish
run = client.actor("locaihost/facebook-groups").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/874728723021553/"
  ]
}' |
apify call locaihost/facebook-groups --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,locaihost/facebook-groups"
        }
    }
}
```

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/5wvUZ6sXdWeJADRBM/builds/bEgO9YnggDwd4SUDk/openapi.json
