{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Groups Search: Find Groups by Keyword",
    "description": "Find Facebook groups by keyword, no login: found on Brave Search and DuckDuckGo, read live on Facebook. You get name, URL, group ID, Public or Private group and members; Group details adds posts in the last month, created date, admins and rules. JSON, CSV, API; pay per group and search page.",
    "version": "0.1",
    "x-build-id": "e3HZNRgAYQnMVRm6O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-groups-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-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/automation_craft~facebook-groups-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-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/automation_craft~facebook-groups-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-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": "Keywords or phrases to find Facebook groups for, one per line (\"real estate investors\", \"yoga london\"). Up to 100 a run. Each keyword is one search: its groups come from Brave Search and DuckDuckGo results for Facebook group pages, then each group is read on Facebook itself (logged out). A Facebook group link or a facebook.com/search/groups/?q= link put here is read as a link or as its search words. Also read from queries, keywords, searchTerms, searchQuery, query and keyword.",
            "items": {
              "type": "string"
            }
          },
          "groupUrls": {
            "title": "Group links or ids",
            "type": "array",
            "description": "Facebook groups you already know, one per line: a group link (facebook.com/groups/sourdoughbakers, also a post, about or members link of the group), a share link (facebook.com/share/g/...), a numeric group id or a group name. Up to 1,000 a run. Each is delivered as a group row, read the same way as a search result (the filters below apply, the keyword match does not), billed as a Group and a Group lookup (see Pricing). Also read from startUrls (strings or {\"url\": ...}), groupLinks, groupIds and urls.",
            "items": {
              "type": "string"
            }
          },
          "searchLocations": {
            "title": "Search locations",
            "type": "array",
            "description": "Place names added to every keyword (\"London\", \"Texas\"), one per line, up to 20: each keyword is searched once per place (\"yoga\" with \"London\" searches \"yoga London\"). Leave empty to search the keywords alone. To keep only groups whose own location names a place, use locationContains (Group details). Also read from locations, searchLocation and location.",
            "items": {
              "type": "string"
            }
          },
          "maxGroupsPerQuery": {
            "title": "Groups per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most groups delivered for one search (one keyword, with one search location when given). A search ends earlier where the search engines run out of new results: about 30 to 200 groups a keyword, depending on the keyword (FEASIBILITY.md). 50 when left out. Also read from maxResultsPerQuery, resultsPerQuery, maxGroups and maxResults (the last two also cap the whole run when maxItems is not given)."
          },
          "maxItems": {
            "title": "Max groups in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most groups delivered in the whole run, all searches and links together (each group once). 100,000 when left out."
          },
          "deepSearch": {
            "title": "Deep search",
            "type": "boolean",
            "description": "On (the default when left out): each keyword is searched as three phrases (site:facebook.com/groups <keyword>, the same with \"group\", and \"<keyword> facebook group\"), which finds about two to four times more groups. Off: the first phrase only (faster, fewer groups)."
          },
          "searchEngines": {
            "title": "Search engines",
            "type": "array",
            "description": "The search engines a keyword is looked up on: Brave Search (about 20 results a page, up to 6 pages a phrase) and DuckDuckGo (about 10 to 15 a page). Both when left out. An engine that refuses this Actor's searches 3 times in a row is not asked again in the run; when every engine of the run is refused, the run stops and the searches not started are listed in free rows (200 a row). The coverage rows say which engine pages were read. Also read from sources.",
            "items": {
              "type": "string",
              "enum": [
                "brave",
                "duckduckgo"
              ],
              "enumTitles": [
                "Brave Search",
                "DuckDuckGo"
              ]
            }
          },
          "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)."
          },
          "requireKeywordMatch": {
            "title": "Require the keyword",
            "type": "boolean",
            "description": "On (the default when left out): a search result is kept only when every word of the keyword (words of three letters or more and words with a digit; all words if none is like that) stands as a whole word in the group's name, or, with Group details on, in its description, topic tags or locations. Search engines also return groups that are only near the topic; turn this off to keep them. Search locations are not part of the match. Group links are never checked."
          },
          "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"
            }
          },
          "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 names, rules. Off when left out. Any filter below turns 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."
          },
          "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). Needs Group details (turned 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. Needs Group details (turned 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. Needs Group details (turned 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). Needs Group details (turned on)."
          },
          "createdBefore": {
            "title": "Created on or before",
            "type": "string",
            "description": "Keep only groups created on or before this day (YYYY-MM-DD, UTC). Needs Group details (turned 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). The search engines are read from 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}