# Brave Search Scraper (`searchapi/brave-search-scraper`) Actor

Searches Brave Search and extracts rich, source-backed organic web listing data including publisher paths, snippets, deep links, images, dates, and search context.

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

## Pricing

from $1.99 / 1,000 brave search scraper results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 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 Search Scraper

Searches Brave Search and extracts rich, source-backed organic web listing data including publisher paths, snippets, deep links, images, dates, and search context.

### What this Actor collects

Each dataset item represents one source-backed Brave organic listing, with ranking, destination, publisher path, snippet, rich-result, image, date, and search context fields when available.

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

### Use cases

- Search and competitor research
- Ranking and visibility monitoring
- Dataset and workflow 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 | — | Keywords to search on Brave Search. |
| `maxItems` | integer | No | `50` | Maximum organic results to save, from 1 to 500. |
| `maxPages` | integer | No | `10` | Maximum Brave result pages to inspect, from 1 to 50. |
| `country` | string | No | `"us"` | Two-letter Brave country code. |
| `language` | string | No | `"en"` | Brave search language code. |
| `safeSearch` | string | No | `"moderate"` | Brave Safe Search preference applied through the official browser preference and verified after navigation. |
| `maxRequestRetries` | integer | No | `3` | Retries temporary rate-limit and server-error responses. |
| `navigationTimeoutSecs` | integer | No | `60` | Maximum seconds to wait for each result page. |
| `headless` | boolean | No | `true` | Disable only for local visual debugging. |
| `proxyConfiguration` | object | No | — | Optional Apify Proxy or custom proxy settings. |

#### Example input

```json
{
  "query": "artificial intelligence",
  "maxItems": 50,
  "maxPages": 10,
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "safeSearch": "moderate",
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 60,
  "headless": true
}
```

### Output

The default dataset contains one item per organic search result. The following are the most useful fields; rich-result and media fields appear only when Brave provides them.

| Field | Type | Description |
| --- | --- | --- |
| `position` | integer | Position |
| `title` | string | Title |
| `link` | string | Link |
| `source` | string | Source |
| `displayedUrl` | string | Displayed URL |
| `domain` | string | Domain |
| `favicon` | string | Favicon |
| `snippet` | string | Snippet |
| `publishedAt` | string | Published At |
| `thumbnail` | string | Thumbnail |
| `sitelinks` | array | Sitelinks |
| `page` | integer | Page |
| `query` | string | Query |
| `safeSearch` | string | Safe Search |
| `scrapedAt` | string | Scraped At |
| `type` | string | Record Type |

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

`type`, `resultType`, `position`, `page`, `title`, `titleHtml`, `link`, `url`, `displayUrl`, `displayedUrl`
`domain`, `source`, `publisher`, `sourceUrl`, `sourceDomain`, `favicon`, `snippet`, `description`, `snippetHtml`, `descriptionHtml`
`emphasis`, `sitelinks`, `breadcrumbs`, `author`, `date`, `publishedAt`, `publishedAtRaw`, `relativeTime`, `richSnippet`, `richResultType`
`rating`, `ratingCount`, `reviewCount`, `price`, `priceNumeric`, `currency`, `thumbnail`, `thumbnailUrl`, `imageUrl`, `imageAlt`
`imageWidth`, `imageHeight`, `cacheLink`, `additionalInfo`, `category`, `tags`, `isAd`, `isSponsored`, `engineId`, `searchQuery`
`query`, `country`, `language`, `market`, `safeSearch`, `searchUrl`, `scrapedAt`, `searchMetadata`, `canonicalUrl`

</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,
  "title": "Artificial intelligence - Wikipedia",
  "link": "https://en.wikipedia.org/wiki/Artificial_intelligence",
  "source": "Wikipedia",
  "displayedUrl": "en.wikipedia.org › wiki › Artificial_intelligence",
  "domain": "en.wikipedia.org",
  "favicon": "https://imgs.search.brave.com/m6XxME4ek8DGIUcEPCqjRoDjf2e54EwL9pQzyzogLYk/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvNjQwNGZhZWY0/ZTQ1YWUzYzQ3MDU…",
  "snippet": "Artificial intelligence (AI) is the capability of computational systems to perform tasks typically associated with human intelligence, such as learning, reasoning, problem-solving…",
  "publishedAt": "2026-07-22T20:59:08.209Z",
  "sitelinks": [
    {
      "title": "Goals",
      "url": "https://en.wikipedia.org/wiki/Artificial_intelligence#Goals"
    },
    {
      "title": "Techniques",
      "url": "https://en.wikipedia.org/wiki/Artificial_intelligence#Techniques"
    }
  ],
  "page": 1,
  "query": "artificial intelligence"
}
```

### 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 Discussions Scraper](https://apify.com/searchapi/brave-discussions-scraper)

# Actor input Schema

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

Keywords to search on Brave Search.

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

Maximum organic results to save, from 1 to 500.

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

Maximum Brave result pages to inspect, from 1 to 50.

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

Two-letter Brave country code.

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

Brave search language code.

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

Brave Safe Search preference applied through the official browser preference and verified after navigation.

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

Retries temporary rate-limit and server-error responses.

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

Maximum seconds to wait for each result page.

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

Disable only for local visual debugging.

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

Optional Apify Proxy or custom proxy settings.

## Actor input object example

```json
{
  "query": "artificial intelligence",
  "maxItems": 50,
  "maxPages": 10,
  "country": "us",
  "language": "en",
  "safeSearch": "moderate",
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 60,
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Normalized source-backed organic listing records from Brave Search.

# 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": "artificial intelligence",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/brave-search-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": "artificial intelligence",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("searchapi/brave-search-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": "artificial intelligence",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call searchapi/brave-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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