{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Group Details Scraper: Members, Activity",
    "description": "Get Facebook group details by link, id or name with no login, public and private groups: 1,000 a run or one at a time by real-time API. Rows carry name, privacy, members and About facts: exact members, posts last day and month, created date, rules, locations, admins. JSON, CSV, Excel; misses free.",
    "version": "0.1",
    "x-build-id": "23uRrnrPobrreJbVc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-group-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-facebook-group-details-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/automation_craft~facebook-group-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-facebook-group-details-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/automation_craft~facebook-group-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-facebook-group-details-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": "Group links, ids or names",
            "type": "array",
            "description": "Facebook groups, one per line: a group link (facebook.com/groups/selftaughtprogrammers, also a post, about, members or permalink link of the group, any facebook.com host such as m. or web.), a share link (facebook.com/share/g/...), a numeric group id or a group name. Public and private groups. Up to 1,000 a run. Each group is delivered once as a row, billed as a Group and a Group lookup (see Pricing); a link that leads to no group, a repeat and a group left out by your filters are free and listed in a free row. Also read from startUrls (strings or {\"url\": ...}), groupLinks, groupIds and urls.",
            "items": {
              "type": "string"
            }
          },
          "groupDetails": {
            "title": "Group details (add-on)",
            "type": "boolean",
            "description": "Adds Facebook's about facts to each group row, billed as Group details (see Pricing): exact member count, posts in the last day and month, created date and name history, description with its links and e-mails, locations, topic tags, admin and moderator counts and the admin and moderator names Facebook shows visitors of public groups, and rules. On when left out; turn it off for name, privacy and the rounded member count only. Any filter on activity, location or created date keeps it on. When its own allowance is spent a row goes out without it, unbilled, and says so in detailsStatus. Also read from fetchDetails, enrichGroupDetails and includeDetails."
          },
          "includeRules": {
            "title": "Include the rules",
            "type": "boolean",
            "description": "With Group details on: deliver the group's rules (each with its title and text) and their count. On when left out; off leaves them out of the rows. The price does not change: the rules come with the other about facts."
          },
          "maxItems": {
            "title": "Max groups in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most groups delivered in the run (each group once). All of them when left out. Also read from maxResults and maxGroups."
          },
          "privacy": {
            "title": "Privacy",
            "enum": [
              "any",
              "public",
              "private"
            ],
            "type": "string",
            "description": "Keep only public or only private groups. Private groups are delivered with their name, members, privacy and (with Group details) their about facts: Facebook shows those to visitors; their posts and members are not read. Any when left out. Also read from groupPrivacy."
          },
          "minMembers": {
            "title": "Minimum members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only groups with at least this many members. Without Group details the count is Facebook's rounded one (\"70.6K\"), and a group whose rounded count could be on either side of your bound is left out, free; with Group details on, the exact count decides."
          },
          "maxMembers": {
            "title": "Maximum members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only groups with at most this many members (the same rounding rule as minMembers)."
          },
          "excludeKeywords": {
            "title": "Exclude groups with these words",
            "type": "array",
            "description": "Leave out a group whose name (and, with Group details on, its description, topic tags or locations) holds any of these words or phrases as whole words, up to 50. Left out groups are free. Also read from excludedKeywords.",
            "items": {
              "type": "string"
            }
          },
          "minPostsPerDay": {
            "title": "Minimum posts per day",
            "minimum": 0,
            "type": "number",
            "description": "Keep only groups with at least this many posts a day on average over the last month (posts in the last month divided by 30). Reads Group details (kept on)."
          },
          "minPostsPerMonth": {
            "title": "Minimum posts per month",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only groups with at least this many posts in the last month. Reads Group details (kept on)."
          },
          "locationContains": {
            "title": "Group location contains",
            "type": "string",
            "description": "Keep only groups whose own location list (set by the group's admins, shown on about half of groups) names this place as whole words (\"Texas\" keeps \"Houston, Texas\"). Groups without a location are left out. Reads Group details (kept on). Also read from locationText."
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Keep only groups created on or after this day (YYYY-MM-DD, UTC). Reads Group details (kept on)."
          },
          "createdBefore": {
            "title": "Created on or before",
            "type": "string",
            "description": "Keep only groups created on or before this day (YYYY-MM-DD, UTC). Reads Group details (kept on)."
          },
          "maxConcurrency": {
            "title": "Groups read at once",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many groups are read at the same time, each on its own residential exits (1 when left out, up to 5). More is faster on large runs and costs the same; at the start of a run, and on runs where most groups are left out by the filters, the groups are read one at a time until the delivered rows cover parallel reads. Also read from concurrency."
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "The country of the Apify residential exits that read the groups on Facebook, as a two letter code (US when left out). Group links are resolved through Apify's datacenter exits."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}