# Facebook group member scraper (`curious_coder/facebook-group-member-scraper`) Actor

Scrape facebook group members of any group with all available information

- **URL**: https://apify.com/curious_coder/facebook-group-member-scraper.md
- **Developed by:** [Curious Coder](https://apify.com/curious_coder) (community)
- **Categories:** Social media
- **Security:** Limited permissions
- **Stats:** 2,137 total users, 8 monthly users, 1.8% runs succeeded, 80 bookmarks
- **User rating**: 2.47 out of 5 stars

## Pricing

from $1.00 / 1,000 results

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

### How it works

The Facebook Group Members Scraper is an Apify actor designed to extract information about members of a [Facebook](https://facebook.com) group. With this actor, you can effortlessly gather valuable data from Facebook groups for various purposes, such as market research, lead generation, and competitor analysis.

**Main Features:**

1. **Efficient Member Data Extraction:** The actor enables you to extract detailed information about group members, including their names, profile URLs, member since date, Badeges, Bio and other relevant data available on their public profiles.

2. **Customizable Data Output:** You have the flexibility to choose which member details you want to extract. The actor allows you to define the output fields according to your specific requirements, ensuring that you obtain the most relevant information.

3. **Easy-to-Use Configuration:** The actor provides a simple and intuitive configuration interface. You can specify the Facebook group URL you wish to scrape, set pagination limits, and define the output fields all within the user-friendly configuration settings.

4. **Proxy Support:** To enhance reliability and avoid rate limiting issues, the actor supports proxy usage. You can provide a list of proxies that will be rotated automatically to ensure smooth and uninterrupted scraping.

5. **Scalability and Performance:** The actor is built on the Apify platform, which ensures scalability and excellent performance. It utilizes parallel processing to scrape multiple pages simultaneously, maximizing efficiency and minimizing the overall scraping time.

6. **Data Export and Integration:** Once the scraping process is complete, you can easily export the extracted data in various formats such as JSON, CSV, or Excel. This allows for seamless integration with other tools and platforms for further analysis and utilization.

7. **Automatic Retry and Error Handling:** In case of temporary issues like network failures or timeouts, the actor has built-in automatic retry functionality. It intelligently handles errors to ensure a smooth and uninterrupted scraping experience.

### Related Scrapers

To extract posts from Facebook groups, pages, and profiles, use the [Facebook Post Scraper](https://apify.com/curious_coder/facebook-post-scraper) which collects post content, engagement metrics, and top comments. For comment extraction from posts, the [Facebook Comment Scraper](https://apify.com/curious_coder/facebook-comment-scraper) gathers all comments including replies. To get detailed profile information about group members, use the [Facebook Profile Scraper](https://apify.com/curious_coder/facebook-profile-scraper). For LinkedIn group members, check out the [LinkedIn Group Members Scraper](https://apify.com/curious_coder/linkedin-group-members-scraper). For Twitter engagement data, the [Twitter Likes Scraper](https://apify.com/curious_coder/twitter-likes-scraper) extracts users who liked specific tweets. Browse [all available scrapers](https://apify.com/curious_coder) to find the right tool for your data needs.

### Getting started

1. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension
2. Login to your facebook account
3. While you are on facebook tab, Click on the extension and export the cookies
4. Paste the cookies to this actor's `Cookie` input field
5. Specify the Facebook group URL you want to scrape.
6. Set pagination limits to determine the number of pages to scrape.
7. (Optional) Configure proxy settings for enhanced reliability.
8. Run the actor and obtain the extracted data in your preferred format.

The Facebook Group Members Scraper actor is an invaluable tool for businesses, researchers, and marketers seeking to gain insights from Facebook groups. By automating the data extraction process, it simplifies the task of collecting member information and empowers you to make data-driven decisions based on the extracted data.

### Sample data

Here is the sample json output of this actor:

```json
{
	"canSendMessage": true,
	"memberTags": [
		"NEW_MEMBER"
	],
	"joinedAt": 1695975491,
	"bio": {
		"delight_ranges": [],
		"image_ranges": [],
		"inline_style_ranges": [],
		"aggregated_ranges": [],
		"ranges": [],
		"color_ranges": [],
		"text": "Helping health and wellness eCommerce brands scale with Facebook ads."
	},
	"name": "Krystal Childrey",
	"userId": "651067058",
	"friendshipStatus": "CAN_REQUEST",
	"groupMemberId": "10161454296852059",
	"isVerified": false,
	"profileUrl": "https://www.facebook.com/krystalc1291",
	"profilePicture": "https://scontent.fixe2-1.fna.fbcdn.net/v/t39.30808-1/334557221_1952626645086555_35727943821351091_n.jpg?stp=cp0_dst-jpg_p60x60&_nc_cat=107&ccb=1-7&_nc_sid=fe8171&_nc_ohc=6VdSw53IyI4AX_F4ZVW&_nc_ht=scontent.fixe2-1.fna&oh=00_AfBrPCnT43nhA7oMIGksNTSTqJ-FT5z3P_ZZhrYSvnNQtg&oe=652AF156",
	"work": {
		"text": "Founder at Soulwave Digital",
		"icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yN/r/bOeeMWZwJ9x.png",
		"id": "100052522136414",
		"url": "https://www.facebook.com/soulwavedigital",
		"short_name": "Soulwave Digital"
	},
	"current_city": {
		"text": "Lives in Seattle, Washington",
		"icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yc/r/2HSjONuOSNc.png",
		"id": "110843418940484",
		"url": "https://www.facebook.com/Seattle-Washington-110843418940484/"
	},
	"other_account": {
		"text": "soulwavedigital",
		"icon": "https://static.xx.fbcdn.net/rsrc.php/v3/y8/r/Rk9juj93tWY.png",
		"id": "NjQyMTgzOTU5MjA4MTA3Omh0dHBzXGEvL3d3dy5pbnN0YWdyYW0uY29tL3NvdWx3YXZlZGlnaXRhbDo6Ojo=",
		"url": "https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.instagram.com%2Fsoulwavedigital&h=AT3LR5jGM1_tXx34daEECAQCz_YJ01q_wj7axhktge9D8pMMn5R_a3WnLyPVVrVy6IkC5j7yrWRg7Ehw_IQt1SOVPUxYTRwrgzieNdTrMFLqwEv5AQSnHg1dMME8yn_8Ta49AhRsfw&s=1",
		"external_url": "https://www.instagram.com/soulwavedigital"
	},
	"website": {
		"text": "soulwavedigital.com",
		"icon": "https://static.xx.fbcdn.net/rsrc.php/v3/y3/r/0ho4nG26KLt.png",
		"id": "NjQyMTgzOTU5MjA4MTA3Omh0dHBzXGEvL2wuZmFjZWJvb2suY29tL2wucGhwP3U9aHR0cHMlM0ElMkYlMkZzb3Vsd2F2ZWRpZ2l0YWwuY29tJTJGJmg9QVQxYnBQTFZjNkl1MHNla3J4VkdZRGtGR1ZlQ1dVOFBHTkFnNDQtSHBYdWIxYW9yQmg3YUpQLWRDTUtOcjV5eHlsWlM1ZERlcktQcVM3WmNKdUZkM2hpbWVWc1FDSU1iUTcwZDlKSHEyR2ZZcDduNTNBUHhha0NXMVxiRHl5cVZcYkhWbTRza0dlTldZJnM9MTo6Ojo=",
		"url": "https://l.facebook.com/l.php?u=https%3A%2F%2Fsoulwavedigital.com%2F&h=AT2rNVUNuNIIoMz8BwEQdeBB_TierfPUiph7lE_TwfD8vT__xw9JBW85HkZjAv8O5wvs3T41PdAAInXAX6ABj50rRP4FuFPR5P_oZ_M2aie1v2ePaqx1M_9APiE9bywr15xPKCKKxw&s=1",
		"external_url": "https://l.facebook.com/l.php?u=https%3A%2F%2Fsoulwavedigital.com%2F&h=AT1bpPLVc6Iu0sekrxVGYDkFGVeCWU8PGNAg44-HpXub1aorBh7aJP-dCMKNr5yxylZS5dDerKPqS7ZcJuFd3himeVsQCIMbQ70d9JHq2GfYp7n53APxakCW1_DyyqV_HVm4skGeNWY&s=1"
	},
	"Website": "https://soulwavedigital.com/",
	"Instagram": "soulwavedigital",
	"Gender": "Female",
	"url": "https://www.facebook.com/krystalc1291",
	"bioText": "Helping health and wellness eCommerce brands scale with Facebook ads."
}
```

If you want to scrape more details about profiles such as website, company, contact info, etc, use [Facebook profile scraper](https://apify.com/curious_coder/facebook-profile-scraper)

### Use cases

Here are some common use cases for Facebook group members data:

1. **Market Research:** Analyzing the demographics, interests, and preferences of Facebook group members can provide valuable insights into target audiences. This data can be used to identify market trends, understand consumer behavior, and develop effective marketing strategies.

2. **Lead Generation:** Extracting member data from relevant Facebook groups allows businesses to identify potential leads and prospects. By analyzing member profiles and engagement levels, businesses can identify individuals who are likely to be interested in their products or services, enabling targeted lead generation efforts.

3. **Competitor Analysis:** Examining the members of competitor Facebook groups can help businesses gain a deeper understanding of their target market. By analyzing the composition, activities, and discussions within these groups, businesses can identify competitive advantages and discover new opportunities.

4. **Influencer Marketing:** Facebook group members who are active and engaged can serve as potential influencers for brands. By analyzing member profiles, businesses can identify individuals with a significant following and high engagement rates, enabling them to establish partnerships for influencer marketing campaigns.

5. **Content Strategy Development:** Analyzing the interests, preferences, and discussions within Facebook groups can assist businesses in developing relevant and engaging content. By understanding the topics that resonate with group members, businesses can create content that aligns with their interests, leading to increased engagement and brand visibility.

6. **Community Building:** For businesses looking to create or expand their own Facebook groups, analyzing existing group members' data can provide valuable insights. Understanding the demographics, engagement levels, and preferences of potential group members can guide the development of content and activities to foster a vibrant and engaged community.

7. **Product Feedback and Validation:** Facebook group members often express their opinions, feedback, and suggestions about products or services. By analyzing member discussions and feedback, businesses can gain valuable insights into product performance, identify areas for improvement, and validate new product ideas.

8. **Customer Support and Engagement:** Engaging with members of relevant Facebook groups can help businesses provide personalized customer support and build stronger relationships with their audience. By understanding member needs and challenges, businesses can address concerns, provide assistance, and foster a sense of community.

9. **Partnership Opportunities:** Analyzing the members of industry-related Facebook groups can help businesses identify potential partners, collaborators, or affiliates. By understanding the expertise and interests of group members, businesses can explore mutually beneficial partnerships and expand their network.

10. **Academic Research and Social Studies:** Researchers and scholars can utilize Facebook group members data to study social dynamics, online behavior, and group interactions. This data can provide valuable insights into topics such as online communities, group formation, and the impact of social media on society.

These are just a few examples of how Facebook group members data can be utilized. The specific use cases depend on the goals and objectives of the individuals or organizations accessing the data.

### Frequently asked questions

### What is the limit on number of members that can be scraped ?

Unlike other scrapers like phantombuster which have limitations on number of members scraped to 5k-10k, this tool doesn't have any limitations. It can scrape all members of a group. It can also resume scraping from where it stopped, which makes it best tool for scraping large groups

### Does it extract emails address or phone numbers of group members ?

You can use [facebook profile scraper](https://apify.com/curious_coder/facebook-profile-scraper) to scrape complete profile including email and phone numbers. Once have the list of group members, just copy the profile urls and pass them to facebook profile scraper

# Changelog

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

# Actor input Schema

## `cookies` (type: `array`):

Cookie used to authorize actor with facebook.com. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension. Login to your facebook.com account. Click on the extension and export the facebook.com cookies. Insert the contents here

## `scrapeGroupMembers.groupUrl` (type: `string`):

Eg: https://www.facebook.com/groups/hackgrowth or https://www.facebook.com/groups/1636991833121307

## `count` (type: `integer`):

Leave this field empty if you want to scrape all items.

## `cursor` (type: `string`):

Use this field if you want to resume scraping from where the scraper stopped last time. You can find this value in default storage of scraper runs under **lastCursor** key

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

Minimum duration in seconds to wait before scraping next page

## `maxDelay` (type: `integer`):

Maximum duration in seconds to wait before scraping next page

## `proxy` (type: `object`):

Choose a proxy from the country where you are logged into Facebook

## Actor input object example

```json
{
  "cursor": "",
  "minDelay": 1,
  "maxDelay": 3,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "minDelay": 1,
    "maxDelay": 3,
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("curious_coder/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 = {
    "minDelay": 1,
    "maxDelay": 3,
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("curious_coder/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 '{
  "minDelay": 1,
  "maxDelay": 3,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}' |
apify call curious_coder/facebook-group-member-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,curious_coder/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/y1bjlVpn2Kkdd2mi7/builds/QJQXdWvEzvW1KXqjd/openapi.json
