Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Google Maps Photo Metadata

เอกสาร API
https://api.sandbase.ai/v1/api/google-maps/photo-metadata

Contributor, place, coordinates, type and date of one Google Maps photo by its data ID.

ราคา
$0.00015USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 4 ไม่บังคับ

Playground

อินพุต
Required Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
Language code such as en, en-GB, or de.
Two-letter country code used to localize results.
Google domain used for the request.
Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
เอาต์พุตพร้อมใช้งาน

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

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

API README

Google Maps Photo Metadata API

This API returns metadata for one Google Maps photo: who posted it, which place it shows, the place coordinates, the place type and the date. It needs the photo data_id.

Use cases

  • Credit the contributor of a Google Maps photo by reading the name and profile link.
  • Check which place a photo belongs to before you show it in a listing.
  • Place a photo on a map using the returned latitude and longitude.
  • Group photos by contributor with user.user_id.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google-maps/photo-metadata" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
data_idstringYesRequired Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
glstringNoTwo-letter country code used to localize results.
google_domainstringNoGoogle domain used for the request.
hlstringNoLanguage code such as en, en-GB, or de.
timeoutnumberNoOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "date": "26-3-2026",
  "location": {
    "latitude": 40.72944593032069,
    "longitude": -73.98683525580137,
    "name": "La Cabra",
    "type": "Bakery"
  },
  "user": {
    "image": "https://lh3.googleusercontent.com/a-/ALV-UjVPLf0Gyu4SEyq8ENXI8cKfcPKUZzGV8mdrVW4…",
    "link": "https://maps.google.com/maps/contrib/114005753829907698777",
    "name": "Bryan Barber",
    "user_id": "114005753829907698777"
  }
}

Response fields

FieldMeaning
dateDate of the photo as a day-month-year string, for example 26-3-2026.
location.nameName of the place the photo is attached to.
location.typeCategory of the place, for example Bakery.
location.latitude / location.longitudeCoordinates of the place as decimal degrees.
user.nameDisplay name of the contributor who posted the photo.
user.user_idNumeric ID of the contributor on Google Maps.
user.linkLink to the contributor's Google Maps profile.
user.imageURL of the contributor's profile picture.

Notes

  • Get data_id by following a photo_meta_link in a Google Maps place response, or copy the nested photo data_id.
  • The date value is not zero padded, so 26-3-2026 reads as day, month, year.
  • Use hl, gl and google_domain to change the language and country used for the request.

Pricing

$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Google Maps$0.00015 ต่อการเรียกJSON
Google Maps$0.01 ต่อการเรียกJSON
Google Maps$0.00015 ต่อการเรียกAsync JSON
Google Maps$0.01 ต่อการเรียกJSON
Google Maps$0.01 ต่อการเรียกJSON
Google Maps$0.01 ต่อการเรียกJSON

คู่มือ:Best Google Maps API in 2026: Pricing Compared

คำถาม

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

ฉันจะใช้ Google Maps Photo Metadata API ได้อย่างไร?

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

Google Maps Photo Metadata API ราคาเท่าไร?

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

Google Maps Photo Metadata API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: data_id (string). ตัวเลือก: hl (string), gl (string), google_domain (string) และ timeout (number). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Google Maps Photo Metadata API ส่งคืนอะไร?

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

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

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