data_idstringจำเป็น
Parameter defines the Google Maps data ID. Find the data ID of a place using our Google Maps API.
https://api.sandbase.ai/v1/api/google-maps/postsGet the owner posts and updates published on a Google Maps place by data ID, with text, images, date and links.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Get the owner posts and updates published on a Google Maps place by data ID, with text, images, date and links.
curl -X POST "https://api.sandbase.ai/v1/api/google-maps/posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"data_id": "0x89c259a61c75684f:0x79d31adb123348d2"}'
The result is returned in outputs[0].data as structured JSON.
| Name | Type | Required | Description |
|---|---|---|---|
data_id | string | Yes | Parameter defines the Google Maps data ID. Find the data ID of a place using our Google Maps API. |
next_page_token | string | No | Parameter defines the next page token. It is used for retrieving the next page results. 10 results are returned per page. |
json_restrictor | string | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
$0.010 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/google-maps/posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_id": "0x89c259a61c75684f:0x79d31adb123348d2"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
data_idstringจำเป็นParameter defines the Google Maps data ID. Find the data ID of a place using our Google Maps API.
next_page_tokenstringParameter defines the next page token. It is used for retrieving the next page results. `10` results are returned per page.
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Google Maps PostsAPI นี้ Google Maps | $0.01 ต่อการเรียก | JSON |
Google Maps | $0.01 ต่อการเรียก | JSON |
Google Maps | $0.00015 ต่อการเรียก | Async JSON |
Google Maps | $0.01 ต่อการเรียก | JSON |
Google Maps | $0.00015 ต่อการเรียก | JSON |
Google Maps | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/google-maps/posts โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: data_id (string). ตัวเลือก: next_page_token (string) และ json_restrictor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)
ไม่จำเป็น Google Maps Posts ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Google Maps API แยกต่างหาก