Platforms/Facebook/Group posts

Facebook Group Posts API

GET ยท 1 credit

Send a public group's id or link, and get its posts, 3 a page, in the order you pick.

GET /v1/facebook/groups/posts

What people use it for

  • Community listening: see what members of groups in your market ask about and recommend.
  • Demand research: count how often a problem or a product comes up in a niche's groups.
  • Buy-and-sell groups: read a group's items for sale with sort=listings.

How it works with other endpoints

Check a group's size and privacy with Group first. Each post's id goes to Post comments, and its url to Post.

Limits

  • 3 posts a page.
  • Public groups only: a private group's posts answer 403 LOGIN_REQUIRED.

Example request

const url = `${process.env.API_URL}/v1/facebook/groups/posts?group_id=366190054572553`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
group_idNoA group's id: the digits in its link (facebook.com/groups/<id>). Give group_id or url.
urlNoA group's link: facebook.com/groups/<id or name>, with anything after it. Give group_id or url.
sortNochronological: new posts first; top: Facebook's ranking; recent_activity: posts with new comments first; listings: items for sale, newest first.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "1834567890123456",
      "url": "https://www.facebook.com/groups/366190054572553/posts/1834567890123456",
      "text": "What's your go-to weeknight pasta?",
      "created_at": "2026-11-28T19:15:00Z",
      "author": "Jordan Lee",
      "author_id": "100000000000002",
      "author_url": "https://www.facebook.com/profile.php?id=100000000000002",
      "likes": 230,
      "comment_count": 187,
      "shares": 4,
      "views": null,
      "image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/group-post.jpg",
      "video_id": null,
      "video_url": null,
      "duration_seconds": null
    }
  ],
  "page": {
    "next_cursor": "eyJhZnRlciI6IkFRSGFYIn0",
    "has_more": true
  },
  "meta": {
    "platform": "facebook",
    "endpoint": "group_posts",
    "params": {
      "group_id": "366190054572553",
      "sort": "chronological"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-29T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which orders can I pick?

chronological puts new posts first, top uses Facebook's ranking, recent_activity puts posts with new comments first, and listings shows items for sale, newest first.

Does it work on private groups?

No. A private group's posts answer 403 LOGIN_REQUIRED. Group still reads its About details.

How do I get a post's comments?

Send the post's id or url to Post comments.

Works with

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required