Apify example task · whoareyouanas/facebook-group-scraper
Track recent activity in a public Facebook group
Sample recent activity from the public group URL used in the Actor input example. Inspect post text, engagement totals and available group metadata.
- Actor
- Facebook Group & Page Scraper - Posts, Comments & Reactions
- Result limit
- 5 (maxPosts)
- Estimated cost
- Up to $0.05
- Run options
- Actor defaults
Example updated 2026-11-20 · actor build 0.1.18 · runs in your own Apify account
From public source to spreadsheet
Use the public group URL and recent-activity view to collect a small post sample. Export CSV for Google Sheets and keep the source view and capture date with the output.
- Start with one authorized public source. Keep the post cap small and inspect the original post URLs in the dataset.
- Export CSV. In Google Sheets, import with automatic conversion disabled so long numeric post IDs stay as text.
- Keep one row per post ID in your working sheet. Save a dated copy before updating it so you can distinguish new posts from engagement changes.
Keep postId, postUrl, timestamp, and engagement counts. Recent activity can bring an older post back into view. Use the post timestamp and your capture date for separate purposes.
01 / About the actor
Facebook Group & Page Scraper - Posts, Comments & Reactions
Export posts from Facebook groups and Pages with text, reactions, supported comments, media references, author information, and optional entity metadata. A run can mix several group and Page sources.
Groups and Pages
Use one startUrls list for public groups, brand Pages, creator Pages, and other supported feeds.
More post context
Include comments, media, and group or Page details when the source exposes them.
Repeatable collection
Control run size, date cutoff, concurrency, and request timeouts for saved tasks or API calls.
02 / Input
The exact input this example runs.
startUrls is required. Set maxPosts deliberately and choose whether comments, media, and entity information are needed. Private-group workflows require valid user-supplied cookies and existing access.
{
"maxPosts": 5,
"maxConcurrency": 1,
"includeComments": false,
"includeMedia": false,
"startUrls": [
{
"url": "https://www.facebook.com/groups/1280379818654162"
}
],
"viewOption": "RECENT_ACTIVITY",
"includeGroupInfo": true
}| Field | Value in this example | What it controls |
|---|---|---|
| maxPostsChange this | 5 | Maximum number of posts to scrape per group or Page. The scraper will stop scrolling once this limit is reached. Set to a lower value for faster runs. |
| maxConcurrency | 1 | Number of browser tabs to run in parallel. Keep at 1 for stability. Increase to 2-3 only if you need faster scraping and have sufficient memory. Higher values increase memory usage. |
| includeCommentsChange this | false | Whether to scrape top-level comments for each post. Disabled by default to keep runs faster and cheaper; enable it when you need richer data. |
| includeMediaChange this | false | Whether to include image/video URLs in output and allow browser media downloads while scraping. Disable this to reduce residential proxy bandwidth usage; text, post metadata, reactions, and counts will still be scraped where available. |
| startUrlsChange this | https://www.facebook.com/groups/1280379818654162 | URLs of Facebook groups OR Pages to scrape. Group example: https://www.facebook.com/groups/123456789 — Page example: https://www.facebook.com/ohpollyfashion. You can mix groups and Pages in the same run. |
| viewOptionChange this | "RECENT_ACTIVITY" | How posts should be sorted when scraping the feed. |
| includeGroupInfoChange this | true | Whether to scrape entity metadata. For groups: name, description, member count, privacy status, admins, rules. For Pages: name, description, follower count, like count, page category, verified status, cover photo. |
Other inputs you can add (6)
| Field | Type / required | Default | Purpose |
|---|---|---|---|
| onlyPostsNewerThan | string | Not specified | Only scrape posts published after this date. Use ISO 8601 format (e.g. 2024-01-01 or 2024-06-15T00:00:00Z). Leave empty to scrape all posts up to maxPosts limit. |
| cookies | array | Not specified | Paste your Facebook cookies as a JSON array to access private/closed groups or login-walled Pages. Export the full facebook.com cookie set from your logged-in browser for best reliability. At minimum, include 'c_user' and 'xs'; companion cookies such as 'fr', 'datr', 'sb', and 'wd' are recommended. |
| requestHandlerTimeoutSecs | integer | 600 | Maximum time in seconds to spend scraping a single group or Page. Targets with many posts need longer timeouts. Default of 600 seconds (10 minutes) handles most cases. Minimum: 60 · Maximum: 1200 |
| minResultsPerMinute | integer | 20 | Stops slow targets after the grace period when result velocity is below this value. This protects pay-per-result margins on blocked or low-yield pages. Set to 0 to disable. Minimum: 0 · Maximum: 1000 |
| costGuardGracePeriodSecs | integer | 120 | How long each target can run before the minimum-results-per-minute guard is enforced. Minimum: 30 · Maximum: 1200 |
| proxyUrl | string | Not specified | Add your Apify Proxy URL for reliable scraping. Format: http://groups-RESIDENTIAL:[email protected]:8000. Get your token from Apify Console. External proxies (BrightData, Oxylabs) also work. |
03 / Make it yours
Change these fields for your own research.
01 · maxPosts
Max Posts
Maximum number of posts to scrape per group or Page. The scraper will stop scrolling once this limit is reached. Set to a lower value for faster runs.
Example: 5
02 · includeComments
Include Comments
Whether to scrape top-level comments for each post. Disabled by default to keep runs faster and cheaper; enable it when you need richer data.
Example: false
03 · includeMedia
Include Media URLs
Whether to include image/video URLs in output and allow browser media downloads while scraping. Disable this to reduce residential proxy bandwidth usage; text, post metadata, reactions, and counts will still be scraped where available.
Example: false
04 · startUrls
Facebook Group or Page URLs
URLs of Facebook groups OR Pages to scrape. Group example: https://www.facebook.com/groups/123456789 — Page example: https://www.facebook.com/ohpollyfashion. You can mix groups and Pages in the same run.
Example: https://www.facebook.com/groups/1280379818654162
05 · viewOption
Post View / Sort Order
How posts should be sorted when scraping the feed.
Example: "RECENT_ACTIVITY"
06 · includeGroupInfo
Include Group / Page Info
Whether to scrape entity metadata. For groups: name, description, member count, privacy status, admins, rules. For Pages: name, description, follower count, like count, page category, verified status, cover photo.
Example: true
Run it in three steps
- Open the example on Apify and select Try for free to copy it into your Apify account.
- Replace the sample values above with your own target and keep the limit small.
- Start the run, then export the dataset as JSON, CSV or Excel.
04 / Output
What the results table shows.
- Post rows contain source links, text, author data, timestamps, reactions, and supported comments.
- Optional group or Page metadata is also documented in key-value storage. A displayed comment count does not prove every comment body was retrieved.
Columns in the “Overview” view
postId
Post ID
postUrl
Post URL
groupName
Group / Page Name
groupUrl
Group / Page URL
authorName
Author Name
authorProfileUrl
Author Profile URL
authorId
Author ID
text
Text
postType
Post Type
timestamp
Timestamp
formattedDate
Formatted Date
likesCount
Likes
lovesCount
Loves
hahaCount
Haha
wowCount
Wow
sadCount
Sad
angryCount
Angry
totalReactions
Total Reactions
commentsCount
Comments
sharesCount
Shares
images
Images
videos
Videos
topComments
Top Comments
source
Source
scrapeDate
Scrape Date
A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.
05 / Cost
What this example costs to run.
At most about $0.05: up to 5 results at $0.01 each (Post Scraped) plus $0.00005 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.
Post Scraped
$0.01 per event
Actor Start
$0.00005 per event · per GB of memory
Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.
06 / API
Run the same input from your code.
This call starts a billable run of Facebook Group & Page Scraper - Posts, Comments & Reactions with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.
curl --request POST \
'https://api.apify.com/v2/acts/whoareyouanas~facebook-group-scraper/run-sync-get-dataset-items?format=json' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"maxPosts":5,"maxConcurrency":1,"includeComments":false,"includeMedia":false,"startUrls":[{"url":"https://www.facebook.com/groups/1280379818654162"}],"viewOption":"RECENT_ACTIVITY","includeGroupInfo":true}'Coverage & interpretation
Check the result before relying on it.
- Cookies do not grant access your account lacks. Facebook visibility and loading behavior can produce partial results.
- Source reaction counts and media links are point-in-time observations.
Questions
About this example.
What does the "Track recent activity in a public Facebook group" example collect?
Sample recent activity from the public group URL used in the Actor input example. Inspect post text, engagement totals and available group metadata. It runs Facebook Group & Page Scraper - Posts, Comments & Reactions, published by whoareyouanas on Apify.
Which input does this example use?
Max Posts (maxPosts) set to 5; Include Comments (includeComments) set to false; Include Media URLs (includeMedia) set to false; Facebook Group or Page URLs (startUrls) set to https://www.facebook.com/groups/1280379818654162; Post View / Sort Order (viewOption) set to "RECENT_ACTIVITY"; Include Group / Page Info (includeGroupInfo) set to true. The full JSON input is shown on this page.
How much does it cost to run this example?
At most about $0.05: up to 5 results at $0.01 each (Post Scraped) plus $0.00005 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.
How do I change it for my own research?
Open the example on Apify and select Try for free to copy it into your account, then edit Max Posts, Include Comments, Include Media URLs, Facebook Group or Page URLs, Post View / Sort Order, Include Group / Page Info. Keep the result limit small for the first run and check the output before scaling up.
Can I run it from the API or on a schedule?
Yes. Send the same JSON input to the Facebook Group & Page Scraper - Posts, Comments & Reactions run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.
More examples
Related tasks you can copy.
Collect images and video links from ESA Facebook posts
Sample public ESA Facebook posts with media extraction enabled. Review available image links, video links and source post URLs.
View exampleSample a Facebook group’s chronological post feed
Use chronological ordering for a small public group archive. Keep timestamps and source links so you can sort or compare the exported sample.
View exampleCompare NASA and NOAA public Facebook posts
Collect a small post sample from the two public agency Pages. Compare posting topics, timestamps and visible engagement fields in one dataset.
View exampleInspect comments on NASA Facebook Page posts
Sample up to two public NASA Page posts with comment extraction enabled. Review the available comments alongside their parent posts and engagement totals.
View exampleAI Ad Analyzer
Score an ad creative with your own AI API key
Analyze one sample image ad for hooks, visible text, creative attributes and improvement suggestions. Add your own OpenAI API key in the secret apiKey field before running. Provider charges apply in addition to Apify usage; AI scores are not measured ad performance.
View exampleFacebook Post Scraper by ID
Look up a batch of Facebook posts by numeric ID
Supply three documented numeric IDs and compare the returned post text, timestamps and source URLs. Use the input ID to match the output back to your list.
View exampleGuides
Read more about this workflow.
How to Scrape Facebook Group Posts and Data in 2026
Choose a browser or cloud workflow for Facebook group and page research, verify post and comment coverage, and build a repeatable export.
Export Facebook Group Posts to CSV Without Sharing Your Login
Collect a useful Facebook group or page sample in Chrome, check what was captured, and turn the export into a research worksheet.
Top 5 Facebook Scrapers in 2026
Compare the best Facebook scrapers for Meta ads, Facebook groups, public pages, and single-ad status checks. Use the right tool for the data you actually need.
Top 5 Apify Scrapers to Automate Marketing Research
A practical stack of Apify scrapers for automating marketing research across Meta ads, Google ads, TikTok ads, Facebook Groups, and Reddit.