Facebook Pages Groups Scraper
Pricing
from $1.37 / result
Facebook Pages Groups Scraper
Pricing
from $1.37 / result
Rating
0.0
(0)
Developer
Md Saif Ahmed
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Share
Facebook Pages & Groups Scraper
Extract posts from Facebook Pages & Groups.
Built on enterprise-grade infrastructure with a 100% success rate and pay-per-result pricing — you only pay for posts actually delivered.
What does Facebook Pages & Groups Scraper do?
This actor collects public data from Facebook Pages and Groups:
- Posts — content, likes, comments, shares, media, timestamps
- Page/Group Profiles — name, URL, follower count, category
- Media — images and videos from posts
- Deduplication — smart dedup across multiple targets
- Sorting — by recent or popular
Supports multiple URLs in a single run — scraping 5 pages takes the same time as scraping 1.
⚠️ Important: Cookie Required
This actor requires a Facebook cookie to extract more than 5 posts. Without a cookie, Facebook limits public view to ~5 posts.
Required cookies (only 2):
| Cookie | Description |
|---|---|
c_user | Your Facebook user ID (numbers only) |
xs | Your session token (long string with %3A encoding) |
How to get your cookies:
- Open Facebook in your browser and log in (use a throwaway account)
- Press F12 to open DevTools
- Go to Application tab → Cookies →
https://www.facebook.com - Find and copy the values of
c_userandxs - Enter each value in the corresponding input field
⚠️ Use a throwaway Facebook account — your real account could be banned if Facebook detects unusual activity.
Cookie expires in ~24-48 hours — you'll need to get a new cookie periodically.
Note: Only c_user and xs are required. Other cookies like presence, wd, fr, etc. are not needed.
What data do you get?
Post fields
| Field | Description |
|---|---|
type | Record type (post) |
pageId | Page or Group ID |
postId | Unique Facebook post ID |
author | Post author name |
content | Post text content |
likes | Total likes |
comments | Total comments |
shares | Total shares |
media | Array of images/videos |
postUrl | Direct link to the post |
timestamp | When the post was published |
extractedAt | Timestamp of extraction |
Profile fields
| Field | Description |
|---|---|
type | Record type (profile) |
pageId | Page or Group ID |
pageName | Page or Group name |
url | Facebook URL |
followers | Follower count |
about | About description |
category | Category (e.g., "Group", "Media") |
verified | Whether the page is verified |
extractedAt | Timestamp of extraction |
Use cases
- Competitor analysis — Monitor a competitor's posting frequency, engagement, and content strategy
- Market research — Understand how your audience talks about a topic
- Content strategy — Identify top-performing post formats and topics
- Community monitoring — Track discussions in industry groups
- Lead generation — Build lists of active pages in a niche
- Academic research — Collect public social media data for studies
How to use
1. Get your Facebook cookie
Follow the instructions above to get c_user and xs values from a throwaway account.
2. Add your targets
Provide one or more Facebook Page or Group URLs:
- Pages:
https://www.facebook.com/natgeo - Groups:
https://www.facebook.com/groups/photography
3. Set filters (optional)
- Max Posts — how many posts per target (default: 50, max: 500)
- Sort Order — Recent or Popular
- Min Likes — skip posts below this threshold
- Min Comments — skip posts below this threshold
- Newer Than — only posts from the last N days
4. Run and export
Results appear in the Dataset tab. Export as JSON, CSV, or Excel.
Input example
{"targets": ["https://www.facebook.com/natgeo","https://www.facebook.com/groups/photography"],"cUser": "61592410981000","xs": "44%3A4Yf88PLrCDu9Dw%3A2%3A1784999879%3A-1%3A-1%3A%3AAcza15Ezu72iy5XNF9Nk4g14P5-i_9_WxyKvnwBvQg","maxPosts": 100,"sortOrder": "Recent","minLikes": 100,"newerThan": 30}
Output example
Post record
{"type": "post","pageId": "natgeo","postId": "1234567890","author": "National Geographic","content": "Exploring the depths of the ocean...","likes": 15234,"comments": 432,"shares": 891,"media": [{ "type": "image", "url": "https://..." }],"postUrl": "https://www.facebook.com/natgeo/posts/1234567890","timestamp": "2026-04-15T12:00:00.000Z","extractedAt": "2026-05-07T10:00:00.000Z"}
Profile record
{"type": "profile","pageId": "natgeo","pageName": "National Geographic","url": "https://www.facebook.com/natgeo","followers": 48000000,"about": "Experience the world through the eyes of National Geographic photographers.","category": "Media/news company","verified": true,"extractedAt": "2026-05-07T10:00:00.000Z"}
Pricing
This actor uses pay-per-result pricing — you are only charged for posts successfully extracted.
| Plan | Price per 1,000 posts |
|---|---|
| Free | $2.99 |
| Starter | $2.43 |
| Scale | $1.86 |
| Business | $1.37 |
There is no monthly subscription. Charges apply only when the actor runs successfully.
You can cap total spend using Apify's Max total charge setting before running.
FAQ
Does this require a Facebook account or login? Yes. You need to provide a Facebook cookie from a throwaway account. This is required to view more than 5 posts.
Can I scrape private groups? No. Only public Facebook Pages and Groups can be scraped.
How many posts can I get per target? With a valid cookie, you can extract 50-100+ posts per target. Without a cookie, Facebook limits public view to ~5 posts.
Does it work with groups?
Yes. Simply provide a group URL (e.g., https://www.facebook.com/groups/photography) and the actor will extract public posts.
How fresh is the data? Data is collected live from Facebook at the time you run the actor — always up to date.
Is this legal? This actor collects only publicly available data from Facebook, in the same way a user would view a page or group in a browser. It complies with GDPR for public data collection. Always ensure your use case complies with your local regulations.
How long does the cookie last? Facebook cookies typically expire in 24-48 hours. You'll need to get a new cookie periodically.
Will this get my Facebook account banned? Using a throwaway account is recommended. Facebook may detect unusual activity and ban accounts used for scraping.
Proxies
This actor uses Apify Residential Proxies by default for reliable scraping. You can configure alternative proxy settings in the Advanced section.
Support
For issues or questions, please open an issue on the actor's GitHub repository.