Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Google Maps Photo Metadata

Docs 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.

Prix
$0.00015USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 4 facultatifs

Bac à sable

Entrée
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
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Google Maps$0.00015 par appelJSON
Google Maps$0.01 par appelJSON
Google Maps$0.00015 par appelJSON asynchrone
Google Maps$0.01 par appelJSON
Google Maps$0.01 par appelJSON
Google Maps$0.01 par appelJSON

Guides :Best Google Maps API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Google Maps Photo Metadata ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/google-maps/photo-metadata avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Google Maps Photo Metadata ?

$0.00015 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Google Maps Photo Metadata accepte-t-elle ?

Obligatoire : data_id (string). Facultatif : hl (string), gl (string), google_domain (string) et timeout (number). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Google Maps Photo Metadata ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Google Maps ?

Non. Google Maps Photo Metadata fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Google Maps séparément.