callback_keystringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
callback_keystringrequeridoThe callback key to use for the rich header
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Brave Rich SearchEsta API Brave | $0.005 por llamada | JSON |
Brave | $0.01 por llamada | JSON |
Brave | $0.005 por llamada | JSON |
Brave | $0.005 por llamada | JSON |
Brave | $0.005 por llamada | JSON |
Brave | $0.005 por llamada | JSON |
Preguntas
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.
$0.005 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: callback_key (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
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.