{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Group Posts Scraper",
    "description": "Scrape public Facebook group posts by group URL or ID, with post text, author, reaction, comment and share counts, media URLs, top comments and pagination cursors. No login or cookies needed.",
    "version": "1.2",
    "x-build-id": "9fNichLBbbk0zofTS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~facebook-group-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-facebook-group-posts-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khadinakbar~facebook-group-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-facebook-group-posts-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khadinakbar~facebook-group-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-facebook-group-posts-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "groupUrls": {
            "title": "Facebook group URLs",
            "type": "array",
            "description": "Public Facebook group links, for example https://www.facebook.com/groups/homemakingtips/. Add as many as you like; up to 10 groups run at the same time.",
            "items": {
              "type": "string"
            }
          },
          "groupIds": {
            "title": "Facebook group IDs",
            "type": "array",
            "description": "Optional numeric group IDs. Use this when you have the ID but no link.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Maximum posts",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Total posts to save across all groups. The run stops as soon as this number is reached. Each saved post is one billed result.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "RECENT_ACTIVITY",
              "TOP_POSTS",
              "CHRONOLOGICAL",
              "CHRONOLOGICAL_LISTINGS"
            ],
            "type": "string",
            "description": "Order of the group feed. Use Chronological for newest-first monitoring (it also lets date filters stop early).",
            "default": "RECENT_ACTIVITY"
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Keep only posts published on or after this date. Use a date like 2026-11-01 or plain text like 7 days."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Keep only posts published before this date. Use a date like 2026-11-10 or text like 2 days."
          },
          "onlyNewPosts": {
            "title": "Only new posts since the last run",
            "type": "boolean",
            "description": "Monitoring mode. The Actor remembers the newest post it saw per group and returns only newer posts on the next run. Use with Chronological sort for the lowest cost.",
            "default": false
          },
          "includeKeywords": {
            "title": "Keep posts containing any of these words",
            "type": "array",
            "description": "Optional. A post is kept if its text contains at least one word or phrase. Not case sensitive. Posts that are checked but dropped are not billed, but the run stops after about twice your post limit of posts checked.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Drop posts containing any of these words",
            "type": "array",
            "description": "Optional. Posts that contain any of these words or phrases are skipped and not billed.",
            "items": {
              "type": "string"
            }
          },
          "minReactions": {
            "title": "Minimum reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip posts with fewer reactions than this.",
            "default": 0
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip posts with fewer comments than this.",
            "default": 0
          },
          "includeComments": {
            "title": "Also collect comments",
            "type": "boolean",
            "description": "Save the comments of every saved post as separate rows (recordType comment). Comments are billed separately, per comment saved.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Maximum comments per post",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Used only when comments are on. Comments are fetched 10 at a time.",
            "default": 20
          },
          "includeGroupInfo": {
            "title": "Add group details",
            "type": "boolean",
            "description": "Add the group name, member count and privacy to every post row and save full group details (description, categories, moderators, rules) in the GROUP_INFO record. Small extra cost per group, absorbed by the Actor.",
            "default": false
          },
          "extractContacts": {
            "title": "Find emails, phones and links in posts",
            "type": "boolean",
            "description": "Pull emails, phone numbers and outside website links found in each post text into extra fields. No extra charge.",
            "default": true
          },
          "startCursor": {
            "title": "Start cursor",
            "type": "string",
            "description": "Resume a single group from where an earlier run stopped. Copy a value from RUN_SUMMARY.nextCursors. Ignored when you enter more than one group."
          },
          "concurrency": {
            "title": "Groups at the same time",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many groups are collected in parallel. A single group is always read page by page.",
            "default": 5
          },
          "includeRawData": {
            "title": "Include raw post data",
            "type": "boolean",
            "description": "Add the unprocessed source object to every row. Mostly for debugging.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}