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.
Endpoint
Section titled “Endpoint” GET https://serp.shifter.io/v1?engine=google_maps_photos&api_key=YOUR_API_KEY
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | yes | Your SERP API key |
engine | string | yes | Must be google_maps_photos |
data_id | string | yes | Google Maps data ID for the place |
category_id | string | no | Filter photos by category ID |
hl | string | no | Interface language code |
next_page_token | string | no | Token from a previous response to fetch the next page |
Example request
Section titled “Example request”curl "https://serp.shifter.io/v1?engine=google_maps_photos&api_key=YOUR_API_KEY&data_id=0x4786c6ace45fe3bd:0x126d84580eedebe5"import requests
params = { "engine": "google_maps_photos", "api_key": "YOUR_API_KEY", "data_id": "0x4786c6ace45fe3bd:0x126d84580eedebe5",}r = requests.get("https://serp.shifter.io/v1", params=params)data = r.json()import fetch from 'node-fetch';
const url = 'https://serp.shifter.io/v1?' + new URLSearchParams({ engine: 'google_maps_photos', api_key: 'YOUR_API_KEY', data_id: '0x4786c6ace45fe3bd:0x126d84580eedebe5',});const data = await (await fetch(url)).json();Example response
Section titled “Example response”{ "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..." }}