Skip to content

Group Posts

GET/v1/facebook/group/posts1 credit

Returns posts from a public Facebook group's feed, 3 per page, with text, media, reaction and comment counts.

01Query parameters

NameTypeDescription
urloptionalstringA group URL. One of `url` or `group_id` is required.
group_idoptionalstringThe numeric group id. One of `url` or `group_id` is required.
sort_byoptionalstringFeed order.Default: CHRONOLOGICALAccepted values:TOP_POSTSRECENT_ACTIVITYCHRONOLOGICALCHRONOLOGICAL_LISTINGS
cursoroptionalstringThe `cursor` from the previous page.

02Request

curl "https://api.scrapesocial.ai/v1/facebook/group/posts?url=https%3A%2F%2Fwww.facebook.com%2Fgroups%2F1270525996445602%2F" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/facebook/group/posts?url=https%3A%2F%2Fwww.facebook.com%2Fgroups%2F1270525996445602%2F

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "posts": [
    {
      "id": "3838003173031192",
      "text": "Went to the sign store the other day, all they had was left turn signs. Didn't buy one. I knew deep down it wouldn't be right.",
      "url": "https://www.facebook.com/groups/1270525996445602/permalink/3838003173031192/",
      "author": {
        "__typename": "User",
        "name": "Ricky Pope",
        "short_name": "Ricky",
        "id": "1150735875"
      },
      "reactionCount": 32,
      "reaction_counts": {
        "thankful": 0,
        "like": 19,
        "love": 0,
        "care": 0,
        "haha": 13,
        "wow": 0,
        "sad": 0,
        "anger": 0,
        "pride": 0,
        "confused": 0
      },
      "commentCount": 1,
      "videoViewCount": null,
      "publishTime": 1792881001,
      "creation_time": "2026-10-24T22:30:01.000Z",
      "videoDetails": {},
      "image": null,
      "topComments": [
        {
          "id": "Y29tbWVudDozODM4MDAzMTczMDMxMTkyXzM4MzkyNTAwMzk1NzMxNzI=",
          "text": "So you left the store right away?",
          "publishTime": 1792903929,
          "author": {
            "id": "pfbid0252FuZuqzcBGUF8CcSqcBxnW34ntMuHYM8JMHAdooa75u8vNqPnmZ65UBFwWiLDKcl",
            "name": "Wayne Snyder",
            "gender": "MALE",
            "url": "https://www.facebook.com/wayne.snyder.1420"
          }
        }
      ]
    },
    {
      "id": "3838002643031245",
      "text": "Why did the summer school teacher wear sunglasses? Because her class was so bright!",
      "url": "https://www.facebook.com/groups/1270525996445602/permalink/3838002643031245/",
      "author": {
        "__typename": "User",
        "name": "Ricky Pope",
        "short_name": "Ricky",
        "id": "1150735875"
      },
      "reactionCount": 8,
      "reaction_counts": {
        "thankful": 0,
        "like": 5,
        "love": 0,
        "care": 0,
        "haha": 3,
        "wow": 0,
        "sad": 0,
        "anger": 0,
        "pride": 0,
        "confused": 0
      },
      "commentCount": 0,
      "videoViewCount": null,
      "publishTime": 1792859402,
      "creation_time": "2026-10-24T16:30:02.000Z",
      "videoDetails": {},
      "image": null,
      "topComments": []
    }
  ],
  "cursor": "Cg8TZXhpc3RpbmdfdW5pdF9jb3VudAIEDwtyZWFsX2N1cnNvcg+zQVFIVHdDMjUzbk5aVXhQdzlkRGlEdXgxbmI1UTFGNjIzRW9vTlpNTjdpTjdpcUY2Y3l5WlVpVmFzaWRQVXJ2ak9YRDdjajVVeVhMSEw4RFBhZEVpTHRmSEdROmV5SXdJam94TnpreU9UUTRNREl3TENJeElqbzNOamd5TENJeklqb3dMQ0kwSWpveExDSTFJam8wTENJMklqb3RNU3dpTnlJNkxURXNJamdpT2kweGZRPT0PE2hlYWRlcl9nbG9iYWxfY291bnQCAQ8SbWFpbl9mZWVkX3Bvc2l0aW9uAgQPDWZlZWRfb3JkZXJpbmcPDWF0dGFjaGVkX3RpbWUPE2lzX2V2…"
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

Pass the response's `cursor` back for the next page. A feed with no more posts returns an empty list for 0 credits. An unknown group is a free 404; a private group a free 403.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.