Facebook public group posts API
Posts of a public group, 3 a page, chronological by default.
GET /v1/facebook/group/posts
GET /v1/facebook/group/posts
Posts of a public group, 3 a page, chronological by default.
- Cost: 1 credit
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | one of | Public group URL (facebook.com/groups/...). Sub-pages such as /about work too. Accepted hosts: facebook.com, fb.com, fb.watch. |
id | string | one of | Numeric group id; use it instead of url if you have it. Also accepted as group_id. |
sort | string | no | Order of results. Changing it restarts the cursor chain. One of chronological, top, recent_activity, chronological_listings. Default chronological. Also accepted as sort_by, sortBy, order. Also accepted values: TOP_POSTS for top, RECENT_ACTIVITY for recent_activity, CHRONOLOGICAL for chronological, CHRONOLOGICAL_LISTINGS for chronological_listings. |
Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
1curl -G "https://api.socialscrape.dev/v1/facebook/group/posts" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "url=https://www.facebook.com/groups/366190054572553"1import os2import requests34params = {5 "url": "https://www.facebook.com/groups/366190054572553",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/facebook/group/posts",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/group/posts");2url.search = new URLSearchParams({3 "url": "https://www.facebook.com/groups/366190054572553"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook public group posts",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/group/posts",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.facebook.com/groups/366190054572553"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_3cadf9a8458f2feb0108f4e6",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "facebook",14 "id": "1832628934595317",15 "url": "https://www.facebook.com/groups/366190054572553/posts/1832628934595317/",16 "type": "text",17 "author": {18 "id": "61589320300627",19 "handle": null,20 "name": "Fareed Baloch",21 "url": "https://www.facebook.com/people/Fareed-Baloch/61589320300627/",22 "avatar_url": null,23 "verified": null24 },25 "title": null,26 "text": null,27 "published_at": "2026-10-29T19:32:03Z",28 "duration_seconds": null,29 "language": null,30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": null,34 "likes": 0,35 "comments": 0,36 "shares": 0,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": null,42 "video_url": null,43 "audio_url": null,44 "image_urls": null,45 "width": null,46 "height": null47 },48 "song": null,49 "location": null,50 "is_pinned": null,51 "is_sponsored": null,52 "extra": {53 "feedback_id": "ZmVlZGJhY2s6cGZiaWQwZDVFY0s4M013a2JjSzU5QTQ0NlhpamRZQzl3Yzdjb2REd3dHZmdrRll6ZWs5aG5IeFQ2b01vMUZwbkNKTGJ1V2w=",54 "permalink": "https://www.facebook.com/groups/366190054572553/posts/1832628934595317/",55 "source": "logged_out_public_view"56 }57 },58 {59 "object": "post",60 "platform": "facebook",61 "id": "1832609631263914",62 "url": "https://www.facebook.com/groups/366190054572553/posts/1832609631263914/",63 "type": "link",64 "author": {65 "id": "61589320300627",66 "handle": null,67 "name": "Fareed Baloch",68 "url": "https://www.facebook.com/people/Fareed-Baloch/61589320300627/",69 "avatar_url": null,70 "verified": null71 },72 "title": null,73 "text": "Join my community for grow , complete 💯 free",74 "published_at": "2026-10-29T19:01:01Z",75 "duration_seconds": null,76 "language": null,77 "hashtags": null,78 "mentions": null,79 "stats": {80 "views": null,81 "likes": 0,82 "comments": 0,83 "shares": 0,84 "saves": null,85 "dislikes": null86 },87 "media": {88 "thumbnail_url": null,89 "video_url": null,90 "audio_url": null,91 "image_urls": null,92 "width": null,93 "height": null94 },95 "song": null,96 "location": null,97 "is_pinned": null,98 "is_sponsored": null,99 "extra": {100 "feedback_id": "ZmVlZGJhY2s6cGZiaWQwMktVZmJ5Q25RamhVUTRiTVJiNWFoSHd4TVY2bVR4aVdnVHhMcEVlOHJ0eGJRMU1nMnNIQ1ZpRG95empMQ2s5d2ls",101 "permalink": "https://www.facebook.com/groups/366190054572553/posts/1832609631263914/",102 "source": "logged_out_public_view"103 }104 }105 ],106 "cursor": "eyJrIjoiZ3JvdXBfcG9zdHMiLCJpZCI6IjM2NjE5MDA1NDU3MjU1MyIsImFmdGVyIjoiQ2c4VFpYaHBjM1JwYm1kZmRXNXBkRjlqYjNWdWRBSUVEd3R5WldGc1gyTjFjbk52Y2crelFWRklWRFYyUkZwSlFrRlNhMW80YlMxbGRHMVJRMjVVZW5WclMzb3hZV1pDTmxOMFpEWmxjbEUxUkUxcFRYaENWMHN0ZUY5bVVXaG1W...",107 "has_more": true,108 "parent": null109 },110 "cursor": "eyJrIjoiZ3JvdXBfcG9zdHMiLCJpZCI6IjM2NjE5MDA1NDU3MjU1MyIsImFmdGVyIjoiQ2c4VFpYaHBjM1JwYm1kZmRXNXBkRjlqYjNWdWRBSUVEd3R5WldGc1gyTjFjbk52Y2crelFWRklWRFYyUkZwSlFrRlNhMW80YlMxbGRHMVJRMjVVZW5WclMzb3hZV1pDTmxOMFpEWmxjbEUxUkUxcFRYaENWMHN0ZUY5bVVXaG1W...",111 "has_more": true112}Response#
A list of Post objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- Facebook Ad Library search (
GET /v1/facebook/ad-library/search) - Facebook Ad Library search (POST body) (
POST /v1/facebook/ad-library/search) - Facebook Ad Library ads by page (
GET /v1/facebook/ad-library/company/ads) - Facebook Ad Library ads by page (POST body) (
POST /v1/facebook/ad-library/company/ads) - Facebook Ad Library ad details (
GET /v1/facebook/ad-library/ad) - Facebook Ad Library ad transcript (
GET /v1/facebook/ad-library/ad/transcript) - Facebook Ad Library advertiser search (
GET /v1/facebook/ad-library/search/companies) - Facebook profile or page (
GET /v1/facebook/profile)