Search the web with Brave
bravesearch.web.searchSearch Brave's independent web index for ranked pages and rich results.
- Prix
- $0.005/callAu prix catalogue
- Taux de réussite
- 73,7 %30 derniers jours · 2 407 appels
- Latence p50
- 555 msp95 772 ms
- Dernière vérification
- 30 oct. 2026Vérifié et opérationnel
GEThttps://toolswitch.dev/v1/tools/bravesearch.web.search?q=Python+programming+language&count=1Beta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
Results are in web.results; the web object may be absent on a no-match query. Other rich blocks remain in the raw response.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
q | chaîne | Obligatoire | Python programming language | |
count | entier | Facultatif | 1 | |
country | chaîne | Facultatif | ||
freshness | chaîne | Facultatif | pd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD | |
safesearch | chaîne | Facultatif | ||
spellcheck | booléen | Facultatif | ||
search_lang | chaîne | Facultatif | ||
- Paramètres de requête
qchaîneObligatoireExemple :
Python programming languagecountentierFacultatifExemple :
1countrychaîneFacultatiffreshnesschaîneFacultatifpd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD
safesearchchaîneFacultatifspellcheckbooléenFacultatifsearch_langchaîneFacultatif
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.005/call, frais de service inclus.