idsarraywajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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="
]
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
idsarraywajibA list of unique identifiers for the location. The ids are valid only for 8 hours.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Brave POI DescriptionsAPI ini Brave | $0.005 per panggilan | JSON |
Brave | $0.01 per panggilan | JSON |
Brave | $0.005 per panggilan | JSON |
Brave | $0.005 per panggilan | JSON |
Brave | $0.005 per panggilan | JSON |
Brave | $0.005 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/brave/local-descriptions dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.005 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: ids (array). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Brave POI Descriptions berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Brave secara terpisah.