# Google Forums & Discussions Search Scraper (`xyrelith-data/google-forums-scraper`) Actor

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.

- **URL**: https://apify.com/xyrelith-data/google-forums-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Forums & Discussions Search Scraper

Search **Google's Forums tab** for the community threads Google ranks across Reddit, Quora, Facebook groups, Stack Exchange, Hacker News, vendor boards and independent niche forums. One run accepts one keyword or hundreds, applies country, language, time and site filters, pages through the forum results, and returns one clean row per thread with the forum and community label, post date or age, comment and answer counts, snippet, top-answer excerpt and the grouped sub-threads Google shows for the same site.

No keywords? The default input searches for budget mechanical keyboards so you can see the record shape immediately. Empty fields are omitted from every record.

### What this actor does

- **One search mode, many queries:** every keyword is searched separately; duplicate thread URLs are removed across all queries and pages.
- **Forums, not web pages:** results come from Google's dedicated Forums vertical, so the output is discussion threads rather than product pages or news articles.
- **Localized markets:** 48 Google country markets and 54 interface languages, plus past-hour to past-year time windows.
- **Forum filters:** restrict to Reddit, Quora, Facebook groups, Stack Overflow, Stack Exchange, GitHub Discussions or Hacker News, or pass your own domains.
- **Richer rows:** answer counts, top-answer excerpts, community/sub-forum labels and the “more results from this site” sub-thread group are kept whenever Google displays them.
- **Pages until done:** pagination stops at your record cap, your page cap, or when Google runs out of threads; the cap is shared fairly between queries so every keyword gets a share.

### Output per thread

- `id` — stable SHA-256 identifier built from the canonical thread URL
- `recordType: "forumThread"`, `scrapedAt`
- `searchQuery`, `effectiveQuery` — your keyword and the query actually sent (with phrase, site and exclusion operators)
- `page`, `position`, `positionOnPage` — pagination and ranking context
- `title` — thread title as Google displays it
- `url` — resolved destination thread URL
- `googleRedirectUrl` — the Google result link the URL was resolved from
- `siteName`, `community` — forum/site label and sub-community (for example `Reddit` + `r/buildapc`, or `Overclock.net` + `Keyboards`)
- `platform` — normalized platform such as Reddit, Quora, Facebook Groups or Stack Overflow
- `sourceDomain`, `forumUrl`, `displayedUrl`, `breadcrumb[]` — host, forum/community home URL and the URL breadcrumb Google shows
- `threadId` — platform thread identifier when the URL exposes one (Reddit, Stack Overflow, Stack Exchange, GitHub Discussions)
- `dateText`, `publishedDate`, `ageText` — displayed date or age; `publishedDate` is filled when the date is absolute
- `commentCount`, `commentCountText` — comment total when Google shows one
- `answerCount`, `answerCountText` — answer total from the answer strip or the metadata line
- `replyCount`, `replyCountText` — reply/post total when the source labels it that way
- `snippet`, `snippetHighlights[]` — preview text and the terms Google emphasizes
- `topAnswer` — Google's top-answer excerpt when the result includes one
- `relatedThreads[]` — grouped “more results from this site” threads with `position`, `title`, `url`, `replyCount`, `dateText` and `publishedDate`
- `moreResultsUrl`, `moreResultsText` — Google's link to the full same-site result set when present
- `countryCode`, `languageCode`, `resultLanguage`, `timeRange`, `platformFilter`, `siteFilters[]`, `exactPhrase`, `excludeTerms[]`, `safeSearch`, `verbatimSearch`, `searchUrl`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | array | `["best budget mechanical keyboard"]` | Keywords or questions to search; required, up to 50 |
| `maxItems` | integer | `100` | Record cap across all queries, split fairly between them (1–1000) |
| `maxPages` | integer | `10` | Page cap per query (1–20); Google shows about 10 threads per page |
| `countryCode` | string | `us` | Google market (`gl`); 48 countries in the picker |
| `languageCode` | string | `en` | Interface/result language (`hl`); 54 languages in the picker |
| `resultLanguage` | string | `any` | Optional language restriction for thread text (`lr`), or `any` |
| `timeRange` | string | `any` | `any`, `pastHour`, `pastDay`, `pastWeek`, `pastMonth`, `pastYear` |
| `platform` | string | `all` | `all`, `reddit`, `quora`, `facebook`, `stackoverflow`, `stackexchange`, `github`, `hackernews` |
| `siteFilters` | array | `[]` | Additional domains, for example `overclock.net` or `forums.pcgamer.com` |
| `exactPhrase` | string | `""` | Phrase that must appear verbatim |
| `excludeTerms` | array | `[]` | Words or phrases to exclude |
| `safeSearch` | string | `off` | `off` or `active` |
| `verbatimSearch` | boolean | `false` | Ask Google not to auto-correct the query (`nfpr=1`) |
| `includeRelatedThreads` | boolean | `true` | Add the grouped same-site sub-threads to every row |

