{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Group Members Scraper",
    "description": "Facebook Group Members Scraper extracts the visible members of public Facebook groups: admins, moderators and every person who posts or comments, with name, profile link, picture, role, post and comment counts, reactions received, first and last activity. No login.",
    "version": "1.0",
    "x-build-id": "yjev3qa63NUzY1Su9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~facebook-group-members-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-facebook-group-members-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/neuro-scraper~facebook-group-members-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-facebook-group-members-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/neuro-scraper~facebook-group-members-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-facebook-group-members-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": "Public group links",
            "type": "array",
            "description": "Public Facebook group links or ids, one per line (https://www.facebook.com/groups/<name or id>/).",
            "items": {
              "type": "string"
            }
          },
          "maxMembers": {
            "title": "Max members per group",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many members to return for EACH group. The group's posts are read page after page (its own cursor) until this many different members are found or Max posts per group is reached.",
            "default": 50
          },
          "maxPostsPerGroup": {
            "title": "Max posts per group",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many of the group's newest posts are read to find active members (posters, and commenters when Include commenters is on).",
            "default": 100
          },
          "includeCommenters": {
            "title": "Include commenters",
            "type": "boolean",
            "description": "Also count the people who comment, from the comments Facebook shows under each post.",
            "default": true
          },
          "includeAdmins": {
            "title": "Include admins and moderators",
            "type": "boolean",
            "description": "Start with the admins and moderators the group shows on its About section (role admin / moderator).",
            "default": true
          },
          "includeAnonymous": {
            "title": "Include anonymous participants",
            "type": "boolean",
            "description": "Groups can let people post anonymously; Facebook then shows a pseudonym (e.g. FeistyCamel4409) instead of the person. Off = they are left out.",
            "default": false
          },
          "sortBy": {
            "title": "Order of the members",
            "enum": [
              "activity",
              "found"
            ],
            "type": "string",
            "description": "Most active first sorts the members of each group by posts + comments; found keeps the order they appeared in.",
            "default": "activity"
          },
          "maxConcurrency": {
            "title": "Parallel groups",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many groups are read at the same time (each on its own connection).",
            "default": 5
          },
          "maxTotalItems": {
            "title": "Max rows in total (0 = no total limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the whole run after this many dataset rows.",
            "default": 0
          },
          "deepComments": {
            "title": "Read all comments",
            "type": "boolean",
            "description": "Also read every comment of each post (not only the few Facebook shows under it in the feed) to find more commenters - slower.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post (all comments)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "With Read all comments: how many comments of each post are read.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Group details",
            "type": "boolean",
            "description": "Read the group's About section: members count, privacy, visibility, description, admins and moderators.",
            "default": true
          },
          "includeRawData": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Add the person object exactly as Facebook sent it (column raw).",
            "default": false
          },
          "minDelay": {
            "title": "Minimum delay between pages (s)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Minimum pause between two feed pages of a group (seconds). 0 = a short random pause of 0.3-0.9 s.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Facebook limits visitors who are not logged in per IP address. Residential proxies (the default) give the most reliable results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}