Get Brave LLM context
bravesearch.web.search.contextFind extracted passages with source URLs for grounding an answer.
- Price
- $0.005/callAt list price
- Success rate
- 100%Last 30 days · 183 calls
- Latency p50
- 1.2 sp95 1.6 s
- Last verified
- Oct 30, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/bravesearch.web.search.context?q=What+is+Olympus+Mons%3F&count=1&maximum_number_of_tokens=1024Beta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
Extracted passages are in grounding.generic, not ordinary search result snippets. A no-match query returned an empty grounding list.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
q | string | Required | What is Olympus Mons? | |
count | integer | Optional | 1 | |
country | string | Optional | ||
search_lang | string | Optional | ||
maximum_number_of_tokens | integer | Optional | 1024 | |
- Query parameters
qstringRequiredExample:
What is Olympus Mons?countintegerOptionalExample:
1countrystringOptionalsearch_langstringOptionalmaximum_number_of_tokensintegerOptionalExample:
1024
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/bravesearch.web.search.context?q=What+is+Olympus+Mons%3F&count=1&maximum_number_of_tokens=1024' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/bravesearch.web.search.context?q=What+is+Olympus+Mons%3F&count=1&maximum_number_of_tokens=1024",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/bravesearch.web.search.context?q=What+is+Olympus+Mons%3F&count=1&maximum_number_of_tokens=1024", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.005/call, including the service fee.