Facebook group post scraper avatar

Facebook group post scraper

Try for free

1 day trial then $25.00/month - No credit card required now

Go to Store
Facebook group post scraper

Facebook group post scraper

curious_coder/facebook-post-scraper
Try for free

1 day trial then $25.00/month - No credit card required now

Scrape post from facebook groups you are member of and get details such as poster's name, id, url, and post text, reactions and comments count, time, etc

You can access the Facebook group post scraper programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "1.0",
5    "x-build-id": "l1yfLGWanEKa80bew"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/curious_coder~facebook-post-scraper/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-curious_coder-facebook-post-scraper",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/curious_coder~facebook-post-scraper/runs": {
50      "post": {
51        "operationId": "runs-sync-curious_coder-facebook-post-scraper",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/curious_coder~facebook-post-scraper/run-sync": {
93      "post": {
94        "operationId": "run-sync-curious_coder-facebook-post-scraper",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "scrapeGroupPosts.groupUrl",
135          "proxy"
136        ],
137        "properties": {
138          "cookie": {
139            "title": "🍪 Cookies",
140            "minItems": 1,
141            "type": "array",
142            "description": "Cookie used to authorize actor with facebook.com. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension. Login to your facebook.com account. Click on the extension and export the facebook.com cookies. Insert the contents here"
143          },
144          "scrapeGroupPosts.groupUrl": {
145            "title": "Group url to scrape posts from",
146            "type": "string",
147            "description": "Eg: https://www.facebook.com/groups/hackgrowth or https://www.facebook.com/groups/1636991833121307"
148          },
149          "count": {
150            "title": "#️⃣ Total number of records required",
151            "type": "integer",
152            "description": "Leave this field empty if you want to scrape all items."
153          },
154          "cursor": {
155            "title": "Start from cursor",
156            "type": "string",
157            "description": "Use this field if you want to resume scraping from where the scraper stopped last time. You can find this value in default storage of scraper runs under **lastCursor** key",
158            "default": ""
159          },
160          "sortType": {
161            "title": "Sort type",
162            "enum": [
163              "most_relevant",
164              "recent_activity",
165              "new_posts"
166            ],
167            "type": "string",
168            "description": "",
169            "default": "new_posts"
170          },
171          "scrapeUntil": {
172            "title": "Scrape until date",
173            "type": "string",
174            "description": "Use this field if you want to only scrape posts newer than given date"
175          },
176          "minDelay": {
177            "title": "⏱️ Minimum wait duration",
178            "minimum": 1,
179            "type": "integer",
180            "description": "Minimum duration in seconds to wait before scraping next page",
181            "default": 1
182          },
183          "maxDelay": {
184            "title": "⏱️ Maximum wait duration",
185            "minimum": 10,
186            "type": "integer",
187            "description": "Maximum duration in seconds to wait before scraping next page",
188            "default": 10
189          },
190          "proxy": {
191            "title": "Proxy",
192            "type": "object",
193            "description": "If using cookies, Choose a proxy from the country where you are logged into Facebook"
194          }
195        }
196      },
197      "runsResponseSchema": {
198        "type": "object",
199        "properties": {
200          "data": {
201            "type": "object",
202            "properties": {
203              "id": {
204                "type": "string"
205              },
206              "actId": {
207                "type": "string"
208              },
209              "userId": {
210                "type": "string"
211              },
212              "startedAt": {
213                "type": "string",
214                "format": "date-time",
215                "example": "2025-01-08T00:00:00.000Z"
216              },
217              "finishedAt": {
218                "type": "string",
219                "format": "date-time",
220                "example": "2025-01-08T00:00:00.000Z"
221              },
222              "status": {
223                "type": "string",
224                "example": "READY"
225              },
226              "meta": {
227                "type": "object",
228                "properties": {
229                  "origin": {
230                    "type": "string",
231                    "example": "API"
232                  },
233                  "userAgent": {
234                    "type": "string"
235                  }
236                }
237              },
238              "stats": {
239                "type": "object",
240                "properties": {
241                  "inputBodyLen": {
242                    "type": "integer",
243                    "example": 2000
244                  },
245                  "rebootCount": {
246                    "type": "integer",
247                    "example": 0
248                  },
249                  "restartCount": {
250                    "type": "integer",
251                    "example": 0
252                  },
253                  "resurrectCount": {
254                    "type": "integer",
255                    "example": 0
256                  },
257                  "computeUnits": {
258                    "type": "integer",
259                    "example": 0
260                  }
261                }
262              },
263              "options": {
264                "type": "object",
265                "properties": {
266                  "build": {
267                    "type": "string",
268                    "example": "latest"
269                  },
270                  "timeoutSecs": {
271                    "type": "integer",
272                    "example": 300
273                  },
274                  "memoryMbytes": {
275                    "type": "integer",
276                    "example": 1024
277                  },
278                  "diskMbytes": {
279                    "type": "integer",
280                    "example": 2048
281                  }
282                }
283              },
284              "buildId": {
285                "type": "string"
286              },
287              "defaultKeyValueStoreId": {
288                "type": "string"
289              },
290              "defaultDatasetId": {
291                "type": "string"
292              },
293              "defaultRequestQueueId": {
294                "type": "string"
295              },
296              "buildNumber": {
297                "type": "string",
298                "example": "1.0.0"
299              },
300              "containerUrl": {
301                "type": "string"
302              },
303              "usage": {
304                "type": "object",
305                "properties": {
306                  "ACTOR_COMPUTE_UNITS": {
307                    "type": "integer",
308                    "example": 0
309                  },
310                  "DATASET_READS": {
311                    "type": "integer",
312                    "example": 0
313                  },
314                  "DATASET_WRITES": {
315                    "type": "integer",
316                    "example": 0
317                  },
318                  "KEY_VALUE_STORE_READS": {
319                    "type": "integer",
320                    "example": 0
321                  },
322                  "KEY_VALUE_STORE_WRITES": {
323                    "type": "integer",
324                    "example": 1
325                  },
326                  "KEY_VALUE_STORE_LISTS": {
327                    "type": "integer",
328                    "example": 0
329                  },
330                  "REQUEST_QUEUE_READS": {
331                    "type": "integer",
332                    "example": 0
333                  },
334                  "REQUEST_QUEUE_WRITES": {
335                    "type": "integer",
336                    "example": 0
337                  },
338                  "DATA_TRANSFER_INTERNAL_GBYTES": {
339                    "type": "integer",
340                    "example": 0
341                  },
342                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
343                    "type": "integer",
344                    "example": 0
345                  },
346                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
347                    "type": "integer",
348                    "example": 0
349                  },
350                  "PROXY_SERPS": {
351                    "type": "integer",
352                    "example": 0
353                  }
354                }
355              },
356              "usageTotalUsd": {
357                "type": "number",
358                "example": 0.00005
359              },
360              "usageUsd": {
361                "type": "object",
362                "properties": {
363                  "ACTOR_COMPUTE_UNITS": {
364                    "type": "integer",
365                    "example": 0
366                  },
367                  "DATASET_READS": {
368                    "type": "integer",
369                    "example": 0
370                  },
371                  "DATASET_WRITES": {
372                    "type": "integer",
373                    "example": 0
374                  },
375                  "KEY_VALUE_STORE_READS": {
376                    "type": "integer",
377                    "example": 0
378                  },
379                  "KEY_VALUE_STORE_WRITES": {
380                    "type": "number",
381                    "example": 0.00005
382                  },
383                  "KEY_VALUE_STORE_LISTS": {
384                    "type": "integer",
385                    "example": 0
386                  },
387                  "REQUEST_QUEUE_READS": {
388                    "type": "integer",
389                    "example": 0
390                  },
391                  "REQUEST_QUEUE_WRITES": {
392                    "type": "integer",
393                    "example": 0
394                  },
395                  "DATA_TRANSFER_INTERNAL_GBYTES": {
396                    "type": "integer",
397                    "example": 0
398                  },
399                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
400                    "type": "integer",
401                    "example": 0
402                  },
403                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
404                    "type": "integer",
405                    "example": 0
406                  },
407                  "PROXY_SERPS": {
408                    "type": "integer",
409                    "example": 0
410                  }
411                }
412              }
413            }
414          }
415        }
416      }
417    }
418  }
419}

Facebook group post scraper OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Facebook group post scraper from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 101 monthly users

  • 22 stars

  • >99% runs succeeded

  • 29 days response time

  • Created in Aug 2023

  • Modified 13 days ago

Categories