Facebook Groups Scraper - Public Group Posts & Reactions avatar

Facebook Groups Scraper - Public Group Posts & Reactions

Pricing

from $0.80 / 1,000 posts

Go to Apify Store
Facebook Groups Scraper - Public Group Posts & Reactions

Facebook Groups Scraper - Public Group Posts & Reactions

Facebook groups scraper: posts from public Facebook groups with text, date, author, reactions, comments and shares counts, photos, videos, links, group name and member count. Whole feeds or a date range; export to JSON, CSV, Excel or via API. No login, no cookies.

Pricing

from $0.80 / 1,000 posts

Rating

0.0

(0)

Developer

Social Scrapers

Social Scrapers

Maintained by Community

Actor stats

0

Bookmarked

50

Total users

21

Monthly active users

1.3 hours

Issues response

10 hours ago

Last modified

Features

Limited permissions

Share

This Facebook Groups Scraper extracts posts from public Facebook groups: the text, when it was posted, the author, reactions, comments and shares counts, photos, videos and shared links, plus the group's name and member count. Read the newest posts or a group's whole feed, keep only posts newer than a date, and download clean data as JSON, CSV or Excel. No Facebook account, no login, no cookies. It costs $1.00 per 1,000 posts plus $0.004 per group read (until 26 November 2026: $0.60 per 1,000 posts, no group charge).

💡 Need a feature that isn't here? Just ask. Open an issue on the Issues tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

⭐ Found it useful? A short review on the Reviews tab helps other people find this scraper, and tells us what to build next.

What does Facebook Groups Scraper do?

  • 👥 Public group feeds, newest first: give it group URLs and it reads each group's posts from the most recent backwards.
  • ♾️ As deep as you need: a set number of posts per group, or every post the feed lists (maxPostsPerGroup: 0).
  • 📅 Date filter: keep only posts newer than a date (2026-01-31, 31/01/2026, Jan 31 2026) or an age (7 days, 2w, 3 months, yesterday); reading stops once the feed goes past it.
  • 📊 Engagement and media: reactions, comments and shares counts, photos and videos with Facebook's own alt text, shared links and re-shared posts.
  • 🏷️ Group details on every post: group id, name, link and member count.
  • 🔗 Any group reference: a full group URL, a link to any post inside the group, or (through the API) just the group's numeric id or vanity name.
  • 🔒 Private groups are skipped: they are reported in the log, produce no output and cost nothing.
  • 💸 Pay for what you get: posts saved and public groups read. Private or missing groups cost nothing, and the run stops cleanly at the spending limit you set.
  • 🪶 Light on quiet groups: with a date filter, a group with nothing new is checked in one small request.
  • 🔁 Daily monitoring: skip posts you already got (the same post, or the same text reposted in any group), read only what is new since the last run, and pick a date and time window in your own time zone. See Daily monitoring of groups.
  • 🧹 Filters: skip posts without text, posts with words you don't want, or posts by authors you don't want. Skipped posts are free.
  • 🧾 Past dates in busy groups: turn on payForCheckedPosts and the run reads on to your dates instead of stopping early: every post it reads but would skip is saved with a skipReason and charged as a post. See Past dates in busy groups.
  • 📄 Light output: just the link, time, author, group and text of each post, for spreadsheets and alerts.

Because it runs on the Apify platform, you also get the API, scheduling, integrations, monitoring and proxy rotation without writing any code.

What data can you extract from Facebook groups?

One dataset item per post. Every field is always present: null (or an empty list) means Facebook shows nothing for it.

