# Facebook Communities Scraper (`icoe-man/facebook-communities-scraper`) Actor

A facebook groups scraper for public groups you name by link: collect group details and group posts as a clean table. No member lists. Export JSON, CSV or Excel.

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

## Pricing

Pay per event

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 Communities Scraper

See how public Facebook groups compare in size and activity, or save their posts for research. Paste the group links and choose Group details to get names, descriptions and member counts, or Group posts to collect public discussions. Start with the newest posts, the posts with the latest activity or the top posts. You can also narrow the results to a date range. Download the results as a table or use them in other tools. The tool skips private groups and doesn't collect member lists.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Use full web addresses. If you have a short link, open it and copy the full address from your browser's address bar. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Group details

Get each public Facebook group's name and description, plus its member count and recent post counts. In `group-get` mode, fill in **Group links** (up to 100 entries). You get one community per entry. Each community appears in its own row and counts as one **Group details result** charge.

Example result for one community:

```json
{
  "status": "ok",
  "type": "community",
  "platform": "facebook",
  "id": "2414514615327716",
  "url": "https://www.facebook.com/groups/2414514615327716/",
  "name": "Example Public Group",
  "description": "A short example description of a public group, shown for illustration.",
  "members": 15200,
  "isPrivate": false,
  "createdAt": "2019-04-12T09:30:00Z",
  "details": {
    "facebook": {
      "visibility": "Public",
      "postsLastDay": 12,
      "postsLastMonth": 340
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "url": "https://www.facebook.com/groups/justforjokesgroup",
    "maxItems": 1
  }
}
```

#### Group posts

Get public Facebook group posts with their text, dates, and like and comment counts, newest first by default. In `group-posts` mode, fill in **Group links** (up to 100 entries), and **Order** (optional), **Posts from** (optional), **Posts before** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each post appears in its own row and counts as one **Group post result** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "facebook",
  "id": "1234567890123456",
  "url": "https://www.facebook.com/groups/2414514615327716/permalink/1234567890123456/",
  "author": {
    "id": "example_user",
    "displayName": "example_user"
  },
  "text": "A short example sentence about a group topic, shown for illustration.",
  "createdAt": "2026-11-12T16:20:00Z",
  "metrics": {
    "likes": 48,
    "comments": 6,
    "views": null
  },
  "hashtags": [],
  "media": [],
  "details": {
    "facebook": {
      "reactions": {
        "like": 1840,
        "love": 312,
        "care": 25,
        "haha": 4,
        "wow": 61,
        "sad": 2,
        "angry": 1
      },
      "link": null
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "url": "https://www.facebook.com/groups/justforjokesgroup",
    "maxItems": 1
  }
}
```

### Ways to use the data

- Size up a public group by checking how many members it has and how many posts it had recently.
- Find topics that keep coming up in a group's public posts.
- Paste links to public groups you know and compare what each group says about the same topic.
- Save public group posts over time so you can find them again later.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `groupUrls` | Group links | Paste links to public Facebook groups, such as https://www.facebook.com/groups/justforjokesgroup. Links with a group ID number work too. |
| `sortBy` | Order | The default is newest (newest posts first). Choose recent_activity to start with posts that had activity most recently, or top to start with top posts. |
| `postedAfter` | Posts from | Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date. You pay only for posts in the results. The tool may filter by date after reading posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches. |
| `postedBefore` | Posts before | Enter a date, such as 2026-11-15 (UTC), to include only posts from before that day. Leave blank for no end date. The tool may filter by date after reading posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches. |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Group details. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "group-get",
  "groupUrls": [
    "https://www.facebook.com/groups/justforjokesgroup"
  ],
  "maxItems": 1,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Group details result | $5.031 | $4.025 | $4.025 | $4.025 | $4.025 | $4.025 |
| Group post result | $3.751 | $3.001 | $2.772 | $2.325 | $2.325 | $2.325 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### What do I get with each option?

Group details gives you the name and description of each group, plus its member count and recent post counts. Group posts gives you the text and date of each public post, along with its like and comment counts.

#### Which Facebook groups can I use?

You can collect data from public Facebook groups only. The tool doesn't collect member or administrator lists.

#### Do I need a Facebook account to use this tool?

No. The tool collects only public information. You don't need to sign in to Facebook or share browser cookies.

#### How do I limit the results, and what do I pay for?

Set Result limit per target to the most results you want from each group. Only results you receive count toward the cost. Errors and empty results are free.

#### Is this tool affiliated with Facebook or Meta?

No. This is an independent tool. Neither Facebook nor Meta is affiliated with it, endorses it or sponsors it. The tool collects only public information from Facebook.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Facebook. All trademarks belong to their owners.

# Actor input Schema

## `mode` (type: `string`):

Choose one type of result per run, then fill in the fields for that choice.

## `groupUrls` (type: `array`):

Paste links to public Facebook groups, such as https://www.facebook.com/groups/justforjokesgroup. Links with a group ID number work too.

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

The default is newest (newest posts first). Choose recent_activity to start with posts that had activity most recently, or top to start with top posts.

## `postedAfter` (type: `string`):

Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date. You pay only for posts in the results. The tool may filter by date after reading posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches.

## `postedBefore` (type: `string`):

Enter a date, such as 2026-11-15 (UTC), to include only posts from before that day. Leave blank for no end date. The tool may filter by date after reading posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches.

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

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Group details.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "group-get",
  "groupUrls": [
    "https://www.facebook.com/groups/justforjokesgroup"
  ],
  "maxItems": 1,
  "freshness": "standard"
}
```

# Actor output Schema

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

See everything this run collected in one table.

# 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 = {
    "mode": "group-get",
    "groupUrls": [
        "https://www.facebook.com/groups/justforjokesgroup"
    ],
    "maxItems": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/facebook-communities-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 = {
    "mode": "group-get",
    "groupUrls": ["https://www.facebook.com/groups/justforjokesgroup"],
    "maxItems": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/facebook-communities-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 '{
  "mode": "group-get",
  "groupUrls": [
    "https://www.facebook.com/groups/justforjokesgroup"
  ],
  "maxItems": 1
}' |
apify call icoe-man/facebook-communities-scraper --silent --output-dataset

```

## MCP server setup

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