# Facebook Group Details Scraper: Members, Activity (`automation_craft/facebook-group-details-scraper`) Actor

Get Facebook group details by link, id or name with no login, public and private groups: 1,000 a run or one at a time by real-time API. Rows carry name, privacy, members and About facts: exact members, posts last day and month, created date, rules, locations, admins. JSON, CSV, Excel; misses free.

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

## Pricing

from $0.28 / 1,000 groups

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 Details Scraper: Members, Activity

**Get Facebook group details from the groups you already know, without a login**: paste group links, numeric group ids or group names and get one row per group with its name, link, id, public or private, member count and membership questions. **Group details** (on by default) adds Facebook's own About facts: the exact member count, posts in the last day and month, created date and name history, description with its links and e-mails, locations, topic tags, admin and moderator counts and names, and the group's rules.

No Facebook account, cookie or password is ever used. Read up to 1,000 groups a run and export them as JSON, CSV or Excel, run on a schedule, or ask for up to 5 groups at a time through the real-time API and get the answer in the HTTP response.

#### At a glance

- **Any form of group link**: a group link (also a post, about, members or permalink link of the group, on www., m., web. or mbasic.), a share link (`facebook.com/share/g/...`), a numeric group id or a group name.
- **Public and private groups**: Facebook shows visitors a private group's name, members and About facts (not its admins); this Actor delivers those (never its posts or members).
- **One row per group per run**: two links to the same group give one row, charged once.
- **Every input accounted for**: free rows list, by position in your list, the links that led to no group, repeats, links your filters left out and links that could not be read, and none of them is charged.
- **Two ways in**: a normal run (the input form, a dataset, filters, up to 1,000 groups) or the real-time API (one HTTP request, up to 5 groups, the records in the response).

### Quick start

1. Open the **Input** tab and paste your groups under **Group links, ids or names**, one per line (up to 1,000).
2. Leave **Group details** on for the exact members, activity, created date, admins and rules, or turn it off for the cheapest rows (name, privacy and the rounded member count).
3. Optionally keep only some groups: public or private, a member range, posts per day or month, a location, a created date range, or words to leave out.
4. Click **Start**. Group rows appear in the **Output** tab as they are read; download them as JSON, CSV or Excel.

### What you get

Every delivered group is one row with `type: "group"`. The fill rates below were measured on one run of this Actor on 2026-11-12: 1,000 group links (590 public, 410 private groups) with Group details on, all 1,000 delivered.

