Skip to content
登录 注册

Google 产品 API

使用已知的产品 ID 从 Google Shopping 产品页面检索产品详情。设置 engine=google_product 并传入 product_id,然后可选择启用 offersspecsreviews 标志以扩展响应内容。

GET https://serp.shifter.io/v1?engine=google_product&api_key=YOUR_API_KEY
ParameterTypeRequiredDescription
api_keystringyes您的 SERP API 密钥
enginestringyes必须为 google_product
product_idstringyesGoogle 产品 ID
devicestringnodesktopmobiletablet
google_domainstringno要使用的 Google 域名
locationstringno地理定位位置名称
uulestringnoGoogle 编码的位置字符串
hlstringno界面语言代码
glstringno国家代码
startintno用于分页的结果偏移量
offersintno设置为 1true 以获取报价
specsintno设置为 1true 以获取产品规格
reviewsintno设置为 1true 以获取产品评论
filterstringno筛选报价。取值:freeship:1ucond:1scoring:pscoring:tpscoring:cpdscoring:mrd
Terminal window
curl "https://serp.shifter.io/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155"
{
"search_parameters": {
"engine": "google_product",
"product_id": "11607214845071611155"
},
"product_results": {
"title": "Sony WH-1000XM5 Wireless Noise Cancelling Headphones",
"prices": ["$349.00 - $399.99"],
"rating": 4.7,
"reviews": 2341,
"extensions": ["Wireless", "Noise Cancelling"],
"description": "Industry leading noise cancellation...",
"media": [ { "type": "image", "link": "https://..." } ]
},
"sellers_results": {
"online_sellers": [
{ "name": "Best Buy", "total_price": "$349.00" }
]
}
}