Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Brave Rich Search

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

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

Preço
$0.005USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
The callback key to use for the rich header
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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 mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Brave$0.005 por chamadaJSON
Brave$0.01 por chamadaJSON
Brave$0.005 por chamadaJSON
Brave$0.005 por chamadaJSON
Brave$0.005 por chamadaJSON
Brave$0.005 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Brave Rich Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/brave/web-rich com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Brave Rich Search?

$0.005 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Brave Rich Search aceita?

Obrigatórios: callback_key (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Brave Rich Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Brave ou de uma chave de API?

Não. Brave Rich Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Brave separadamente.