Brave Search API
The Brave Search API provides real-time access to the results page of Brave Search. It returns organic results, ads, the knowledge graph, videos, news, frequently asked questions, forum discussions, local results and related searches.
Brave Search encrypts the links of many results. Those results return Brave's own link, which leads to the page, and
their source, domain and displayed_link name the site. Each of them comes with a
link_token: send it to the Brave Resolve API
to get the destination URL, free of charge.
API Parameters
Search Query
-
- Name
-
q - Required
- Required
- Description
-
The search query. Up to 400 characters and 50 words, the limits Brave Search answers within. The character limit counts UTF-16 code units, so a supplementary character such as an emoji counts as two. A query that starts or ends with a bang such as
!wreturns an error, since Brave Search sends it to the page the bang names.
Localization
-
- Name
-
country - Required
- Optional
- Description
-
Two-letter country code that sets the region Brave Search returns results for. The default parameter is
us. Set it toallfor all regions. Check the full list of supported Brave countries.
-
- Name
-
language - Required
- Optional
- Description
-
Two-letter language code that sets the language Brave Search prefers for results. The default parameter is
en. Check the full list of supported Brave languages.
Filters
-
- Name
-
time_period - Required
- Optional
- Description
-
Restricts results to pages from a recent period. One of
last_day,last_week,last_month,last_year. Usetime_period_minandtime_period_maxfor a custom period instead.
-
- Name
-
time_period_min - Required
- Optional
- Description
-
The start of a custom period, in the format
YYYY-MM-DDorMM/DD/YYYY. Withouttime_period_max, the period ends today.
-
- Name
-
time_period_max - Required
- Optional
- Description
-
The end of a custom period, in the format
YYYY-MM-DDorMM/DD/YYYY. Withouttime_period_min, the period has no start.
-
- Name
-
safe_search - Required
- Optional
- Description
-
Filters adult content. One of
off,moderate,strict. Brave Search appliesmoderatewhen it is not set.
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
The results page, from 1 to 6. Each page holds up to 20 results.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
brave.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
The response holds search_information, ads, knowledge_graph,
organic_results, inline_videos, related_questions,
discussions_and_forums, related_searches and pagination. Brave Search shows
each block only when it has one for the query.
https://www.searchapi.io/api/v1/search?engine=brave&q=coffee
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "brave",
"q": "coffee"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_9MCqU4sbOuGd6aBFBtvXZIV0",
"status": "Success",
"created_at": "2026-11-19T07:15:48Z",
"request_time_taken": 2.6,
"parsing_time_taken": 0.04,
"total_time_taken": 2.64,
"request_url": "https://search.brave.com/search?q=coffee&source=web",
"html_url": "https://www.searchapi.io/api/v1/searches/search_9MCqU4sbOuGd6aBFBtvXZIV0.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_9MCqU4sbOuGd6aBFBtvXZIV0"
},
"search_parameters": {
"engine": "brave",
"q": "coffee",
"country": "us",
"language": "en"
},
"search_information": {
"query_displayed": "coffee"
},
"ads": [
{
"position": 1,
"title": "Shop Premium Coffee on Amazon",
"link": "https://www.amazon.com/s?k=coffee&tag=ustxtaddt-20",
"tracking_link": "https://search.brave.com/a/redirect?click_url=https%3A%2F%2Fwww.amazon.com%2Fs%3Fk%3Dcoffee%26tag%3D...",
"source": "Amazon",
"snippet": "Discover specialty roasts, instant options, and whole bean coffee. Free shipping on Prime ...",
"favicon": "https://imgs.search.brave.com/1SmDks4CPsuEM1txgXrUz2cuSfM8XLjvrvTIacq4V2s/rs:fit:32:32:1:0/g:ce/aHR0..."
}
],
"knowledge_graph": {
"title": "Coffee",
"description": "Coffee is a beverage brewed from roasted, ground coffee beans. Dark-colored and bitter, coffee has a stimulating effect on humans due to its caffeine content; however decaffeinated coffee is also commercially available. There are also various coffee substitutes.",
"link": "https://en.wikipedia.org/wiki/Coffee",
"thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Latte_and_dark_coffee.jpg/500px-Latte_and_...",
"profiles": [
{
"name": "Wikipedia",
"link": "https://en.wikipedia.org/wiki/Coffee"
},
"..."
]
},
"organic_results": [
{
"position": 1,
"title": "Coffee - Wikipedia",
"link": "https://search.brave.com/go/v1/AUxVvWehS57nav6h9AEywK51cpcQFqX6sJls5KJXgBC_Bux3eJcRTUeUzRZ23VozeiSIP...",
"link_token": "15uTrj6zmq3zNq9LEDus62vV5SMyHiVUhh_EbDGn5gRnaI4IuaGN1QVe0fnL...",
"source": "Wikipedia",
"domain": "en.wikipedia.org",
"displayed_link": "en.wikipedia.org › wiki › Coffee",
"snippet": "Coffee is a beverage brewed from roasted, ground coffee beans. Dark-colored and bitter, coffee has a stimulating effect on humans due to its caffeine content; however decaffeinated coffee is also commercially available. There are also various coffee substitutes.",
"snippet_highlighted_words": [
"Coffee",
"coffee"
],
"date": "5 days ago",
"favicon": "https://imgs.search.brave.com/m6XxME4ek8DGIUcEPCqjRoDjf2e54EwL9pQzyzogLYk/rs:fit:32:32:1:0/g:ce/aHR0...",
"sitelinks": [
{
"title": "Etymology",
"link": "https://en.wikipedia.org/wiki/Coffee#Etymology"
},
"..."
]
},
"..."
],
"inline_videos": [
{
"position": 1,
"title": "I Tried Every Way to Make Coffee - YouTube",
"link": "https://www.youtube.com/watch?v=CLsCU_JX1eU",
"source": "YouTube",
"channel": "Speeed",
"length": "42:07",
"date": "5 days ago",
"thumbnail": "https://i.ytimg.com/vi/CLsCU_JX1eU/maxresdefault.jpg"
},
"..."
],
"related_questions": [
{
"question": "Where does the coffee come from?",
"answer": "We seek out the best local independent coffee roasters from coast to coast, and we're proud to partner with 50+ of them. They're the places you'd love to have nearby and the people you'd want as friends - pouring passion into every detail, crafting coffee the right way, and developing lasting partnerships along the coffee supply chain to build an equitable global community. You can learn more about Trade’s specialty roasters here.",
"source": {
"title": "Specialty Coffee | Buy Coffee Online | Trade Coffee",
"link": "https://www.drinktrade.com/collections/all",
"domain": "www.drinktrade.com"
}
},
"..."
],
"discussions_and_forums": [
{
"title": "What does everyone do for cheap, yet good tasting coffee? I’m not that picky. We don’t have a Costco close by. Thanks.",
"link": "https://www.reddit.com/r/Frugal/comments/16i8dey/what_does_everyone_do_for_cheap_yet_good_tasting/",
"source": "r/Frugal",
"snippet": "Honestly, Trader Joe’s coffee is legit and super affordable.",
"date": "September 14, 2023"
},
"..."
],
"related_searches": [
{
"query": "coffee types",
"link": "https://search.brave.com/search?q=coffee+types&source=web"
},
"..."
],
"pagination": {
"current": 1,
"next": "https://search.brave.com/search?q=coffee&source=web&offset=1"
}
}
Local Results
https://www.searchapi.io/api/v1/search?engine=brave&q=pizza+near+me
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "brave",
"q": "pizza near me"
}
response = requests.get(url, params=params)
print(response.text)
{
"local_results": [
{
"position": 1,
"title": "Pizza House & Mexican Food",
"address": "514 Burnside Ave, East Hartford, CT 06108",
"phone": "+18602901111",
"link": "https://easthartfordpizzahouse.com/",
"gps_coordinates": {
"latitude": 41.7783729,
"longitude": -72.6175603
}
},
"..."
]
}
Top Stories
https://www.searchapi.io/api/v1/search?engine=brave&q=nvidia+earnings
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "brave",
"q": "nvidia earnings"
}
response = requests.get(url, params=params)
print(response.text)
{
"top_stories": [
{
"position": 1,
"title": "Thinking About Buying Anthropic’s IPO on Nov. 19? Here’s an AI Stock I’d Consider First (Hint: It’s Not Nvidia or Broadcom). | The Motley Fool",
"link": "https://www.fool.com/investing/2026/11/18/thinking-about-buying-anthropic-s-ipo-on-nov-19-here-s-an-...",
"domain": "www.fool.com",
"snippet": "ASML’s impeccable fundamentals allow investors to rest easy amid AI stock volatility.",
"date": "8 hours ago",
"thumbnail": "https://g.foolcdn.com/image/?url=https%3A%2F%2Fcdn.content.foolcdn.com%2Fimages%2F1umn9qeh%2Fproduct..."
},
"..."
]
}