#### Example: one keyword across every forum

```json
{
  "searchQueries": ["best budget mechanical keyboard"],
  "maxItems": 50
}
```

#### Example: brand monitoring on Reddit and Quora

```json
{
  "searchQueries": ["acme standing desk wobble", "acme desk review"],
  "platform": "all",
  "siteFilters": ["reddit.com", "quora.com"],
  "timeRange": "pastMonth",
  "maxItems": 100
}
```

#### Example: a German market search on niche boards

```json
{
  "searchQueries": ["mechanische tastatur empfehlung"],
  "countryCode": "de",
  "languageCode": "de",
  "excludeTerms": ["kaufen"],
  "maxItems": 40
}
```

#### Example: exact phrase with grouped sub-threads

```json
{
  "searchQueries": ["mechanical keyboard"],
  "exactPhrase": "hot swappable",
  "includeRelatedThreads": true,
  "maxPages": 3,
  "maxItems": 30
}
```

### Use cases

- **Product and brand research** — find the threads where buyers ask about a product, a defect or a competitor.
- **Community discovery** — see which subreddits, Facebook groups and niche boards Google considers relevant to a topic.
- **Localized market research** — compare the same keyword across countries and languages without separate per-forum integrations.
- **Content and SEO planning** — collect the questions and thread titles that already rank in the Forums tab.
- **AI and RAG datasets** — export clean thread previews with dates and engagement counts for retrieval or sentiment work.
- **Support trend tracking** — watch recent forum activity for a recurring issue using the time-range filter.

### FAQ

#### What exactly is the Forums tab?

Google's Forums tab is a dedicated discussion vertical that groups results from Reddit, Quora, Facebook groups, Stack Exchange, vendor communities and independent forums. The actor searches that vertical directly instead of filtering ordinary web results.

#### Does the actor open every thread and scrape the replies?

No. Each row is the forum result card Google returns: title, link, site and community labels, date or age, comment/answer counts, snippet, top-answer excerpt and any grouped sub-threads. Opening every destination forum would need per-site parsers, logins on some sites, and far more requests.

#### Why are some dates missing?

Google shows an exact date for some threads and only a relative age for others, and a small share of cards show neither. `dateText` keeps what Google displays; `publishedDate` is added when the text is an absolute date, and `ageText` when it is relative.

#### Why do comment and answer counts differ between rows?

Google labels the same engagement differently by source: Reddit and Facebook cards usually show comments, Quora cards show answers, and other forums may show posts or no count at all. The matching text is kept in `commentCountText`, `answerCountText` or `replyCountText` so you can audit every number.

#### Why do only some rows have `relatedThreads`?

Google groups extra threads from the same site under some results only. When the group is present, its titles, links, reply counts and dates are added to the parent row. Disable `includeRelatedThreads` if you want a flat, lighter dataset.

#### Can I search one specific forum?

Yes. Use `siteFilters` with the domain, for example `forums.pcgamer.com` or `overclock.net`. The platform picker covers the largest communities; site filters handle everything else.

#### How fresh is the data?

Every run queries Google live. Use `timeRange` to keep threads from the past hour, day, week, month or year, and schedule the actor to track new discussions over time.

