{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Forums API",
    "description": "Extract forum threads, Q&A, and community discussions from Google Search’s \"Forums\" tab. Supports 40+ countries, custom localization (GL/HL), and pagination. Get structured JSON data from Reddit, LinkedIn, Quora, and niche forums for sentiment analysis, market research, or AI training.",
    "version": "0.0",
    "x-build-id": "8WqBr5615BTAClFUn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/johnvc~google-forums-search-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-johnvc-google-forums-search-api",
        "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/johnvc~google-forums-search-api/runs": {
      "post": {
        "operationId": "runs-sync-johnvc-google-forums-search-api",
        "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/johnvc~google-forums-search-api/run-sync": {
      "post": {
        "operationId": "run-sync-johnvc-google-forums-search-api",
        "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": [
          "q"
        ],
        "properties": {
          "q": {
            "title": "Search Query",
            "minLength": 1,
            "type": "string",
            "description": "Provide the search query for forum discussions (e.g. 'what is the best programming language', 'python vs java', 'best coffee brewing methods'). This field is required."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Set a geographic location string for localized forum results (e.g. 'Austin, TX, Texas, United States', 'New York, NY'). Optional. Helps narrow results to a specific area."
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ],
            "type": "string",
            "description": "Choose the device type to emulate for the Google Forums search. Defaults to desktop.",
            "default": "desktop"
          },
          "gl": {
            "title": "Country Code",
            "enum": [
              "us",
              "gb",
              "uk",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "sg",
              "hk",
              "tw",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "pt",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "gr",
              "ro",
              "hu",
              "tr",
              "ru",
              "ua",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "jp",
              "kr",
              "cn",
              "th",
              "vn",
              "id",
              "my",
              "ph",
              "ae",
              "sa",
              "il",
              "eg",
              "za",
              "ng",
              "ke"
            ],
            "type": "string",
            "description": "Set the country code for localization (ISO 3166-1 alpha-2, lowercase). Optional. Top 40 highest-traffic markets are exposed; for any other country, omit this field and pass the location string instead."
          },
          "hl": {
            "title": "Language Code",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "ru",
              "uk",
              "pl",
              "cs",
              "sv",
              "da",
              "no",
              "fi",
              "el",
              "tr",
              "ar",
              "he",
              "ja",
              "ko",
              "zh",
              "zh-cn",
              "zh-tw",
              "th",
              "vi",
              "id",
              "ms",
              "tl",
              "hi",
              "bn",
              "ta",
              "te",
              "ur",
              "fa",
              "hu",
              "ro",
              "bg",
              "hr",
              "sk",
              "sl"
            ],
            "type": "string",
            "description": "Set the interface language code for localization (ISO 639-1 base codes, lowercase). Optional. The Actor normalizes regional variants like 'en-gb' to base codes like 'en'."
          },
          "lr": {
            "title": "Language Restriction",
            "type": "string",
            "description": "Restrict results to a specific language (e.g. 'lang_en', 'lang_es', 'lang_fr'). Optional. Different from the 'hl' interface language - this filters the result language itself."
          },
          "safe": {
            "title": "Safe Search",
            "enum": [
              "active",
              "off"
            ],
            "type": "string",
            "description": "Toggle safe search to filter explicit content. Choose 'active' to filter explicit results, or 'off' to disable filtering. Optional, defaults to 'off'.",
            "default": "off"
          },
          "nfpr": {
            "title": "Exclude Auto-corrected Results",
            "enum": [
              "0",
              "1"
            ],
            "type": "string",
            "description": "Exclude results from auto-corrected queries when the original query is misspelled. Choose '0' to include auto-corrected results, '1' to exclude them. Optional, defaults to '0'.",
            "default": "0"
          },
          "filter": {
            "title": "Filter Duplicates",
            "enum": [
              "0",
              "1"
            ],
            "type": "string",
            "description": "Toggle duplicate content filtering. Choose '0' to include duplicates, '1' to filter them out. Optional, defaults to '0'.",
            "default": "0"
          },
          "max_pages": {
            "title": "Maximum Pages",
            "minimum": 0,
            "type": "integer",
            "description": "Set the maximum number of result pages to fetch. Use 0 for no limit (fetch all available pages). Default is 1. Each processed page is charged separately. Google Forums typically returns about 10 forum results per page.",
            "default": 1
          },
          "output_file": {
            "title": "Output File",
            "type": "string",
            "description": "Provide an optional filename to save the combined results JSON into the default key-value store. If omitted, a filename is generated from the query and timestamp."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}