Google Play API
从 Google Play 商店检索结构化数据。设置 engine=google_play,并使用带有 product_id 的 type=product 来获取单个列表项,或使用带有 q 查询的 type=search 来搜索商店。
Endpoint
Section titled “Endpoint” GET https://serp.shifter.io/v1?engine=google_play&api_key=YOUR_API_KEY
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
api_key | string | 是 | 你的 SERP API 密钥 |
engine | string | 是 | 必须为 google_play |
type | string | 是 | search 或 product |
store | string | 是 | apps 或 books |
product_id | string | 视情况而定 | 当 type=product 时必填。Play 商店的包名或图书 ID |
q | string | 视情况而定 | 当 type=search 时必填。搜索查询词 |
hl | string | 否 | 界面语言代码 |
gl | string | 否 | 国家代码 |
curl "https://serp.shifter.io/v1?engine=google_play&api_key=YOUR_API_KEY&type=product&store=apps&product_id=com.kiloo.subwaysurf"import requests
params = { "engine": "google_play", "api_key": "YOUR_API_KEY", "type": "product", "store": "apps", "product_id": "com.kiloo.subwaysurf",}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_play', api_key: 'YOUR_API_KEY', type: 'product', store: 'apps', product_id: 'com.kiloo.subwaysurf',});const data = await (await fetch(url)).json();{ "search_parameters": { "engine": "google_play", "type": "product", "store": "apps", "product_id": "com.kiloo.subwaysurf" }, "product_info": { "title": "Subway Surfers", "developer": "SYBO Games", "rating": 4.5, "reviews": 41230000, "downloads": "1B+", "description": "DASH as fast as you can! ..." }, "media": { "icon": "https://play-lh.googleusercontent.com/..." }}