data_idstringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
data_idstringerforderlichRequired 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.
Standard: "en"
glstringTwo-letter country code used to localize results.
google_domainstringGoogle domain used for the request.
Standard: "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
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Google Maps Photo MetadataDiese API Google Maps | $0.00015 pro Aufruf | JSON |
Google Maps | $0.01 pro Aufruf | JSON |
Google Maps | $0.00015 pro Aufruf | Asynchrones JSON |
Google Maps | $0.01 pro Aufruf | JSON |
Google Maps | $0.01 pro Aufruf | JSON |
Google Maps | $0.01 pro Aufruf | JSON |
Anleitungen:Best Google Maps API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/google-maps/photo-metadata mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.00015 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: data_id (string). Optional: hl (string), gl (string), google_domain (string) und timeout (number). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Google Maps Photo Metadata läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Google Maps API beantragen.