data_idstringwajib
Required Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
https://api.sandbase.ai/v1/api/google-maps/photo-metadataContributor, place, coordinates, type and date of one Google Maps photo by its data ID.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
latitude and longitude.user.user_id.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.
| Name | Type | Required | Description |
|---|---|---|---|
data_id | string | Yes | Required Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id. |
gl | string | No | Two-letter country code used to localize results. |
google_domain | string | No | Google domain used for the request. |
hl | string | No | Language code such as en, en-GB, or de. |
timeout | number | No | 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 cal |
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"
}
}
| Field | Meaning |
|---|---|
date | Date of the photo as a day-month-year string, for example 26-3-2026. |
location.name | Name of the place the photo is attached to. |
location.type | Category of the place, for example Bakery. |
location.latitude / location.longitude | Coordinates of the place as decimal degrees. |
user.name | Display name of the contributor who posted the photo. |
user.user_id | Numeric ID of the contributor on Google Maps. |
user.link | Link to the contributor's Google Maps profile. |
user.image | URL of the contributor's profile picture. |
data_id by following a photo_meta_link in a Google Maps place response, or copy the nested photo data_id.date value is not zero padded, so 26-3-2026 reads as day, month, year.hl, gl and google_domain to change the language and country used for the request.$0.00015 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/google-maps/photo-metadata" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hl": "en",
"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL",
"google_domain": "google.com"
}'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.
data_idstringwajibRequired Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
hlstringLanguage code such as en, en-GB, or de.
Default: "en"
glstringTwo-letter country code used to localize results.
google_domainstringGoogle domain used for the request.
Default: "google.com"
timeoutnumberOptional 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
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 |
|---|---|---|
Google Maps Photo MetadataAPI ini Google Maps | $0.00015 per panggilan | JSON |
Google Maps | $0.01 per panggilan | JSON |
Google Maps | $0.00015 per panggilan | JSON Asinkron |
Google Maps | $0.01 per panggilan | JSON |
Google Maps | $0.01 per panggilan | JSON |
Google Maps | $0.01 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/google-maps/photo-metadata 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.00015 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: data_id (string). Opsional: hl (string), gl (string), google_domain (string) dan timeout (number). 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. Google Maps Photo Metadata 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 Google Maps secara terpisah.