idsarrayzorunlu
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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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="
]
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
idsarrayzorunluA list of unique identifiers for the location. The ids are valid only for 8 hours.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Brave POI DescriptionsBu API Brave | $0.005 çağrı başına | JSON |
Brave | $0.01 çağrı başına | JSON |
Brave | $0.005 çağrı başına | JSON |
Brave | $0.005 çağrı başına | JSON |
Brave | $0.005 çağrı başına | JSON |
Brave | $0.005 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/brave/local-descriptions adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.005, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: ids (array). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Brave POI Descriptions, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Brave API erişimi için ayrıca başvuru yapmanız gerekmez.