# Facebook Groups Search Scraper: Group Posts by Keyword (`tagadanar/facebook-groups-search-scraper`) Actor

Find public Facebook group posts by keyword: post text, publish date, author name, group, reactions, comments and shares, from each post's public page; link, Google's title and image. No login. $1.00 per 1,000 posts + $1.50 per 1,000 with details + $0.01 per Google page.

- **URL**: https://apify.com/tagadanar/facebook-groups-search-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Social media, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 group posts

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: Group Posts by Keyword

Type a keyword and get the public Facebook group posts Google has indexed for it, with the post itself: its text,
publish date, author name, group name, and reaction, comment and share counts, read from each post's public page.
Every row also carries the post link, the group, Google's one-line title of the post and the post's image. Use Google
operators ("exact phrase", OR, -exclude), pick a country and language, keep only what Google found recently, or search
inside one public group. No Facebook account, no cookies, no login.

**$1.00 per 1,000 posts + $1.50 per 1,000 posts with details on Free ($0.70 + $1.05 on Gold), plus $0.01 per Google
results page read and $0.001 per run. Platform usage is included.** No API key, no proxy to set up.

### What you get

One flat row per group post. Fields that are not shown are null.

| Field | What it is |
| --- | --- |
| `keyword` | The keyword that found this post |
| `position` | Its position among the group posts found for the keyword (1 = first) |
| `url` | The post's link, `https://www.facebook.com/groups/<group>/posts/<post id>/` |
| `postId` | The post's id |
| `group` | The group's id or vanity name, as in its URL |
| `groupUrl` | The group's link |
| `googleTitle` | Google's title of the post (a short summary of what the post is about) |
| `imageUrl`, `imageWidth`, `imageHeight` | The post's image as Google lists it, with its size |
| `thumbnailUrl` | Google's thumbnail of that image |
| `searchPage` | The Google results page it was on |
| `scrapedAt` | When the row was collected (ISO 8601) |

With **Include post details** on (the default), each row also has:

| Field | What it is |
| --- | --- |
| `detailsStatus` | `OK` when the details below come from the post's page; otherwise why not (see below) |
| `text` | The post's full text (null for a post with no text) |
| `publishedAt` | The post's own publish date (ISO 8601) |
| `authorName` | The name of the person or Page who posted it |
| `authorId` | The author's id as Facebook shows it to a signed-out visitor |
| `authorUrl` | The author's link, only when Facebook shows one signed out (it does not for people's posts, so it is usually null) |
| `groupName`, `groupId` | The group's name and numeric id |
| `reactionsCount`, `commentsCount`, `sharesCount` | The post's counts as its page shows them |
| `postType` | `photo`, `album`, `video`, `link`, `share` or `text` |
| `imageUrls`, `videoUrl` | The post's own images and video (Facebook's links, which expire after some days) |
| `links` | Outbound links in the post |

Example row:

```json
{
  "keyword": "sourdough starter",
  "position": 2,
  "url": "https://www.facebook.com/groups/1006060197306320/posts/1539440913968243/",
  "postId": "1539440913968243",
  "group": "1006060197306320",
  "groupUrl": "https://www.facebook.com/groups/1006060197306320/",
  "googleTitle": "Using stiff starter for sourdough bread",
  "imageUrl": "https://lookaside.fbsbx.com/lookaside/crawler/media/?media_id=...",
  "imageWidth": 1536,
  "imageHeight": 2048,
  "thumbnailUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:...",
  "searchPage": 1,
  "scrapedAt": "2026-11-12T15:00:00.000Z",
  "detailsStatus": "OK",
  "text": "Tried a stiff starter last night for the first time and I don’t think I’m ever going back.",
  "publishedAt": "2025-07-18T11:16:49.000Z",
  "authorName": "Amy Donnelly",
  "authorId": "pfbid02VT3u8...",
  "authorUrl": null,
  "groupName": "Sourdough for Beginners",
  "groupId": "1006060197306320",
  "reactionsCount": 1084,
  "commentsCount": 313,
  "sharesCount": 23,
  "postType": "photo",
  "imageUrls": ["https://scontent-iad6-1.xx.fbcdn.net/v/t39.30808-6/..."],
  "videoUrl": null,
  "links": []
}
```

#### When a post has no details

