WEBSEO TOOLSAI API MCP READY

Google Forums API

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.

MEDIAN LAGon demand
PARAMETERS10
TOTAL USERS48
MONTHLY ACTIVE9
TOTAL RUNS407
RUNS SUCCEEDED100.0%
RATING5.0 (3)

Input parameters

PARAMETERTYPEREQDEFAULTDESCRIPTION
q string yes Provide the search query for forum discussions (e.g. 'what is the best programming language', 'python vs java', 'best coffee brewing methods').
location string no Set a geographic location string for localized forum results (e.g. 'Austin, TX, Texas, United States', 'New York, NY').
device enum no desktop Choose the device type to emulate for the Google Forums search.
gl enum no Set the country code for localization (ISO 3166-1 alpha-2, lowercase).
hl enum no Set the interface language code for localization (ISO 639-1 base codes, lowercase).
lr string no Restrict results to a specific language (e.g. 'lang_en', 'lang_es', 'lang_fr').
safe enum no off Toggle safe search to filter explicit content.
nfpr enum no 0 Exclude results from auto-corrected queries when the original query is misspelled.
filter enum no 0 Toggle duplicate content filtering.
max_pages integer no 1 Set the maximum number of result pages to fetch. — drives your bill

Worked examples

Basic — the required input, with the schema's own example values
{
  "q": "what is the best programming language"
}

Coverage

52
country code — us gb uk ca au +47
41
language code — en es fr de it +36

Tasks

Saved runs with the inputs already filled in — each one a standalone page and a working configuration example.

Request a task →

Code

curl

curl -X POST "https://api.apify.com/v2/acts/johnvc~google-forums-search-api/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"q": "what is the best programming language"}'

Python

from apify_client import ApifyClient

client = ApifyClient("APIFY_TOKEN")
run = client.actor("johnvc/google-forums-search-api").call(
    run_input={'q': 'what is the best programming language'}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)