Skip to content
Login Sign up

Google Maps Photos API

Retrieve the photos attached to a Google Maps place. Set engine=google_maps_photos and pass the data_id you got from the Google Maps API to receive a structured list of images.

GET https://serp.shifter.io/v1?engine=google_maps_photos&api_key=YOUR_API_KEY
ParameterTypeRequiredDescription
api_keystringyesYour SERP API key
enginestringyesMust be google_maps_photos
data_idstringyesGoogle Maps data ID for the place
category_idstringnoFilter photos by category ID
hlstringnoInterface language code
next_page_tokenstringnoToken from a previous response to fetch the next page
Terminal window
curl "https://serp.shifter.io/v1?engine=google_maps_photos&api_key=YOUR_API_KEY&data_id=0x4786c6ace45fe3bd:0x126d84580eedebe5"
{
"search_parameters": {
"engine": "google_maps_photos",
"data_id": "0x4786c6ace45fe3bd:0x126d84580eedebe5"
},
"photos": [
{
"image": "https://lh5.googleusercontent.com/p/AF1QipN...",
"thumbnail": "https://lh5.googleusercontent.com/p/AF1QipN...=w203-h114-k-no",
"date": "2 months ago"
}
],
"serpapi_pagination": {
"next_page_token": "CAESBkNnQUlBUQ..."
}
}