idsarrayobrigatório
A list of unique identifiers for the location. The ids are valid only for 8 hours.
https://api.sandbase.ai/v1/api/brave/local-descriptionsPOI Descriptions from Brave. Returns the official Brave API response unchanged.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns a text description for each place ID you send. The input is a required ids array of location IDs, and each ID returns one description object.
curl -X POST "https://api.sandbase.ai/v1/api/brave/local-descriptions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids": ["loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA="]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | A list of unique identifiers for the location. The ids are valid only for 8 hours. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"results": [
{
"description": "**Storyville Coffee Pike Place** is a renowned specialty coffee roaster and café…",
"id": "loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA=",
"type": "local_description"
}
],
"type": "local_descriptions"
}
| Field | Meaning |
|---|---|
results | List of description objects. It holds one entry for each ID you sent. |
results[].id | The location ID this description belongs to. Use it to match each description to the ID in your request. |
results[].description | Text description of the place. It can contain Markdown, such as **bold** around the place name. |
results[].type | Type of the item. In this response it is local_description. |
type | Type of the whole response. In this response it is local_descriptions. |
loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA=.ids array to get several descriptions in one call.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/brave/local-descriptions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA="
]
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
idsarrayobrigatórioA list of unique identifiers for the location. The ids are valid only for 8 hours.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Brave POI DescriptionsEsta API Brave | $0.005 por chamada | JSON |
Brave | $0.01 por chamada | JSON |
Brave | $0.005 por chamada | JSON |
Brave | $0.005 por chamada | JSON |
Brave | $0.005 por chamada | JSON |
Brave | $0.005 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/brave/local-descriptions 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.
$0.005 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: ids (array). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Brave POI Descriptions 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.