{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Forums & Discussions Search Scraper",
    "description": "Search Google's Forums tab for community threads across Reddit, Quora, Facebook groups and niche forums. Export titles, URLs, forum and community labels, post age, comment and answer counts, snippets, top answers and grouped sub-threads by keyword, country, language and time range.",
    "version": "0.1",
    "x-build-id": "edw5hQrWkjpWIsiHf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~google-forums-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-google-forums-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/xyrelith-data~google-forums-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-google-forums-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/xyrelith-data~google-forums-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-google-forums-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": [
          "searchQueries"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Keywords or questions to search in Google's Forums tab. Each query is searched separately and duplicate URLs are removed across queries.",
            "items": {
              "type": "string"
            },
            "default": [
              "best budget mechanical keyboard"
            ]
          },
          "maxItems": {
            "title": "Maximum threads",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many forum thread records across all queries.",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum pages per query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Google returns about 10 forum threads per page. Pagination stops earlier when results run out or maxItems is reached.",
            "default": 10
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "us",
              "uk",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "br",
              "mx",
              "in",
              "jp",
              "kr",
              "nl",
              "be",
              "at",
              "ch",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "pt",
              "ie",
              "nz",
              "za",
              "sg",
              "hk",
              "tw",
              "ph",
              "th",
              "id",
              "my",
              "vn",
              "ar",
              "cl",
              "co",
              "pe",
              "tr",
              "ru",
              "ua",
              "il",
              "ae",
              "sa",
              "eg",
              "ng",
              "ke"
            ],
            "type": "string",
            "description": "Google market (gl) whose forum discussions should be ranked first.",
            "default": "us"
          },
          "languageCode": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "tr",
              "ru",
              "uk",
              "ar",
              "he",
              "fa",
              "hi",
              "bn",
              "ta",
              "te",
              "mr",
              "gu",
              "kn",
              "ml",
              "pa",
              "ur",
              "id",
              "ms",
              "th",
              "vi",
              "fil",
              "zh-CN",
              "zh-TW",
              "ja",
              "ko",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "hr",
              "sr",
              "sl",
              "lt",
              "lv",
              "et",
              "ca",
              "eu",
              "gl",
              "af",
              "sw"
            ],
            "type": "string",
            "description": "Interface and result language (hl) sent to Google. Use the language your keywords are written in.",
            "default": "en"
          },
          "resultLanguage": {
            "title": "Result language",
            "enum": [
              "any",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "tr",
              "ru",
              "uk",
              "ar",
              "he",
              "fa",
              "hi",
              "bn",
              "ta",
              "te",
              "mr",
              "gu",
              "kn",
              "ml",
              "pa",
              "ur",
              "id",
              "ms",
              "th",
              "vi",
              "fil",
              "zh-CN",
              "zh-TW",
              "ja",
              "ko",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "hr",
              "sr",
              "sl",
              "lt",
              "lv",
              "et",
              "ca",
              "eu",
              "gl",
              "af",
              "sw"
            ],
            "type": "string",
            "description": "Optional language restriction for the thread text itself (Google lr). Use any language to let the query decide.",
            "default": "any"
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "any",
              "pastHour",
              "pastDay",
              "pastWeek",
              "pastMonth",
              "pastYear"
            ],
            "type": "string",
            "description": "Only return threads Google marks as published or active inside this window.",
            "default": "any"
          },
          "platform": {
            "title": "Forum platform",
            "enum": [
              "all",
              "reddit",
              "quora",
              "facebook",
              "stackoverflow",
              "stackexchange",
              "github",
              "hackernews"
            ],
            "type": "string",
            "description": "Restrict results to one forum platform. Use the site filters field for any other domain.",
            "default": "all"
          },
          "siteFilters": {
            "title": "Site filters",
            "type": "array",
            "description": "Optional domains to restrict the search to, for example overclock.net or forums.pcgamer.com. Multiple domains are combined with OR and merged with the platform filter.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "exactPhrase": {
            "title": "Exact phrase",
            "type": "string",
            "description": "Optional phrase that must appear verbatim in the thread.",
            "default": ""
          },
          "excludeTerms": {
            "title": "Exclude terms",
            "type": "array",
            "description": "Words or phrases to exclude from every search.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "safeSearch": {
            "title": "Safe search",
            "enum": [
              "off",
              "active"
            ],
            "type": "string",
            "description": "Ask Google to filter explicit results.",
            "default": "off"
          },
          "verbatimSearch": {
            "title": "Verbatim search",
            "type": "boolean",
            "description": "Ask Google not to auto-correct the query or substitute similar terms (nfpr=1).",
            "default": false
          },
          "includeRelatedThreads": {
            "title": "Include grouped sub-threads",
            "type": "boolean",
            "description": "When Google groups more threads from the same site under a result, include their titles, URLs, reply counts and dates inside relatedThreads.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}