Skip to content
登录 注册

Google 地图照片 API

获取某个 Google Maps 地点附带的照片。设置 engine=google_maps_photos,并传入从 Google Maps API 获取的 data_id,即可获得结构化的图片列表。

GET https://serp.shifter.io/v1?engine=google_maps_photos&api_key=YOUR_API_KEY
ParameterTypeRequiredDescription
api_keystringyes您的 SERP API 密钥
enginestringyes必须为 google_maps_photos
data_idstringyes该地点的 Google Maps 数据 ID
category_idstringno按类别 ID 筛选照片
hlstringno界面语言代码
next_page_tokenstringno来自上一次响应的令牌,用于获取下一页
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..."
}
}