Search the web with Brave
bravesearch.web.searchSearch Brave's independent web index for ranked pages and rich results.
- Price
- $0.005/callAt list price
- Success rate
- 73.7%Last 30 days · 2,407 calls
- Latency p50
- 555 msp95 772 ms
- Last verified
- Oct 30, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/bravesearch.web.search?q=Python+programming+language&count=1Beta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
Results are in web.results; the web object may be absent on a no-match query. Other rich blocks remain in the raw response.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
q | string | Required | Python programming language | |
count | integer | Optional | 1 | |
country | string | Optional | ||
freshness | string | Optional | pd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD | |
safesearch | string | Optional | ||
spellcheck | boolean | Optional | ||
search_lang | string | Optional | ||
- Query parameters
qstringRequiredExample:
Python programming languagecountintegerOptionalExample:
1countrystringOptionalfreshnessstringOptionalpd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD
safesearchstringOptionalspellcheckbooleanOptionalsearch_langstringOptional
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?q=Python+programming+language&count=1' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/bravesearch.web.search?q=Python+programming+language&count=1",
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?q=Python+programming+language&count=1", {
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.