Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Brave Rich Search

Dokumentacja API
https://api.sandbase.ai/v1/api/brave/web-rich

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

Cena
$0.005USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
The callback key to use for the rich header
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Brave$0.005 za wywołanieJSON
Brave$0.01 za wywołanieJSON
Brave$0.005 za wywołanieJSON
Brave$0.005 za wywołanieJSON
Brave$0.005 za wywołanieJSON
Brave$0.005 za wywołanieJSON

Pytania

FAQ

Jak używać API Brave Rich Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/brave/web-rich z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Brave Rich Search?

$0.005 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Brave Rich Search?

Wymagane: callback_key (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Brave Rich Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Brave lub klucza API?

Nie. Brave Rich Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Brave.