data_idstringwymagane
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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
data_idstringwymaganeRequired 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.
Domyślnie: "en"
glstringTwo-letter country code used to localize results.
google_domainstringGoogle domain used for the request.
Domyślnie: "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
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Google Maps | $0.00015 za wywołanie | JSON |
Google Maps | $0.01 za wywołanie | JSON |
Google Maps | $0.00015 za wywołanie | Asynchroniczny JSON |
Google Maps | $0.01 za wywołanie | JSON |
Google Maps | $0.01 za wywołanie | JSON |
Google Maps | $0.01 za wywołanie | JSON |
Przewodniki:Best Google Maps API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/google-maps/photo-metadata z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.00015 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: data_id (string). Opcjonalne: hl (string), gl (string), google_domain (string) i timeout (number). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Google Maps Photo Metadata działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Google Maps.