Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Google Maps Photo Metadata

Документация 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.

Цена
$0.00015USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 4 необязательных

Песочница

Ввод
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
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по 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.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Google Maps$0.00015 за запросJSON
Google Maps$0.01 за запросJSON
Google Maps$0.00015 за запросАсинхронный JSON
Google Maps$0.01 за запросJSON
Google Maps$0.01 за запросJSON
Google Maps$0.01 за запросJSON

Руководства:Best Google Maps API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API Google Maps Photo Metadata?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/google-maps/photo-metadata, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Google Maps Photo Metadata?

$0.00015 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Google Maps Photo Metadata?

Обязательные: data_id (string). Необязательные: hl (string), gl (string), google_domain (string) и timeout (number). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Google Maps Photo Metadata?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Google Maps или API key?

Нет. Google Maps Photo Metadata работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Google Maps.