Skip to content

Facebook Group Posts

GET /v1/facebook/group/posts

Fetches posts from a public Facebook group, limited to 3 posts per page due to API limitations. Each post includes id, text, url, reactionCount, commentCount, publishTime, videoDetails, and topComments. Supports sorting by TOP_POSTS, RECENT_ACTIVITY, CHRONOLOGICAL, or CHRONOLOGICAL_LISTINGS, with cursor-based pagination.

Authentication

All requests require the x-api-key header. Get your key at scrapecreators.com.

Query Parameters

NameTypeRequiredDescriptionExample
urlstringnoThe URL of the grouphttps://www.facebook.com/groups/1270525996445602/
group_idstringnoThe ID of the group742354120555345
sort_byenum(TOP_POSTS, RECENT_ACTIVITY, CHRONOLOGICAL, CHRONOLOGICAL_LISTINGS)noHow to sort the postsTOP_POSTS
cursorstringnoThe cursor to paginate to the next pageAQHRBjJCelNvdGRjH8s2j-6...

Example Request

curl

bash
curl 'https://api.scrapecreators.com/v1/facebook/group/posts' \
  -H 'x-api-key: $SCRAPECREATORS_API_KEY'

Node / TypeScript

js
const params = new URLSearchParams({  });
const res = await fetch(`https://api.scrapecreators.com/v1/facebook/group/posts?${params}`, {
  headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);

Python

python
import os, requests
r = requests.get(
    'https://api.scrapecreators.com/v1/facebook/group/posts',
    headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
    params={},
)
r.raise_for_status()
print(r.json())

CLI

bash
scrapecreators facebook group-posts --help

Example Response

json
{
  "success": true,
  "posts": [
    {
      "id": "1286289372828481",
      "text": null,
      "url": "https://www.facebook.com/groups/742354120555345/permalink/1286289372828481/",
      "permalink": "https://www.facebook.com/sofiyati.942655/videos/996458202287759/?idorvanity=742354120555345",
      "author": {
        "__typename": "User",
        "name": "Sofiyati",
        "short_name": "Sofiyati",
        "id": "61552766652796"
      },
      "reactionCount": 198,
      "commentCount": 100,
      "videoViewCount": null,
      "publishTime": 1748639389,
      "videoDetails": {
        "sdUrl": "https://video-sea1-1.xx.fbcdn.net/o1/v/t2/f2/m69/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IARIAFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HQ1V3OFIySHNmZWZhbUVFQUNZbmdLUlBMSzU4YnJGcUFBQUYVAgLIARIAKAAYABsCiAd1c2Vfb2lsATEScHJvZ3Jlc3NpdmVfcmVjaXBlATEVAAAmlLT9qImk5gMVAigDQzNlLBdALkQYk3S8ahgZZGFzaF9oMjY0LWJhc2ljLWdlbjJfNzIwcBEAdQJlkp4BAA&_nc_zt=28&oh=00_AfJKQedBwUVhnjLuJgGuJ7E1TXLk0vib17T3YkAmJUPb8w&oe=68414B6C",
        "thumbnailUrl": "https://scontent-sea1-1.xx.fbcdn.net/v/t15.5256-10/502130835_1399930867890626_4491393707187246303_n.jpg?stp=dst-jpg_s960x960_tt6&_nc_cat=100&ccb=1-7&_nc_sid=50ce42&_nc_ohc=l5JdWBSutswQ7kNvwFHAOSM&_nc_oc=Adm5GttPwjsWvVb_d8d7buJHGnqW6FNHHuRyi2n0UmFWsS7KDF2bg4bo_0uXYI8Uxh0&_nc_zt=23&_nc_ht=scontent-sea1-1.xx&_nc_gid=BIqW4GLH6GWa7rMa2JiKFA&oh=00_AfKO58NMsMKO_OXEVSw8A1BNbt0xSVognLfCBKxypc5etw&oe=684150FC"
      },
      "topComments": [
        {
          "id": "Y29tbWVudDoxMjg2Mjg5MzcyODI4NDgxXzEyODY1MTY1MjYxMzkwOTk=",
          "text": "I can find thousands of videos with the same exact trend. And we all know what I’m referring to 🤭",
          "publishTime": 1748666375,
          "author": {
            "id": "pfbid0haqAQZCvs4cTVyfGwxCGPidvLYRNhFiboXkCH45LmPLAF1oQ7kJxaVig19KT8nZvl",
            "name": "Trent Slushy",
            "gender": "MALE",
            "url": null
          }
  
... (truncated)

Credits

Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.

Errors

StatusMeaningAction
200Success.Use the JSON payload.
400Invalid or missing parameter.Verify required parameters and value format.
401Missing or invalid x-api-key.Pass a valid API key in the header.
402Out of credits.Top up at scrapecreators.com or wait for plan reset.
404Resource not found or private.Confirm the handle, URL, or id and that the resource is public.
429Rate limited.Backoff and retry with exponential delay.
500Server error or upstream platform failure.Retry with backoff; report persistent errors to support.