# Facebook Group Members Scraper (`neuro-scraper/facebook-group-members-scraper`) Actor

Facebook Group Members Scraper extracts the visible members of public Facebook groups: admins, moderators and every person who posts or comments, with name, profile link, picture, role, post and comment counts, reactions received, first and last activity. No login.

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

## Pricing

from $1.19 / 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 Group Members Scraper

> **Also from neuro-scraper:** the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export public Facebook Reels with views, reactions, comments, captions and video links in one click.

**Facebook Group Members Scraper** extracts the visible members of public Facebook groups: the admins and moderators, and every person who posts or comments in the group, with name, profile link, picture, role, how many posts and comments they wrote, how many reactions their posts received, when they were first and last active, and a sample of what they wrote - plus the group's name, members count, privacy, visibility and description on every row. The Facebook Group Members Scraper runs on Apify, needs no Facebook account, no login and no cookies, and it delivers clean rows you can download as JSON, CSV, Excel or HTML, or pull through the Apify API. It serves community managers who want to know their most active members, marketers and researchers who study who drives a niche community, recruiters and partnership teams looking for active voices in a topic.

#### What the Facebook Group Members Scraper does

- Admins and moderators of each group, as the group's About section shows them (role admin / moderator).
- Every person who posts in the group, found by reading the group's discussion page after page with its own next-page cursor.
- Every person who comments, from the comments shown under each post - or from every comment of each post with `deepComments`.
- Per member: name, id, profile link, picture, profile type, role, post count, comment count, reactions received, first and last activity, the kinds of activity (post, comment, admin, moderator) and a sample text with its link.
- Per group: id, name, link, vanity name, members count, privacy, visibility and description on every row.
- Most active members first, anonymous participants left out by default, several groups read in parallel.

Every row the Facebook Group Members Scraper returns has the same columns in the same order (including the column names of the most used Facebook group-member tools), numbers are real numbers and times are ISO 8601 in UTC.

#### Why use the Facebook Group Members Scraper?

Facebook shows a group's full member list only to logged-in users. The Facebook Group Members Scraper gives you the members who are actually visible and active - the people who post, comment and run the group - ranked by activity, without any account. That is usually the list you want: the voices of a community, not thousands of silent names.

- Community management: find your most active members and moderators-to-be.
- Influencer and partner discovery: see who drives the conversation in groups about your topic.
- Market research: understand who posts about a product category and what they say.
- Competitor communities: compare the activity of groups in your niche.

#### How to use the Facebook Group Members Scraper

1. Open the Facebook Group Members Scraper in Apify Console and click **Try for free** (an Apify account is free to create).
2. Fill in `groupUrls` - the only required field: links or ids of public groups, one per line. Set `maxMembers` and `maxPostsPerGroup` if you want more or fewer.
3. Click **Start**. The log shows for every group how many posts were read and how many members were found so far, e.g. `group uscitizenshipwithugo: 9 posts read, 24 members found`, and finally how many members were saved.
4. Download the results as JSON, CSV, Excel, XML or HTML from the Output tab, or read them through the Apify API (see below).
5. To repeat it, create a Schedule in Apify Console and connect an integration - Google Sheets, Zapier, Make, n8n, Slack or a webhook.

#### Input of the Facebook Group Members Scraper

| Field | Type | Default | What it does |
|---|---|---|---|
| `groupUrls` | array | prefill: a public group | Public group links or ids. |
| `maxMembers` | integer | 50 | Members per group. |
| `maxPostsPerGroup` | integer | 100 | Newest posts read per group. |
| `includeCommenters` | boolean | true | Count commenters too. |
| `deepComments` | boolean | false | Read every comment of each post. |
| `maxCommentsPerPost` | integer | 50 | Comments per post with deepComments. |
| `includeAdmins` | boolean | true | Admins and moderators first. |
| `fetchDetails` | boolean | true | Read the group's About section. |
| `includeAnonymous` | boolean | false | Keep anonymous participants. |
| `includeRawData` | boolean | false | Add the raw person object. |
| `sortBy` | string | "activity" | activity or found. |
| `minDelay` | integer | 0 | Minimum pause between feed pages (s). |
| `maxConcurrency` | integer | 5 | Groups read at the same time. |
| `maxTotalItems` | integer | 0 | Total limit for the run. |
| `proxyConfiguration` | object | residential | Proxy settings. |

Example input for the Facebook Group Members Scraper (the 15 most active visible members of two public groups):

