Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Brave Rich Search

APIドキュメント
https://api.sandbase.ai/v1/api/brave/web-rich

Rich Search from Brave. Returns the official Brave API response unchanged.

料金
$0.005USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
The callback key to use for the rich header
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Brave Rich Search API

Returns the rich result data for a Brave web search. You pass a callback_key and get back a type and a results list.

Use cases

  • Fetch the rich result block (such as weather or other enhanced answers) that Brave flags in a web search response.
  • Complete a two-step search flow by resolving the rich header from a web search into its full data.
  • Check whether a given search produced any rich data by testing if results is empty.

Request

curl -X POST "https://api.sandbase.ai/v1/api/brave/web-rich" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"callback_key": "9a186935547145e29271648369eeec01"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
callback_keystringYesThe callback key to use for the rich header

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "results": [],
  "type": "rich"
}

Response fields

FieldMeaning
typeResponse type. The value is rich for this API.
resultsList of rich result items for the callback key. It is an empty list when Brave has no rich data for the key.

Notes

Pricing

$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Brave$0.005 / 回JSON
Brave$0.01 / 回JSON
Brave$0.005 / 回JSON
Brave$0.005 / 回JSON
Brave$0.005 / 回JSON
Brave$0.005 / 回JSON

質問

FAQ

Brave Rich Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/brave/web-rich に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Brave Rich Search API の料金はいくらですか?

1回あたり $0.005、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Brave Rich Search API はどのパラメータを受け付けますか?

必須: callback_key (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Brave Rich Search API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Brave の開発者アカウントまたは API key は必要ですか?

いいえ。Brave Rich Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Brave の API アクセスを別途申請する必要はありません。