Facebook API

Facebook Group posts API

Fetch recent posts from any public Facebook group by URL: text, author, reactions, and comment counts.

$1.20/1k req, pay per request, no subscription.

What the API returnedposts[0]
{
"id": "1729384650192837",
"text": "First time making yogurt in the Instant Pot and it actually worked! Used whole milk and a packet of starter culture, 8 hour boil-free setting overnight. Texture is thicker than store bought, will definitely do this again.",
"url": "https://www.facebook.com/groups/instant-pot-community/posts/1729384650192837/",
"publishTime": 1790625600,
"reactionCount": 842,
"commentCount": 96,
"authorName": "Renata Kowalski",
"authorId": "100071928374650",
... 2 more fields
}
Uptime
99.84%
30d · 48,056 calls
Requests
48,140
30d · weekly, last 12 wks
Response
3.0s
median · 30d

Pricing and providers

Facebook Group posts API pricing: one API, 3 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get Facebook group posts in one request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 12 of 22 fields. See every field

{
  "found": true,
  "data": {
    "nextCursor": "AbXf3_grouppost_cursor_07",
    "posts": [
      {
        "id": "1729384650192837",
        "text": "First time making yogurt in the Instant Pot and it actually worked! Used whole milk and a packet of starter culture, 8 hour boil-free setting overnight. Texture is thicker than store bought, will definitely do this again.",
        "url": "https://www.facebook.com/groups/instant-pot-community/posts/1729384650192837/",
        "publishTime": 1790625600,
        "reactionCount": 842,
        "commentCount": 96,
        "authorName": "Renata Kowalski",
        "authorId": "100071928374650"
      },
      {
        "id": "1938475601928374",
        "text": "PSA: if your sealing ring smells like every curry you have ever made, buy a second ring and keep one just for desserts and yogurt. Changed my life.",
        "url": "https://www.facebook.com/groups/instant-pot-community/posts/1938475601928374/",
        "publishTime": 1790197200,
        "reactionCount": 511,
        "commentCount": 63,
        "authorName": "Tobias Fenwick",
        "authorId": "100065839201748"
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • urlstring

    https://www.facebook.com/groups/instant-pot-community/

    The URL of a public Facebook group to fetch posts from (e.g. https://www.facebook.com/groups/instantpotcommunity/).

  • cursorstring

    Pagination cursor from a previous response to fetch the next page.

  • sortenum

    TOP_POSTS

    Ordering for the returned posts (e.g. TOP_POSTS).

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • nextCursorstring

    AbXf3_grouppost_cursor_07

    Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue.

each postdata.posts[]

Populated whenever the provider has data for the entity.

  • authorIdstring

    100071928374650

    Populated whenever the provider has data for the entity.

  • authorNamestring

    Renata Kowalski

    Populated whenever the provider has data for the entity.

  • commentCountinteger

    96

  • idstring

    1729384650192837

    Populated whenever the provider has data for the entity.

  • imagestring

    URL of the post's first image. Absent when the post has no image.

  • publishTimeinteger

    1790625600

    Populated whenever the provider has data for the entity.

  • reactionCountinteger

    842

  • textstring

    First time making yogurt in the Instant Pot and it actually worked! Used whole milk and a packet of starter culture, 8 hour boil-free setting overnight. Texture is thicker than store bought, will definitely do this again.

    Populated whenever the provider has data for the entity.

  • urlstring

    https://www.facebook.com/groups/instant-pot-community/posts/1729384650192837/

    Populated whenever the provider has data for the entity.

reactionsdata.posts[].reactions

Reaction counts on the post, broken down by reaction type.

  • angryinteger

    Angry reactions.

  • careinteger

    Care reactions.

  • hahainteger

    Haha reactions.

  • likeinteger

    Like reactions.

  • loveinteger

    Love reactions.

  • sadinteger

    Sad reactions.

  • wowinteger

    Wow reactions.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

Selling this API? See the full schema your endpoint must return.

FAQ

About the Facebook Group posts API

The AnyAPI Facebook Group posts API returns Facebook group posts data as normalized JSON from one POST call to /v1/run/facebook.group_posts. Fetch recent posts from any public Facebook group by URL: text, author, reactions, and comment counts. AnyAPI routes each request across 3 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.8% of Facebook group posts calls through AnyAPI succeeded, with a median response time of 3.0 seconds across 48,056 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Fetch recent posts from any public Facebook group by URL: text, author, reactions, and comment counts. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 99.8% of Facebook group posts calls through AnyAPI succeeded, with a median response time of 3.0 seconds across 48,056 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 Facebook Group posts calls at $0.0012 each.

AnyAPI asks the next of its 3 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/facebook.group_posts with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.