Facebook API

Facebook Group Posts API

Send the address of a public Facebook group and get its posts back as JSON, each with its author, text, images, reactions by type, comment and share counts, and the comments Facebook shows under it. Private groups cannot be read.

  • 100 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/facebook/group?group=https%3A%2F%2Fwww.facebook.com%2Fgroups%2F387875758242831" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 6 posts of a public group: the newest, the ones with the newest activity, or the top ones
  • The text of each post, its publish time, its kind (photo, link and so on) and a direct link
  • The author's public name, id, picture and group badges such as Admin, with a profile link when Facebook gives one
  • Reactions in total and by type, and the comment and share counts
  • Image addresses, the links written in the text, and the preview of a shared link
  • The one or two comments Facebook shows under each post, and the group's name and address
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
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

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.

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.

Open the reference

Use cases

What people build with it

  • Community research

    Read what the members of a public group in your market ask about and complain about.

  • Topic monitoring

    Check the newest posts of the public groups where your product or your subject is discussed.

  • Community management

    Follow the newest activity in your own public group from your own tools.

  • Posts for an AI model

    Hand a model the posts of a group as JSON, to summarize what is being discussed.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 2 credits per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit
2,500requests at 2 credits

Each endpoint says what a request costs. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 100 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Is this the official Facebook API?

No. Pipefetch is an independent service and is not affiliated with Facebook or Meta. It returns the posts a public group shows to a visitor who is not logged in and not a member. You need one Pipefetch API key. There is no Facebook login, no cookie, no access token and no Meta app.

Does it work for private groups?

No. Only public groups can be read, because a private group shows its posts to its members only. A private group answers 404 no_posts, a group that does not exist answers 404 group_not_found, and neither is charged.

How many posts do I get, and in which order?

Up to 6 per request, in one of the orders of the group's own sort menu: new, which is the default, activity or top. There is no paging beyond them.

Do I get the comments?

You get the one or two comments Facebook shows under each post in the group's feed. For more, pass the url of a post to the comments endpoint.

What is not included?

Video file addresses, the prices of buy and sell posts, the list of members, and anything a group shows to its members only.

Why does a request cost 2 credits?

Facebook only answers this request from residential internet connections, which cost us more than an ordinary request, so it costs 2 credits. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.

Do group posts contain personal data?

Yes. Posts in a group, and the comments under them, are written by private people and carry their public names and pictures and, for some, a profile link. That is personal data. If you store or process it, data-protection law such as the GDPR applies to you as it would to any other source, and our terms forbid using the API to harass people or to build profiles of private individuals.

Guides

Step-by-step guides

More

More Facebook APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.