接口参考 · 通用搜索
Google Play Search
按关键词搜索 Google Play 应用,返回应用名称、包名、图标和商店链接;不下载应用。
示例
BASH
curl -X POST 'https://api.serpbase.dev/google/play/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"q":"coffee"}'返回 · 真实返回,已缩短
{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "google_play_search",
"query": "coffee",
"action": "play.search",
"products": [
{
"app": {
"bundle_id": "com.tapblaze.coffeebusiness",
"downloads_display": "10,000,000+"
},
"categories": [
{
"name": "Simulation"
}
],
"id": "com.tapblaze.coffeebusiness",
"link": "https://play.google.com/store/apps/details?id=com.tapblaze.coffeebusiness",
"media": [
{
"type": "icon",
"url": "https://i.ytimg.com/vi/RFUNyVrGCzE/hqdefault.jpg"
}
],
"position": 1,
"rating": 4.5,
"title": "Good Coffee, Great Coffee",
"url": "https://play.google.com/store/apps/details?id=com.tapblaze.coffeebusiness"
},
{
"app": {
"bundle_id": "coffee.ibrew.ibrewcoffee",
"downloads_display": "50,000+"
},
"categories": [
{
"name": "Food & Drink"
}
],
"id": "coffee.ibrew.ibrewcoffee",
"link": "https://play.google.com/store/apps/details?id=coffee.ibrew.ibrewcoffee",
"media": [
{
"type": "icon",
"url": "https://play-lh.googleusercontent.com/9Mdr7tP1igRhH9UZ62GJ7zkexX2lQ7Z7WYvpiIIqSyS24eYlWS9B_akMxfrkWg…"
}
],
"position": 2,
"rating": 4.7,
"title": "iBrewCoffee - Coffee Journal",
"url": "https://play.google.com/store/apps/details?id=coffee.ibrew.ibrewcoffee"
}
],
"source": "google",
"url": "https://play.google.com/store/search?c=apps&hl=en&q=coffee"
}参数
名称作用
format"json" | "markdown"
json(默认)返回解析后的结果。
更多
markdown 以 Markdown 文本(text/markdown)返回同样的结果,便于大模型直接读取:不含外层信封、重复的别名字段和内嵌图片。扣费相同;失败时仍返回 JSON 错误信封。
qstring
示例值: "coffee"
agestring
attributes.age 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
countrystring
locale.country 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
cursorstring
pagination.cursor 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
devicestring
options.device 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
glstring
locale.country 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
google_domainstring
locale.engine_domain 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
gooogle_domainstring
locale.engine_domain 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
hlstring
locale.language 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
htmlboolean
include_html 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
languagestring
locale.language 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
limitinteger
pagination.limit 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
markdownboolean
include_markdown 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
mobileboolean
options.device 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
numinteger
pagination.limit 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
pageinteger
pagination.page 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
resultsinteger
pagination.limit 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
store_devicestring
attributes.store_device 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
示例展示请求参数用法,不代表完整契约。接口会校验已知字段,并允许额外参数。
返回字段
字段见上面的返回示例;每个接口都包含 status、credits_charged 和 request_id。
失败时
失败的请求 status 不为 0 并带有 error,不扣费。这个接口常见的有:
1000参数缺失或有误修改请求1020积分不足充值1029超过每秒请求数等待 Retry-After 秒1502 · 1504这次没能读取到目标网站重试