Facebook API

Facebook Group posts API

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

POST/v1/run/facebook.group_posts
Uptime
98.68%
30d · 2,052 calls
Requests
2,052
30d · weekly, last 12 wks
Response
5.0s
median · 30d

Try it

Make your first 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.
{
  "data": {
    "nextCursor": "example",
    "posts": [
      {
        "authorId": "Alex Rivera",
        "authorName": "Alex Rivera",
        "commentCount": 12500,
        "id": "a1b2c3d4",
        "publishTime": 42,
        "reactionCount": 12500,
        "text": "A short example description of this item.",
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
interface FacebookGroupPostsResponse {
  data: {
    nextCursor: string | null;
    posts: {
      authorId: string;
      authorName: string;
      commentCount: number;
      id: string;
      publishTime: number;
      reactionCount: number;
      text: string;
      url: string;
    }[];
  } | null;
  found: boolean;
}

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

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/facebook.group_posts
curl -X POST https://api.getanyapi.com/v1/run/facebook.group_posts \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/groups/instantpotcommunity/"}'
FieldTypeExample value
Request body
urlstring"https://www.facebook.com/groups/instantpotcommunity/"The URL of a public Facebook group to fetch posts from (e.g. https://www.facebook.com/groups/instantpotcommunity/).
cursorstringPagination cursor from a previous response to fetch the next page.
sortenumOrdering for the returned posts (e.g. TOP_POSTS).
Response
dataobject
data.nextCursorstringOpaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue.
data.postsobject[]Populated whenever the provider has data for the entity.
data.posts[].authorIdstringPopulated whenever the provider has data for the entity.
data.posts[].authorNamestringPopulated whenever the provider has data for the entity.
data.posts[].commentCountinteger
data.posts[].idstringPopulated whenever the provider has data for the entity.
data.posts[].publishTimeintegerPopulated whenever the provider has data for the entity.
data.posts[].reactionCountinteger
data.posts[].textstringPopulated whenever the provider has data for the entity.
data.posts[].urlstringPopulated whenever the provider has data for the entity.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

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 2 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, 98.7% of Facebook group posts calls through AnyAPI succeeded, with a median response time of 5.0 seconds across 2,052 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, each call draws it down, and a failed request costs $0.

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, 98.7% of Facebook group posts calls through AnyAPI succeeded, with a median response time of 5.0 seconds across 2,052 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.