Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Brave Rich Search

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

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

Prix
$0.005USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 0 facultatifs

Bac à sable

Entrée
The callback key to use for the rich header
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Brave$0.005 par appelJSON
Brave$0.01 par appelJSON
Brave$0.005 par appelJSON
Brave$0.005 par appelJSON
Brave$0.005 par appelJSON
Brave$0.005 par appelJSON

Questions

FAQ

Comment utiliser l’API Brave Rich Search ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/brave/web-rich avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Brave Rich Search ?

$0.005 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Brave Rich Search accepte-t-elle ?

Obligatoire : callback_key (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Brave Rich Search ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Brave ?

Non. Brave Rich Search fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Brave séparément.