Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Google Maps Photo Metadata

API-Dokumentation
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.

Preis
$0.00015USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 4 optional

Playground

Eingabe
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
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Google Maps$0.00015 pro AufrufJSON
Google Maps$0.01 pro AufrufJSON
Google Maps$0.00015 pro AufrufAsynchrones JSON
Google Maps$0.01 pro AufrufJSON
Google Maps$0.01 pro AufrufJSON
Google Maps$0.01 pro AufrufJSON

Anleitungen:Best Google Maps API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Google Maps Photo Metadata API?

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.

Was kostet die Google Maps Photo Metadata API?

$0.00015 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Google Maps Photo Metadata API?

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.

Was gibt die Google Maps Photo Metadata API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Google Maps-Entwicklerkonto oder einen API-Schlüssel?

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.