```json
{
  "groupUrls": ["https://www.facebook.com/groups/uscitizenshipwithugo", "https://www.facebook.com/groups/874728723021553"],
  "maxMembers": 15,
  "maxPostsPerGroup": 40
}
```

More ready-to-copy inputs for the Facebook Group Members Scraper:

A deep scan - 200 posts and every comment of each post (up to 100), for the 300 most active members:

```json
{
  "groupUrls": ["https://www.facebook.com/groups/uscitizenshipwithugo"],
  "maxMembers": 300,
  "maxPostsPerGroup": 200,
  "deepComments": true,
  "maxCommentsPerPost": 100
}
```

Only posters (no commenters), in the order they were found, without the About section:

```json
{
  "groupUrls": ["https://www.facebook.com/groups/874728723021553"],
  "includeCommenters": false,
  "fetchDetails": false,
  "sortBy": "found",
  "maxMembers": 100
}
```

#### Features and how they work in the Facebook Group Members Scraper

The Facebook Group Members Scraper returns one row per member per group. Every input option is explained below: what it does, how it works, the allowed values and default, an example, a tip and how it combines with other options.

##### `groupUrls` - the groups

**What it does:** tells the Facebook Group Members Scraper which public groups to read. **How it works:** give group links (https://www.facebook.com/groups/<name or id>/) or the bare name / id, one per line; each group is opened, its About section and its discussion are read, and its members are returned. A private group, a deleted group or a group whose discussion is not public is reported in the log and skipped. **Values:** array of strings; prefilled with a public group. **Example:** `"groupUrls": ["https://www.facebook.com/groups/874728723021553"]`. **Tip:** only public groups can be read without a login. **Combinations:** each group gets its own `maxMembers`; groups run in parallel (`maxConcurrency`).

##### `maxMembers` - members per group

**What it does:** sets how many members the Facebook Group Members Scraper returns for each group. **How it works:** the limit is per group: 2 groups x 15 = up to 30 rows. The discussion is read page after page (its own cursor) until this many different members are found or `maxPostsPerGroup` posts were read; then the members are sorted (`sortBy`) and the first ones saved. **Values:** integer 1-10000; default 50. **Example:** `"maxMembers": 200`. **Tip:** quiet groups may have fewer active members than you ask for - read more posts or turn on `deepComments`. **Combinations:** `maxTotalItems` caps the whole run.

##### `maxPostsPerGroup` - how far back to read

**What it does:** sets how many of the group's newest posts are read to find members. **How it works:** Facebook sends a group's discussion a few posts per page; the Facebook Group Members Scraper follows the page cursor until this many posts are read or `maxMembers` is reached (measured: 17 posts gave 15 members, 40 posts gave 13 members in a quieter group). **Values:** integer 1-5000; default 100. **Example:** `"maxPostsPerGroup": 300`. **Tip:** more posts = more members and longer runs. **Combinations:** works with `includeCommenters` and `deepComments`.

##### `includeCommenters` - count commenters too

**What it does:** includes the people who comment, not only the people who post. **How it works:** the comments Facebook shows under each post in the feed are read and their authors counted (`commentCount`, `activityType` comment). **Values:** true or false; default true. **Example:** `"includeCommenters": false`. **Tip:** commenters are often the majority of active members - keep it on. **Combinations:** `deepComments` reads all comments instead of the preview.

##### `deepComments` - every comment, not only the preview

**What it does:** finds more members by reading all comments of each post. **How it works:** normally the Facebook Group Members Scraper counts the comments Facebook shows under each post in the feed; with this option it opens the post's full comment list and follows its own next-page cursor (up to `maxCommentsPerPost` per post), so many more commenters are found. **Values:** true or false; default false. **Example:** `"deepComments": true`. **Tip:** it takes longer - use it on smaller groups or with a lower `maxPostsPerGroup`. **Combinations:** needs `includeCommenters`.

##### `maxCommentsPerPost` - comments read per post

**What it does:** caps how many comments of each post are read when `deepComments` is on. **How it works:** the post's comment list is read page after page until this number or its end; every comment author becomes or updates a member row. **Values:** integer 1-5000; default 50. **Example:** `"maxCommentsPerPost": 200`. **Tip:** busy posts can have thousands of comments - a high value makes runs long. **Combinations:** only with `deepComments`.

##### `includeAdmins` - admins and moderators

**What it does:** adds the group's admins and moderators as members with `role` admin or moderator. **How it works:** they are taken from the group's About section (`fetchDetails`), even when they did not post recently; if they also post or comment, their counts are added. **Values:** true or false; default true. **Example:** `"includeAdmins": false`. **Tip:** the About section shows only the admins and moderators Facebook lists there (often the first few). **Combinations:** needs `fetchDetails`.

##### `fetchDetails` - the group's About section

**What it does:** adds the group's details to every row and the admins and moderators as members. **How it works:** the Facebook Group Members Scraper opens the group's About section once and fills `memberCount`, `privacy`, `visibility` and `description`; the admins and moderators shown there become rows with `role` admin / moderator (with `includeAdmins`). **Values:** true or false; default true. **Example:** `"fetchDetails": false`. **Tip:** turn it off only to save one request per group. **Combinations:** `includeAdmins` needs it.

##### `includeAnonymous` - anonymous participants

**What it does:** keeps or leaves out anonymous participants. **How it works:** groups can let people post anonymously; Facebook then shows a pseudonym such as "FeistyCamel4409" instead of the person (profile type GroupAnonAuthorProfile, no profile link). By default these are left out because they are not identifiable members; with true they are kept with their pseudonym. **Values:** true or false; default false. **Example:** `"includeAnonymous": true`. **Tip:** keep it off for member lists, on for activity statistics. **Combinations:** independent of the other options.

##### `includeRawData` - the person as Facebook sent it

**What it does:** adds the raw person object to each row. **How it works:** for members found through comments the `raw` column holds the author object exactly as Facebook sent it (type, id, name, picture), useful for debugging or your own parsing. **Values:** true or false; default false. **Example:** `"includeRawData": true`. **Tip:** keep it off for clean exports. **Combinations:** independent of the other options.

##### `sortBy` - order of the members

**What it does:** chooses the order of the members of each group. **How it works:** `activity` (default) sorts by posts + comments, most active first (admins before moderators before members on ties); `found` keeps the order in which the members appeared in the discussion (newest posts first). **Values:** `activity` or `found`; default `activity`. **Example:** `"sortBy": "found"`. **Tip:** with `activity` the first rows are the core of the community. **Combinations:** sorting happens before `maxMembers` is applied.

##### `minDelay` - pause between feed pages

**What it does:** sets the minimum pause between two feed pages of a group. **How it works:** with 0 (default) the Facebook Group Members Scraper waits only a short random 0.3-0.9 seconds between pages; a higher value slows each group down, which can help when Facebook refuses pages. **Values:** integer 0-60 seconds; default 0. **Example:** `"minDelay": 2`. **Tip:** keep 0 unless the log shows refused pages. **Combinations:** works per group; groups still run in parallel (`maxConcurrency`).

##### `maxConcurrency` - groups read at the same time

**What it does:** sets how many groups the Facebook Group Members Scraper reads in parallel. **How it works:** every group runs on its own connection and IP address, so a run with several groups takes about as long as the slowest one (measured: 2 groups, 28 members in 48 s). **Values:** integer 1-10; default 5. **Example:** `"maxConcurrency": 3`. **Tip:** lower it if the log shows refused pages. **Combinations:** changes only the speed, never the rows or the price.

##### `maxTotalItems` - limit for the whole run

**What it does:** stops the Facebook Group Members Scraper after this many rows in total. **How it works:** every saved member counts across all groups; when the total is reached the run ends cleanly. 0 means no total limit. **Values:** integer 0 or more; default 0. **Example:** `"maxTotalItems": 500`. **Tip:** the safest cost cap for many groups. **Combinations:** works with `maxMembers`.

##### `proxyConfiguration` - proxy

**What it does:** chooses the proxy of the Facebook Group Members Scraper. **How it works:** Facebook limits visitors who are not logged in per IP address; Apify residential proxies (the default) give the most reliable results, and a refused group page is read again on a fresh IP. **Values:** Apify proxy settings; default residential. **Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`. **Tip:** keep the default. **Combinations:** independent of the other options.

#### Output of the Facebook Group Members Scraper

| Field | Type | Meaning |
|---|---|---|
| `groupId` | string | Group id |
| `groupName` | string | Group name |
| `groupUrl` | string | Group link |
| `groupSlug` | string | Vanity name of the group (empty for groups that only have a number) |
| `memberCount` | integer | Members of the group (About section) |
| `privacy` | string | Public / Private |
| `visibility` | string | Visible / Hidden |
| `description` | string | Group description |
| `memberId` | string | Member id (numeric or Facebook's obfuscated pfbid id) |
| `name` | string | Member name |
| `shortName` | string | First name |
| `profileUrl` | string | Profile link |
| `profilePicture` | string | Profile picture |
| `profileType` | string | User, Page ... |
| `role` | string | admin, moderator or member |
| `isVerified` | boolean | Verified badge (when Facebook sends it) |
| `postCount` | integer | Posts in the posts read |
| `commentCount` | integer | Comments in the posts read |
| `reactionsReceived` | integer | Reactions on the member's posts |
| `firstSeenAt` | string | Earliest activity seen (UTC) |
| `lastActiveAt` | string | Latest activity seen (UTC) |
| `activityType` | string | post, comment, admin, moderator |
| `source` | string | feed or about |
| `sampleText` | string | A sample post or comment |
| `sampleUrl` | string | Link of that post |
| `position` | integer | Rank of the member in the group |
| `userId` | string | Same as memberId |
| `groupMemberId` | string | Same as memberId |
| `url` | string | Same as profileUrl |
| `Fullname` | string | Same as name |
| `Profile_id` | string | Same as memberId |
| `Profile_link` | string | Same as profileUrl |
| `Profile_Pic` | string | Same as profilePicture |
| `Profile_type` | string | Same as profileType |
| `Group_name` | string | Same as groupName |
| `member` | object | {id, name, url} |
| `raw` | object | The person object as Facebook sent it (includeRawData) |
| `scrapedAt` | string | When the row was scraped (UTC) |

#### Which columns can be empty in the Facebook Group Members Scraper

Measured on 28 members of two public groups (2026-11-21):

- `profileUrl`, `url`, `Profile_link`: commenters - Facebook sends a commenter only with name, picture and an id; numeric ids are turned into a profile.php link, but many ids are Facebook's obfuscated pfbid ids, for which no link exists (39% in the test).
- `isVerified`: the person objects in group posts and comments carry no verified flag for visitors who are not logged in (28 of 28).
- `profileType`, `Profile_type`: members found through `deepComments` - the full comment lists give a commenter's name, id, link and picture but no profile type (23 of 30 in the deep test run 9Irf5AJjrV57CXdJ7).
- `groupSlug`: groups that have only a number and no vanity name.
- `sampleText`, `sampleUrl`, `firstSeenAt`, `lastActiveAt`: admins and moderators who did not post or comment in the posts read (they come from the About section only); a post without text.
- `profilePicture`, `Profile_Pic`: rarely, when Facebook sends no picture for the person.
- `raw`: only with `includeRawData` and only for members found through comments.
- `memberCount`, `privacy`, `visibility`, `description`: when `fetchDetails` is off or the About section could not be read.

#### Facebook Group Members Scraper vs. the top 5 Facebook group-member Actors in the Apify Store

| Feature | Top 5 | Facebook Group Members Scraper | Note |
|---|---|---|---|
| Group links input | 4/5 | Yes | `groupUrls` |
| Active members from posts and comments | 1/5 | Yes | with post / comment counts, reactions, first / last activity |
| All comments of each post | 1/5 | Yes | `deepComments` |
| Admins and moderators | 1/5 | Yes | `includeAdmins` |
| Full member list with join dates | 2/5 | No | shown only to logged-in users; those tools ask for your cookies |
| Group search by keyword | 1/5 | No | Facebook returns no group results logged out (measured) |

#### How much does the Facebook Group Members Scraper cost?

The Facebook Group Members Scraper uses pay-per-result pricing: one result = one dataset row = one member of one group. It costs $1.49 per 1,000 results on the Apify Free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business, plus the Apify platform usage of the run (measured: 28 members used $0.0040).

**Worked example:** 5 groups x 100 members = 500 rows = 500 / 1,000 x $1.49 = **$0.745** on the Free plan.

**How to cap the cost:** set `maxTotalItems`; in Apify Console you can also set a maximum cost per run, and the Facebook Group Members Scraper stops when it is reached.

#### Use the Facebook Group Members Scraper through the API

From the Apify API (cURL):

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~facebook-group-members-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"groupUrls": ["https://www.facebook.com/groups/uscitizenshipwithugo"], "maxMembers": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/facebook-group-members-scraper").call(
    run_input={"groupUrls": ["https://www.facebook.com/groups/uscitizenshipwithugo"], "maxMembers": 20})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["name"], row["role"], row["postCount"], row["commentCount"])
```

Node.js (`npm install apify-client`):

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('neuro-scraper/facebook-group-members-scraper').call({
    groupUrls: ['https://www.facebook.com/groups/uscitizenshipwithugo'], maxMembers: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'members');
```

#### Limits of the Facebook Group Members Scraper

- The complete member list of a group (including silent members and join dates) is shown by Facebook only to logged-in users; the Facebook Group Members Scraper returns the visible, active members instead.
- Only public groups can be read; private groups show no discussion to visitors.
- Profile details of ordinary personal profiles (city, work, bio) are not public without a login.

#### FAQ about the Facebook Group Members Scraper

**Why did the Facebook Group Members Scraper return fewer members than my maximum?**

The posts read (`maxPostsPerGroup`) had fewer different authors and commenters, or anonymous participants were left out. Read more posts, turn on `deepComments`, or set `includeAnonymous`.

**Why is the profile link empty for some members?**

Facebook sends commenters without a profile link and often with an obfuscated id; see "Which columns can be empty" above.

**Can I get all members of a group?**

Not without a Facebook login - Facebook shows the full member list only to logged-in users, and the Facebook Group Members Scraper never logs in.

**Can I read many groups in one run?**

Yes - put them all into `groupUrls`; they are read in parallel and each gets its own `maxMembers`.

**Do I need a Facebook account?**

No. The Facebook Group Members Scraper works without any Facebook account, cookie or login.

**Is it legal to use the Facebook Group Members Scraper?**

The Facebook Group Members Scraper collects publicly visible information only. Member lists are personal data: process them only with a legitimate reason and respect the GDPR and Facebook's terms. Ask a lawyer when unsure.

#### Other Actors that work well with the Facebook Group Members Scraper

- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - public Facebook Reels with views, reactions, comments and video links.
- [Facebook Groups Scraper](https://apify.com/neuro-scraper/facebook-groups-scraper) - the posts of public groups.
- [Facebook Comments Scraper](https://apify.com/neuro-scraper/facebook-comments-scraper) - every comment of a post.

#### Feedback on the Facebook Group Members Scraper

Found a bug in the Facebook Group Members Scraper, or missing a field? Open an issue on the Facebook Group Members Scraper Issues tab in Apify Console. Tell us which input you used and what you expected - it helps us improve the Facebook Group Members Scraper for everyone.

# Actor input Schema

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

Public Facebook group links or ids, one per line (https://www.facebook.com/groups/<name or id>/).

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

How many members to return for EACH group. The group's posts are read page after page (its own cursor) until this many different members are found or Max posts per group is reached.

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

How many of the group's newest posts are read to find active members (posters, and commenters when Include commenters is on).

## `includeCommenters` (type: `boolean`):

Also count the people who comment, from the comments Facebook shows under each post.

## `includeAdmins` (type: `boolean`):

Start with the admins and moderators the group shows on its About section (role admin / moderator).

## `includeAnonymous` (type: `boolean`):

Groups can let people post anonymously; Facebook then shows a pseudonym (e.g. FeistyCamel4409) instead of the person. Off = they are left out.

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

Most active first sorts the members of each group by posts + comments; found keeps the order they appeared in.

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

How many groups are read at the same time (each on its own connection).

## `maxTotalItems` (type: `integer`):

Stops the whole run after this many dataset rows.

## `deepComments` (type: `boolean`):

Also read every comment of each post (not only the few Facebook shows under it in the feed) to find more commenters - slower.

## `maxCommentsPerPost` (type: `integer`):

With Read all comments: how many comments of each post are read.

## `fetchDetails` (type: `boolean`):

Read the group's About section: members count, privacy, visibility, description, admins and moderators.

## `includeRawData` (type: `boolean`):

Add the person object exactly as Facebook sent it (column raw).

## `minDelay` (type: `integer`):

Minimum pause between two feed pages of a group (seconds). 0 = a short random pause of 0.3-0.9 s.

## `proxyConfiguration` (type: `object`):

Facebook limits visitors who are not logged in per IP address. Residential proxies (the default) give the most reliable results.

## Actor input object example

```json
{
  "groupUrls": [
    "https://www.facebook.com/groups/uscitizenshipwithugo"
  ],
  "maxMembers": 50,
  "maxPostsPerGroup": 100,
  "includeCommenters": true,
  "includeAdmins": true,
  "includeAnonymous": false,
  "sortBy": "activity",
  "maxConcurrency": 5,
  "maxTotalItems": 0,
  "deepComments": false,
  "maxCommentsPerPost": 50,
  "fetchDetails": true,
  "includeRawData": false,
  "minDelay": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per result, 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 = {
    "groupUrls": [
        "https://www.facebook.com/groups/uscitizenshipwithugo"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/facebook-group-members-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/uscitizenshipwithugo"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/facebook-group-members-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/uscitizenshipwithugo"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/facebook-group-members-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/facebook-group-members-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/Bn6rZQIBotfKOxYkv/builds/yjev3qa63NUzY1Su9/openapi.json
