# Facebook Group Post Scraper (`blackfalcondata/facebook-group-post-scraper`) Actor

Scrape facebook.com group posts from group URLs with post text, timestamps, engagement counters, media, optional comments, Marketplace listing signals, and monitoring mode. No login required.

- **URL**: https://apify.com/blackfalcondata/facebook-group-post-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.25 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

### What does Facebook Group Post Scraper do?

Facebook Group Post Scraper turns public [facebook.com](https://www.facebook.com/) group pages into structured datasets for monitoring communities, researching public discussions, and tracking buy/sell activity. It extracts post text, permalinks, timestamps, authors, engagement counters, media references, top comments, and Marketplace listing signals without requiring Facebook login cookies.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

<!-- KEY_FEATURES:START -->
- **🧵 Public group post extraction** — collect structured records from Facebook group URLs, including post IDs, canonical permalinks, author names, timestamps, text, media references, comments count, likes, shares, and reaction breakdowns.
- **🔎 Keyword and date filtering** — focus runs with a keyword search and `onlyPostsNewerThan` filters, so recurring jobs can monitor only the posts that matter.
- **💬 Comment-aware output** — optionally include top-level comments when Facebook exposes them in the group feed payload, preserving commenter IDs, profile names, text, and comment links.
- **🏷️ Marketplace post detection** — detect group posts that point to Marketplace listings and optionally enrich them with listing title, price, status, location, coordinates, and item URL.
- **♻️ Monitoring and incremental runs** — use `monitoringMode` / `incrementalMode` with a stable `stateKey` to emit NEW, UPDATED, or unchanged posts according to your workflow.
- **📤 Automation-ready delivery** — send results to datasets, compact AI-agent payloads, generic webhooks, Telegram, Discord, Slack, WhatsApp, or MCP connected apps such as Notion, Sheets, Slack, Airtable, and Linear.
- **📊 Clean datasets for analysis** — export consistent records for dashboards, alerts, spreadsheets, CRMs, and AI workflows without manual copy-paste from Facebook groups.
<!-- KEY_FEATURES:END -->

### What data can you extract from Facebook Group Post?

Each result includes Core listing fields (`facebookUrl`, `inputUrl`, `facebookId`, `groupTitle`, `url`, `legacyId`, `id`, and `text`, and more). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

### Input

Configure the actor through the input schema in Apify Console.

Key parameters:

- **`startUrls`** — One or more public Facebook group URLs to scrape posts from, for example https://www.facebook.com/groups/874728723021553
- **`viewOption`** — Preferred feed order for the group feed. (default: `"CHRONOLOGICAL"`)
- **`search`** — Keep only posts from the provided group URLs whose extracted text contains this phrase.
- **`onlyPostsNewerThan`** — Absolute date such as 2026-04-20 or relative duration such as 30 days, 2 weeks, 1 month.
- **`includeComments`** — Extract top-level comments when they are present in the group page payload. (default: `false`)
- **`enrichMarketplaceListings`** — Detect Marketplace posts and fetch extra listing fields when a linked item is present. (default: `false`)
- **`monitoringMode`** — Return only posts not delivered in previous runs for the same state key. (default: `false`)
- **`incrementalMode`** — Alias for monitoring mode. Return only posts not delivered in previous runs for the same state key. (default: `false`)
- **`maxItems`** — Maximum number of posts to save. (default: `100`)
- **`compact`** — Return only core fields. (default: `false`)
- **`excludeEmptyFields`** — Remove null, empty array, and empty object fields from each output item. (default: `false`)
- **`stateKey`** — Optional stable key for monitoring mode.
- ...and 16 more parameters

### Input examples

**Basic search** — Fetch listings from the provided start URL.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/874728723021553"
    }
  ],
  "maxItems": 50
}
````

