Facebook Groups Scraper avatar

Facebook Groups Scraper

Pricing

from $5.00 / 1,000 posts

Go to Apify Store
Facebook Groups Scraper

Facebook Groups Scraper

Collect posts from multiple Facebook groups in one run. Filter by keyword, date, or engagement, export posts and comments to CSV or JSON, and schedule repeat collections with Apify Tasks.

Pricing

from $5.00 / 1,000 posts

Rating

5.0

(1)

Developer

Mohamed Khairy

Mohamed Khairy

Maintained by Community

Actor stats

0

Bookmarked

79

Total users

5

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Facebook Multi-Group Scraper

Extract posts from one or many Facebook groups with robust parsing and production-focused outputs.

What this Actor does

  • Scrapes group feed posts from facebook.com/groups/...
  • Supports single-group and multi-group runs
  • Handles authenticated scraping using your Facebook cookies
  • Returns structured post data including text, author, engagement, comments, and media
  • Supports incremental sync (new_only / refresh_recent)
  • Emits run-level quality and summary reports in Key-Value Store

Key features

  • Multi-group input via groupUrls
  • Per-group overrides (count, cursor, sortType, scrapeUntil)
  • Output profiles:
    • compact
    • analytics (default)
    • full
  • Comments modes:
    • top (fast)
    • full (paginated per-post, capped)
  • Reaction breakdown (like, love, haha, wow, sad, angry, care, total) when available
  • Keyword and engagement filters
  • Incremental state with change detection
  • Optional webhook notification on run finish
  • Optional trend package output (GROUP_TRENDS)

Input quickstart

Minimum input:

{
"groupUrls": [
"https://www.facebook.com/groups/587038730202575"
]
}

Recommended input:

{
"cookie": [],
"groupUrls": [
"https://www.facebook.com/groups/587038730202575"
],
"count": 50,
"sortType": "new_posts",
"scrapeUntil": "30 days",
"outputProfile": "analytics",
"commentsMode": "top",
"includeReactionBreakdown": true,
"incrementalMode": "new_only",
"maxGroupsConcurrency": 1,
"minDelay": 2,
"maxDelay": 5,
"proxy": {
"useApifyProxy": true
}
}

Collect posts daily from the same groups

Use this workflow to track discussions across groups you follow and keep one searchable archive.

  1. Add the group URLs to groupUrls. Set sortType to new_posts, scrapeUntil to 2 days, and incrementalMode to off. Set count high enough to cover the busiest group in that window. Use keywordInclude if you only need posts on specific topics.
  2. Run once and check the dataset and GROUP_SUMMARIES. Save the input as a Task, then add that Task to a daily schedule in Apify Console.
  3. After each run, read its dataset and insert or update rows in your archive using the post url as the unique key. The two-day window overlaps runs to give delayed collections a chance to catch up. A post can appear and be billed in multiple runs, so deduplicate in your destination.

Each scheduled run has its own default storage. The Actor's incremental modes use that run's key-value store. For setup, see Apify task schedules.

Example output item

{
"createdAt": 1771803255,
"url": "https://www.facebook.com/groups/587038730202575/permalink/1238452188394556/",
"user": {
"id": "100090654480820",
"name": "Sample User",
"url": "https://www.facebook.com/nwr.alhyah.952812"
},
"text": "...",
"attachments": [
{
"type": "album",
"images": [
{
"url": "https://...jpg",
"alt": "No photo description available."
}
]
}
],
"reactionCount": 12,
"reactionBreakdown": {
"like": 8,
"love": 2,
"haha": 0,
"wow": 1,
"sad": 0,
"angry": 0,
"care": 1,
"total": 12
},
"commentCount": 4,
"topComments": [],
"groupId": "587038730202575"
}

Key-Value Store outputs

  • OUTPUT_SUMMARY
  • RUN_QUALITY_REPORT
  • GROUP_SUMMARIES
  • INCREMENTAL_SYNC_REPORT (when incremental mode is enabled)
  • GROUP_TRENDS (when emitTrends=true)
  • Per-group cursor/state keys:
    • SCRAPE_STATE__<groupKey>
    • lastCursor__<groupKey>
    • POST_INDEX__<groupKey>

Best practices

  • For private/member-only groups, provide valid cookies.
  • Use proxy in same region as account cookies.
  • Start with commentsMode="top" for speed.
  • Enable commentsMode="full" only when needed.
  • Keep maxGroupsConcurrency conservative (1) for stability.

Limitations

  • No automated login solving or checkpoint bypass.
  • Facebook UI and GraphQL responses can change and may require selector/parser updates.
  • OCR provider integration is not wired yet; OCR modes degrade gracefully.

Use this Actor only on data you are authorized to access and in compliance with Facebook terms and applicable laws.