# Brave Discussions Scraper (`searchapi/brave-discussions-scraper`) Actor

Scrapes forum and discussion results from Brave Search. Extracts discussion threads from Reddit, Stack Exchange, and other community forums that appear in the Discussions section of search results.

- **URL**: https://apify.com/searchapi/brave-discussions-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Categories:** Developer tools, Social media, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Brave Discussions Scraper

Scrapes forum and discussion results from Brave Search. Extracts discussion threads from Reddit, Stack Exchange, and other community forums that appear in the Discussions section of search results.

### What this Actor collects

Each dataset item represents one Brave Discussions result from a public community source, with the thread URL, excerpt, community, dates, reply or vote data, and top-answer details when exposed.

- Uses the input limits and filters below to control the crawl.
- Stores source-backed fields defined by the 29-field dataset schema.
- Omits optional fields when the source does not expose a value instead of writing nulls or fabricated placeholders.

### Use cases

- Community and audience research
- Question and answer monitoring
- Discussion-source enrichment

### Input

Provide input in JSON. Fields marked required must be supplied; source-specific alternatives and constraints are described in the field text.

| Field | Type | Required | Default | Description |
| --- | --- | :---: | --- | --- |
| `query` | string | Yes | — | The search query to find discussion/forum results on Brave Search. |
| `maxItems` | integer | No | `30` | Maximum number of discussion results to scrape. |
| `maxPages` | integer | No | `5` | Maximum number of Brave result pages to inspect. |
| `country` | string | No | `"us"` | Brave country code for localized results. |
| `language` | string | No | `"en"` | Brave language code. |
| `maxRequestRetries` | integer | No | `3` | Retries for temporary navigation, rate-limit, and browser failures. |
| `navigationTimeoutSecs` | integer | No | `60` | Maximum time allowed for each Brave page navigation. |
| `headless` | boolean | No | `true` | Run Firefox without showing a browser window. |
| `proxyConfiguration` | object | No | — | Proxy settings for the scraper. |

#### Example input

```json
{
  "query": "react vs vue",
  "maxItems": 10,
  "maxPages": 3,
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 60,
  "headless": true
}
```

### Output

The default dataset contains one item per discussion result. The following are the most useful fields; answer, reply, and vote fields appear only when Brave exposes them.

| Field | Type | Description |
| --- | --- | --- |
| `position` | integer | Position |
| `link` | string | Thread URL |
| `source` | string | Source |
| `community` | string | Community |
| `snippet` | string | Question Snippet |
| `answerCount` | integer | Answer Count |
| `voteCount` | integer | Top Answer Votes |
| `publishedAt` | string | Published At |
| `searchQuery` | string | Search Query |
| `scrapedAt` | string | Scraped At |
| `page` | integer | Page |
| `domain` | string | Domain |
| `threadId` | string | Thread ID |
| `displayUrl` | string | Displayed URL |
| `snippetHtml` | string | Question HTML |
| `publishedAtRaw` | string | Published At Raw |

<details>
<summary>All 29 declared dataset fields</summary>

`position`, `page`, `link`, `source`, `domain`, `community`, `threadId`, `displayUrl`, `snippet`, `snippetHtml`
`publishedAtRaw`, `publishedAt`, `answerCount`, `replies`, `voteCount`, `votes`, `topAnswers`, `topAnswerCount`, `isSimilarResult`, `parentThreadUrl`
`favicon`, `resultType`, `searchQuery`, `country`, `language`, `market`, `searchUrl`, `scrapedAt`, `searchMetadata`

</details>

#### Example dataset item

This compact example is taken from local Actor storage. Long text and nested collections are shortened for documentation only.

```json
{
  "position": 1,
  "link": "https://www.reddit.com/r/reactjs/comments/10u17c7/what_does_react_do_better_than_vue_innately/",
  "source": "Reddit",
  "community": "reactjs",
  "snippet": "Things like ecosystem could be explained away by existing earlier. I am curious what is inately better about the React library over Vue.",
  "answerCount": 18,
  "voteCount": 235,
  "publishedAt": "2023-02-05T00:00:00.000Z",
  "searchQuery": "react vs vue",
  "scrapedAt": "2026-07-23T15:27:01.889Z",
  "page": 1,
  "domain": "reddit.com"
}
```

### Related Actors

- [Brave AI Mode Scraper](https://apify.com/searchapi/brave-ai-mode-scraper)
- [Brave Autocomplete Scraper](https://apify.com/searchapi/brave-autocomplete-scraper)
- [Brave Goggles Scraper](https://apify.com/searchapi/brave-goggles-scraper)

# Actor input Schema

## `query` (type: `string`):

The search query to find discussion/forum results on Brave Search.

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

Maximum number of discussion results to scrape.

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

Maximum number of Brave result pages to inspect.

## `country` (type: `string`):

Brave country code for localized results.

## `language` (type: `string`):

Brave language code.

## `maxRequestRetries` (type: `integer`):

Retries for temporary navigation, rate-limit, and browser failures.

## `navigationTimeoutSecs` (type: `integer`):

Maximum time allowed for each Brave page navigation.

## `headless` (type: `boolean`):

Run Firefox without showing a browser window.

## `proxyConfiguration` (type: `object`):

Proxy settings for the scraper.

## Actor input object example

```json
{
  "query": "best restaurants in new york",
  "maxItems": 30,
  "maxPages": 5,
  "country": "us",
  "language": "en",
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 60,
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Structured discussion threads and Brave answer excerpts.

# 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 = {
    "query": "best restaurants in new york",
    "maxItems": 30,
    "country": "us",
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/brave-discussions-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 = {
    "query": "best restaurants in new york",
    "maxItems": 30,
    "country": "us",
    "language": "en",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("searchapi/brave-discussions-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "query": "best restaurants in new york",
  "maxItems": 30,
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call searchapi/brave-discussions-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=searchapi/brave-discussions-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/YDCXWUSPfyD7cFsDU/builds/2rH7sSfQSbbCULjKQ/openapi.json
