Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Brave POI Descriptions

Документация API
https://api.sandbase.ai/v1/api/brave/local-descriptions

POI Descriptions from Brave. Returns the official Brave API response unchanged.

Цена
$0.005USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных

Песочница

Ввод
A list of unique identifiers for the location. The ids are valid only for 8 hours.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Brave POI Descriptions API

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.

Use cases

  • Add a short written summary to a map listing or place card for a cafe, shop or landmark.
  • Fill a travel or local guide with place descriptions after a place search.
  • Give an LLM background text about a business before it answers a question about that place.
  • Show a description next to POI details such as address or opening hours.

Request

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.

Parameters

NameTypeRequiredDescription
idsarrayYesA list of unique identifiers for the location. The ids are valid only for 8 hours.

Example response

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"
}

Response fields

FieldMeaning
resultsList of description objects. It holds one entry for each ID you sent.
results[].idThe location ID this description belongs to. Use it to match each description to the ID in your request.
results[].descriptionText description of the place. It can contain Markdown, such as **bold** around the place name.
results[].typeType of the item. In this response it is local_description.
typeType of the whole response. In this response it is local_descriptions.

Notes

  • Get the location IDs from Brave Place Search or Brave Local POIs.
  • The IDs are valid for only 8 hours, so request fresh IDs if a call fails with an old one.
  • Location IDs look like loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA=.
  • Send several IDs in one ids array to get several descriptions in one call.

Pricing

$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Brave$0.005 за запросJSON
Brave$0.01 за запросJSON
Brave$0.005 за запросJSON
Brave$0.005 за запросJSON
Brave$0.005 за запросJSON
Brave$0.005 за запросJSON

Вопросы

FAQ

Как использовать API Brave POI Descriptions?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/brave/local-descriptions, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Brave POI Descriptions?

$0.005 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Brave POI Descriptions?

Обязательные: ids (array). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Brave POI Descriptions?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Brave или API key?

Нет. Brave POI Descriptions работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Brave.