Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
A list of unique identifiers for the location. The ids are valid only for 8 hours.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Brave POI Descriptions API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/brave/local-descriptions โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Brave POI Descriptions API ราคาเท่าไร?

$0.005 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Brave POI Descriptions API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: ids (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Brave POI Descriptions API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Brave ไหม?

ไม่จำเป็น Brave POI Descriptions ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Brave API แยกต่างหาก