# Facebook Public Group Posts Scraper (`maximedupre/facebook-public-group-posts`) Actor

Get posts from public Facebook groups with text, author, date, group details, and reaction counts. Add comments, replies, photos, and videos when you need them. No Facebook account is needed.

- **URL**: https://apify.com/maximedupre/facebook-public-group-posts.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Social media, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 group posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### 👥 Read what public Facebook groups talk about

Facebook Public Group Posts Scraper is for marketers, researchers, community managers, and sellers who follow Facebook groups. Give it links to public Facebook groups. It returns one row for each post, with the text, link, author, publish time, group details, and reaction, comment, and share counts. You can also add comments, replies, photos, and videos. You do not need a Facebook account, and you do not need to scroll groups by hand.

- Track what members of a public group ask about and complain about each week.
- Collect posts from several groups that mention your brand or product name.
- Export buy and sell listings from a buy and sell group, with price, location, and status.
- Find the top posts in a group to learn which topics get the most reactions.
- Watch groups on a schedule and get only the posts that earlier runs did not return.

#### 📋 Group post data you get

- **Post data:** post ID, link, text, publish time, and the author's name and ID.
- **Group details:** group name, ID, link, privacy, member count, and description.
- **Engagement:** total reactions, comments, and shares, plus reactions by type (like, love, care, haha, wow, sad, angry).
- **Shared content:** the outside link a post shares, with its title, or the Facebook post it shares.
- **Paid partnership:** whether Facebook marks the post as a paid partnership.
- **Comments and replies (optional):** text, author name, author ID, profile picture, and link.
- **Photos and videos (optional):** type, ID, page link, and a file link that you can download.
- **Marketplace listing (buy and sell feed):** listing ID, link, title, price, location with coordinates, and status (available, pending, or sold).

#### 🚀 How to get posts from a public Facebook group

1. Paste one or more public group links, such as `https://www.facebook.com/groups/sciencehumor`.
2. Pick the feed: new posts, recent activity, top posts, or buy and sell listings.
3. Set a post limit, a date range, or text words if you want fewer posts.
4. Turn on comments, replies, or photos and videos if you need them.
5. Start the run and download the posts as JSON, CSV, Excel, or another format.

#### ⚙️ Input

**Input fields**

| Field | Type | What it does |
| --- | --- | --- |
| `startUrls` | array | Required. Links to public Facebook groups. Use full links. The form is prefilled with `https://www.facebook.com/groups/sciencehumor`. |
| `maxItems` | integer | Stops after this many posts in total, across all groups. Leave it empty or set `0` to get all posts. The form is prefilled with `20`. |
| `feed` | string | The group feed to read: `new` (new posts), `recentActivity` (recent activity), `top` (top posts), or `buyAndSell` (buy and sell listings). Default: `new`. The buy and sell feed only works for buy and sell groups. |
| `maxPostsPerGroup` | integer | Stops after this many posts from each group. Leave it empty or set `0` for no limit per group. |
| `postsFrom` | string | Keeps only posts published on or after this date. Use a date or a period such as `30 days`. Dates use UTC. |
| `postsTo` | string | Keeps only posts published on or before this date. Leave it empty to get posts up to now. Dates use UTC. |
| `textContains` | array | Keeps only posts whose text contains at least one of these words or phrases. Each entry is one exact phrase, and case does not matter. Leave it empty to keep all posts. |
| `onlyNewPosts` | boolean | For scheduled runs. When on, each run returns only posts that earlier runs did not return. Default: `false`. |
| `includeComments` | boolean | Adds each post's comments, with text, author, and link. Default: `false`. |
| `maxCommentsPerPost` | integer | Comments to get for each post, where available. `0` gets all comments. Default: `10`. Used only when comments are on. |
| `includeReplies` | boolean | Adds the direct replies under each returned comment. Default: `false`. Used only when comments are on. |
| `maxRepliesPerComment` | integer | Replies to get for each comment, where available. `0` gets all replies. Default: `5`. Used only when replies are on. |
| `includeMedia` | boolean | Adds the photos and videos attached to each post, with their links. Default: `false`. |
| `maxMediaPerPost` | integer | Photos and videos to get for each post, where available. `0` gets all of them. Default: `10`. Used only when photos and videos are on. |