| Field | What it holds | Filled |
|---|---|---|
| `groupId` | Facebook's numeric group id, as a string | 100% |
| `name` | The group's name as Facebook shows it | 100% |
| `url` | The group's link (its vanity name when it has one, else its id) | 100% |
| `vanity` | The group's vanity name | 53% |
| `privacy`, `privacyText` | `public` or `private`, and Facebook's label ("Public group") | 100% |
| `membersCount`, `membersText` | The member count (exact with Group details, else Facebook's rounded count as a number) and Facebook's text ("70.6K members") | 100% |
| `membersCountIsApproximate` | true when the count is the rounded one | 100% |
| `hasMembershipQuestions` | Whether joining asks membership questions | 100% |
| `joinState` | What a logged out visitor can do, for example `CAN_JOIN` or `CANNOT_JOIN_OR_REQUEST` | 100% |
| `isBuySellGroup`, `tabs` | The group's tabs (a buy and sell group has `BUY_SELL_GROUP_DISCUSSIONS`) | 100% |
| `pausedNotice` | "An admin paused this group on ..." when it is paused | 1% |
| `linkedProfile` | The Page or person the group is linked to (`type`, `id`, `name`, `url`) | 16% |
| `coverPhotoUrl`, `profilePictureUrl` | The group's cover photo and profile picture | 95%, 100% |
| `coverPhotoWidth`, `coverPhotoHeight` | The cover photo's size in pixels | 95% |
| `themeColor` | The group's theme colour as Facebook serves it (eight hex digits, the first two the opacity: `FFED41A5`) | 100% |
| `source`, `input` | Always `link` here, and the place of the value in your list, counted from 1 (`groupUrls[3]` is the third value; the free outcome rows give the same positions) | 100% |
| `inputUrl` | The value you gave for this group, cut before any `?` or `#` (null when what is left could hold a password or a token) | 100% |
| `detailsStatus` | What happened to the Group details add-on for this row | 100% |

With **Group details** on, the same row also carries:

| Field | What it holds | Filled |
|---|---|---|
| `membersExact`, `membersExactText` | The exact member count ("70,612 total members") | 100% |
| `postsLastDay`, `postsLastMonth` | Posts in the last day and the last month; the highest monthly count read was 10,000 (on 17 of the 1,000 groups), so a busier group may also read 10,000 | 100% |
| `postsPerDayAverage` | `postsLastMonth` divided by 30 | 100% |
| `newMembersText`, `newMembersCount`, `newMembersPeriod` | Facebook's line about recent joins as served, its number (0 for "No new members") and its period (`week`) | 100% |
| `createdAt`, `historyText`, `nameLastChangedOn` | Created time, Facebook's history sentence, and the last name change when the sentence gives one (English) | 100%, 100%, 30% |
| `description`, `descriptionLinks` | The description exactly as served, and the links Facebook marks in it | 95%, 20% |
| `emails`, `websites` | E-mail addresses and web addresses written in the description | 4%, 21% |
| `locations` | The group's own locations (`id`, `name`) | 58% (54% of public, 63% of private groups) |
| `tags` | Facebook's topic tags (`id`, `name`) | 23% |
| `visibility`, `visibilityText`, `privacyDescription` | "Visible", "Anyone can find this group.", and the privacy sentence | 100% |
| `adminCount`, `moderatorCount`, `leaderCount` | Admins, moderators and both together | 100% (on private groups all three read 0: Facebook's answer to a visitor carries no admins there, so that 0 is not a verified count) |
| `admins`, `moderators`, `adminsSentence` | The admins and moderators Facebook names to visitors (`id`, `name`, `url`, `type`) and its sentence | 58%, 18%, 58% (admins: 98% of public groups, none of private groups) |
| `rules`, `rulesCount` | The group's rules (`title`, `text`), up to 10, and how many | 64% have rules |

A note on new members: Facebook shows logged out visitors "No new members in the last week" on almost every group (1,000 of 1,000 groups in the run above), so `newMembersCount` is usually 0. It is delivered as Facebook serves it; it is not a growth figure you can rely on.

What a private group gives: every About fact except its admins (on all 410 private groups of the run above: exact members, activity, created date, description on 99%, rules on 76%, locations on 63%, admin names on none).

`detailsStatus` is `read` when the About facts were read and charged, `not_requested` when the add-on is off, `failed` when Facebook did not answer the About query (not charged), `read_in_part` when its answer carried an error inside one of these fields (delivered, not charged), and `allowance_spent` when the add-on's own allowance had no room left (not charged). On the real-time API it can also be `charge_refused` (see below).

#### Free rows

- `links`: one per outcome of your group links (delivered, repeat, not found, share link not resolved, filtered, lookup failed, not reached), with the positions in your list (200 a row; more rows when needed).
- `skipped`: entries of your list that could not be used (not a Facebook link, a Facebook link that is not a group, a Facebook search link), one row per reason, with their positions.
- `status`: written instead of everything else when the input cannot be used as given (`status: "invalid_input"` and the problems found); nothing is fetched and only the start fee is charged.
- `summary`: the run's counters, requests, bytes and billing.

#### Example group row (Group details on, shortened)

```json
{
  "type": "group",
  "groupId": "1640359419585652",
  "name": "Houston Real Estate Investors",
  "url": "https://www.facebook.com/groups/houstonrealestateinvestors/",
  "vanity": "houstonrealestateinvestors",
  "privacy": "public",
  "privacyText": "Public group",
  "membersCount": 70612,
  "membersCountIsApproximate": false,
  "membersText": "70.6K members",
  "hasMembershipQuestions": false,
  "joinState": "CAN_JOIN",
  "themeColor": "FFED41A5",
  "coverPhotoWidth": 2000,
  "coverPhotoHeight": 741,
  "source": "link",
  "input": "groupUrls[1]",
  "inputUrl": "https://www.facebook.com/groups/houstonrealestateinvestors/",
  "detailsStatus": "read",
  "membersExact": 70612,
  "membersExactText": "70,612 total members",
  "newMembersText": "No new members in the last week",
  "newMembersCount": 0,
  "newMembersPeriod": "week",
  "postsLastDay": 30,
  "postsLastMonth": 540,
  "postsPerDayAverage": 18,
  "createdAt": "2015-11-15T16:12:06.000Z",
  "historyText": "Group created on November 15, 2015",
  "locations": [{ "id": "115963528414384", "name": "Houston, Texas" }],
  "visibility": "Visible",
  "adminCount": 3,
  "moderatorCount": 8,
  "rulesCount": 2
}
```

### How much does it cost to scrape Facebook group details?

Pay per event: you pay for the groups delivered and their Group details, never for a link that leads to no group, a repeat, a group your filters leave out, or a read Facebook did not answer.

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Group (`group`), per 1,000 groups | $0.40 | $0.36 | $0.33 | $0.284 |
| Group lookup (`group_lookup`), per 1,000 groups | $0.70 | $0.64 | $0.58 | $0.50 |
| Group details (`group_details`), per 1,000 groups, add-on | $1.70 | $1.50 | $1.40 | $1.20 |
| Real-time API request (`api_request`), per request, real-time API only | $0.005 | $0.005 | $0.005 | $0.005 |
| Actor start (`apify-actor-start`), once per run, input interface only | $0.01 | $0.01 | $0.01 | $0.01 |

Platinum and Diamond plans pay the Gold price. There is no discount on the Actor start event or on the Real-time API request event. The Store pricing card shows these same prices per 1,000 events: "$0.284 / 1,000" on the Group row means one group costs 0.0284 cents on the Gold plan, and "$5.00 / 1,000" on the Real-time API request row means one request costs 0.5 cents.

- **Group** is charged once per group per run (or per real-time API request), whatever number of your links lead to it.
- **Group lookup** is charged with every delivered group: it pays for reading your link, id, name or share link on Facebook.
- **Group details** is charged only for a delivered group whose About facts were read (`detailsStatus: "read"`).
- **Actor start** is charged once per run of the input interface, per GB of run memory; this Actor runs at 256 MB, so a run pays one. The real-time API never charges it.
- **Real-time API request** is charged once per HTTP request that delivers at least one group, on top of that request's Group events.

So one group from a link costs $0.000784 on the Gold plan, and $0.001984 with Group details: $1.984 per 1,000 groups (Free $2.80, Bronze $2.50, Silver $2.31).

Worked examples on the Gold plan: the prefill (2 groups with Group details) costs $0.01 + 2 x $0.001984 = about $0.014; 1,000 group links cost $0.01 + $1.984 = $1.994 with Group details and $0.01 + $0.784 = $0.794 without. On the real-time API one group with Group details costs $0.005 + $0.001984 = about $0.007, and 5 groups in one `POST /groups` cost $0.005 + 5 x $0.001984 = about $0.015.

#### The work allowance

Work that earns nothing (links that lead to no group, groups your filters leave out, refused calls) is bounded by an allowance in real cost that grows with every event the run bills. A run whose filters leave out nearly every group stops early with `stoppedBy: "work_allowance"` in its summary; the rows already delivered stay delivered and are charged once. The Group details add-on reads from a small allowance of its own: when it is spent, the rest of the rows go out without the add-on, not charged for it, with `detailsStatus: "allowance_spent"`.

### Input

| Setting | What it does |
|---|---|
| `groupUrls` | Group links, share links, numeric group ids or group names, up to 1,000 a run (also read from `startUrls`, as strings or `{"url": ...}`, `groupLinks`, `groupIds` and `urls`). |
| `groupDetails` | The Group details add-on (on when left out; also read from `fetchDetails`, `enrichGroupDetails` and `includeDetails`). |
| `includeRules` | With Group details on: deliver the rules and their count (on when left out). The price does not change. |
| `maxItems` | The most groups delivered in the run (also read from `maxResults` and `maxGroups`). |
| `privacy` | `any`, `public` or `private`. |
| `minMembers`, `maxMembers` | A member range. Without Group details a rounded count that could be on either side of your bound is left out, free; with Group details the exact count decides. |
| `excludeKeywords` | Leave out groups whose name (and, with Group details, description, topic tags or locations) holds any of these words, up to 50. |
| `minPostsPerDay`, `minPostsPerMonth`, `locationContains`, `createdAfter`, `createdBefore` | Filters on the About facts; each keeps Group details on. |
| `maxConcurrency` | Groups read at once, 1 to 5 (1 when left out). |
| `proxyCountry` | The country of the Apify residential exits that read the groups, as a two letter code (US when left out). |

A run with no group in its input reads the sample: the two prefill groups (a public group by its name and a private group by its id), with Group details off unless you turn it on. An unknown setting name refuses the run (free but for the start fee), so a typo never runs something you did not mean; a keyword setting is refused the same way, because this Actor reads groups you name and does not search.

### Real-time API (server interface)

This Actor is also a Server Actor: next to the input interface above (normal runs) it answers plain HTTP requests in real time, with no run to start and no dataset to read. Send a group link, id or name and get the group record back in the response. Use it inside your own app, an automation step or an AI agent that needs one group now.

The server URL is `https://automation-craft--facebook-group-details-scraper.apify.actor`. Authenticate with your Apify token in the `Authorization: Bearer <YOUR_APIFY_TOKEN>` header, the same way as for the Apify API.

| Endpoint | What it does |
|---|---|
| `GET /group?url=<group link, id or name>&details=<true or false>` | One group. Returns the group record as JSON, the same fields as a dataset row of the input interface. `details` is `true` when left out. The group can also be sent as `id`, `group` or `groupUrl`. |
| `POST /groups` with `{"groups": ["...", "..."], "details": true}` | Up to 5 groups in one request, each as its own element of the list (a text or a whole number). Returns a JSON list with one record per element, in the order given. A value that is not found, invalid or a duplicate gets a free status record in its place. |
| `GET /` | A short JSON description of the endpoints, the limits and the charges. Free. |

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://automation-craft--facebook-group-details-scraper.apify.actor/group?url=https://www.facebook.com/groups/selftaughtprogrammers/&details=true"
```

```bash
curl -X POST -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d '{"groups": ["https://www.facebook.com/groups/selftaughtprogrammers/", "775643933361964"], "details": true}' \
  "https://automation-craft--facebook-group-details-scraper.apify.actor/groups"
```

Send the `url` value of `GET /group` as it is (`?url=https://www.facebook.com/groups/selftaughtprogrammers/`) or fully encoded (`encodeURIComponent`, Python `quote(v, safe='')`); a half encoded link whose `//` stays raw after an encoded colon (`https%3A//...`, Python's default `quote`) is answered `400 invalid-group` (measured on 2026-11-12), free. `POST /groups` has no such case.

A delivered record is the dataset row shown above with `position` (its place in your request, counted from 0, unlike the input interface's `groupUrls[n]`, which counts from 1), `input` (`groups[0]`) and `inputUrl` (the value you sent at that place, without its query string and fragment). One group is delivered once, at the first place that names it. A status record looks like `{"type": "status", "position": 1, "input": "groups[1]", "status": "not_found", "message": "..."}`; its `status` is `invalid`, `not_found`, `share_link_not_resolved`, `duplicate`, `lookup_failed` or `not_reached`.

Anything else is a JSON error with an HTTP status: `{"error": {"type": "group-not-found", "message": "..."}}`, and for `GET /group` the status record of the group as `record`. `400` means the group is missing, is not a Facebook group link, id or name, is longer than 500 characters, the body is not JSON, a request names more than 5 groups, or it sends an option other than the group and `details`; `402` the platform refused the request event of your last three requests (for example because a spending limit of your account is reached), so your requests pause for 10 minutes on that server run; `404` Facebook shows no group there; `408` the request body did not arrive in time; `413` the body is larger than 65,536 bytes; `429` too many lookups from your account (one server run takes 300 group lookups a minute and 10 at a time from one account; wait for the seconds in `Retry-After`); `502` Facebook did not answer for the group after several tries (try again); `503` the server is busy, restarting, or the charge was not accepted (no group is returned without its charge); `504` the request took too long. An error response charges nothing, with two exceptions that say so themselves: `503` with the type `charge-unconfirmed` means the platform did not confirm the charge, so no data was returned although the charge may have been recorded once, and `500` with the type `internal-error-after-charge` means the request failed on our side after its charge. Report either through the Issues tab with the `X-Actor-Request-ID` response header. A response arrives within 80 seconds at most. Measured on 2026-11-12 with Group details on: a request to a server that was not running answered in 2.8 to 6.8 seconds (the start included), 20 requests in a row to a running server in 2.2 seconds at the median and 4.7 seconds at the 95th percentile, and one `POST /groups` with 5 groups in 8.5 to 9.4 seconds.

The `X-Charged-Events` response header says what the request charged, for example `group=1; group_lookup=1; api_request=1; group_details=1`. A value of `unconfirmed` means the platform did not confirm that charge. When the platform refuses the Group details charge, the groups are still delivered, without their About facts and with `detailsStatus: "charge_refused"`.

Every request reads the groups with the input interface's defaults: Apify residential exits in the US, the rules included. The endpoints take only the groups and `details`; a request that sends any other option (a filter such as `privacy`, or `maxItems`) is refused with `400`, never run without it. Nothing a request reads is kept after its response: no cache, no dataset row, no stored record.

#### How much does a real-time request cost?

You pay per request and only for what the response delivers: one Group and one Group lookup event per delivered group, one Group details event per group whose About facts are delivered, and one Real-time API request event ($0.005 on every plan) per request that delivers at least one group. There is no Actor start event on the real-time API. A request that delivers nothing (not found, invalid, failed) is free. The charge is made when the records are ready and before the response is sent; if your connection closes while that charge is in progress, the request stays charged and its answer cannot be sent (the platform has no refund call), so keep the connection open until the response arrives.

#### When to use the input interface instead

For more than 5 groups at once, use the input interface (start a run): it takes up to 1,000 group links a run, has no Real-time API request event, writes a dataset you can export, and has the filters (privacy, member range, posts per day or month, location, created date, excluded words), `maxItems`, `includeRules` and `proxyCountry`. The real-time API is for an answer in the response of one HTTP request.

### Personal data

Group rows can name people (the admins and moderators Facebook shows to visitors of public groups, e-mail addresses written in a description). You are responsible for a lawful use of personal data, the GDPR included.

### What this Actor does NOT do

- **Find groups by keyword**: it reads the groups you name. A Facebook search link in your list is skipped, free; to find groups by keyword, use the search tool listed under "More data tools by Automation Craft" below.
- **Log in, or use your cookies or account**: never. Anything Facebook shows only to members is not read.
- **Read posts, member lists or comments**: this Actor delivers one row per group. The posts and comments tools listed below read posts and comments; a group's member list is not read.
- **The admins of private groups**: Facebook's answer to a visitor names no admin of a private group and gives 0 as their number (all 410 private groups of a 1,000 group run of this Actor on 2026-11-12), so that 0 is not a verified count.
- **A posts per week figure**: Facebook serves posts in the last day and in the last month only.
- **Search engine results**: groups are read on Facebook itself; the rows carry no search result title or snippet.
- **Monitor groups for changes between runs**: not built (each run is a fresh read; schedule the Actor and compare the exports).
- **Your own proxy URLs**: the groups are read through Apify residential exits (the country is a setting) and links are resolved through Apify's datacenter exits.

### API examples

Run it and get the groups (Node.js, `apify-client`):

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automation_craft/facebook-group-details-scraper').call({
    groupUrls: ['https://www.facebook.com/groups/selftaughtprogrammers/', '775643933361964'],
    groupDetails: true,
    minMembers: 1000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.type === 'group'));
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automation_craft/facebook-group-details-scraper").call(run_input={"groupUrls": ["775643933361964"], "groupDetails": True})
groups = [i for i in client.dataset(run["defaultDatasetId"]).iterate_items() if i["type"] == "group"]
```

cURL (runs and returns the rows in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~facebook-group-details-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"groupUrls": ["selftaughtprogrammers"], "groupDetails": true}'
```

### FAQ

#### How do I get the member count of a Facebook group?

Put the group's link, id or name in the input: every row carries `membersCount` and Facebook's own `membersText` ("70.6K members"). With Group details on, the count is exact (`membersExact`, "70,612 total members"), for private groups too.

#### How do I get a Facebook group's name from its ID or URL?

Paste the numeric id or the link under **Group links, ids or names**: each row gives the group's `name`, `url`, `groupId` and vanity name, read on Facebook without a login. A link or id that leads to no group is listed in a free `links` row and is not charged.

#### Can I see a private Facebook group's details without joining?

Yes, for what Facebook shows visitors: name, member count and privacy, and with Group details its exact members, description, activity, created date, rules and locations. Its posts, member list and admins stay closed (its admin counts read 0, which is not a verified count).

#### Can I get the weekly posts and new members of a Facebook group?

With Group details on you get posts in the last day (`postsLastDay`) and the last month (`postsLastMonth`, and `postsPerDayAverage`); Facebook serves no weekly post figure. The new members line is delivered as served (`newMembersText`, `newMembersCount`), but logged out visitors see "No new members in the last week" on almost every group, so the count is usually 0.

#### Is there a real-time API for Facebook group details?

Yes. Besides normal runs, this Actor answers HTTP requests in real time: `GET /group?url=...` returns one group record and `POST /groups` up to 5, authenticated with your Apify token, at $0.005 a request plus the group events. For lists longer than 5 groups, start a run instead.

#### Why does this Actor run with limited permissions?

It runs with the least privilege Apify offers: it reads and writes only its own run's storages (its dataset and a small run record in its default key-value store that keeps a restarted run from charging a row twice). The real-time API keeps nothing between requests. It cannot see your other Actors, datasets or account data.

### More data tools by Automation Craft

- [Facebook Groups Search: Find Groups by Keyword](https://apify.com/automation_craft/facebook-groups-search-scraper)
- [Facebook Groups Scraper: Posts of Public Groups](https://apify.com/automation_craft/facebook-groups-scraper)
- [Facebook URL to ID Finder: Pages, Profiles, Groups](https://apify.com/automation_craft/facebook-url-to-id)
- [Facebook Posts Scraper - Page Posts, No Login](https://apify.com/automation_craft/facebook-posts-scraper)
- [Facebook Comments Scraper: Replies, No Login](https://apify.com/automation_craft/facebook-comments-scraper)
- [Facebook Search Scraper: Keyword Posts, No Login](https://apify.com/automation_craft/facebook-search-scraper)
- [Facebook Page ID Finder: Names to Page IDs](https://apify.com/automation_craft/facebook-page-id-finder)

### Changelog

- 0.1: first release: Facebook groups read from group links, share links, numeric ids and names, logged out, public and private; the Group details add-on (on by default) with exact members, posts in the last day and month, new members line, created date and name history, description with links and e-mails, locations, topic tags, admin and moderator counts and names, and rules; privacy, member range, activity, location, created date and excluded word filters; the real-time API (`GET /group`, `POST /groups`).

# Changelog

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

# Actor input Schema

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

Facebook groups, one per line: a group link (facebook.com/groups/selftaughtprogrammers, also a post, about, members or permalink link of the group, any facebook.com host such as m. or web.), a share link (facebook.com/share/g/...), a numeric group id or a group name. Public and private groups. Up to 1,000 a run. Each group is delivered once as a row, billed as a Group and a Group lookup (see Pricing); a link that leads to no group, a repeat and a group left out by your filters are free and listed in a free row. Also read from startUrls (strings or {"url": ...}), groupLinks, groupIds and urls.

## `groupDetails` (type: `boolean`):

Adds Facebook's about facts to each group row, billed as Group details (see Pricing): exact member count, posts in the last day and month, created date and name history, description with its links and e-mails, locations, topic tags, admin and moderator counts and the admin and moderator names Facebook shows visitors of public groups, and rules. On when left out; turn it off for name, privacy and the rounded member count only. Any filter on activity, location or created date keeps it on. When its own allowance is spent a row goes out without it, unbilled, and says so in detailsStatus. Also read from fetchDetails, enrichGroupDetails and includeDetails.

## `includeRules` (type: `boolean`):

With Group details on: deliver the group's rules (each with its title and text) and their count. On when left out; off leaves them out of the rows. The price does not change: the rules come with the other about facts.

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

The most groups delivered in the run (each group once). All of them when left out. Also read from maxResults and maxGroups.

## `privacy` (type: `string`):

Keep only public or only private groups. Private groups are delivered with their name, members, privacy and (with Group details) their about facts: Facebook shows those to visitors; their posts and members are not read. Any when left out. Also read from groupPrivacy.

## `minMembers` (type: `integer`):

Keep only groups with at least this many members. Without Group details the count is Facebook's rounded one ("70.6K"), and a group whose rounded count could be on either side of your bound is left out, free; with Group details on, the exact count decides.

## `maxMembers` (type: `integer`):

Keep only groups with at most this many members (the same rounding rule as minMembers).

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

Leave out a group whose name (and, with Group details on, its description, topic tags or locations) holds any of these words or phrases as whole words, up to 50. Left out groups are free. Also read from excludedKeywords.

## `minPostsPerDay` (type: `number`):

Keep only groups with at least this many posts a day on average over the last month (posts in the last month divided by 30). Reads Group details (kept on).

## `minPostsPerMonth` (type: `integer`):

Keep only groups with at least this many posts in the last month. Reads Group details (kept on).

## `locationContains` (type: `string`):

Keep only groups whose own location list (set by the group's admins, shown on about half of groups) names this place as whole words ("Texas" keeps "Houston, Texas"). Groups without a location are left out. Reads Group details (kept on). Also read from locationText.

## `createdAfter` (type: `string`):

Keep only groups created on or after this day (YYYY-MM-DD, UTC). Reads Group details (kept on).

## `createdBefore` (type: `string`):

Keep only groups created on or before this day (YYYY-MM-DD, UTC). Reads Group details (kept on).

## `maxConcurrency` (type: `integer`):

How many groups are read at the same time, each on its own residential exits (1 when left out, up to 5). More is faster on large runs and costs the same; at the start of a run, and on runs where most groups are left out by the filters, the groups are read one at a time until the delivered rows cover parallel reads. Also read from concurrency.

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

The country of the Apify residential exits that read the groups on Facebook, as a two letter code (US when left out). Group links are resolved through Apify's datacenter exits.

## Actor input object example

```json
{
  "groupUrls": [
    "https://www.facebook.com/groups/selftaughtprogrammers/",
    "775643933361964"
  ],
  "groupDetails": true,
  "includeRules": true,
  "privacy": "any",
  "excludeKeywords": []
}
```

# Actor output Schema

## `items` (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 = {
    "groupUrls": [
        "https://www.facebook.com/groups/selftaughtprogrammers/",
        "775643933361964"
    ],
    "groupDetails": true,
    "includeRules": true,
    "privacy": "any",
    "excludeKeywords": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/facebook-group-details-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 = {
    "groupUrls": [
        "https://www.facebook.com/groups/selftaughtprogrammers/",
        "775643933361964",
    ],
    "groupDetails": True,
    "includeRules": True,
    "privacy": "any",
    "excludeKeywords": [],
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/facebook-group-details-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 '{
  "groupUrls": [
    "https://www.facebook.com/groups/selftaughtprogrammers/",
    "775643933361964"
  ],
  "groupDetails": true,
  "includeRules": true,
  "privacy": "any",
  "excludeKeywords": []
}' |
apify call automation_craft/facebook-group-details-scraper --silent --output-dataset

```

## MCP server setup

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