# Facebook Group Member Scraper (`scraper-engine/facebook-group-member-scraper`) Actor

👥 Facebook Group Member Scraper collects publicly available group member data—names, profile URLs, join status—then exports to CSV/JSON. ⚡ Ideal for community analytics, moderation & outreach. 🔒 Compliance-first, rate-limit friendly. 🚀 Faster research & growth.

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

## Pricing

$19.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Facebook Group Member Scraper

Scrape member lists from public Facebook groups. By default runs without proxy; if Facebook blocks the request, the actor automatically falls back to datacenter proxy, then residential proxy (with retries).

### Why use this actor?

- **Bulk URLs** – Process multiple group URLs in one run.
- **Structured output** – Same shape as the reference output: `summary` + `groups` (by URL) with member details.
- **Proxy fallback** – No proxy → datacenter → residential, with clear logs.
- **Live saving** – Members are pushed to the dataset as they are scraped.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| **startUrls** | array | Yes | Facebook group URLs (e.g. `https://www.facebook.com/groups/123456789/`). Supports bulk. |
| **proxyConfiguration** | object | No | Proxy settings. Default: no proxy; actor will fallback if blocked. |
| **maxItems** | integer | No | Max members per group (default: 20). |
| **cUserCookie** | string | No | Your Facebook `c_user` session cookie (for logged-in requests). |
| **xsCookie** | string | No | Your Facebook `xs` session cookie (for logged-in requests). |

Example:

```json
{
  "startUrls": [{ "url": "https://www.facebook.com/groups/160966147908264/" }],
  "proxyConfiguration": { "useApifyProxy": false },
  "maxItems": 20,
  "cUserCookie": "100010583742714",
  "xsCookie": "24%3A..."
}
```

### Output

Dataset contains:

1. One item per scraped member (for live view).
2. A final item with the full result:

```json
{
  "summary": {
    "totalGroups": 2,
    "totalMembers": 40,
    "maxItems": 20
  },
  "groups": {
    "https://www.facebook.com/groups/123/": {
      "groupUrl": "https://www.facebook.com/groups/123/",
      "groupId": "123",
      "memberCount": 20,
      "members": [
        {
          "groupUrl": "https://www.facebook.com/groups/123/",
          "member": {
            "id": "...",
            "name": "...",
            "profileUrl": "...",
            "url": "...",
            "isVerified": false,
            "profilePicture": "...",
            "bio_text": "...",
            "join_status": "...",
            "friendship_status": "...",
            "group_id": "123",
            "overflow_uri": "...",
            "groupInfo": { "membershipId": null, "contributionScore": 0, "totalSignals": 0 }
          },
          "scrapedAt": "2026-02-08T12:00:00+00:00"
        }
      ]
    }
  }
}
```

### How to use (Apify Console)

1. Open [Apify Console](https://console.apify.com) → **Actors**.
2. Select **facebook-group-member-scraper**.
3. Set **startUrls** (one or more Facebook group URLs).
4. Optionally set **proxyConfiguration**, **maxItems**, **facebookCookies**.
5. Run the actor.
6. Check logs and the **OUTPUT** tab; export to JSON/CSV as needed.

### Cautions

- Data is from **publicly available** group pages only.
- You are responsible for compliance with applicable laws (privacy, spam, etc.).
- **400 Bad Request:** Facebook’s group members page usually requires a logged-in session. If you see 400, add your **c\_user** and **xs** cookies from your browser (while logged into Facebook) in the actor input.

# Actor input Schema

## `startUrls` (type: `array`):

Add Facebook group URLs (one per line). Example: https://www.facebook.com/groups/123456789/

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

How many members to scrape from each group (1–1000).

## `cUserCookie` (type: `string`):

Optional. Paste your Facebook c\_user cookie for logged-in access (needed for some groups).

## `xsCookie` (type: `string`):

Optional. Paste your Facebook xs cookie (use together with c\_user for session).

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

Optional. Leave off to start with no proxy; we fallback to datacenter → residential if blocked.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.facebook.com/groups/160966147908264/"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "startUrls": [
        "https://www.facebook.com/groups/160966147908264/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-engine/facebook-group-member-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 = {
    "startUrls": ["https://www.facebook.com/groups/160966147908264/"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-engine/facebook-group-member-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 '{
  "startUrls": [
    "https://www.facebook.com/groups/160966147908264/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call scraper-engine/facebook-group-member-scraper --silent --output-dataset

```

## MCP server setup

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