Group posts

The newest posts of a public Facebook group with author, text, images, links, reactions by type and top comments.

Try it in the dashboard 100 free credits when you sign up, no card.

GET/v1/facebook/group

Costs 2 credits per request. Only requests that return data are charged.

Parameters

NameTypeDescription
grouprequired string The address of a public Facebook group: https://www.facebook.com/groups/ followed by the group's number or its name.
limitoptional integer How many posts to return. Default: 6. From 1 to 6.
sortoptional string The orders of the group's own sort menu: new (newest posts first), activity (posts with the newest activity first) or top (the posts Facebook ranks as most relevant). One of: new, activity, top. Default: new.

Example request

curl "https://pipefetch.com/v1/facebook/group?group=https%3A%2F%2Fwww.facebook.com%2Fgroups%2F387875758242831" \
  -H "x-api-key: YOUR_API_KEY"

Example response

A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.

200 OK · application/json
{
  "data": {
    "group": {
      "id": "387875758242831",
      "name": "Self-Taught Programmers",
      "url": "https://www.facebook.com/groups/selftaughtprogrammers/"
    },
    "posts": [
      {
        "id": "0000000000",
        "url": "https://example.com/item",
        "text": "Hey devs, quick architectural question for anyone scaling media-heavy apps. I already have a fully built web app featuring a TikTok-style vertical ree…",
        "publishedAt": "2026-11-17T21:05:47.000Z",
        "mediaType": "text",
        "isAnonymous": true,
        "author": {
          "id": "0000000000",
          "name": "Example Person",
          "url": null,
          "pictureUrl": "https://example.com/avatar.jpg",
          "badges": []
        },
        "reactionCount": 0,
        "reactions": {
          "like": 0,
          "love": 0,
          "care": 0,
          "haha": 0,
          "wow": 0,
          "sad": 0,
          "angry": 0
        },
        "commentCount": 0,
        "shareCount": 0,
        "imageUrls": [],
        "imageDescriptions": [],
        "link": null,
        "links": [],
        "topComments": []
      },
      {
        "id": "0000000000",
        "url": "https://example.com/item",
        "text": null,
        "publishedAt": "2026-11-17T15:27:27.000Z",
        "mediaType": "link",
        "isAnonymous": false,
        "author": {
          "id": "0000000000",
          "name": "Example Person",
          "url": null,
          "pictureUrl": "https://example.com/avatar.jpg",
          "badges": [
            "Moderator"
          ]
        },
        "reactionCount": 0,
        "reactions": {
          "like": 0,
          "love": 0,
          "care": 0,
          "haha": 0,
          "wow": 0,
          "sad": 0,
          "angry": 0
        },
        "commentCount": 0,
        "shareCount": 0,
        "imageUrls": [
          "https://external-lhr11-1.xx.fbcdn.net/emg1/v/t13/10812260302248117403?url=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cforma…"
        ],
        "imageDescriptions": [],
        "link": {
          "url": "https://lspace.beehiiv.com/podcast/s/latent_space_the_ai_engineer_podcast/one_million_ai_engineer_special_how_stanford_teaches_ai-native_engineering_m…",
          "title": "[One Million AI Engineer Special] How Stanford Teaches AI-Native Engineering — Mihail Eric, Monaco",
          "description": "What do you assign when a coding agent can finish last year’s homework in one prompt? In the second run of Stanford’s CS146S, Mihail Eric brought open…",
          "domain": "lspace.beehiiv.com"
        },
        "links": [],
        "topComments": []
      }
    ]
  },
  "credits": {
    "used": 2,
    "remaining": 98
  }
}

Good to know

  • Only public groups can be read. A private group answers 404 no_posts, as a public group without posts does, and a group that does not exist answers 404 group_not_found. Neither costs anything.
  • A request costs 2 credits, because Facebook only answers it from residential internet connections, which cost us more than an ordinary request.
  • At most 6 posts per request, in the order you choose. There is no paging beyond them.
  • author.url is null where Facebook gives no profile link, and isAnonymous is true for a post made as an anonymous member. topComments holds the one or two comments Facebook shows under a post in the feed.
  • Image addresses and link previews are included, and the image addresses stop working after a while. Video file addresses and the prices of buy and sell posts are not included.

Errors

Every error has the same shape, and none of them is charged. The full list is in the error reference.

Looking for an overview and use cases? See the Facebook Group Posts API page.