{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Group Search Scraper",
    "description": "Find public Facebook groups by keyword or group link and get the name, member count, privacy, creation date, category, location, description and recent activity. Filter by size or privacy. No login needed. Great for community research, marketing and lead discovery.",
    "version": "1.4",
    "x-build-id": "UJcvtIBracWddLnVH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_wiki~facebook-group-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_wiki-facebook-group-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/data_wiki~facebook-group-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_wiki-facebook-group-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/data_wiki~facebook-group-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_wiki-facebook-group-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔎 Keywords or group URLs",
            "type": "array",
            "description": "One entry per line: a topic to search (for example tesla) or a Facebook group link (https://www.facebook.com/groups/name). Add as many as you like.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max groups per entry",
            "minimum": 0,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum number of groups saved for each keyword. A group link always gives that one group. 0 means as many as can be found.",
            "default": 20
          },
          "maxItemsTotal": {
            "title": "🔢 Max groups in total",
            "minimum": 0,
            "maximum": 500000,
            "type": "integer",
            "description": "Stop the whole run after this many groups, over all keywords together. 0 means no overall limit, only the limit per entry.",
            "default": 0
          },
          "sortBy": {
            "title": "🔃 Sort groups by",
            "enum": [
              "relevance",
              "members",
              "active",
              "newest"
            ],
            "type": "string",
            "description": "Order of the groups saved for each keyword. Search relevance keeps the order of the search. The other choices look at several times as many groups as Max groups per entry, then save the best ones, so the run takes longer. They need full group details and switch that option on.",
            "default": "relevance"
          },
          "includeDetails": {
            "title": "📦 Include full group details",
            "type": "boolean",
            "description": "Open every group page to add member count, creation date, categories, location, email, website and description. Turn off for a faster run that returns only the link and name; the filters below and sorting turn it back on.",
            "default": true
          },
          "minMembers": {
            "title": "🎯 Minimum members",
            "minimum": 0,
            "type": "integer",
            "description": "Skip groups with fewer members than this. 0 keeps every group. The check uses the exact member count from the group page. A group whose size is unknown is skipped.",
            "default": 0
          },
          "maxMembers": {
            "title": "🎯 Maximum members",
            "minimum": 0,
            "type": "integer",
            "description": "Skip groups with more members than this. 0 means no upper limit. A group whose size is unknown is skipped.",
            "default": 0
          },
          "privacy": {
            "title": "🎯 Group privacy",
            "enum": [
              "any",
              "public",
              "private"
            ],
            "type": "string",
            "description": "Keep only groups with this privacy setting.",
            "default": "any"
          },
          "onlyWithContact": {
            "title": "🎯 Only groups with contact details",
            "type": "boolean",
            "description": "Keep only groups whose description shows an email address or a website.",
            "default": false
          },
          "nameMustMatch": {
            "title": "🎯 Keyword must be in the group name",
            "type": "boolean",
            "description": "Keep only groups whose name contains a word of the keyword. Removes loosely related groups. Group links are not affected.",
            "default": false
          },
          "locationContains": {
            "title": "📍 Location contains",
            "type": "string",
            "description": "Keep only groups whose location text contains this word or phrase, for example `London` or `Texas`. Only groups that list a location can match. Leave empty for no location filter."
          },
          "uniqueGroups": {
            "title": "🔁 Save each group once",
            "type": "boolean",
            "description": "When several keywords find the same group, save it once, for the first keyword that finds it. Off by default, so every keyword gets its own full list. A group link is always saved.",
            "default": false
          },
          "expandSearch": {
            "title": "🔎 Deeper search",
            "type": "boolean",
            "description": "When the keyword alone has fewer groups than Max groups per entry, also search related topics found in the groups already collected (for example digital marketing, marketing agency, affiliate marketing for marketing) until the limit is reached. Groups found by your own keyword always come first, and the matchedQuery column shows which search found each group. Turn off to get only the groups of the keyword itself.",
            "default": true
          },
          "expandRounds": {
            "title": "🔢 Deeper search rounds",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many rounds of related searches to run, at most. Each round also stops the search when it adds fewer than 5 percent new groups. 0 turns the deeper search off.",
            "default": 3
          },
          "monitorMode": {
            "title": "🔁 Monitor mode",
            "type": "boolean",
            "description": "Save only groups that are new, or whose member count or privacy changed, since the previous run with the same monitor ID. The first run counts every group as new.",
            "default": false
          },
          "monitorStateId": {
            "title": "🔁 Monitor ID",
            "type": "string",
            "description": "Name of the memory that remembers the groups already seen. Leave empty to use the saved task automatically, or \"default\" for a plain run. Use a different ID for each watch list."
          },
          "webhookUrl": {
            "title": "🔑 Webhook URL",
            "type": "string",
            "description": "Optional https link that receives a JSON summary of the new and changed groups after a monitor run."
          },
          "telegramBotToken": {
            "title": "🔑 Telegram bot token",
            "type": "string",
            "description": "Optional. Token of your Telegram bot, to get a message about new and changed groups. Needs the chat ID below."
          },
          "telegramChatId": {
            "title": "🔁 Telegram chat ID",
            "type": "string",
            "description": "Optional. The chat or channel that receives the Telegram message."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. Requests start without a proxy; if they are rejected, the Actor switches to automatic proxies. Your own proxy settings are tried first."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}