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.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

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

Brave POI Descriptions API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/brave/local-descriptions に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Brave POI Descriptions API の料金はいくらですか?

1回あたり $0.005、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Brave POI Descriptions API はどのパラメータを受け付けますか?

必須: ids (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Brave POI Descriptions API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Brave の開発者アカウントまたは API key は必要ですか?

いいえ。Brave POI Descriptions は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Brave の API アクセスを別途申請する必要はありません。