Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Brave Rich Search

Documentación de la API
https://api.sandbase.ai/v1/api/brave/web-rich

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

Precio
$0.005USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
The callback key to use for the rich header
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Brave$0.005 por llamadaJSON
Brave$0.01 por llamadaJSON
Brave$0.005 por llamadaJSON
Brave$0.005 por llamadaJSON
Brave$0.005 por llamadaJSON
Brave$0.005 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Brave Rich Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/brave/web-rich con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Brave Rich Search?

$0.005 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Brave Rich Search?

Requeridos: callback_key (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Brave Rich Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Brave?

No. Brave Rich Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Brave por separado.