FieldTypeDescription
postIdstringNumeric post id.
urlstringPermalink of the post.
textstringPost text; empty for a photo or link shared without a caption.
timestring or nullWhen it was posted, ISO 8601 in UTC.
authorobject or nullid, name, url (profile link, when Facebook shows one) and isAnonymous (posted as "Anonymous participant").
groupobjectid, name, url and membersCount of the group.
likesCountintegerAll reactions (Like, Love, Haha, ...).
commentsCountintegerNumber of comments.
sharesCountintegerNumber of shares.
mediaarrayAttached photos, videos and link previews: type (photo, video, link, ...), url, imageUrl and altText (Facebook's automatic image description).
linkTitlestring or nullTitle of the shared link, if the post shares one.
sharedPostobject or nullWhen the post shares another post: its text, url and author.
inputUrlstringThe startUrls entry this post came from.

How to scrape Facebook groups

  1. Click Try for free (or Start) on this page.
  2. In Facebook group URLs, add public groups such as https://www.facebook.com/groups/1006060197306320/, one per line.
  3. Set Max posts per group (for example 200, or 0 for the whole feed) and, if you like, Only posts newer than (for example 30 days).
  4. Click Start. Groups are read side by side; 150 posts of a group take about 2 minutes.
  5. Download the posts from the Output tab as JSON, CSV, Excel or HTML, or read them through the API.

How much does it cost to scrape Facebook groups?

$1.00 per 1,000 posts plus $0.004 per group read, platform usage and proxies included, from 26 November 2026. Until then the price is $0.60 per 1,000 posts with no group charge. You pay one post event for each post saved and one group event for each public group whose feed a run reads, new posts or not:

Your Apify planPer 1,000 postsPer group read
Free and Starter (Bronze)$1.00$0.004
Scale (Silver)$0.90 (−10%)$0.0036
Business (Gold)$0.80 (−20%)$0.0032

Each run also carries Apify's standard start charge of $0.00005.

Three examples:

  • The latest 100 posts of 20 groups = 2,000 posts + 20 groups = $2.08.
  • One busy group's last 10,000 posts = $10.00 (+ $0.004 for the group).
  • 50 groups checked every day for new posts (onlyPostsNewerThan: "1 day", about 4 new posts each) = 200 posts + 50 groups = $0.40 a day.

Why a group charge? Opening a group costs the same whether it has one new post or a hundred. Charging it once per group keeps the per-post price low for everyone, instead of raising it to cover groups that have little new.

Private, missing or unreadable groups produce no posts and cost nothing. To cap a run's cost, set Maximum cost per run in the run options: the scraper stops cleanly once it is reached and keeps everything scraped so far. Apify's free plan comes with monthly usage credit, enough to try this scraper on thousands of posts.

Input example

{
"startUrls": [
{ "url": "https://www.facebook.com/groups/1006060197306320/" },
{ "url": "https://www.facebook.com/groups/285178551618642/" }
],
"maxPostsPerGroup": 200,
"onlyPostsNewerThan": "30 days",
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
FieldTypeDescription
startUrlsarray, requiredPublic groups: https://www.facebook.com/groups/<name-or-id>, a link to a post in the group, or a share link from the Facebook app (https://www.facebook.com/share/g/…, fb.me/…). Through the API, plain strings, numeric group ids and vanity names work too.
maxPostsPerGroupinteger, default 100How many posts to read from each group, newest first. 0 = every post the feed lists.
onlyPostsNewerThanstring, optionalFrom (inclusive): skip older posts. A date (2026-01-31, 2026-1-31, 31/01/2026, Jan 31 2026; 00:00 that day in timeZone), a date and time (2026-11-12 18:00, or ISO with an offset: 2026-11-12T18:00:00+05:00), or an age: 7 days, 2w, 3 months, 1 year, yesterday. With both day and month 12 or less (01/02/2026) the date is read month/day/year.
onlyPostsOlderThanstring, optionalTo (exclusive): skip posts published at or after this. Same formats; 2026-11-12 keeps posts up to the end of 11 November.
olderPostsToCheckinteger, default 1When a post older than onlyPostsNewerThan (or than the group's last run) comes, read this many more posts before stopping the group. A post inside your dates among them is delivered and the count starts again. Raise it (5, 10, up to 100) for an extra safety margin. Checked posts that are not delivered are not charged, unless payForCheckedPosts is on.
timeZonestring, default UTCTime zone for dates and times without an offset, and for today and yesterday: Asia/Karachi, Europe/London, +05:00… Output times are always UTC.
payForCheckedPostsboolean, default falsePay for checked posts (read on past skipped posts): every post the run reads but would skip is also saved, with a skipReason, and charged as a post. For past dates in busy groups, or runs where most posts are skipped. See Past dates in busy groups.
skipDuplicatePostsboolean, default falseSkip posts delivered before (same post id, or same author and text) or earlier in the same run. Not saved, not charged.
duplicateMemoryNamestring, default facebook-groups-seenThe key-value store in your account that remembers delivered posts and the last run. Use one name per monitoring job.
duplicateMemoryDaysinteger, default 90Days a delivered post is remembered. 0 = forever.
onlyPostsSinceLastRunboolean, default falseRead each group back to the start of the last run that read it in full. A first run uses onlyPostsNewerThan, or 1 day.
skipPostsWithoutTextboolean, default falseSkip posts with no text and no shared post text. Not charged.
excludeKeywordsarray, default []Skip posts whose text or shared text contains any of these words or phrases, as whole words (car skips "car for sale", never "carpet"; case ignored), unless the post also has a keepKeywords word. Not charged.
keepKeywordsarray, default []Always deliver posts whose text or shared text contains any of these words or phrases (whole words, case ignored), even when they also have an excluded word. A keep word that appears only inside a longer excluded phrase doesn't count (DHA inside "DHA City"). On its own it skips nothing.
excludeAuthorsarray, default []Skip posts by these authors: names, profile links or numeric ids. Not charged.
outputFormatstring, default fullfull: every field. light: postUrl, time, authorName, groupName, text, sharedPostText, postId.
proxyConfigurationobject, default Apify Proxy RESIDENTIALProxy settings. Keep the residential default.

Every setting after onlyPostsNewerThan is off by default: an input without them reads, saves and charges exactly as before.

Output example

A real post from the public Hardy Geraniums group, with the author's name and ids replaced by placeholders and image links shortened:

{
"postId": "4093813627421763",
"url": "https://www.facebook.com/groups/285178551618642/permalink/4093813627421763/",
"text": "Amazing to still see geraniums flowering in early November. I guess that will all change when we get some frost but there has been non here yet. Have you had any in your area?",
"time": "2026-11-06T21:10:01.000Z",
"author": {
"id": "<author-id>",
"name": "<author name>",
"url": "https://www.facebook.com/<author-profile>",
"isAnonymous": false
},
"group": {
"id": "285178551618642",
"name": "Hardy Geraniums",
"url": "https://www.facebook.com/groups/285178551618642/",
"membersCount": 18200
},
"likesCount": 90,
"commentsCount": 13,
"sharesCount": 1,
"media": [
{
"type": "photo",
"url": null,
"imageUrl": "https://scontent.xx.fbcdn.net/v/…/887946124_1573089684854073_5393627511227627996_n.jpg",
"altText": "No photo description available."
},
{
"type": "photo",
"url": null,
"imageUrl": "https://scontent.xx.fbcdn.net/v/…/895065021_1573089721520736_6630069767649236959_n.jpg",
"altText": "May be an image of Lewisia and geranium"
}
],
"linkTitle": null,
"sharedPost": null,
"inputUrl": "https://www.facebook.com/groups/285178551618642/"
}

Daily monitoring of groups

Run the scraper every day on a list of groups and get each new post once. Set it up once, then add an Apify Schedule (for example every day at 9:00) for the task.

{
"startUrls": [
{ "url": "https://www.facebook.com/groups/1006060197306320/" },
{ "url": "https://www.facebook.com/groups/285178551618642/" }
],
"maxPostsPerGroup": 0,
"maxDeliveredPerGroup": 100,
"onlyPostsSinceLastRun": true,
"onlyPostsNewerThan": "1 day",
"skipDuplicatePosts": true,
"skipSameTextAnyAuthor": true,
"skipNearDuplicates": true,
"duplicateMemoryName": "my-daily-groups",
"duplicateMemoryDays": 90,
"skipPostsWithoutText": true,
"includeKeywords": ["sale", "rent", "plot", "flat", "sq ft"],
"excludeKeywords": ["car", "loan"],
"keepKeywords": ["car parking", "bank loan"],
"timeZone": "Asia/Karachi",
"outputFormat": "table",
"addMediaInfo": true
}

List your 10 groups (or 100) in startUrls. What each part does:

  • Several groups per run. Groups are read side by side, and every post carries its group: group.name (and groupName in light output).

  • Only what is new: onlyPostsSinceLastRun. Each group is read back to the start of the last run that read it in full, so a daily run gets the last day's posts, and a run after a weekend gets the whole weekend. A group read for the first time goes back to onlyPostsNewerThan (here 1 day). A group with nothing new is checked with one small feed request and stops there, and the run pays only its group event.

  • Never the same post twice: skipDuplicatePosts. Every post delivered is remembered by its post id and by its author plus its text (case and spacing ignored). A post seen before, or the same text posted again by the same author (every day, or in several groups), is skipped. Posts repeated within one run, in any group, are caught too. A skipped post costs $0.

  • Running a window again is fast. With skipDuplicatePosts on, the memory also keeps which stretches of each group's feed a run read completely, together with the settings that decide what is delivered (your words, excluded authors, copies, reposts, maxDeliveredPerGroup and duplicateMemoryDays). A later run with the same settings stops reading a group where the rest of its window lies inside those stretches: it reads only what is new, and a date window that was already read in full is not read again at all. The newest 2 hours of each read are always read again, so a post that shows up late is still caught. Change those settings and each window is read in full once, so every post your new settings allow is delivered. The status message says how many groups stopped early.

  • The memory. It lives in the key-value store named by duplicateMemoryName in your own Apify account, created on the first run and kept until you delete it (named stores don't expire). Each post is remembered for duplicateMemoryDays days (default 90; 0 = forever), counted from the day it was delivered. The store also keeps when each group was last read. Use one name per monitoring job, and don't run two jobs with the same name at the same time.

  • Copies from other authors: skipSameTextAnyAuthor. Also skips a post whose text was already delivered from any author, for dealers who copy each other's posts word for word. Emoji, spaces and upper or lower case are ignored. Texts shorter than 30 characters never count as copies, so two people asking "Need a flat in DHA" are both delivered.

  • Almost identical reposts: skipNearDuplicates. Skips an author's repost of the same text with a small change: an emoji, a line moved, a new date. It counts as the same when its words are at least nearDuplicateSimilarity % the same (default 90, word order ignored) and its phone numbers and all other numbers are exactly the same. A new price, any other changed number, or another phone number is news, so that post is delivered. Dates and clock times don't count as numbers. Each author's 30 newest posts are remembered, as hashes only (no text or phone number is stored).

  • Filters. skipPostsWithoutText drops photos and videos without a caption; includeKeywords delivers only posts that mention at least one of your words; excludeKeywords drops posts that mention any of your words (in the post or the post it shares); excludeAuthors drops posts by names, profile links or ids you list. Skipped posts are not saved and cost $0.

  • Whole words. Every word list matches whole words or exact phrases, upper or lower case: car never matches "carpet" or "care", and phase 8 never matches "Phase 80". A number may touch a word, so yds also finds "120yds" and sqft finds "1200sqft". car does match "Car Parking" (it is a whole word there). To keep such posts, add the phrase to the keep words: keep car parking with exclude car, or keep bank loan with exclude loan.

  • Keep words and drop words. Two lists you fill yourself: keepKeywords (always deliver) and excludeKeywords (drop). A post is dropped only when it has a drop word and no keep word; a post with none of your words is always delivered, and with both lists empty everything is delivered. Both match whole words or exact phrases, upper or lower case, in the post or the post it shares. A keep word that appears only inside a longer drop phrase doesn't count, so the two lists can overlap:

    {
    "keepKeywords": ["DHA", "Clifton", "Shahbaz Commercial"],
    "excludeKeywords": ["Bahria Town", "DHA City"]
    }

    "Flat in Shahbaz Commercial" and "Bahria Town is far, I want Clifton" are delivered; "Plot in DHA City" and "Villa in Bahria Town" are dropped; "DHA City or DHA Phase 6?" is delivered (DHA stands alone once). A keep word also delivers a post that has none of the includeKeywords. Excluded authors and duplicates are still skipped. The status message and RUN_SUMMARY count the posts a keep word saved (keptByKeepWord).

  • Table output, fixed columns. outputFormat: "table" saves exactly six columns, always with these names: time, groupName, authorName, text, sharedText, postUrl. The time is written in your timeZone with its offset, for example 2026-11-13T10:32:00+05:00. Pick the Table view on the Output tab (or add view=table to a download link) to get the columns in this order in CSV and Excel.

  • Light output. outputFormat: "light" keeps only postUrl, time, authorName, groupName, text, sharedPostText and postId: one tidy row per post for a sheet or an alert. Pick the Light view on the Output tab. The price per post is the same in every format.

  • Photo and video columns: addMediaInfo. Adds photoCount (every photo of the post, and of the post it shares, not only the few the feed shows) and hasVideo at the end of each row, in any format. Use the Table with photos view with the table output.

  • Excel and Urdu text. CSV downloads from Apify are UTF-8 with a byte order mark, so Excel shows Urdu, Arabic and emoji correctly. The text is always the full text of the post and of the post it shares: the "See more" cut is only on Facebook's screen.

  • One link for the newest file. This link always downloads the posts of your newest successful run as CSV, in the table's column order (replace the token with your own, from Apify Console → Settings → API & Integrations, and keep the link private): https://api.apify.com/v2/acts/socialscrapers~facebook-groups-scraper/runs/last/dataset/items?status=SUCCEEDED&format=csv&view=table&token=YOUR_API_TOKEN For a saved task, use https://api.apify.com/v2/actor-tasks/YOUR_TASK_ID/runs/last/dataset/items?… with the same parameters. The group summary of the newest run is at …/runs/last/key-value-store/records/GROUP_SUMMARY?status=SUCCEEDED&token=YOUR_API_TOKEN.

  • Your time zone. timeZone sets the zone for dates and times you give without an offset. onlyPostsNewerThan (From) is inclusive and onlyPostsOlderThan (To) is exclusive; a date without a time means 00:00 that day in that zone. So "onlyPostsNewerThan": "2026-11-12 18:00" with "onlyPostsOlderThan": "2026-11-13" in Asia/Karachi gives the posts from 18:00 to midnight Karachi time on 12 November. Post times in the output are UTC, except in the table output.

  • You pay for posts delivered. One post event per post saved and one group event per group read, as always. Posts skipped as duplicates, without text, by an excluded word or author, or outside the date window are never charged, unless you turn on payForCheckedPosts. The run's status message and its RUN_SUMMARY record (in the run's key-value store) say how many were skipped and why.

  • maxPostsPerGroup is a cap on reading. It counts the posts read from a group's feed within the dates you set, the skipped ones included, so a run never reads more than you allow. With payForCheckedPosts it counts every post read, newer and older than your dates too. With onlyPostsSinceLastRun the dates usually stop a group long before the cap.

  • maxDeliveredPerGroup is a cap on delivery. A group stops once this many of its posts were delivered in the run, so one busy group cannot use up the day's budget. Skipped posts don't count towards it. The group then counts as read: with onlyPostsSinceLastRun, its next run starts from this run's start, and the posts past the cap are not delivered later.

  • A spending cap per run. Set Maximum cost per run in the run options (or in your task's settings): the run stops cleanly when it is reached and keeps every post it delivered.

  • The group summary. After each monitoring run the log shows a small table per group: posts checked, delivered, and skipped as duplicates, reposts or copies, without text, by your words, by author, outside the dates, or over maxDeliveredPerGroup, with each group's members and posts a day. The same table is saved as GROUP_SUMMARY (a CSV file) in the run's key-value store, and in RUN_SUMMARY.

  • Dead groups. A group that delivered no post in 3 runs in a row, or that Facebook refused, not public or not found, gets a clear warning in the summary, the log and the status message. The runs in a row are counted in the memory store, so they need skipDuplicatePosts or onlyPostsSinceLastRun.

  • Safe restarts. When Apify moves a run to another server, it continues where it stopped, with the same dates. Posts it already saved are never saved or charged again (it checks its own dataset), and a group's group event is never charged twice.

Past dates in busy groups: pay for checked posts

A group's feed starts at its newest post, so a date window a few days back is reached only after reading every newer post: a group with 400 posts a day puts 2,000 newer posts in front of a window that ended 5 days ago. Those posts, and the posts your settings skip (duplicates, copies, reposts, posts without text, your word and author filters), are read but not delivered, so they are free. A run that reads many posts and keeps few may stop early: "Stopped early: the groups gave too few posts to keep for the posts read".

Turn on Pay for checked posts (payForCheckedPosts: true) and the run reads on instead:

  • Every post read is saved. The posts you want (inside your dates, past every filter) are saved as always, with an empty skipReason. Every other post the run reads is saved too, as a checked post, with its skipReason. So every row has the column, and you can filter on it in a sheet.
  • Every saved post is charged as a post, at the same price: $0.60 per 1,000 posts now, $1.00 per 1,000 posts from 26 November 2026 (plus $0.004 per group read from then on, as for every run). A run that reads 3,000 posts to reach your dates costs $1.80 now, and $3.00 from 26 November.
  • maxPostsPerGroup caps the posts read per group, and so what checked posts cost: with the setting on it counts every post read, newer and older than your dates too. 0 reads until the dates are done. Your Maximum cost per run in the run options caps the whole run.
  • The end rules stay the same. A group stops at the start of your dates (after olderPostsToCheck older posts), at maxPostsPerGroup, at the end of its feed, at the run's time limit or at your maximum cost per run, whichever comes first.
  • Only posts you want are remembered. The duplicate checks of the run and the duplicate memory (skipDuplicatePosts, skipSameTextAnyAuthor, skipNearDuplicates) learn from the posts you want only. A checked post never turns a later post into a duplicate, a copy or a repost, and it is never written to the memory, so a later run for its dates still delivers it as a post you want. maxDeliveredPerGroup counts the posts you want only.
  • Counted apart. The status message says, for example, "412 posts in your dates + 2,890 checked posts (outside your dates or skipped by your settings), all saved and charged", with the checked posts by skipReason. The log line of each group says the same for that group, and RUN_SUMMARY has wantedPosts, checkedPosts and checkedBySkipReason, in all and for each group.
  • Table output. skipReason is a 7th column after the six fixed ones (with addMediaInfo, photoCount and hasVideo come after it). The six keep their names and order. Pick the Table with skip reasons view (or Table with photos and skip reasons), or add view=tableChecked to a download link, to get the seven columns in this order in CSV and Excel.

The skipReason values never change:

skipReasonWhy the post was saved as a checked post
(empty)A post you want: inside your dates and past every filter.
newer than your datesPosted at or after onlyPostsOlderThan, read on the way to your dates.
older than your datesPosted before onlyPostsNewerThan (or the group's last run), read before the group stopped.
duplicateDelivered before, or earlier in this run: the same post, or the same author and text (skipDuplicatePosts).
same textA text another author's delivered post already had (skipSameTextAnyAuthor).
near duplicateAn almost identical repost by the same author (skipNearDuplicates).
no textNo text of its own and none in the post it shares (skipPostsWithoutText).
excluded wordHas a word of excludeKeywords and no keep word.
no included wordHas none of the includeKeywords and no keep word.
excluded authorPosted by an author in excludeAuthors.
over max deliveredPast every filter, but its group had already delivered maxDeliveredPerGroup posts.

Ready to paste: a window of 3 days that ended 4 days ago, with duplicates, copies and reposts skipped, in the table format.

{
"startUrls": [{ "url": "https://www.facebook.com/groups/1006060197306320/" }],
"onlyPostsNewerThan": "7 days",
"onlyPostsOlderThan": "4 days",
"olderPostsToCheck": 20,
"payForCheckedPosts": true,
"maxPostsPerGroup": 3000,
"skipDuplicatePosts": true,
"skipSameTextAnyAuthor": true,
"skipNearDuplicates": true,
"skipPostsWithoutText": true,
"duplicateMemoryName": "my-past-windows",
"outputFormat": "table"
}

Here maxPostsPerGroup: 3000 means a group costs at most $1.80 now ($3.00 plus $0.004 for the group from 26 November) however busy it is; a group that reaches it before your dates says so in the log ("your dates … were not reached yet"). Without the setting, nothing changes: skipped posts stay free and are not saved.

Use cases

  • Community research: see what members of a niche ask about, recommend and complain about.
  • Brand and product monitoring: track mentions of products, services or topics in public groups.
  • Lead and market research: find the questions and needs people post in industry, local and hobby groups.
  • Trend tracking: follow how often a topic comes up over weeks or months, with exact post times.
  • Engagement analysis: compare which posts draw the most reactions, comments and shares.
  • Text datasets: collect real-world posts for sentiment analysis, topic modelling or classification.

Use Facebook Groups Scraper via API, Python, JavaScript and integrations

Run the scraper from your own code with the Apify API or an Apify client:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'MY-APIFY-TOKEN' });
const run = await client.actor('socialscrapers/facebook-groups-scraper').call({
startUrls: [{ url: 'https://www.facebook.com/groups/1006060197306320/' }],
maxPostsPerGroup: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
from apify_client import ApifyClient
client = ApifyClient("MY-APIFY-TOKEN")
run = client.actor("socialscrapers/facebook-groups-scraper").call(
run_input={"startUrls": [{"url": "https://www.facebook.com/groups/1006060197306320/"}], "maxPostsPerGroup": 200}
)
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
print(post["time"], post["likesCount"], post["text"][:80])
  • Schedules: collect new posts every day with an Apify schedule and onlyPostsNewerThan: "1 day".
  • Integrations: send the posts to Google Sheets, Slack, Airtable, Make, Zapier or n8n, or trigger your own webhook when a run finishes.
  • AI agents: call the scraper as a tool through the Apify MCP server.

Limits

  • Public groups only. Private groups are skipped (and not charged). The scraper never logs in.
  • What a logged-out visitor sees. Some authors show without a numeric id or profile link; their id is then an opaque id that can change over time.
  • No comment texts. You get each post's comment count, not the comments themselves. No member lists either.
  • You choose the groups. The scraper does not search for or discover groups, and it can't look a group up by its name: give its link or id. Share links from the Facebook app (https://www.facebook.com/share/g/…, fb.me/…, a shared group post) are followed to their group, at no charge, and so is a link to Facebook's login page that names a group.
  • Residential proxy required. Facebook rarely shows group pages to data-center IP addresses, so keep the default Apify Proxy RESIDENTIAL setting.
  • Image links expire. imageUrl points to Facebook's CDN, which expires links after a while; download images promptly if you need them.

FAQ

This scraper only reads public groups, the way Facebook shows them to anyone who isn't logged in. Posts can still contain personal data, which laws such as the GDPR protect, so collect only what you need for a legitimate purpose. Apify explains the basics in Is web scraping legal?.

Do I need a Facebook account or cookies?

No. Facebook Groups Scraper reads only what Facebook shows to visitors who are not logged in, so no account of yours is ever at risk.

Can it scrape private groups?

No. Private groups are detected, logged and skipped, with no output and no charge.

Why did my run finish with no posts?

Facebook showed nothing public for that group: it is private, shows its posts only to logged-in visitors, or no longer exists; or Facebook refused the requests even after 5 attempts on fresh IPs. The run still ends Succeeded, its status message says which, and nothing is charged.

If the input holds no usable group (a profile or Page link, a link to another site, a group's name instead of its link, or a date in the future), the run also ends Succeeded, with no results charged and a status message that starts with "Nothing to scrape:" and says what to change.

Why did my run stop early?

"Stopped early: the groups gave too few posts to keep for the posts read" means most posts the run read could not be delivered: they were outside your dates, duplicates, reposts, or skipped by your settings. The status message counts where the posts read went and says when the run had not reached your dates yet. The log then has one line per group: posts read (inside your dates, newer, older), delivered, skipped by reason, and how far back its feed was read. A run stopped by its time limit or its maximum total charge gets the same lines.

It can happen inside your dates too, in a run whose dates end today: in a busy group where many posts are duplicates, copies, reposts or posts without text, a run can stop in its first pages even when it delivers a good share of what it reads. There is no setting that switches the early stop off. To read every post of your dates, turn on payForCheckedPosts for that run: the posts your settings skip are then saved with a skipReason and charged like posts, so the run reads on. maxPostsPerGroup and Maximum cost per run cap what it costs.

Every run that finishes normally has these lines too, under "How far each group was read", and each group read to its end also says why it stopped: it reached posts older than the start of your dates (with that moment in your time zone), the end of the group's feed, Max posts per group or Max delivered posts per group, an earlier run had already read the rest of your dates, or Facebook stopped giving new posts. The same is in RUN_SUMMARY as readBackTo and stoppedBecause for each group.

A group's feed starts at its newest post, so a date window that ends several days ago is reached only after reading every newer post. For daily work, onlyPostsSinceLastRun reads only what is new. To read on to a past window, turn on payForCheckedPosts: every post read is then saved and charged, so the run is not stopped for reading posts it would skip (see Past dates in busy groups).

A run ends Failed only when Facebook refused every one of 3 or more groups and a well-known public group failed to load on the same setup as well: then the scraper itself is being blocked. When that public group loads fine, the run ends Succeeded and marks each refused group as not public or refused by Facebook.

Are posts read in date order? Can one post with another date stop a group early?

The scraper reads each group's New posts feed, newest first by the time each post was published. That is not the order you see in the Facebook app or website, which by default sorts by relevance or new activity (new comments bring an old post back up), so there the dates look mixed.

Posts newer than onlyPostsOlderThan never stop a group: they are read past, not charged (unless payForCheckedPosts is on), until the feed reaches your dates. A group stops only when posts older than onlyPostsNewerThan come, and never at the first one: it reads one more by default. Set olderPostsToCheck to read more of them (for example 5); a post inside your dates among them is delivered and the count starts again.

A run can also stop early for other reasons, which its status message and log say: see "Why did my run stop early?".

Can a run start at a past date, without reading the newer posts?

No. Facebook shows a public group's posts only from the newest one down, page by page, and a visitor who is not logged in cannot open the feed at a chosen date. So a run reaches your dates only after reading every newer post. Those posts are not charged, unless payForCheckedPosts is on: then they are saved with the skipReason newer than your dates and charged like the other checked posts. The later in the day a run for an earlier day starts, the more of them there are.

For one whole past day, start the run just after that day ends. Add an Apify Schedule for 00:05 in your time zone (cron 5 0 * * *, with the schedule's time zone set to yours) and give the task "onlyPostsNewerThan": "yesterday", "onlyPostsOlderThan": "today" and your timeZone. Each run then gets exactly yesterday, 00:00 to 24:00 in that zone, and reads only the few posts of the first minutes after midnight on the way, so the same day costs about the same every time, whenever you open the results. A day further back means reading every post published since it ended.

How many posts can I scrape from one group?

As many as its feed lists: set maxPostsPerGroup to 0. The newest 29 posts arrive in one request and older ones 3 at a time, so a whole feed takes longer than recent posts.

Why did I get fewer posts than maxPostsPerGroup?

The group has fewer posts, the date limit in onlyPostsNewerThan was reached, or the run hit its maximum total charge. The run log says which, for each group. With the filters or skipDuplicatePosts on, skipped posts count towards maxPostsPerGroup (it caps how many posts are read) but are not delivered or charged; the status message says how many were skipped.

Does it remember posts between runs?

Only when you ask: turn on skipDuplicatePosts, skipSameTextAnyAuthor, skipNearDuplicates or onlyPostsSinceLastRun. The run then keeps a small memory in a key-value store in your Apify account, named by duplicateMemoryName. Without those settings nothing is stored outside the run's own storage. See Daily monitoring of groups.

Does likesCount count only Likes?

It counts all reactions (Like, Love, Care, Haha, Wow, Sad, Angry), the number Facebook shows under the post.

Can I run it on a schedule or from my own code?

Yes. Use Apify schedules, the Apify API and client libraries, webhooks, or integrations such as Make, Zapier or n8n.

Other scrapers by Social Scrapers

ScraperWhat it gets
TikTok APIProfiles, Videos and Comments
TikTok Comments ScraperComments, Replies and Likes
TikTok Hashtag ScraperTop Videos, Views and Likes
TikTok Profile ScraperFollowers, Bio, Stats and Videos
TikTok ScraperVideos, Profiles, Hashtags and Comments
TikTok Sound ScraperVideos Using a Sound and Music Info
TikTok Transcript ScraperVideo Captions and Subtitles to Text
TikTok Video ScraperViews, Likes, Captions and Comments
Instagram APIProfiles, Posts, Reels, Comments and Hashtags
Instagram Comments ScraperComments, Likes and Reply Counts
Instagram Email ScraperEmails and Phones from Public Profiles
Instagram Hashtag ScraperReels and Keyword Search
Instagram Post Details ScraperLikes, Comments, Views and Media
Instagram Post ScraperPosts, Reels and Comments
Instagram Profile ScraperFollowers, Bio, Posts and Reels
Instagram Reels ScraperReels, Plays, Likes and Comments
Instagram Reels Transcript ScraperSpeech to Text and Captions
Instagram ScraperPosts, Profiles, Reels, Comments and Hashtags
YouTube APIVideos, Transcripts, Search, Channels and Comments
YouTube Channel ScraperVideos, Shorts, Subscribers and About
YouTube Comments ScraperComments, Replies and Likes
YouTube ScraperVideos, Shorts, Channels and Comments
YouTube Search ScraperVideos, Channels, Views and Filters
YouTube Shorts ScraperShorts, Views, Likes and Search
YouTube Transcript ScraperSubtitles, Captions and SRT
YouTube Video Details ScraperStats, Subtitles and Comments
Facebook Ads Library ScraperMeta Ad Library and Spend
Facebook Comments ScraperPosts, Reels, Videos and Replies
Facebook Events ScraperPublic Events, Dates and Hosts
Facebook Marketplace ScraperPrices, Locations and Sellers
Facebook Page Contact Info ScraperEmail, Phone and WhatsApp
Facebook Posts ScraperPages, Profiles and Timelines
Facebook Pages ScraperProfiles, Contact Info and Reviews
Facebook Reels ScraperReels, Videos, Plays and Captions
X (Twitter) Profile ScraperFollowers, Bio and Tweets
X (Twitter) Tweet ScraperLatest Posts by Profile
Threads Profile ScraperFollowers, Bio, Links and Posts
Threads Replies ScraperComments, Authors, Likes and Media
Threads ScraperPosts, Profiles, Replies and Search
Threads Search ScraperKeywords, Hashtags, Top and Recent Posts
Reddit Comments ScraperThreads, Replies, Votes and Authors
Reddit ScraperPosts, Comments, Subreddits, Users and Search
Reddit Search ScraperPosts by Keyword, Subreddit and Date
Reddit User ScraperProfiles, Karma, Posts and Comments
Subreddit ScraperHot, New and Top Posts with Comments
Quora ScraperAnswers, Questions, Profiles and Topic Search
LinkedIn Ad Library ScraperAds, Advertisers and Impressions
LinkedIn Company Posts ScraperLatest Posts, No Login
LinkedIn Company ScraperCompany Details, Size and Website
LinkedIn Job Search ScraperFilters, Salaries and New Jobs
LinkedIn Jobs ScraperJob Listings, Salaries and Companies
LinkedIn Post Comments ScraperTop Comments, No Login
LinkedIn Posts ScraperPublic Posts, Reactions and Comments
LinkedIn Profile Posts ScraperLatest Posts, No Login
Google Maps Email ExtractorEmails, Phones and Social Links
Google Maps ScraperPlaces, Phones, Websites, Ratings and Hours
Google News ScraperHeadlines, Articles and Search
Google Ads Transparency ScraperAd Creatives and Advertisers
Amazon Best Sellers ScraperTop 100 Rankings and Prices
Amazon Product ScraperSearch Results, Prices, Ratings, ASINs
Amazon Search ScraperProducts, Prices and Ratings by Keyword
Indeed Jobs ScraperSalaries, Full Descriptions, Company Data
Contact Details ScraperEmails, Phones and Social Links
Telegram Channel ScraperPosts, Views and Media
Doximity ScraperPhysician Profiles and Doctor Directory
KevinMD ScraperPhysician Articles and Author Specialties
Op-Med ScraperPhysician Essays and Doctor Profiles
Airbnb Reviews ScraperGuest Reviews, Ratings and Hosts
Airbnb ScraperListings, Prices, Reviews and Hosts
Booking.com ScraperHotels, Prices and Reviews
Career Site Jobs ScraperGreenhouse, Lever, Ashby and Workday
eBay ScraperListings, Prices, Item Details and Sellers
Etsy ScraperProducts, Prices, Shops and Reviews
Google Shopping ScraperProducts, Prices and Sellers
Google Trends ScraperInterest Over Time, Regions and Queries
MercadoLibre ScraperProducts, Prices and Sellers
Similarweb ScraperWebsite Traffic, Rank and Visits
Tripadvisor Reviews ScraperHotels, Restaurants and Attractions
Tripadvisor ScraperHotels, Restaurants and Reviews
Yelp ScraperBusinesses, Reviews, Ratings and Contacts
Zillow Property ScraperHome Details, Zestimate and History
Zillow ScraperListings, Prices, Zestimates and Agents