{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Groups Scraper & API: Public Group Posts & Search",
    "description": "Scrape public Facebook groups without login: find groups by keyword, read their posts newest first as deep as Facebook lists them (text, author, time, reactions, comments, shares, photos, links), member counts and descriptions, alerts for new posts.",
    "version": "0.1",
    "x-build-id": "wxt4kLyz29nKEMTXO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~facebook-groups-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-facebook-groups-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/s_actors~facebook-groups-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-facebook-groups-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/s_actors~facebook-groups-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-facebook-groups-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 groups",
            "type": "array",
            "description": "One per line: a group link (facebook.com/groups/allremotejobs), its name or its numeric id. You get the group's data and its posts, newest first. Only public groups show posts without a login; a private group returns its name, member count and description only.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔍 Search words (find groups)",
            "type": "array",
            "description": "Optional, one per line (\"remote jobs\", \"yoga berlin\", \"used cars\"). Facebook's own group search needs a login, so groups are found through Google: expect 1-3 groups per Google result page, 10-25 per word. Each found group is then read like the links above.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Google country (search words)",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "ie",
              "in",
              "de",
              "at",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "br",
              "mx"
            ],
            "type": "string",
            "description": "The Google market the search words are asked in. Use the language of the groups you look for (for example Germany with German words).",
            "default": "us"
          },
          "maxGroupsPerQuery": {
            "title": "Max groups per search word",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Stops the search for one word at this many different groups. Google lists about 10 pages, so a word rarely gives more than 25-30.",
            "default": 20
          },
          "maxPostsPerGroup": {
            "title": "📝 Max posts per group",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Posts of every public group, newest first. 0 = group data only, no posts. Posts skipped by the filters below are not counted and not charged.",
            "default": 20
          },
          "postOrder": {
            "title": "Post order",
            "enum": [
              "newest",
              "activity"
            ],
            "type": "string",
            "description": "Newest = by the time the post was written. Recent activity = a post that just got a comment moves up, as in the group's own feed.",
            "default": "newest"
          },
          "postsSince": {
            "title": "Posts since",
            "type": "string",
            "description": "Only posts written on or after this day (YYYY-MM-DD). With newest-first order the group is read only back to this day."
          },
          "postKeywords": {
            "title": "Post keywords",
            "type": "array",
            "description": "Optional filter, one per line: keep only posts whose text has every word of a line (\"hiring developer\", \"for sale iphone\"). Any line may match. Skipped posts are free.",
            "items": {
              "type": "string"
            }
          },
          "includeGroupDetails": {
            "title": "📋 Group data",
            "type": "boolean",
            "description": "Return one row per group: name, link, exact members, privacy, posts in the last day and month, creation date, admins, rules, description, cover image. Off = posts only.",
            "default": true
          },
          "onlyNew": {
            "title": "🔔 Only new posts",
            "type": "boolean",
            "description": "Return only posts this input has not returned before. The first run returns everything and remembers it. Every post has isNew and firstSeenAt either way.",
            "default": false
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request attempt (for support).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}