The row is still delivered (post link, group, Google's title and image) and is not charged for details.
`detailsStatus` says why:

- `UNAVAILABLE`: Facebook answered "This content isn't available" (the post was deleted, or is not shown to
  signed-out visitors).
- `LOGIN_WALL`, `NO_POST`, `REFUSED`: Facebook answered with a login page, with a page that does not carry the post, or
  did not answer.
- `STOPPED_EARLY`: Facebook refused several posts in a row, so the run stopped asking for details and kept delivering
  link rows. The run status says so.
- `CLOCK`, `CHARGE_LIMIT`: the run's time or your maximum charge ran out before this post's page was read.

The text is never guessed: a field the post's page does not show is null.

### What it is, and what it is not

- It searches what Google has indexed from public Facebook groups. Private groups are never in Google, so they are
  never in the results.
- It finds posts through Google's image results, so the posts it returns are posts with a picture. Text-only posts
  are not found.
- It is not real time: a post appears once Google has indexed it.
- Details are what Facebook shows a signed-out visitor on the post's own page. It does not log in, does not open
  author profiles or member lists, and does not return comment threads (only the comment count).

### Who uses it

- Market and audience researchers: what people in public groups say about a product, a problem or a place, with the
  date and the engagement of each post.
- Content planners: the questions people post in groups about a topic, and which ones get the most reactions and
  comments.
- Community managers and agencies: find active public groups on a topic (`groupName`, `groupUrl`) before joining or
  partnering.
- Data teams: a keyword-driven feed of group posts with text and counts.

### Examples

Prefill (the canary run):

```json
{"keywords": ["sourdough starter"], "maxResultsPerKeyword": 20, "maxPagesPerKeyword": 1}
```

Several topics, exact phrases, an exclusion:

```json
{"keywords": ["\"moving to lisbon\"", "\"digital nomad\" lisbon -hiring"], "maxResultsPerKeyword": 100, "maxPagesPerKeyword": 3}
```

Inside one public group, only what Google found in the past year:

```json
{"keywords": ["rye", "discard"], "group": "https://www.facebook.com/groups/sourdoughgeeks/", "time": "year"}
```

Local market, local language, links only (no post details):

```json
{"keywords": ["apartamento arrendar"], "country": "pt", "language": "pt", "includePostDetails": false}
```

### Results, zeros and errors

- A post found by two keywords is delivered (and charged) once, under the first keyword.
- A keyword Google answers with no results is reported as "no results" and its page is not charged.
- A keyword whose results hold no group post (only group home pages or other pages) is reported as such.
- A keyword Google refused, or the run clock stopped, is named in the status and is never reported as "no results".
- The run status counts the posts with details and the ones without, by reason.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $0.01 per Google results page read that carries results (up to about 100 results per page, of which the group posts
  are kept). Pages Google answers with no results, or does not answer, are not charged.
- $1.00 per 1,000 posts on Free, with lower prices on higher Apify plans ($0.70 per 1,000 on Gold).
- Post details: $1.50 per 1,000 posts that got their details on Free ($1.05 per 1,000 on Gold). Posts without details
  are not charged for them.
- Platform usage is included.

Example: 100 posts with details from 2 pages cost about $0.10 + $0.15 + $0.02 + $0.001 on Free. With post details off,
the same 100 posts cost about $0.10 + $0.02 + $0.001.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor never reads a post page it could not
charge for, stops at the ceiling and says so in the status.

### FAQ

**Do I need a Facebook account or cookies?** No. The actor reads Google's results pages and each post's public page
as a signed-out visitor. It never logs in.

**Why fewer posts than I asked for?** Google lists only so many group posts with an image for a keyword. Try more
keywords, broader words, or more pages per keyword.

**Does "Found by Google within" filter by publish date?** It is Google's own time filter, by when Google found the
post. With post details on, `publishedAt` is the post's own date, so you can filter on it yourself.

**Why does a row have no text?** Either the post has a picture and no words, or `detailsStatus` is not `OK` and says
why.

**Can I get the comments?** No. The row has the comment count, not the comments or who wrote them.

### Data use

Group posts are written by private people, and the rows carry personal data: the author's name, what they wrote, and
the post's images. You are the one handling that personal data: under the GDPR (and similar laws) you need a lawful
basis for what you do with it, should keep only what you need, and must respect people's rights over their data.
The actor delivers only what Facebook shows a signed-out visitor on a public post's page; it never opens author
profiles or member lists. Use Facebook's own terms for anything you do on Facebook itself.

# Changelog

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

# Actor input Schema

## `keywords` (type: `array`):

One search per line, up to 50. Plain words or Google operators: "exact phrase", OR, -exclude (for example: "sourdough starter" -recipe). The actor adds the facebook.com/groups restriction itself.

## `maxResultsPerKeyword` (type: `integer`):

Stop a keyword after this many delivered posts. Default 50, max 500.

## `maxPagesPerKeyword` (type: `integer`):

Google image results pages read per keyword (each page lists up to about 100 results, of which the group posts are kept). Each page read is charged. Default 3, max 10.

## `includePostDetails` (type: `boolean`):

Open each found post's public page once (signed out) and add the post text, publish date, author name, group name, reaction, comment and share counts and the post's own images. Charged per post that got its details. Off: link rows only (post URL, group, Google's title and image).

## `group` (type: `string`):

Optional. A public group's URL or id (for example https://www.facebook.com/groups/sourdoughgeeks/) to search inside that group only. Leave empty to search all public groups.

## `time` (type: `string`):

Only posts Google found in this period (Google's own time filter, by when Google indexed the post, not its publish date). With post details on, each row's publishedAt is the post's own date.

## `country` (type: `string`):

Two-letter country code of the Google you search from (us, gb, de, fr, in, br...). Default us.

## `language` (type: `string`):

Optional. Only posts Google detects in this language (en, fr, de, es, pt-BR...). Leave empty for any language.

## Actor input object example

```json
{
  "keywords": [
    "sourdough starter"
  ],
  "maxResultsPerKeyword": 20,
  "maxPagesPerKeyword": 1,
  "includePostDetails": true,
  "time": "any",
  "country": "us"
}
```

# Actor output Schema

## `dataset` (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 = {
    "keywords": [
        "sourdough starter"
    ],
    "maxResultsPerKeyword": 20,
    "maxPagesPerKeyword": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/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 = {
    "keywords": ["sourdough starter"],
    "maxResultsPerKeyword": 20,
    "maxPagesPerKeyword": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/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 '{
  "keywords": [
    "sourdough starter"
  ],
  "maxResultsPerKeyword": 20,
  "maxPagesPerKeyword": 1
}' |
apify call tagadanar/facebook-groups-search-scraper --silent --output-dataset

```

## MCP server setup

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