> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Brave Search

> News, video and image search, LLM-ready page context, suggestions and spellcheck from Brave's independent index.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/bravesearch.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=77869c80fc897108d81888cc76e92ca2)

[Web Catalog · Search](https://docs.webrouter.net/data-apis.md?category=search)

Needs&#x20;

`BRAVE_SEARCH_API_KEY`

Endpoints

6

Auth

Key in header

[Vendor docs](https://api-dashboard.search.brave.com/documentation)

&#x20;·&#x20;

[Pricing](https://api-dashboard.search.brave.com/documentation/pricing/index.html.md)

## Setup

| Variable | | What it is |
| - | - | - |
| `BRAVE_SEARCH_API_KEY` | required | a Brave Search API subscription token (api-dashboard.search.brave.com > API Keys); each product plan has its own token |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Auth is the X-Subscription-Token header. Tokens are per plan: Search, LLM Context and Autosuggest plans each issue their own, and a token only works on endpoints its plan covers.
* Rate limits are per plan and reported in X-RateLimit-\* response headers.
* Result counts and page offsets are capped (offset max 9); a page may return fewer results than count.
* Brave web search and answers go through web-router's search and answer, not this entry.

## Endpoints

GET

Search news

News articles with freshness filtering.

[Open](#bravesearch-news-search)

GET

Search videos

Video results with metadata.

[Open](#bravesearch-videos-search)

GET

Search images

Image results from Brave's image index.

[Open](#bravesearch-images-search)

GET

Get LLM-ready web context

Pre-extracted page content selected for a query, sized for LLM grounding and RAG.

[Open](#bravesearch-llm-context)

GET

Get search suggestions

Autocomplete suggestions for a partial query.

[Open](#bravesearch-suggest-search)

GET

Spell-check a query

Corrected spelling for a query.

[Open](#bravesearch-spellcheck-search)

### Search news

GET

`/v1/news/search`

`bravesearch.news.search`

News articles with freshness filtering.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Search query, up to 400 characters and 50 words. Example `ai regulation`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code the results come from; default US.
      </td>
    </tr>

    <tr>
      <td>
        `search_lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search language code, e.g. en; default en.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return, 1-50; default 20.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Zero-based results-page offset, 0-9; default 0.
      </td>
    </tr>

    <tr><td>`safesearch`</td><td>string</td><td>query</td><td>Adult-content filter. One of `off`, `moderate`, `strict`</td></tr>

    <tr>
      <td>
        `freshness`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Page-age filter: pd, pw, pm, py, or a YYYY-MM-DDtoYYYY-MM-DD range.
      </td>
    </tr>

    <tr>
      <td>
        `spellcheck`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Spell-check the query first; default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-dashboard.search.brave.com/api-reference/news/news_search/get/index.html.md) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-news-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-news), [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-news-topics), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-news), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-news), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-news-search)

```python Python theme={null}
router.call_data_api("bravesearch.news.search", {'q': 'ai regulation'})
```

```text MCP theme={null}
call_data_api(endpoint="bravesearch.news.search", params={"q": "ai regulation"})
```

### Search videos

GET

`/v1/videos/search`

`bravesearch.videos.search`

Video results with metadata.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Search query, up to 400 characters and 50 words. Example `espresso machine review`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code the results come from; default US.
      </td>
    </tr>

    <tr>
      <td>
        `search_lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search language code, e.g. en; default en.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return, 1-50; default 20.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Zero-based results-page offset, 0-9; default 0.
      </td>
    </tr>

    <tr><td>`safesearch`</td><td>string</td><td>query</td><td>Adult-content filter. One of `off`, `moderate`, `strict`</td></tr>

    <tr>
      <td>
        `freshness`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Page-age filter: pd, pw, pm, py, or a YYYY-MM-DDtoYYYY-MM-DD range.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-dashboard.search.brave.com/api-reference/videos/video_search/get/index.html.md) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search), [Crustdata](https://docs.webrouter.net/data-apis/crustdata.md#crustdata-web-search)

```python Python theme={null}
router.call_data_api("bravesearch.videos.search", {'q': 'espresso machine review'})
```

```text MCP theme={null}
call_data_api(endpoint="bravesearch.videos.search", params={"q": "espresso machine review"})
```

### Search images

GET

`/v1/images/search`

`bravesearch.images.search`

Image results from Brave's image index.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Search query, up to 400 characters and 50 words. Example `golden gate bridge`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code the results come from; default US.
      </td>
    </tr>

    <tr>
      <td>
        `search_lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search language code, e.g. en; default en.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return, 1-200; default 50.
      </td>
    </tr>

    <tr><td>`safesearch`</td><td>string</td><td>query</td><td>Adult-content filter. One of `off`, `strict`</td></tr>

    <tr>
      <td>
        `spellcheck`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Spell-check the query first; default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-dashboard.search.brave.com/api-reference/images/image_search/index.html.md) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search), [Crustdata](https://docs.webrouter.net/data-apis/crustdata.md#crustdata-web-search)

```python Python theme={null}
router.call_data_api("bravesearch.images.search", {'q': 'golden gate bridge'})
```

```text MCP theme={null}
call_data_api(endpoint="bravesearch.images.search", params={"q": "golden gate bridge"})
```

### Get LLM-ready web context

GET

`/v1/llm/context`

`bravesearch.llm.context`

Pre-extracted page content selected for a query, sized for LLM grounding and RAG.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Search query, up to 600 characters and 75 words. Example `how does rust ownership work`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code the results come from; default US.
      </td>
    </tr>

    <tr>
      <td>
        `search_lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search language code, e.g. en; default en.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return, 1-50; default 20.
      </td>
    </tr>

    <tr>
      <td>
        `maximum_number_of_urls`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Most distinct URLs to include, 1-50.
      </td>
    </tr>

    <tr>
      <td>
        `maximum_number_of_tokens`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Approximate token budget, 1024-32768; default 8192.
      </td>
    </tr>

    <tr>
      <td>
        `maximum_number_of_tokens_per_url`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Token budget per URL, 512-8192.
      </td>
    </tr>

    <tr><td>`context_threshold_mode`</td><td>string</td><td>query</td><td>How strictly content is filtered by relevance. One of `disabled`, `strict`, `lenient`, `balanced`</td></tr>

    <tr>
      <td>
        `freshness`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Page-age filter: pd, pw, pm, py, or a YYYY-MM-DDtoYYYY-MM-DD range.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-dashboard.search.brave.com/api-reference/ai/llm_context/get/index.html.md) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-fetch), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-scrape)

```python Python theme={null}
router.call_data_api("bravesearch.llm.context", {'q': 'how does rust ownership work'})
```

```text MCP theme={null}
call_data_api(endpoint="bravesearch.llm.context", params={"q": "how does rust ownership work"})
```

> [!NOTE]
>
> * Token budgets bound the size of the answer; count only bounds how many results are considered.

### Get search suggestions

GET

`/v1/suggest/search`

`bravesearch.suggest.search`

Autocomplete suggestions for a partial query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Partial query to complete. Example `how to`</td></tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language code.
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code the results come from; default US.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Suggestions to return, 1-20; default 5.
      </td>
    </tr>

    <tr>
      <td>
        `rich`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add rich results; needs a paid autosuggest plan.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-dashboard.search.brave.com/api-reference/other/suggestions/index.html.md) · Same job: [Listen Notes](https://docs.webrouter.net/data-apis/listennotes.md#listennotes-typeahead), [Wikipedia](https://docs.webrouter.net/data-apis/wikipedia.md#wikipedia-titles-suggest)

```python Python theme={null}
router.call_data_api("bravesearch.suggest.search", {'q': 'how to'})
```

```text MCP theme={null}
call_data_api(endpoint="bravesearch.suggest.search", params={"q": "how to"})
```

### Spell-check a query

GET

`/v1/spellcheck/search`

`bravesearch.spellcheck.search`

Corrected spelling for a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Phrase to check, up to 400 characters. Example `helo wrld`</td></tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language code.
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code the results come from; default US.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-dashboard.search.brave.com/api-reference/other/spell_check/index.html.md)

```python Python theme={null}
router.call_data_api("bravesearch.spellcheck.search", {'q': 'helo wrld'})
```

```text MCP theme={null}
call_data_api(endpoint="bravesearch.spellcheck.search", params={"q": "helo wrld"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.