Skip to content
登录 注册

Google

所有 Google 引擎共用同一个端点,更改 engine 参数即可切换返回的内容。

https://serp.shifter.io/v1?engine=<engine>&api_key=YOUR_API_KEY&q=<query>
engine返回内容关键参数
google自然搜索结果、广告、摘要、PAA、知识图谱q、location、gl、hl、device
google_autocomplete部分查询的建议词q
google_images图片搜索结果q、location
google_maps地图商家、评价、照片q、type=search|place|review、ll
google_maps_reviews某地点的所有评价data_id
google_maps_photos某地点的所有照片data_id
google_news带日期和来源的新闻搜索结果q、gl、hl
google_shopping带价格的商品列表q、location
google_product单个商品详情页product_id
google_jobs职位列表q、location
google_jobs_listing单个职位的完整详情q(base64 编码的职位 id)
google_trends时间趋势数据q、geo、date
google_scholar学术论文结果q
google_scholar_author作者简介和论文author_id
google_scholar_cite单篇论文的格式化引用q(引用 id)
google_scholar_profiles按姓名查找作者mauthors
google_events本地活动q、location
google_playPlay 商店应用、图书、电影type、store、product_id
google_finance股票和市场数据q
google_reverse_image托管某图片的页面image_url
google_local_services本地服务列表q、location
参数用途
q搜索查询词
location自由格式的位置字符串(例如 "New York, NY")
gl国家代码(例如 us、de)
hl界面语言(例如 en、es)
devicedesktop 或 mobile
start用于分页的结果偏移量
num每页结果数

每个引擎的完整参数参考位于 REST API → Google SERP 部分。

Terminal window
curl "https://serp.shifter.io/v1?engine=google&api_key=YOUR_API_KEY&q=best+pizza&location=Chicago%2C+Illinois&device=mobile"
Terminal window
curl "https://serp.shifter.io/v1?engine=google_maps&api_key=YOUR_API_KEY&q=pizza&type=search&ll=@41.8781,-87.6298,14z"
Terminal window
curl "https://serp.shifter.io/v1?engine=google_jobs&api_key=YOUR_API_KEY&q=software+engineer&location=Austin%2C+Texas"