**Incremental tracking** — Only emit listings that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/874728723021553"
    }
  ],
  "maxItems": 200,
  "incrementalMode": true,
  "stateKey": "facebook-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/874728723021553"
    }
  ],
  "maxItems": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "facebookUrl": "https://www.facebook.com/groups/874728723021553",
  "inputUrl": "https://www.facebook.com/groups/874728723021553",
  "facebookId": "874728723021553",
  "groupTitle": "Maths Formulas",
  "url": "https://www.facebook.com/groups/874728723021553/permalink/2480039325823810/",
  "legacyId": "2480039325823810",
  "id": "2480039325823810",
  "text": "Set Theory basics and formulas for quick revision.",
  "time": "2026-07-15T09:15:13.000Z",
  "user": {
    "id": "100000000001",
    "name": "Example Member"
  },
  "feedbackId": "ZmVlZGJhY2s6MjQ4MDAzOTMyNTgyMzgxMA==",
  "topReactionsCount": 39,
  "reactionLikeCount": 31,
  "reactionLoveCount": 5,
  "reactionHahaCount": 1,
  "reactionWowCount": 2,
  "reactionSadCount": 0,
  "reactionAngryCount": 0,
  "commentsCount": 42,
  "sharesCount": 5,
  "likesCount": 31,
  "attachments": [
    {
      "__typename": "Photo",
      "thumbnail": "https://scontent.fbcdn.net/example-photo.jpg",
      "photo_image": {
        "uri": "https://scontent.fbcdn.net/example-photo.jpg"
      }
    }
  ],
  "photoCount": 1,
  "additionalPhotoCount": 0,
  "topComments": [
    {
      "commentId": "2480075832486826",
      "id": "2480075832486826",
      "text": "Nice summary.",
      "threadingDepth": 0,
      "profileId": "100000000002",
      "profileName": "Example Commenter",
      "commentUrl": "https://www.facebook.com/groups/874728723021553/permalink/2480039325823810/?comment_id=2480075832486826"
    }
  ],
  "isMarketplaceListing": false,
  "changeType": "NEW",
  "scrapedAt": "2026-07-15T10:00:00.000Z",
  "source": "facebook.com"
}
```

### Incremental fields

When monitoring mode is on, each record also carries a `changeType` — `NEW` or `UPDATED` by default; set `emitUnchanged: true` to also receive posts unchanged since the last run. A group's public feed only exposes its newest posts, so a post that has scrolled out of that feed can't be told apart from one that was deleted — this actor tracks new and changed posts but never claims one is gone for good.

### How to scrape Facebook Group Post

1. Go to [Facebook Group Post Scraper](https://apify.com/blackfalcondata/facebook-group-post-scraper?fpr=1h3gvi) in Apify Console.
2. Configure the input.
3. Set `maxItems` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from Facebook Group Post for market research and competitive analysis.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape Facebook Group Post?

Facebook Group Post Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.0072 per run
- **Per result:** $0.00225 per listing record

Example costs:

- 10 results: **$0.03**
- 25 results: **$0.063**
- 100 results: **$0.23**
- 200 results: **$0.46**
- 500 results: **$1.13**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.57 | $0.04 | $0.53 (94%) | $1.06 |
| 15% — moderate broad query | $0.57 | $0.09 | $0.48 (84%) | $2.75 |
| 30% — high-volume aggregator | $0.57 | $0.18 | $0.39 (69%) | $5.28 |

Full re-scrape monthly cost at daily polling: $17.09. First month with incremental costs $1.59 / $3.23 / $5.67 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (compute and proxies) is billed separately by Apify based on actual consumption. Incremental runs consume less on result processing, though fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from Facebook Group Post?

The number of results depends on the search query and available listings on Facebook Group Post. Use the `maxItems` parameter to control how many results are returned per run.

#### Does Facebook Group Post Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Facebook Group Post Scraper with other apps?

Yes. Facebook Group Post Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Facebook Group Post Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Facebook Group Post Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape Facebook Group Post?

This actor extracts publicly available data from Facebook Group Post. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/facebook-group-post-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Maigret Username OSINT — Verified Account Finder](https://apify.com/blackfalcondata/maigret-username-osint-scraper?fpr=1h3gvi) — Find where a username or handle exists across hundreds of social media networks and websites. Every.
- [Quora Scraper — Q\&A, Profiles & Spaces](https://apify.com/blackfalcondata/quora-scraper?fpr=1h3gvi) — \[💰$0.8/1K] Scrape Quora questions, answers, profiles, posts, and spaces by search or URL —.
- [Reddit Email Scraper — Extract Emails from Posts & Comments](https://apify.com/blackfalcondata/reddit-email-scraper?fpr=1h3gvi) — Extract email addresses and contact details from Reddit posts, comments and user profiles. Search.
- [Reddit Lead Scraper — Emails, Socials & Contact Info](https://apify.com/blackfalcondata/reddit-lead-scraper?fpr=1h3gvi) — Turn Reddit into a B2B lead list. Keep only records that expose a contact signal — email, social.
- [Reddit RAG Dataset — LLM Training Data from Posts & Comments](https://apify.com/blackfalcondata/reddit-rag-dataset?fpr=1h3gvi) — Build clean LLM and RAG datasets from Reddit. Export posts with full comment threads as.
- [Reddit Scraper — Posts & Full Comment Threads](https://apify.com/blackfalcondata/reddit-scraper?fpr=1h3gvi) — Scrape Reddit posts with full nested comment threads — or search any subreddit or keyword across.
- [Reddit Sentiment Scraper — Analyze Posts & Comments](https://apify.com/blackfalcondata/reddit-sentiment-scraper?fpr=1h3gvi) — Scrape Reddit and score every post and comment for sentiment — positive, negative or neutral with a.
- [Sherlock Username Scraper — OSINT Account Search](https://apify.com/blackfalcondata/sherlock-username-osint-scraper?fpr=1h3gvi) — Find where a username or handle exists across hundreds of social media networks and websites. Every.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

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

One or more public Facebook group URLs to scrape posts from, for example https://www.facebook.com/groups/874728723021553

## `viewOption` (type: `string`):

Preferred feed order for the group feed.

## `search` (type: `string`):

Keep only posts from the provided group URLs whose extracted text contains this phrase.

## `onlyPostsNewerThan` (type: `string`):

Absolute date such as 2026-04-20 or relative duration such as 30 days, 2 weeks, 1 month.

## `includeComments` (type: `boolean`):

Extract top-level comments when they are present in the group page payload.

## `enrichMarketplaceListings` (type: `boolean`):

Detect Marketplace posts and fetch extra listing fields when a linked item is present.

## `monitoringMode` (type: `boolean`):

Return only posts not delivered in previous runs for the same state key.

## `incrementalMode` (type: `boolean`):

Alias for monitoring mode. Return only posts not delivered in previous runs for the same state key.

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

Maximum number of posts to save.

## `compact` (type: `boolean`):

Return only core fields.

## `excludeEmptyFields` (type: `boolean`):

Remove null, empty array, and empty object fields from each output item.

## `stateKey` (type: `string`):

Optional stable key for monitoring mode.

## `emitUnchanged` (type: `boolean`):

When monitoring mode is enabled, also emit posts already seen before.

## `telegramToken` (type: `string`):

Optional Telegram bot token for sending run notifications.

## `telegramChatId` (type: `string`):

Optional Telegram chat ID for sending run notifications.

## `discordWebhookUrl` (type: `string`):

Optional Discord webhook URL for sending run notifications.

## `slackWebhookUrl` (type: `string`):

Optional Slack webhook URL for sending run notifications.

## `webhookUrl` (type: `string`):

Optional generic webhook URL. Receives a JSON payload with emitted posts and run metadata.

## `webhookHeaders` (type: `object`):

Optional custom headers for the generic webhook.

## `whatsappAccessToken` (type: `string`):

Optional WhatsApp Cloud API access token for sending run notifications.

## `whatsappPhoneNumberId` (type: `string`):

Optional WhatsApp Business phone-number ID.

## `whatsappTo` (type: `string`):

Optional WhatsApp recipient phone number in E.164 format.

## `notificationLimit` (type: `integer`):

Maximum number of posts to include in each notification batch.

## `notifyOnlyChanges` (type: `boolean`):

When monitoring mode is enabled, send notifications only for new or updated posts.

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations (Notion, Slack, Google Sheets, Airtable, Linear, etc.) to receive emitted posts.

## `mcpIssueTeam` (type: `string`):

Optional team name or ID for issue-tracker connectors such as Linear.

## `mcpSlackChannel` (type: `string`):

Optional Slack channel for Slack MCP connector exports.

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

Proxy configuration. The default is suitable for most runs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/874728723021553"
    }
  ],
  "viewOption": "CHRONOLOGICAL",
  "includeComments": false,
  "enrichMarketplaceListings": false,
  "monitoringMode": false,
  "incrementalMode": false,
  "maxItems": 100,
  "compact": false,
  "excludeEmptyFields": false,
  "emitUnchanged": false,
  "notificationLimit": 10,
  "notifyOnlyChanges": true,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/groups/874728723021553"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/facebook-group-post-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": [{ "url": "https://www.facebook.com/groups/874728723021553" }] }

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/facebook-group-post-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    {
      "url": "https://www.facebook.com/groups/874728723021553"
    }
  ]
}' |
apify call blackfalcondata/facebook-group-post-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/facebook-group-post-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Facebook Group Post Scraper",
        "description": "Scrape facebook.com group posts from group URLs with post text, timestamps, engagement counters, media, optional comments, Marketplace listing signals, and monitoring mode. No login required.",
        "version": "0.1",
        "x-build-id": "m4lhsOw4Ib09PLU8D"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~facebook-group-post-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-facebook-group-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~facebook-group-post-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-facebook-group-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~facebook-group-post-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-facebook-group-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "🔗 Facebook group URLs",
                        "type": "array",
                        "description": "One or more public Facebook group URLs to scrape posts from, for example https://www.facebook.com/groups/874728723021553",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "viewOption": {
                        "title": "Post sorting",
                        "enum": [
                            "CHRONOLOGICAL",
                            "RECENT_ACTIVITY",
                            "TOP_POSTS",
                            "CHRONOLOGICAL_LISTINGS"
                        ],
                        "type": "string",
                        "description": "Preferred feed order for the group feed.",
                        "default": "CHRONOLOGICAL"
                    },
                    "search": {
                        "title": "Keyword filter within groups",
                        "type": "string",
                        "description": "Keep only posts from the provided group URLs whose extracted text contains this phrase."
                    },
                    "onlyPostsNewerThan": {
                        "title": "Only posts newer than",
                        "type": "string",
                        "description": "Absolute date such as 2026-04-20 or relative duration such as 30 days, 2 weeks, 1 month."
                    },
                    "includeComments": {
                        "title": "Include top comments",
                        "type": "boolean",
                        "description": "Extract top-level comments when they are present in the group page payload.",
                        "default": false
                    },
                    "enrichMarketplaceListings": {
                        "title": "Enrich Marketplace listings",
                        "type": "boolean",
                        "description": "Detect Marketplace posts and fetch extra listing fields when a linked item is present.",
                        "default": false
                    },
                    "monitoringMode": {
                        "title": "Monitoring mode",
                        "type": "boolean",
                        "description": "Return only posts not delivered in previous runs for the same state key.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "Incremental mode",
                        "type": "boolean",
                        "description": "Alias for monitoring mode. Return only posts not delivered in previous runs for the same state key.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max posts",
                        "minimum": 0,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum number of posts to save.",
                        "default": 100
                    },
                    "compact": {
                        "title": "Compact output",
                        "type": "boolean",
                        "description": "Return only core fields.",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "Exclude empty fields",
                        "type": "boolean",
                        "description": "Remove null, empty array, and empty object fields from each output item.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "State key",
                        "type": "string",
                        "description": "Optional stable key for monitoring mode."
                    },
                    "emitUnchanged": {
                        "title": "♻️ Include unchanged posts",
                        "type": "boolean",
                        "description": "When monitoring mode is enabled, also emit posts already seen before.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "Telegram bot token",
                        "type": "string",
                        "description": "Optional Telegram bot token for sending run notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram chat ID",
                        "type": "string",
                        "description": "Optional Telegram chat ID for sending run notifications."
                    },
                    "discordWebhookUrl": {
                        "title": "Discord webhook URL",
                        "type": "string",
                        "description": "Optional Discord webhook URL for sending run notifications."
                    },
                    "slackWebhookUrl": {
                        "title": "Slack webhook URL",
                        "type": "string",
                        "description": "Optional Slack webhook URL for sending run notifications."
                    },
                    "webhookUrl": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "Optional generic webhook URL. Receives a JSON payload with emitted posts and run metadata."
                    },
                    "webhookHeaders": {
                        "title": "Webhook headers",
                        "type": "object",
                        "description": "Optional custom headers for the generic webhook."
                    },
                    "whatsappAccessToken": {
                        "title": "WhatsApp access token",
                        "type": "string",
                        "description": "Optional WhatsApp Cloud API access token for sending run notifications."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "WhatsApp phone number ID",
                        "type": "string",
                        "description": "Optional WhatsApp Business phone-number ID."
                    },
                    "whatsappTo": {
                        "title": "WhatsApp recipient",
                        "type": "string",
                        "description": "Optional WhatsApp recipient phone number in E.164 format."
                    },
                    "notificationLimit": {
                        "title": "Notification limit",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of posts to include in each notification batch.",
                        "default": 10
                    },
                    "notifyOnlyChanges": {
                        "title": "Notify only changes",
                        "type": "boolean",
                        "description": "When monitoring mode is enabled, send notifications only for new or updated posts.",
                        "default": true
                    },
                    "appConnector": {
                        "title": "Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations (Notion, Slack, Google Sheets, Airtable, Linear, etc.) to receive emitted posts."
                    },
                    "mcpIssueTeam": {
                        "title": "MCP issue team",
                        "type": "string",
                        "description": "Optional team name or ID for issue-tracker connectors such as Linear."
                    },
                    "mcpSlackChannel": {
                        "title": "MCP Slack channel",
                        "type": "string",
                        "description": "Optional Slack channel for Slack MCP connector exports."
                    },
                    "proxy": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Proxy configuration. The default is suitable for most runs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
