# Facebook Groups Search Scraper — Members, Activity & Admins (`apimy/facebook-groups-search-scraper`) Actor

Find Facebook groups by keyword or link: exact members, posts today and per month, privacy, created date, location, tags, admin and moderator names, rules and contacts from the description. Size, activity and language filters, only-new monitoring. No login. JSON, CSV, Excel.

- **URL**: https://apify.com/apimy/facebook-groups-search-scraper.md
- **Developed by:** [Nikita Iakovlev](https://apify.com/apimy) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 20 total users, 8 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 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 Groups Search Scraper — Members, Activity & Admins

**Type a keyword, get a spreadsheet of Facebook groups** — each one with its exact member count, posts today and in the last 30 days, public or private, the date it was created, its location and topic tags, the names of its admins and moderators, every group rule, and the e-mails, phones, websites and social links written in its description.

No Facebook account, no cookies, no browser extension. You pay per group delivered — search pages, groups removed by your filters, deleted groups and errors are **free**.

![Facebook group scrapers compared feature by feature: this Actor gives 42 fields per group, admin names, contacts from the description and only-new monitoring at $0.0024 → $0.0020 per group; parseforge 26 fields at $0.00299 → $0.00254 plus a $0.005 start fee](https://api.apify.com/v2/key-value-stores/6gI43BxeKW4Ff9cDj/records/fbgroups-tested-2026-11-14.png?signature=7C4HvDpKqHgzCU1Jhd4q)

***

### What you get

| You give | You get |
|---|---|
| Keywords (`bali expats`, `tesla owners`, `real estate investors texas`) | Every Facebook group the search engines know for that keyword, opened one by one for exact numbers — one row per group. |
| Group links, numeric IDs or vanity names (`https://www.facebook.com/groups/expatsbali`, `100931413283083`, `expatsbali`) | The same full row for each group you already have — handy for refreshing a list you keep. |
| Filters (size, activity, privacy, location, language, words to exclude, created after…) | Only the groups that pass, with exact numbers — filtered groups cost nothing. |
| A monitoring name (`my-niche-watch`) | On scheduled runs: only groups you have never received before. |

**Every group row contains 42 fields:**

- **Identity** — `groupId`, `name`, `url` (vanity link), `idUrl` (link by ID — never changes after a rename), `vanityName`, `imageUrl`
- **Size** — `membersCount` (exact: 295,940 — not "296K"), `membersText` as Facebook writes it
- **Activity** — `postsLastDay`, `postsLastMonth` (Facebook's own counters), `postsPerDay` (30-day average), `postsPerMonthPer1kMembers` (engagement density — a 5,000-member group with 300 posts a month beats a 300,000-member group with 100), `activityLevel` (inactive / low / medium / high / very high)
- **Access** — `privacy` (Public / Private) with Facebook's sentence about it, `visibility` (Visible / Hidden), `hasMembershipQuestions`
- **History** — `createdAt`, `ageDays`, `history` ("Group created on October 21, 2019. Name last changed on July 3, 2024."), `nameLastChangedAt` — a rename often means the group was sold or repurposed
- **About** — full `description`, `descriptionLanguage` (detected from the name and description), `location` and all `locations` with Facebook place IDs, admin `tags` (e.g. "Real Estate Investing", "Travel & Hospitality")
- **People** — `adminsCount`, `moderatorsCount`, and the `admins` / `moderators` Facebook shows on the About page with `name`, `id`, profile `url` and `pictureUrl` (people and Pages — many big groups are run by a brand Page)
- **Rules** — `rulesCount` and every rule as `{ title, description }`
- **Contacts from the description** — `emails`, `phones`, `websites`, `socialLinks` (Instagram, TikTok, YouTube, X, LinkedIn, WhatsApp, Telegram, Discord)
- **Where it came from** — `searchQuery`, `foundBy` (duckduckgo / yahoo / google / url), `searchRank`, `scrapedAt`

The dataset has three ready views: **Groups** (the numbers at a glance), **Contacts and admins** (for outreach lists) and **Full details**.

***

### Why this one

| | **This Actor** | parseforge (Facebook Groups Search Scraper) |
|---|---|---|
| Price per group | **$0.0024** → $0.0020 on Gold+ | $0.00299 → $0.00254 on Gold+ |
| Start fee per run | **$0.001** | $0.005 |
| 100 groups on the Free plan | **$0.24** | $0.30 |
| Fields per group | **42** | 26 |
| Admins and moderators | **names, IDs, profile links, pictures** + counts | one count ("Not Disclosed" on private groups) |
| E-mails, phones, websites, social links from the description | **yes** | no |
| Topic tags, description language, membership questions, rename date | **yes** | no |
| Engagement density (posts per 1,000 members) and activity level | **yes** | average posts per day |
| Filters | **11**: privacy, min/max members, min posts per day, min posts per month, location, keyword must match, exclude words, created after, language, only with contacts | 6 |
| Sort | **6 orders**: relevance, members, activity, engagement, newest, oldest | — |
| Only new groups since the last run (monitoring) | **yes, built in** | no |
| Search sources | DuckDuckGo + Yahoo (free) + Google pages, up to 30 query variations | public web index, up to 35 variations |
| Unrelated search hits | **dropped for free** (the keyword must appear in the group) | — |

***

### How it works (and why it needs no login)

Facebook's own group search is behind the login screen. But every group — public **and** private — has an **About** page that Facebook shows to logged-out visitors, and that page carries the exact numbers Facebook itself displays: total members, posts today, posts in the last month, privacy, visibility, the creation date, the name history, locations, tags, admins and moderators, and the rules.

1. **Find the groups.** Each keyword is searched on DuckDuckGo and Yahoo restricted to `facebook.com/groups` (free for you and for us). In *standard* depth up to 3 Google result pages are added; in *deep* depth your keyword is also combined with up to 30 variations (`club`, `community`, `buy and sell`, `jobs`, `moms`, `worldwide`…) and up to 10 Google pages.
2. **Open every group.** Each group's About page is opened through residential addresses (Facebook sends datacenter addresses to the login page), read, and turned into one clean row.
3. **Filter and deliver.** Your filters are applied to the exact numbers. Rows stream into the dataset as they are found — or, if you chose a sort order, all at once at the end, sorted.

Nothing is read from inside a group: no posts, no member lists, no comments — that would need an account.

***

### Quick start

1. Type one or more keywords into **Search keywords** — or paste group links into **Group links or IDs**.
2. Set **Max groups per keyword** (20–50 is a good start) and, if you want, a few filters — for example **Min members 1000** and **Min posts per day 1** to keep only living communities.
3. Press **Start**. A standard search of one keyword takes about one minute; rows appear as they are found.
4. Download as **CSV, Excel, JSON, XML or HTML** from the Storage tab, or pull the rows through the API.

Leave everything empty and press Start to see a demo search for "bali expats".

***

### Input example

```json
{
  "searchQueries": ["tesla owners", "electric vehicle club"],
  "maxGroupsPerQuery": 50,
  "searchDepth": "deep",
  "privacy": "any",
  "minMembers": 1000,
  "minPostsPerDay": 1,
  "excludeKeywords": ["for sale", "parts"],
  "sortBy": "members",
  "includeRules": true,
  "includeAdmins": true
}
```

Monitoring a niche every week, new groups only:

```json
{
  "searchQueries": ["dropshipping", "shopify store owners"],
  "searchDepth": "deep",
  "maxGroupsPerQuery": 200,
  "onlyNewRowsStore": "dropshipping-groups-watch"
}
```

Refreshing a list you already have:

```json
{
  "groupUrls": [
    "https://www.facebook.com/groups/expatsbali",
    "435465529917291",
    "TampaBayTeslaClub"
  ]
}
```

***

### Output example

One real row from a run with the keyword `tesla` (picture links shortened, two of four rules shown):

```json
{
  "type": "group",
  "groupId": "2784037364960792",
  "name": "TESLA Club",
  "url": "https://www.facebook.com/groups/teslaownersclub/",
  "idUrl": "https://www.facebook.com/groups/2784037364960792/",
  "vanityName": "teslaownersclub",
  "privacy": "Public",
  "privacyDescription": "Anyone can see who's in the group and what they post.",
  "visibility": "Visible",
  "membersCount": 295940,
  "membersText": "295,940 total members",
  "postsLastDay": 3,
  "postsLastMonth": 128,
  "postsPerDay": 4.27,
  "postsPerMonthPer1kMembers": 0.43,
  "activityLevel": "medium",
  "createdAt": "2019-10-21T11:28:48.000Z",
  "ageDays": 2580,
  "history": "Group created on October 21, 2019. Name last changed on July 3, 2024.",
  "nameLastChangedAt": "2024-07-03",
  "description": "TESLA owners club for worldwide Tesla owners & fans :)",
  "descriptionLanguage": "en",
  "location": "New York, New York",
  "locations": [{ "id": "108424279189115", "name": "New York, New York" }],
  "tags": [],
  "adminsCount": 5,
  "moderatorsCount": 0,
  "admins": [
    { "name": "TESLA Owners Club", "id": "100064348254903", "url": "https://www.facebook.com/profile.php?id=100064348254903", "pictureUrl": "https://scontent…" },
    { "name": "Tesla Club", "id": "100063880127759", "url": "https://www.facebook.com/profile.php?id=100063880127759", "pictureUrl": "https://scontent…" }
  ],
  "moderators": [],
  "rulesCount": 4,
  "rules": [
    { "title": "Be Kind and Courteous", "description": "We're all in this together to create a welcoming environment. Let's treat everyone with respect…" },
    { "title": "No Hate Speech or Bullying", "description": "Make sure everyone feels safe. Bullying of any kind isn't allowed…" }
  ],
  "hasMembershipQuestions": false,
  "imageUrl": "https://scontent…",
  "emails": [],
  "phones": [],
  "websites": [],
  "socialLinks": {},
  "searchQuery": "tesla",
  "foundBy": ["duckduckgo", "yahoo"],
  "searchRank": 2,
  "scrapedAt": "2026-11-13T18:10:38.119Z"
}
```

A group with contacts in its description, from the same run, carries for example `"emails": ["info@teslatipsandtricks.com"], "websites": ["https://teslatipsandtricks.com"]`, or `"socialLinks": { "instagram": "https://instagram.com/teslaclubfrance", "youtube": "…", "x": "https://twitter.com/TeslaClubFrance" }`.

***

### Input fields

**What to find**

| Field | What it does |
|---|---|
| Search keywords | Topics, niches, cities, brands — one per line. |
| Group links or IDs | Links, numeric IDs or vanity names, opened directly without search. |
| Max groups per keyword | How many groups to deliver per keyword after filters (1–1000, default 30). |
| Search depth | *Quick* — free engines only (~10–17 groups a keyword). *Standard* — plus up to 3 Google pages (~15–45). *Deep* — plus up to 30 query variations and 10 Google pages (100+ for broad keywords: "tesla" gave 144 relevant groups). |
| Query variations | The words combined with your keyword in deep depth — use your own (city names, "jobs", "for sale"…). |
| Add a location to every keyword | Appends a city / country to each search. |

**Filters** (applied to the exact numbers; removed groups are free)

| Field | What it does |
|---|---|
| Privacy | Any / public only / private only. |
| Min members, Max members | Exact member range. |
| Min posts per day | Posts today or the 30-day average at least this many. |
| Min posts in the last month | Facebook's 30-day post counter. |
| Location contains | Text that must appear in the group's location, name or description. |
| Name or description must contain the keyword | Every word of your keyword must appear. |
| Exclude words | Drop groups whose name, description or tags contain these words. |
| Created after | Only groups created on or after a date. |
| Description language | Two-letter codes (`en`, `es`, `de`, `id`, `ru`…). |
| Only groups with contacts | Keep groups with an e-mail, phone, website or social link in the description. |

**Output, monitoring and advanced**

| Field | What it does |
|---|---|
| Include group rules | Rules with title and text (the count is always there). |
| Include admins and moderators | Names, IDs, links and pictures (the counts are always there). |
| Sort groups by | Relevance (streaming), members, posts last month, engagement density, newest, oldest. |
| Only new groups (monitoring memory) | A name for the run's memory: later runs with the same name deliver and charge only groups not delivered before. |
| Parallel group pages | 1–10 pages opened at the same time (default 5). |
| Add a free summary row | One free row at the end with what was delivered and charged. |
| Proxy | Leave as is. Your own proxy URLs, if you set them, are used as they are. |

***

### Pricing — pay per group

| Event | Free / Bronze | Silver | Gold, Platinum, Diamond |
|---|---|---|---|
| Group delivered | $0.0024 | $0.0022 | $0.0020 |
| Run start | $0.001 | $0.001 | $0.001 |

**Free:** search pages, Google pages, groups removed by your filters, unrelated search hits, deleted or hidden groups, links that are not groups, and every error row.

Examples on the Free plan:

- 30 groups for one keyword: 30 × $0.0024 + $0.001 = **$0.073**
- 200 groups across five keywords: 200 × $0.0024 + $0.001 = **$0.48**
- 1,000 groups on Gold: 1,000 × $0.0020 = **$2.00** (+ $0.001 per run)
- Weekly monitoring of a niche with ~10 new groups a week: about **$0.025 a week** — groups you already have are skipped and not charged.

Set **Max cost per run** in the run options to cap any run; the Actor stops cleanly at that amount with everything written paid for.

***

### Use cases

- **Community marketing and growth.** Find the 50 most active groups in your niche, sort by engagement density, and plan where to post, sponsor or partner.
- **Lead generation.** Admins of niche groups are the people who already gathered your audience. The *Contacts and admins* view lists admin names and profile links plus the e-mails, websites and social links groups publish.
- **Market research.** Measure how big and how alive a topic is across countries: members and posts per month for every group about "keto", "home schooling" or "solar installers".
- **Local business.** Search "expats Lisbon", "moms Austin", "dog owners Berlin" and get the groups where the locals talk.
- **Recruiting.** Job and freelancer groups by city or skill, with activity, so you post where people actually answer.
- **Agencies and brands.** Track new groups appearing around your brand or category every week with the only-new monitoring mode.
- **Academic and social research.** Group size, age, renames and rules over time; join the groups by `idUrl` across runs.

***

### Integrations and API

- **Apify API** — start a run and read the dataset with one call: `POST https://api.apify.com/v2/acts/apimy~facebook-groups-search-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>` with the input JSON as the body.
- **Python / JavaScript** — `apify-client` for Python and Node: `client.actor("apimy/facebook-groups-search-scraper").call(run_input={...})`.
- **MCP / AI agents** — add the Actor to Claude, Cursor or any MCP client through the Apify MCP server (`https://mcp.apify.com?actors=apimy/facebook-groups-search-scraper`) and ask "find active Facebook groups about…".
- **Make, n8n, Zapier** — use the Apify modules to run it on a schedule and send new groups to Google Sheets, Airtable, HubSpot or Slack.
- **Schedules** — Apify Console → Schedules: run weekly with *Only new groups* to get a feed of fresh groups.
- **Webhooks** — get a POST when a run finishes.

***

### FAQ

**Do I need a Facebook account or cookies?**
No. Everything comes from the public About page Facebook shows to logged-out visitors.

**Does it work for private groups?**
Yes — private groups still show their exact member count, posts per day and month, creation date, location, rules and admins on the About page. The posts themselves are not readable without joining, and this Actor does not read posts.

**How many groups does one keyword give?**
It depends on the keyword. Measured on 14 Nov 2026: "bali expats" — 10–17 in standard depth; "tesla" in deep depth — 144 relevant groups (and 27 unrelated hits removed for free). Narrow keywords give fewer groups; add a city, a product or a hobby, or several keywords, to go wider.

**Why do I sometimes get fewer groups than "Max groups per keyword"?**
Because the search engines know only so many groups for that keyword, or because your filters removed the rest. The run log and the free summary row say how many were found, opened and filtered — and why.

**Are the numbers exact?**
Members are exact (Facebook's "295,940 total members", not "296K"). Posts today and posts in the last month are Facebook's own counters on the About page.

**Can I get the members of a group or its posts?**
No — both need a logged-in account. This Actor is about finding and qualifying groups.

**Why is a group I know missing?**
Hidden groups ("Hidden — only members can find this group") are not shown to logged-out visitors at all, and some groups are not indexed by any search engine. If you have the link, paste it into **Group links or IDs**.

**What does "foundBy" mean?**
The search engines that returned the group for your keyword. A group found by several engines is usually the most relevant one.

**Is it legal?**
The Actor reads only information Facebook publishes openly to logged-out visitors. You are responsible for how you use the data — respect Facebook's terms, privacy laws (GDPR, CCPA) and anti-spam rules, especially when contacting admins.

***

### Limits, honestly

- Search coverage is what DuckDuckGo, Yahoo and Google know — not every group on Facebook. Deep depth and several specific keywords give the widest net.
- Admins and moderators are the ones Facebook shows on the About page (usually up to 5–10); the counts are always complete.
- Contacts come only from what the group wrote in its description.
- Facebook's "new members in the last week" line is not delivered: to logged-out visitors it says "No new members" for every group, even the largest, so it would be a column of fake zeros.
- A Google page now and then returns other sites; such pages are detected and their results dropped, at no cost to you.

***

### Changelog

- **0.1 (14 Nov 2026)** — first release: keyword search across DuckDuckGo, Yahoo and Google with up to 30 variations, group links / IDs, 42 fields per group, 11 filters, 6 sort orders, only-new monitoring, free summary row.

Questions or a field you miss? Open an issue on the Actor's Issues tab — we answer within a day.

# Changelog

This Actor's version history is a separate document: https://apify.com/apimy/facebook-groups-search-scraper/changelog.md

# Actor input Schema

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

Topics, niches, cities, brands — one per line. Each keyword is searched across DuckDuckGo, Yahoo and Google (restricted to facebook.com/groups) and every group found is opened for exact numbers. Examples: "bali expats", "tesla owners", "real estate investors texas", "dropshipping".

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

Already have the groups? Paste group links (https://www.facebook.com/groups/expatsbali), numeric IDs (100931413283083) or vanity names (expatsbali). They are opened directly, no search.

## `maxGroupsPerQuery` (type: `integer`):

How many groups (after filters) to deliver for each keyword. Filtered-out groups do not count and are not charged. A keyword usually has 10–60 groups in "standard" depth and more in "deep".

## `searchDepth` (type: `string`):

How wide to search for each keyword. Deeper finds more (and smaller) groups and takes longer. You pay only per delivered group, never per search page.

## `queryVariations` (type: `array`):

Words added to your keyword in "deep" depth, one search per word: "tesla owners" + "club" → "tesla owners club". Leave the default or use your own (city names, "jobs", "for sale", "moms"…).

## `searchLocation` (type: `string`):

Optional city, region or country appended to each keyword, e.g. "Berlin" turns "yoga" into "yoga Berlin". Use "Location contains" below to filter strictly by the group's own location.

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

Public groups show their posts and members to everyone; private groups only to members (the numbers on the About page are still exact).

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

Keep groups with at least this many members (exact count, not "12K").

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

Keep groups with at most this many members — handy for finding small, close communities.

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

Keep active groups only: posts today, or the average of the last 30 days, at least this many. 1 = at least a post a day.

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

Keep groups with at least this many posts in the last 30 days (Facebook's own counter).

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

Keep groups whose Facebook location, name or description contains this text (case-insensitive), e.g. "Bali" or "Texas".

## `requireKeywordMatch` (type: `boolean`):

Drop loosely related groups: every word of the keyword must appear in the group name, description or tags.

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

Drop groups whose name, description or tags contain any of these words, e.g. "for sale", "jobs", "dating".

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

Keep groups created on or after this date (YYYY-MM-DD) — find new communities.

## `languages` (type: `array`):

Two-letter language codes of the group name and description, e.g. en, es, de, id, ru. Detected inside the Actor; groups with too little text have no language and are dropped when this filter is set.

## `onlyWithContacts` (type: `boolean`):

Keep groups whose description has an e-mail, phone, website or social link — useful for partnership and lead lists.

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

Every rule with title and text (the rule count is always included).

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

Names, profile IDs and pictures of the admins and moderators Facebook shows on the About page (admin and moderator counts are always included).

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

Any order other than relevance writes all rows at the end of the run, sorted.

## `onlyNewRowsStore` (type: `string`):

Give this run a memory name, e.g. "my-niche-watch". The Actor remembers every group it delivered under that name and on later runs delivers — and charges — only groups it has not delivered before. Put it on a schedule to get new groups as they appear.

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

How many group pages are opened at the same time.

## `includeRunSummary` (type: `boolean`):

One free row at the end with what was delivered and charged in this run (type "notice"). Untick to keep the dataset groups-only.

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

Leave as is: the Actor uses its own residential proxy rotation for Facebook (Facebook sends datacenter addresses to the login page). Your own proxy URLs, if given, are used as they are.

## Actor input object example

```json
{
  "searchQueries": [
    "bali expats",
    "tesla owners"
  ],
  "groupUrls": [
    "https://www.facebook.com/groups/expatsbali"
  ],
  "maxGroupsPerQuery": 20,
  "searchDepth": "standard",
  "queryVariations": [
    "group",
    "community",
    "club",
    "forum",
    "network",
    "buy and sell",
    "marketplace",
    "for sale",
    "jobs",
    "business",
    "chat",
    "members",
    "official",
    "owners",
    "lovers",
    "fans",
    "support",
    "help",
    "tips",
    "news",
    "events",
    "meetup",
    "friends",
    "family",
    "moms",
    "women",
    "students",
    "beginners",
    "experts",
    "worldwide"
  ],
  "searchLocation": "",
  "privacy": "any",
  "minMembers": 1000,
  "requireKeywordMatch": false,
  "onlyWithContacts": false,
  "includeRules": true,
  "includeAdmins": true,
  "sortBy": "relevance",
  "maxConcurrency": 5,
  "includeRunSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `groups` (type: `string`):

No description

## `leads` (type: `string`):

No description

## `details` (type: `string`):

No description

## `all` (type: `string`):

No description

## `summary` (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 = {
    "searchQueries": [
        "bali expats",
        "tesla owners"
    ],
    "groupUrls": [
        "https://www.facebook.com/groups/expatsbali"
    ],
    "maxGroupsPerQuery": 20,
    "queryVariations": [
        "group",
        "community",
        "club",
        "forum",
        "network",
        "buy and sell",
        "marketplace",
        "for sale",
        "jobs",
        "business",
        "chat",
        "members",
        "official",
        "owners",
        "lovers",
        "fans",
        "support",
        "help",
        "tips",
        "news",
        "events",
        "meetup",
        "friends",
        "family",
        "moms",
        "women",
        "students",
        "beginners",
        "experts",
        "worldwide"
    ],
    "searchLocation": "",
    "minMembers": 1000,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("apimy/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 = {
    "searchQueries": [
        "bali expats",
        "tesla owners",
    ],
    "groupUrls": ["https://www.facebook.com/groups/expatsbali"],
    "maxGroupsPerQuery": 20,
    "queryVariations": [
        "group",
        "community",
        "club",
        "forum",
        "network",
        "buy and sell",
        "marketplace",
        "for sale",
        "jobs",
        "business",
        "chat",
        "members",
        "official",
        "owners",
        "lovers",
        "fans",
        "support",
        "help",
        "tips",
        "news",
        "events",
        "meetup",
        "friends",
        "family",
        "moms",
        "women",
        "students",
        "beginners",
        "experts",
        "worldwide",
    ],
    "searchLocation": "",
    "minMembers": 1000,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("apimy/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 '{
  "searchQueries": [
    "bali expats",
    "tesla owners"
  ],
  "groupUrls": [
    "https://www.facebook.com/groups/expatsbali"
  ],
  "maxGroupsPerQuery": 20,
  "queryVariations": [
    "group",
    "community",
    "club",
    "forum",
    "network",
    "buy and sell",
    "marketplace",
    "for sale",
    "jobs",
    "business",
    "chat",
    "members",
    "official",
    "owners",
    "lovers",
    "fans",
    "support",
    "help",
    "tips",
    "news",
    "events",
    "meetup",
    "friends",
    "family",
    "moms",
    "women",
    "students",
    "beginners",
    "experts",
    "worldwide"
  ],
  "searchLocation": "",
  "minMembers": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call apimy/facebook-groups-search-scraper --silent --output-dataset

```

## MCP server setup

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