{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Groups Search Scraper — Members, Activity & Admins",
    "description": "Find Facebook groups by keyword or link: exact members, posts today and per month, privacy, created date, location, tags, admin and moderator names, rules and contacts from the description. Size, activity and language filters, only-new monitoring. No login. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "9DaOcfbBuKB4E1Ahe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apimy~facebook-groups-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apimy-facebook-groups-search-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/apimy~facebook-groups-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apimy-facebook-groups-search-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/apimy~facebook-groups-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apimy-facebook-groups-search-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Topics, niches, cities, brands — one per line. Each keyword is searched across DuckDuckGo, Yahoo and Google (restricted to facebook.com/groups) and every group found is opened for exact numbers. Examples: \"bali expats\", \"tesla owners\", \"real estate investors texas\", \"dropshipping\".",
            "items": {
              "type": "string"
            }
          },
          "groupUrls": {
            "title": "Group links or IDs",
            "type": "array",
            "description": "Already have the groups? Paste group links (https://www.facebook.com/groups/expatsbali), numeric IDs (100931413283083) or vanity names (expatsbali). They are opened directly, no search.",
            "items": {
              "type": "string"
            }
          },
          "maxGroupsPerQuery": {
            "title": "Max groups per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many groups (after filters) to deliver for each keyword. Filtered-out groups do not count and are not charged. A keyword usually has 10–60 groups in \"standard\" depth and more in \"deep\".",
            "default": 30
          },
          "searchDepth": {
            "title": "Search depth",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "How wide to search for each keyword. Deeper finds more (and smaller) groups and takes longer. You pay only per delivered group, never per search page.",
            "default": "standard"
          },
          "queryVariations": {
            "title": "Query variations (deep search)",
            "type": "array",
            "description": "Words added to your keyword in \"deep\" depth, one search per word: \"tesla owners\" + \"club\" → \"tesla owners club\". Leave the default or use your own (city names, \"jobs\", \"for sale\", \"moms\"…).",
            "default": [
              "group",
              "community",
              "club",
              "forum",
              "network",
              "buy and sell",
              "marketplace",
              "for sale",
              "jobs",
              "business",
              "chat",
              "members",
              "official",
              "owners",
              "lovers",
              "fans",
              "support",
              "help",
              "tips",
              "news",
              "events",
              "meetup",
              "friends",
              "family",
              "moms",
              "women",
              "students",
              "beginners",
              "experts",
              "worldwide"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchLocation": {
            "title": "Add a location to every keyword",
            "type": "string",
            "description": "Optional city, region or country appended to each keyword, e.g. \"Berlin\" turns \"yoga\" into \"yoga Berlin\". Use \"Location contains\" below to filter strictly by the group's own location."
          },
          "privacy": {
            "title": "Privacy",
            "enum": [
              "any",
              "public",
              "private"
            ],
            "type": "string",
            "description": "Public groups show their posts and members to everyone; private groups only to members (the numbers on the About page are still exact).",
            "default": "any"
          },
          "minMembers": {
            "title": "Min members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep groups with at least this many members (exact count, not \"12K\")."
          },
          "maxMembers": {
            "title": "Max members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep groups with at most this many members — handy for finding small, close communities."
          },
          "minPostsPerDay": {
            "title": "Min posts per day",
            "minimum": 0,
            "type": "number",
            "description": "Keep active groups only: posts today, or the average of the last 30 days, at least this many. 1 = at least a post a day."
          },
          "minPostsPerMonth": {
            "title": "Min posts in the last month",
            "minimum": 0,
            "type": "integer",
            "description": "Keep groups with at least this many posts in the last 30 days (Facebook's own counter)."
          },
          "locationContains": {
            "title": "Location contains",
            "type": "string",
            "description": "Keep groups whose Facebook location, name or description contains this text (case-insensitive), e.g. \"Bali\" or \"Texas\"."
          },
          "requireKeywordMatch": {
            "title": "Name or description must contain the keyword",
            "type": "boolean",
            "description": "Drop loosely related groups: every word of the keyword must appear in the group name, description or tags.",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop groups whose name, description or tags contain any of these words, e.g. \"for sale\", \"jobs\", \"dating\".",
            "items": {
              "type": "string"
            }
          },
          "createdAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Keep groups created on or after this date (YYYY-MM-DD) — find new communities."
          },
          "languages": {
            "title": "Description language",
            "type": "array",
            "description": "Two-letter language codes of the group name and description, e.g. en, es, de, id, ru. Detected inside the Actor; groups with too little text have no language and are dropped when this filter is set.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithContacts": {
            "title": "Only groups with contacts",
            "type": "boolean",
            "description": "Keep groups whose description has an e-mail, phone, website or social link — useful for partnership and lead lists.",
            "default": false
          },
          "includeRules": {
            "title": "Include group rules",
            "type": "boolean",
            "description": "Every rule with title and text (the rule count is always included).",
            "default": true
          },
          "includeAdmins": {
            "title": "Include admins and moderators",
            "type": "boolean",
            "description": "Names, profile IDs and pictures of the admins and moderators Facebook shows on the About page (admin and moderator counts are always included).",
            "default": true
          },
          "sortBy": {
            "title": "Sort groups by",
            "enum": [
              "relevance",
              "members",
              "activity",
              "density",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Any order other than relevance writes all rows at the end of the run, sorted.",
            "default": "relevance"
          },
          "onlyNewRowsStore": {
            "title": "Only new groups (monitoring memory)",
            "type": "string",
            "description": "Give this run a memory name, e.g. \"my-niche-watch\". The Actor remembers every group it delivered under that name and on later runs delivers — and charges — only groups it has not delivered before. Put it on a schedule to get new groups as they appear."
          },
          "maxConcurrency": {
            "title": "Parallel group pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many group pages are opened at the same time.",
            "default": 5
          },
          "includeRunSummary": {
            "title": "Add a free summary row",
            "type": "boolean",
            "description": "One free row at the end with what was delivered and charged in this run (type \"notice\"). Untick to keep the dataset groups-only.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: the Actor uses its own residential proxy rotation for Facebook (Facebook sends datacenter addresses to the login page). Your own proxy URLs, if given, are used as they are.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}