Facebook Pages Groups Scraper avatar

Facebook Pages Groups Scraper

Pricing

from $1.37 / result

Go to Apify Store
Facebook Pages Groups Scraper

Facebook Pages Groups Scraper

Pricing

from $1.37 / result

Rating

0.0

(0)

Developer

Md Saif Ahmed

Md Saif Ahmed

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

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.


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):

CookieDescription
c_userYour Facebook user ID (numbers only)
xsYour session token (long string with %3A encoding)

How to get your cookies:

  1. Open Facebook in your browser and log in (use a throwaway account)
  2. Press F12 to open DevTools
  3. Go to Application tab → Cookieshttps://www.facebook.com
  4. Find and copy the values of c_user and xs
  5. 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

FieldDescription
typeRecord type (post)
pageIdPage or Group ID
postIdUnique Facebook post ID
authorPost author name
contentPost text content
likesTotal likes
commentsTotal comments
sharesTotal shares
mediaArray of images/videos
postUrlDirect link to the post
timestampWhen the post was published
extractedAtTimestamp of extraction

Profile fields

FieldDescription
typeRecord type (profile)
pageIdPage or Group ID
pageNamePage or Group name
urlFacebook URL
followersFollower count
aboutAbout description
categoryCategory (e.g., "Group", "Media")
verifiedWhether the page is verified
extractedAtTimestamp 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

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.

PlanPrice 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.