callback_keystringobbligatorio
The callback key to use for the rich header
https://api.sandbase.ai/v1/api/brave/web-richRich Search from Brave. Returns the official Brave API response unchanged.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns the rich result data for a Brave web search. You pass a callback_key and get back a type and a results list.
results is empty.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.
| Name | Type | Required | Description |
|---|---|---|---|
callback_key | string | Yes | The callback key to use for the rich header |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"results": [],
"type": "rich"
}
| Field | Meaning |
|---|---|
type | Response type. The value is rich for this API. |
results | List of rich result items for the callback key. It is an empty list when Brave has no rich data for the key. |
callback_key from the rich header in the response of Brave Web Search. Send that value unchanged.results list, so a key can return no rich data.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
callback_keystringobbligatorioThe callback key to use for the rich header
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Brave Rich SearchQuesta API Brave | $0.005 per chiamata | JSON |
Brave | $0.01 per chiamata | JSON |
Brave | $0.005 per chiamata | JSON |
Brave | $0.005 per chiamata | JSON |
Brave | $0.005 per chiamata | JSON |
Brave | $0.005 per chiamata | JSON |
Domande
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.
$0.005 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: callback_key (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
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.