# Facebook Groups Search scraper (`data_dino/facebook-groups-search-scraper`) Actor

Find Facebook groups by keyword and collect each group's public About data — member counts, posts activity, privacy, visibility, creation date, location, description, rules and admin/moderator count — one dataset item per group.

- **URL**: https://apify.com/data_dino/facebook-groups-search-scraper.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 93.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.

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 Groups Search scraper

Finds Facebook groups by keyword and exports each group's **public About data**: exact member count, posts today / last month, privacy, visibility, creation date, location(s), description, rules, and admin/moderator count. One dataset item per group.

### What you get

For each group, the scraper captures:

- **Identity** – `groupId`, name, URL, vanity handle, profile picture, cover image.
- **Audience** – exact member count (and the raw text Facebook shows), posts today, posts last month, average posts per day, creation date.
- **Moderation** – group description, rules (title + description each), admin/moderator count, tags.
- **Metadata** – privacy (`PUBLIC`/`PRIVATE`), visibility, location(s), plus which search query and rank found it.

### How to use

Just hit **Run** — the defaults give you a quick sample of Tesla groups (keyword `tesla`, up to 10 groups).

To customize:

1. Set **Search keywords** (e.g. `tesla`, `real estate investors`). Each keyword is expanded into variants (`club`, `owners`, `uk`, …).
2. Or set **Group links / handles** to read specific groups directly (skips search).
3. Optionally filter by **privacy**, **min/max members**, **min posts/day**, or **location**.
4. Set **Max results** (default 10) to cap the run; raise it for a fuller pull.
5. Run. Results appear in the dataset as one item per group.

### Options

| Field | What it does |
| --- | --- |
| Search keywords | Terms to discover groups (each expanded into variants). |
| Group links / handles | Read these groups directly, no search. |
| Max results | Stop after N groups (0 = no cap). |
| Privacy | `any`, `public`, or `private`. |
| Min / max members | Keep only groups in this member range. |
| Min posts/day | Keep only groups at least this active. |
| Location contains | Substring match on group location. |
| Strict keyword | Keep only groups whose name/description contains the term. |
| Max variations per keyword | How many keyword variants to try per term. |
| Max pages per variant | Search pages walked per variant. |

### Notes

- Discovery runs through the public web index (Yahoo) in a headless browser — Facebook's own group search requires login.
- Group About tabs are public pages: no login, cookies, or proxy needed by default.
- It paces requests automatically and retries transient failures.
- Output is one JSON item per group in the default dataset, viewable and downloadable from the Output tab.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search for groups. Each keyword is expanded into up to maxVariations variants (club, owners, uk, …). Ignored when groupUrls is set.

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

Facebook group URLs or handles to read directly, skipping keyword search. Takes priority over keywords.

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

Stop after this many successful group rows. Default 10 keeps the default run quick; raise it for a fuller pull. 0 = no cap (use with care).

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

any | public | private.

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

Only keep groups with at least this many members.

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

Only keep groups with at most this many members.

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

Only keep groups with at least this average posts per day.

## `location` (type: `string`):

Substring match on the group's location, e.g. Australia or London.

## `strictKeyword` (type: `boolean`):

Keep only groups whose name or description contains the search term.

## `maxVariations` (type: `integer`):

Keyword variants tried per term (max 35; 1 = the term itself only).

## `maxPagesPerQuery` (type: `integer`):

Search-result pages walked per variant.

## `proxy` (type: `string`):

Optional HTTP/HTTPS proxy URL, e.g. http://user:pass@host:port. Strongly recommended for cloud runs: Facebook and the search index serve reduced/empty responses to datacenter IPs, so a residential or mobile proxy is usually required to get rows.

## Actor input object example

```json
{
  "searchQueries": [
    "tesla"
  ],
  "groupUrls": [],
  "maxItems": 10,
  "privacy": "any",
  "strictKeyword": false,
  "maxVariations": 20,
  "maxPagesPerQuery": 2
}
```

# Actor output Schema

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

All scraped Facebook groups, one item per row. Key fields: imageUrl, name, url, groupId, vanity, privacy, privacyDescription, visibility, members, membersText, postsToday, postsLastMonth, avgPostsPerDay, createdAt, history, location, locations, description, adminAndModeratorCount, rulesCount, rules, profilePictureUrl, query, rank, scrapedAt, error, tags.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/facebook-groups-search-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/facebook-groups-search-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 '{}' |
apify call data_dino/facebook-groups-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/facebook-groups-search-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/9YWbjV1HVVUneHmRv/builds/cKblBzhIY7ZKHRqQV/openapi.json
