UnifAPI Docs

List posts in a public Facebook group

Returns posts from a public Facebook group with text, media, author and engagement counts. Paginate with `cursor`.

Pricing — $ · min $0.003

Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.

GET
/facebook/groups/{id}/posts

Authorization

bearerAuth
AuthorizationBearer <token>

UnifAPI API key. Provider credentials are managed by UnifAPI.

In: header

Path Parameters

id*string

Facebook group id or vanity name, as in facebook.com/groups/{id}.

Length1 <= length <= 500

Query Parameters

sort_by?string

Optional sort order for posts returned from the group feed. top: Facebook's default relevance ranking. recent_activity: sorted by most recent comment/reaction activity. chronological: regular posts in Facebook's "New posts" order, which is not guaranteed to be strictly by post time (e.g. groups with post approval); use published_at to sort. chronological_listings: Facebook's separate feed of listing-style posts (e.g. items for sale) within the group, sorted by time.

Value in

  • "top"
  • "recentActivity"
  • "chronological"
  • "chronologicalListings"
cursor?string

Opaque pagination cursor from a previous response's pagination.next_cursor. Omit for the first page.

Length1 <= length <= 16384

Header Parameters

Unifapi-Version?"2026-07-01"

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Default"2026-07-01"

Value in

  • "2026-07-01"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/facebook/groups/string/posts"
{  "request_id": "string",  "data": [    {      "id": "string",      "url": "string",      "text": "string",      "published_at": 0,      "reaction_count": 0,      "comment_count": 0,      "is_paid_partnership": true,      "author": {        "id": "string",        "name": "string",        "url": "string"      },      "video": {        "thumbnail_url": "string",        "duration_ms": 0,        "sd_url": "string",        "hd_url": "string"      }    }  ],  "pagination": {    "has_more": true,    "next_cursor": "string"  },  "billing": {    "credits_charged": 0,    "records_charged": 0,    "balance_remaining": 0,    "truncated_due_to_balance": true  }}