#### Do I need an API key, a login or a proxy?

No. The actor works without credentials and chooses a working connection to Google automatically. Just fill in the keywords and run it.

#### Is this affiliated with Google or the forums it returns?

No. This is a third-party actor that reads publicly available Google Forums results. Review Google's terms and each destination community's rules before using the data at scale.

#### Why did a run return no rows?

A very narrow query, an uncommon language/country pair, or a filter combination can produce no forum results. Google then returns an empty result set rather than an error; try a broader keyword or remove a filter.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords or questions to search in Google's Forums tab. Each query is searched separately and duplicate URLs are removed across queries.

## `maxItems` (type: `integer`):

Stop after this many forum thread records across all queries.

## `maxPages` (type: `integer`):

Google returns about 10 forum threads per page. Pagination stops earlier when results run out or maxItems is reached.

## `countryCode` (type: `string`):

Google market (gl) whose forum discussions should be ranked first.

## `languageCode` (type: `string`):

Interface and result language (hl) sent to Google. Use the language your keywords are written in.

## `resultLanguage` (type: `string`):

Optional language restriction for the thread text itself (Google lr). Use any language to let the query decide.

## `timeRange` (type: `string`):

Only return threads Google marks as published or active inside this window.

## `platform` (type: `string`):

Restrict results to one forum platform. Use the site filters field for any other domain.

## `siteFilters` (type: `array`):

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.

## `exactPhrase` (type: `string`):

Optional phrase that must appear verbatim in the thread.

## `excludeTerms` (type: `array`):

Words or phrases to exclude from every search.

## `safeSearch` (type: `string`):

Ask Google to filter explicit results.

## `verbatimSearch` (type: `boolean`):

Ask Google not to auto-correct the query or substitute similar terms (nfpr=1).

## `includeRelatedThreads` (type: `boolean`):

When Google groups more threads from the same site under a result, include their titles, URLs, reply counts and dates inside relatedThreads.

## Actor input object example

```json
{
  "searchQueries": [
    "best budget mechanical keyboard"
  ],
  "maxItems": 3,
  "maxPages": 1,
  "countryCode": "us",
  "languageCode": "en",
  "resultLanguage": "any",
  "timeRange": "any",
  "platform": "all",
  "siteFilters": [],
  "exactPhrase": "",
  "excludeTerms": [],
  "safeSearch": "off",
  "verbatimSearch": false,
  "includeRelatedThreads": true
}
```

# Actor output Schema

## `threads` (type: `string`):

Dataset containing one record per forum thread.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "best budget mechanical keyboard"
    ],
    "maxItems": 3,
    "maxPages": 1,
    "countryCode": "us",
    "languageCode": "en",
    "resultLanguage": "any",
    "timeRange": "any",
    "platform": "all",
    "siteFilters": [],
    "exactPhrase": "",
    "excludeTerms": [],
    "safeSearch": "off",
    "verbatimSearch": false,
    "includeRelatedThreads": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/google-forums-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["best budget mechanical keyboard"],
    "maxItems": 3,
    "maxPages": 1,
    "countryCode": "us",
    "languageCode": "en",
    "resultLanguage": "any",
    "timeRange": "any",
    "platform": "all",
    "siteFilters": [],
    "exactPhrase": "",
    "excludeTerms": [],
    "safeSearch": "off",
    "verbatimSearch": False,
    "includeRelatedThreads": True,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/google-forums-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "best budget mechanical keyboard"
  ],
  "maxItems": 3,
  "maxPages": 1,
  "countryCode": "us",
  "languageCode": "en",
  "resultLanguage": "any",
  "timeRange": "any",
  "platform": "all",
  "siteFilters": [],
  "exactPhrase": "",
  "excludeTerms": [],
  "safeSearch": "off",
  "verbatimSearch": false,
  "includeRelatedThreads": true
}' |
apify call xyrelith-data/google-forums-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/google-forums-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/AdFch2VHuz2gSitab/builds/edw5hQrWkjpWIsiHf/openapi.json
