Search the web with Brave
bravesearch.web.searchSearch Brave's independent web index for ranked pages and rich results.
- 価格
- $0.005/callカタログ価格で提供
- 成功率
- 73.7%直近 30 日 · 2,407 回
- レイテンシ p50
- 555 msp95 772 ms
- 最終確認
- 2026/10/30動作確認済み
GEThttps://toolswitch.dev/v1/tools/bravesearch.web.search?q=Python+programming+language&count=1Beta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
Results are in web.results; the web object may be absent on a no-match query. Other rich blocks remain in the raw response.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 必須 | Python programming language | |
count | 整数 | 任意 | 1 | |
country | 文字列 | 任意 | ||
freshness | 文字列 | 任意 | pd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD | |
safesearch | 文字列 | 任意 | ||
spellcheck | 真偽値 | 任意 | ||
search_lang | 文字列 | 任意 | ||
- クエリパラメータ
q文字列必須例:
Python programming languagecount整数任意例:
1country文字列任意freshness文字列任意pd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD
safesearch文字列任意spellcheck真偽値任意search_lang文字列任意
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.005/call です。サービス料を含みます。