The date range, text filter, and post limits apply to every group in the run.

**Example input**

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/sciencehumor"
    }
  ],
  "maxItems": 20,
  "feed": "new",
  "onlyNewPosts": false,
  "includeComments": false,
  "maxCommentsPerPost": 10,
  "includeReplies": false,
  "maxRepliesPerComment": 5,
  "includeMedia": false,
  "maxMediaPerPost": 10
}
```

#### 🧾 Output

**Output fields**

Each row is one group post. A field is left out when the post has no value for it. For example, `media` appears only when photos and videos are on, and `comments` appears only when comments are on.

| Field | Type | What it does |
| --- | --- | --- |
| `postId` | string | The Facebook ID of the post. |
| `url` | string | The link that opens the post on Facebook. |
| `text` | string | The text of the post. |
| `publishedAt` | string | When the post was published, in ISO 8601 format. |
| `author.id` | string | The Facebook ID of the person or page that wrote the post. |
| `author.name` | string | The name of the author. |
| `group.id` | string | The Facebook ID of the group. |
| `group.name` | string | The name of the group. |
| `group.url` | string | The group link you submitted that led to this post. |
| `group.privacy` | string | The privacy setting of the group, as Facebook shows it, such as `Public`. |
| `group.memberCount` | integer | The number of members in the group. |
| `group.description` | string | The description of the group. |
| `reactionCount` | integer | The total number of reactions on the post. |
| `commentCount` | integer | The number of comments on the post, as Facebook shows it. |
| `shareCount` | integer | The number of times the post was shared. |
| `reactionsByType.like` | integer | Like reactions. Each reaction type with no reactions may be left out. |
| `reactionsByType.love` | integer | Love reactions. |
| `reactionsByType.care` | integer | Care reactions. |
| `reactionsByType.haha` | integer | Haha reactions. |
| `reactionsByType.wow` | integer | Wow reactions. |
| `reactionsByType.sad` | integer | Sad reactions. |
| `reactionsByType.angry` | integer | Angry reactions. |
| `photoCount` | integer | The total number of photos on the post, as Facebook shows it. It can be higher than the photos in `media`. |
| `media[].type` | string | `photo` or `video`. |
| `media[].id` | string | The Facebook ID of the photo or video. |
| `media[].url` | string | The link that opens the photo or video on Facebook. |
| `media[].fileUrl` | string | A link to download the photo or video file. |
| `sharedLink.url` | string | The outside web address that the post shares. |
| `sharedLink.title` | string | The title of the shared link. |
| `sharedPost.postId` | string | The Facebook ID of the shared post. |
| `sharedPost.url` | string | The link that opens the shared post. |
| `sharedPost.text` | string | The text of the shared post. |
| `sharedPost.author.id` | string | The Facebook ID of the shared post's author. |
| `sharedPost.author.name` | string | The name of the shared post's author. |
| `isPaidPartnership` | boolean | `true` when Facebook marks the post as a paid partnership. |
| `comments[].id` | string | The Facebook ID of the comment. |
| `comments[].url` | string | The link that opens the comment. |
| `comments[].text` | string | The text of the comment. |
| `comments[].author.id` | string | The Facebook ID of the comment author. |
| `comments[].author.name` | string | The name of the comment author. |
| `comments[].author.profilePictureUrl` | string | The link to the comment author's profile picture. |
| `comments[].replies[].id` | string | The Facebook ID of the reply. |
| `comments[].replies[].url` | string | The link that opens the reply. |
| `comments[].replies[].text` | string | The text of the reply. |
| `comments[].replies[].author.id` | string | The Facebook ID of the reply author. |
| `comments[].replies[].author.name` | string | The name of the reply author. |
| `comments[].replies[].author.profilePictureUrl` | string | The link to the reply author's profile picture. |

**Example group post with comments and photos**

```json
{
  "postId": "10165390317560943",
  "url": "https://www.facebook.com/groups/secrettelaviv/posts/10165390317560943/",
  "text": "שלום לכולם 🙂\nמצאנו הבוקר בקרבת המשרד שלנו בפתח תקווה גור חתולים מתוק ומתכרבל!\nהוא נלקח לווטרינר לבדיקה ואפשרות לסירוס (תלוי בגיל) ומחפש בית\n\nאם מישהו מעוניין לאמץ- אשמח להביא אותו לאן שצריך\n\nבואו נמצא לו בית חם ואוהב 🖤🐈‍⬛",
  "publishedAt": "2026-11-17T11:08:29.000Z",
  "author": {
    "id": "pfbid03kSoKBjXeXWLGkh8os4RtFc9G1YvHghmNagXU5ub5Cim3oQjnYVh4had5N5FDrUXl",
    "name": "Betty Kagan"
  },
  "group": {
    "id": "327483250942",
    "name": "Secret Tel Aviv",
    "url": "https://www.facebook.com/groups/secrettelaviv",
    "privacy": "Public",
    "memberCount": 655893,
    "description": "עברית 🇮🇱\n\n🔥 אפליקציית Secret Tel Aviv - לוח אירועים, המלצות למסעדות וברים, עסקים מקומיים, דילים בלעדיים, Happy Hours ועוד: https://secrettelaviv.app\n\n\n🌐 אתר Secret Tel Aviv - מדריכי אוכל ושתייה, אירועים, משרות, עסקים מקומיים ועוד: https://www.secrettelaviv.com\n\n\n🗓️ קבוצת אירועי היום בוואטסאפ: https://bit.ly/4oBolv2\n💬 קהילת הוואטסאפ: https://bit.ly/stlv-whatsapp\n✉️ הניוזלטר הקהילתי: https://bit.ly/stlv-newsletter\n📸 אינסטגרם: https://bit.ly/stlv-instagram\n🎥 טיקטוק: https://bit.ly/3PAkyh7\n\n\nברוכים הבאים ל-Secret Tel Aviv - הקהילה של תל אביב לשאלות, המלצות, חיבורים וכל מה שקורה בעיר.\n\nהקהילה הוקמה ב-2010 כדי לעזור לבינלאומיים להרגיש בבית בישראל, לתמוך בעסקים מקומיים ולחבר בין ישראלים לבינלאומיים.\n\nאנחנו קהילה מגוונת ורב-תרבותית. שמרו על שיח מכבד, חיובי ומועיל, ופעלו בהתאם לכללי הקבוצה.\n\n-----------------------------------\n\nEnglish 🇬🇧\n\n🔥 Secret Tel Aviv App - events, restaurant and bar recommendations, local businesses, exclusive deals, Happy Hours and more: https://secrettelaviv.app\n\n\n🌐 Secret Tel Aviv Website - food and drink guides, events, jobs, local businesses and more:\nhttps://www.secrettelaviv.com\n\n\n🗓️ Daily Events WhatsApp Group: https://bit.ly/47Cnep9\n💬 WhatsApp Community: https://bit.ly/stlv-whatsapp\n✉️ Community Newsletter: https://bit.ly/stlv-newsletter\n📸 Instagram: https://bit.ly/stlv-instagram\n🎥 TikTok: https://bit.ly/3PAkyh7\n\n\nWelcome to Secret Tel Aviv - Tel Aviv’s community for questions, recommendations, connections and everything happening around the city.\n\nThe community was founded in 2010 to help internationals feel at home in Israel, support local businesses and bring Israelis and internationals together.\n\nWe are a diverse, multicultural community. Please keep discussions respectful, positive and constructive, and follow the Group Rules.\n\n\n-----------------------------------\n\nSecret Tel Aviv is managed by Secret Garden Media Ltd, an Israeli company founded in 2015 to maintain the Group and develop services that support the community."
  },
  "reactionCount": 27,
  "commentCount": 5,
  "shareCount": 2,
  "reactionsByType": {
    "love": 14,
    "like": 12,
    "care": 1
  },
  "photoCount": 3,
  "isPaidPartnership": false,
  "comments": [
    {
      "id": "10165390334125943",
      "url": "https://www.facebook.com/groups/secrettelaviv/posts/10165390317560943/?comment_id=10165390334125943",
      "text": "איזה מושלם! הלוואי ויכלתי לקחת😢",
      "author": {
        "id": "pfbid02f7r6Ssmxi7Ebmk8LEQxk2WjwZ7WGN8LwWDfFmERBHhnBrWco4ZhHSBKyDyZ36P1ql",
        "name": "Daniela Kedem",
        "profilePictureUrl": "https://scontent.fskg1-1.fna.fbcdn.net/v/t39.30808-1/481080915_23906010478987700_8407840178003763617_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx2048x2048&ctp=s32x32&_nc_cat=100&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=e99d92&_nc_ohc=cjo4iXSm8lMQ7kNvwHLQj1Q&_nc_oc=Ado--T0NZIUvEZ6_HEqnelGEvpm56bxAFQxEStyQuxZWGnPe7-Xo8xS7i5jJqbWAUjaFK1a70YP0qf2HKcglKXtl&_nc_zt=24&_nc_ht=scontent.fskg1-1.fna&_nc_gid=TidgtqV_kwNEULAc19dPTg&_nc_ss=70180&oh=00_AQTSw72KjKTQPEd7jBdW7vJVtDeH3QkKk09LikjVrGUNPA&oe=6B022AC5"
      }
    },
    {
      "id": "10165390351720943",
      "url": "https://www.facebook.com/groups/secrettelaviv/posts/10165390317560943/?comment_id=10165390351720943",
      "text": "אפ ♥️ \nאין על שחורים. הם מזל טוב ואנטנות לאנרגיות רעות ועוינות.",
      "author": {
        "id": "pfbid036ZvysNQvPfkBQ2VgU1y8RZSBPGCj76jVPT4eoYxKyWPZ9SzDodoPTaugnt636Hj2l",
        "name": "Eden Maman",
        "profilePictureUrl": "https://scontent.fskg1-1.fna.fbcdn.net/v/t39.30808-1/468546865_10162621104703694_8367864038718304254_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x958&ctp=s32x32&_nc_cat=100&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=e99d92&_nc_ohc=sTSvrDTZCpUQ7kNvwE4Gi3J&_nc_oc=AdoazP7tF00ktuf6q9jHLVyFz1HrVgPE2KxwfDTu9zFLvbtgEDFWyKo5zroZM3Ggdb8W34gQkN8g4aQbGJTStw_m&_nc_zt=24&_nc_ht=scontent.fskg1-1.fna&_nc_gid=TidgtqV_kwNEULAc19dPTg&_nc_ss=70180&oh=00_AQTvWS_N8q5Nq9j2OIHp5mqB_pe2kYR_Wsir7uw5F3HQjA&oe=6B0207C8"
      }
    },
    {
      "id": "10165390384140943",
      "url": "https://www.facebook.com/groups/secrettelaviv/posts/10165390317560943/?comment_id=10165390384140943",
      "text": "אין על חתולים שחורים והוא מהמם!!!!! הנה לואי שלנו החתיךךךךךך והנסיך שאימצנו בגיל חודש וקצת (נמצא באתר בנייה בתל אביב באפריל האחרון) \nבהצלחה !!!! ולעשות סינון טוב ❤️",
      "author": {
        "id": "701158623",
        "name": "Raya Yechezkel",
        "profilePictureUrl": "https://scontent.fskg1-1.fna.fbcdn.net/v/t39.30808-1/576544404_10163600972923624_1890390706837083311_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s32x32&_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=1d2534&_nc_ohc=C_0zKVNn2h0Q7kNvwGvxbb8&_nc_oc=Adq4iSg4RPSrznpPsY0uHx7J-4bRRFhda4efdDdmrc_Ra9mPwxMK4BxvCsUB4dacBsySv0boYVYTjaBG7PcpCDx8&_nc_zt=24&_nc_ht=scontent.fskg1-1.fna&_nc_gid=TidgtqV_kwNEULAc19dPTg&_nc_ss=70180&oh=00_AQTjXm0PiLFSKAD-NIOcHpu-nwo0KsG-CdeiyXj2m0Ku4Q&oe=6B02119B"
      }
    }
  ],
  "media": [
    {
      "type": "photo",
      "id": "10245942570449139",
      "fileUrl": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-6/913625015_10245942642490940_1730486359829187045_n.jpg?stp=dst-jpg_tt6&cstp=mx1536x2048&ctp=s590x590&_nc_cat=101&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=nVuz36U13kAQ7kNvwHNkVRg&_nc_oc=AdpVTeLhRgW7VRMb4dHfi5UjuCOJgX8shnnetFV3uoh6gNjSmqqnS8B0GYCAC4WKtQU4oWy2tT6SeFQWQtq4aH1x&_nc_zt=23&_nc_ht=scontent-lga3-1.xx&_nc_gid=mDqkWkBwnhwj7ejTNfsvOg&_nc_ss=70180&oh=00_AQQvkTKoNHuHMkq-BiFrz4m0V5t457eUFMZ3Qu3k7ytPPA&oe=6B021853"
    },
    {
      "type": "photo",
      "id": "10245942570049129",
      "fileUrl": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-6/912403795_10245942642330936_8802770229403181392_n.jpg?stp=dst-jpg_tt6&cstp=mx1152x2048&ctp=s590x590&_nc_cat=100&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=rHmolm6Fx9cQ7kNvwGspCXu&_nc_oc=Adq9h48WTFRsZKBVWUFkX5hEVNGLD0YO5pxs_V34QdMb30RILdshyDyllI0Qp1NfveCBR84IzEZVHEyNqDxdGEKc&_nc_zt=23&_nc_ht=scontent-lga3-1.xx&_nc_gid=mDqkWkBwnhwj7ejTNfsvOg&_nc_ss=70180&oh=00_AQQSMbalBNv3phv6oG0i5xZZSFLoG-TH_s3hilzmJd8hjQ&oe=6B021B43"
    },
    {
      "type": "photo",
      "id": "10245942571009153",
      "fileUrl": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-6/915716342_10245942642930951_8354925130038270743_n.jpg?stp=dst-jpg_tt6&cstp=mx1536x2048&ctp=s590x590&_nc_cat=107&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=_TvxJzgOlf0Q7kNvwHSdAfh&_nc_oc=AdqaKmWpVzcChgVzhU3qQN8Rb-dtfbtH_OXGy36Km8AWuI62kJuqfTHaPl84zJzsT5C6hs6FkVGo8dqwg6HnJs94&_nc_zt=23&_nc_ht=scontent-lga3-2.xx&_nc_gid=mDqkWkBwnhwj7ejTNfsvOg&_nc_ss=70180&oh=00_AQS1Rx3cFWD_SmZjfdlaCHPyx8cgeNLHFYGDAZYpmaSGJQ&oe=6B02196B"
    }
  ]
}
```

**Output fields for buy and sell listings**

When you pick the `buyAndSell` feed, each row is one listing post. It has the same post, author, group, and count fields as above, plus a `listing` object.

| Field | Type | What it does |
| --- | --- | --- |
| `postId` | string | The Facebook ID of the post. |
| `url` | string | The link that opens the post on Facebook. |
| `text` | string | The text of the post. |
| `publishedAt` | string | When the post was published, in ISO 8601 format. |
| `author.id` | string | The Facebook ID of the author. |
| `author.name` | string | The name of the author. |
| `group.id` | string | The Facebook ID of the group. |
| `group.name` | string | The name of the group. |
| `group.url` | string | The group link you submitted that led to this post. |
| `group.privacy` | string | The privacy setting of the group, such as `Public`. |
| `group.memberCount` | integer | The number of members in the group. |
| `group.description` | string | The description of the group. |
| `reactionCount` | integer | The total number of reactions on the post. |
| `commentCount` | integer | The number of comments on the post. |
| `shareCount` | integer | The number of times the post was shared. |
| `reactionsByType` | object | Reactions by type, as in the table above, when the post has reactions. |
| `photoCount` | integer | The total number of photos on the post. |
| `media` | array | Photos and videos, as in the table above, when photos and videos are on. |
| `comments` | array | Comments and replies, as in the table above, when comments are on. |
| `isPaidPartnership` | boolean | `true` when Facebook marks the post as a paid partnership. |
| `listing.id` | string | The Facebook Marketplace ID of the listing. |
| `listing.url` | string | The link that opens the listing on Facebook Marketplace. |
| `listing.title` | string | The title of the listing. |
| `listing.price.amount` | number | The price as a number. |
| `listing.price.currency` | string | The currency code of the price, such as `USD`. |
| `listing.price.text` | string | The price as Facebook shows it, such as `$25` or `Free`. |
| `listing.location.name` | string | The place name of the listing, such as a city. |
| `listing.location.latitude` | number | The latitude of the listing location. |
| `listing.location.longitude` | number | The longitude of the listing location. |
| `listing.status` | string | `available`, `pending`, or `sold`. |

**Example buy and sell listing post**

```json
{
  "postId": "1712826956851058",
  "url": "https://www.facebook.com/groups/302792601187841/posts/1712826956851058/",
  "text": "For rent 3 bedroom furnished in winland tower condo\n\n3 bedroom 3 toilet bath furnished unit in winland tower condo near capitol \nJuana osmena extension \n\nRental fee is 30k.two months deposit and 1 advance 1 year contract. No parking included but can rent separately.\n\nPets allowed small only .\n\nIncluding condo dues.\n\nSee to appreciate",
  "publishedAt": "2026-11-17T11:29:45.000Z",
  "author": {
    "id": "pfbid0pNqMAchxw94zmoGvaoc1MW5vph1RvBgquP2uoB1xke9vYZrcssjoQzxPwmHCScwHl",
    "name": "Jay Ds"
  },
  "group": {
    "id": "302792601187841",
    "name": "CEBU HOMES AND CONDO RENTALS",
    "url": "https://www.facebook.com/groups/302792601187841",
    "privacy": "Public",
    "memberCount": 20053,
    "description": "AFFORDABLE AND ELEGANT UNITS"
  },
  "reactionCount": 0,
  "commentCount": 0,
  "shareCount": 0,
  "photoCount": 8,
  "isPaidPartnership": false,
  "listing": {
    "id": "1808468550403951",
    "url": "https://www.facebook.com/marketplace/item/1808468550403951/",
    "title": "3 bedroom in winland tower condo",
    "price": {
      "amount": 30000,
      "currency": "PHP",
      "text": "PHP30,000"
    },
    "location": {
      "name": "Cebu City, PH-07",
      "latitude": 10.3111,
      "longitude": 123.892
    },
    "status": "available"
  }
}
```

#### 💳 Pricing

This Actor uses pay per event pricing. You pay a small fee when a run starts, then a fee for each thing the run saves.

| Event | Price | When it is charged |
| --- | --- | --- |
| Run start | $0.005 | Once when a run starts. |
| Group post | $0.00105 (Free and Bronze), $0.00085 (Silver), $0.0007 (Gold, Platinum, and Diamond) | For each post saved. |
| Post comment | $0.0002 | For each comment saved, only when comments are on. |
| Comment reply | $0.0002 | For each reply saved, only when replies are on. |
| Post media | $0.0002 | For each photo or video saved, only when photos and videos are on. |

For example, 1,000 posts with no comments or media cost $0.005 + $1.05 = $1.055 on the Free plan. If you also turn on 10 comments for each post, the comments add up to $2.00 more. Group details, counts, shared content, and listing details come with each post at no extra charge.

#### 🔌 Integrations

You can connect this Actor to other apps with Apify integrations, such as Make, Zapier, Google Sheets, Slack, and webhooks. You can also call it from the Apify API or schedule it to watch groups on a regular basis.

https://www.youtube.com/watch?v=bNACk1_S_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### Do I need a Facebook account or cookies?

No. You only give public group links. The Actor does not ask for a Facebook login.

##### Can it get posts from private groups?

No. It reads public groups only. Use links to groups that anyone can see without joining.

##### How do I get only new posts on a schedule?

Turn on `onlyNewPosts` and schedule the Actor. Each run then returns only the posts that earlier runs did not return.

##### Why does `photoCount` show more photos than `media`?

`photoCount` is the total that Facebook shows for the post. `media` holds only the photos and videos you asked for, up to `maxMediaPerPost`.

##### Does it get replies to replies?

No. When replies are on, it gets the direct replies under each returned comment.

##### What happens if I use the buy and sell feed on a normal group?

The buy and sell feed only works for buy and sell groups. A normal group does not return listing posts from that feed.

##### How does the date range work?

`postsFrom` and `postsTo` keep only posts published inside the range, in UTC. You can use a date or a period such as `30 days`.

##### Can I scrape many groups in one run?

Yes. Add many links to `startUrls`. Use `maxPostsPerGroup` to get the same number of posts from each group, and `maxItems` to cap the whole run.

### 📝 Changelog

**v0.0** (17-11-2026)

- Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~facebook-public-group-posts/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [Facebook Group Profile Scraper](https://apify.com/maximedupre/facebook-group-profile-scraper): get a group's rules, admins, moderators, and history.
- [Facebook Groups Search Scraper](https://apify.com/maximedupre/facebook-groups-search-scraper): find public groups by keyword before you collect their posts.
- [Facebook Post Comments Scraper](https://apify.com/maximedupre/facebook-post-comments-scraper): get all comments from one post, reel, or video.
- [Facebook Marketplace Listings Scraper](https://apify.com/maximedupre/facebook-marketplace-listings): search Marketplace listings by place and keyword.
- [Facebook Reactions Scraper](https://apify.com/maximedupre/facebook-reactions-scraper): see who reacted to a public post.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

## `startUrls` (type: `array`):

Links to public Facebook groups, such as https://www.facebook.com/groups/sciencehumor. Use full links. You do not need a Facebook account.

## `maxItems` (type: `integer`):

Stop after this many posts in total. Leave empty or set 0 to get all posts.

## `feed` (type: `string`):

Which group feed to read. The buy and sell feed only works for buy and sell groups, and its posts include listing details such as price and status.

## `maxPostsPerGroup` (type: `integer`):

Stop after this many posts from each group. Leave empty or set 0 for no limit per group.

## `postsFrom` (type: `string`):

Keep only posts published on or after this date. Pick a date, or type a period such as 30 days to get the last 30 days. Dates use UTC.

## `postsTo` (type: `string`):

Keep only posts published on or before this date. Leave empty to get posts up to now. Dates use UTC.

## `textContains` (type: `array`):

Keep only posts whose text contains at least one of these words or phrases. Each entry is matched as one exact phrase, and case does not matter. Leave empty to keep all posts.

## `onlyNewPosts` (type: `boolean`):

Turn this on for scheduled runs. Each run then returns only posts that earlier runs did not return.

## `includeComments` (type: `boolean`):

Add each post's comments, with their text, author, and link.

## `maxCommentsPerPost` (type: `integer`):

Get up to this many comments per post, where available. Set 0 to get all comments. Used only when comments are included.

## `includeReplies` (type: `boolean`):

Add the replies under each returned comment. Used only when comments are included.

## `maxRepliesPerComment` (type: `integer`):

Get up to this many replies per comment, where available. Set 0 to get all replies. Used only when replies are included.

## `includeMedia` (type: `boolean`):

Add the photos and videos attached to each post, with their links.

## `maxMediaPerPost` (type: `integer`):

Get up to this many photos and videos per post, where available. Set 0 to get all of them. Used only when photos and videos are included.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/sciencehumor"
    }
  ],
  "maxItems": 20,
  "feed": "new",
  "onlyNewPosts": false,
  "includeComments": false,
  "maxCommentsPerPost": 10,
  "includeReplies": false,
  "maxRepliesPerComment": 5,
  "includeMedia": false,
  "maxMediaPerPost": 10
}
```

# Actor output Schema

## `posts` (type: `string`):

The posts collected from the Facebook groups.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/groups/sciencehumor"
        }
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/facebook-public-group-posts").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.facebook.com/groups/sciencehumor" }],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/facebook-public-group-posts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/sciencehumor"
    }
  ],
  "maxItems": 20
}' |
apify call maximedupre/facebook-public-group-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maximedupre/facebook-public-group-posts"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/azSA6iS1sFtF4NBPa/builds/Vm8fCYX8ptDfcfzFH/openapi.json
