Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Brave Rich Search

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

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

Prezzo
$0.005USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali

Playground

Input
The callback key to use for the rich header
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Brave$0.005 per chiamataJSON
Brave$0.01 per chiamataJSON
Brave$0.005 per chiamataJSON
Brave$0.005 per chiamataJSON
Brave$0.005 per chiamataJSON
Brave$0.005 per chiamataJSON

Domande

FAQ

Come uso l'API Brave Rich Search?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/brave/web-rich con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Brave Rich Search?

$0.005 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Brave Rich Search?

Richiesti: callback_key (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Brave Rich Search?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Brave?

No. Brave Rich Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Brave.