Google Play关键词搜索 API
POST
接口健康状态
- 24h 健康值
- 正常
- 24h 平均耗时
- —
- 健康 / 正常
- 可用
- 少量可用
- 基本不可用
正常
24 小时趋势
30 天趋势
关键词搜索:返回列表,默认 20 条、单次最多 100 条;主要字段 app_id、url、name、summary、description、developer。支持翻页:把响应里的 next_page_token 作为 page_token 传回拿下一页,其他参数不变,每页算一次调用;最深 100 条。
单价 $1.39 / 千次(每次 $0.001389),失败与空结果不扣费。 同步返回;慢任务可在请求体加 "mode": "async",先拿 job_id 再轮询。
AI 提示词
复制下面这段给你常用的 AI 助手:里面写好了这个接口的参数、返回字段和示例请求,它会先问清你的需求,再帮你写采集脚本。
请帮我用 EveryInfra 的「Google Play 关键词搜索」接口(google_play/search)写一个数据采集脚本。
接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/social,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 platform 填 google_play,action 填 search,参数放在 params 里。
- 必填参数:
- keyword:Google Play 应用名称或用途搜索词,例如 note taking;不是应用包名精确定位。详情与评论使用 app_id。
- 可选参数:
- country:Google Play 店面国家/地区,建议小写代码,默认 us;它决定应用查询的店面,不是用户手机地区或应用开发者国籍。
- language:Play 商店内容/评论查询语言,默认 en;例如 en 或 zh。它不自动更换 country,也不保证所有返回评论都是该语言的原文。
- page_token:翻页令牌:把上一页响应里的 next_page_token 原样传回拿下一页;不传从第一页开始。其他参数须与上一页一致,令牌 24 小时有效,每页算一次调用。
- limit:这次调用最多返回的条数,整数,1–100;不传按默认值,实际返回可能少于这个数。超过上限会在扣费前返回 422。(默认 20)
- 返回一组记录,每条记录的主要字段:app_id(应用包名(如 com.exampl…)、url、name、summary(应用一句话简介)、description、developer(开发者名称)、developer_email(开发者联系邮箱(商店页公开信息))、developer_website(开发者网站)、score(应用评分)、rating_count、review_count、installs(安装量展示值(如 1,000,00…);一共 29 个字段,完整列表见 https://api.everyinfra.com/api/v1/social/catalog?platform=google_play。
- 示例请求体:
{
"platform": "google_play",
"action": "search",
"params": {
"keyword": "habit tracker"
}
}
- 计费:$1.39 / 千次;失败和空结果不扣费。
- 一次要采几十上百个时,在请求体加 "mode": "async":先拿到 job_id,再轮询 GET https://api.everyinfra.com/api/v1/jobs/{job_id} 取结果。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。
写代码前,先问清楚我要采哪些对象、一共多少个、需要哪些字段、结果存成什么格式,再把方案和大概花费讲给我确认。请求参数
| 参数名 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
Authorization | header | string | 是 | - | Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。 |
platform | body | string | 是 | google_play | 平台标识,固定值。 |
action | body | string | 是 | search | 能力标识,固定值。 |
keyword | body.params | 未声明 | 是 | - | Google Play 应用名称或用途搜索词,例如 note taking;不是应用包名精确定位。详情与评论使用 app_id。 |
country | body.params | 未声明 | 否 | - | Google Play 店面国家/地区,建议小写代码,默认 us;它决定应用查询的店面,不是用户手机地区或应用开发者国籍。 |
language | body.params | 未声明 | 否 | - | Play 商店内容/评论查询语言,默认 en;例如 en 或 zh。它不自动更换 country,也不保证所有返回评论都是该语言的原文。 |
page_token | body.params | 未声明 | 否 | - | 翻页令牌:把上一页响应里的 next_page_token 原样传回拿下一页;不传从第一页开始。其他参数须与上一页一致,令牌 24 小时有效,每页算一次调用;最深能翻多少条、多深要改用 mode=async,见目录里的 pagination。 |
limit | body.params | integer (1–100) | 否 | 20 | 这次调用最多返回的条数,整数,1–100;不传按默认值,实际返回可能少于这个数。超过上限会在扣费前返回 422。 |
代码示例
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "google_play",
"action": "search",
"params": {
"keyword": "habit tracker"
}
}'[OpenAPI 定义 (JSON)]示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。
按 Android 应用名或用途搜索;详情使用包名,不是 App Store 数字 ID。
响应示例
真实返回样例
2026年9月26日 16:56(北京时间)用上方代码示例的参数真实调用所得。results 与 count 是那次的真实返回,已隐去名字、账号、头像、主页链接、联系方式等个人信息,列表只保留前 2 条;id、billing、quota 每次调用都不同,只给结构。
json
{
"id": "req_…",
"platform": "google_play",
"action": "search",
"results": [
{
"app_id": "org.isoron.uhabits",
"url": "https://play.google.com/store/apps/details?id=org.isoron.uhabits",
"name": "Loop Habit Tracker",
"summary": "Create good habits and track their progress over time",
"description": "Loop helps you create and maintain good habits, allowing you to achieve your long-term goals. Detailed charts and statistics show you how your habits improved over time. The app is completely ad-free, open source and it respects your privacy.\n\n\nSimple, beautiful and modern interf…",
"developer": "Álinson S Xavier",
"developer_email": "(已隐去)",
"score": 4.7175927,
"rating_count": 63336,
"review_count": 3419,
"installs": "5,000,000+",
"min_installs": 5000000,
"price": 0,
"is_free": true,
"currency": "USD",
"category": "Productivity",
"content_rating": "Everyone",
"contains_ads": false,
"offers_iap": false,
"version": "2.3.1",
"released": "Feb 22, 2016",
"updated_at": "2025-09-14T22:56:06.000Z",
"android_version": "9",
"icon_url": "https://play-lh.googleusercontent.com/p0AgkzxC9Vus-E82psxrb7p8VtrVJMfXKcU9hNTW8tTG7G3yAGBqxCIyUmwibUyT1Mx7DAzkrJnPLo4VEYDwlbI",
"header_image_url": "https://play-lh.googleusercontent.com/saJuIprQv_9zeut6372XuLUEWSSB9iAJIwFc2oASfly5r3AQaNZiVWQ9_Rc1fLe2Y4bNF6fljlze-I7yorTP",
"privacy_policy": "http://loophabits.org/privacy",
"platform": "google_play",
"screenshots": [
"https://play-lh.googleusercontent.com/KrxN9bOtspk63xhtNJx2uyaHZ3GOYK_IJ-VRIhMlh2ChFCQuBxXLWoRJd48uFRU_Rk97Nz3gHiI0eteLn2KDFQ",
"https://play-lh.googleusercontent.com/2nZZDFddPS4-wHVgPvAfeYik3vMTsrV-Mgys3g1A6s-KLCcUWsf1PlYLJfKXGyxUnUHkSKX8sESQkrEx6mQN",
"https://play-lh.googleusercontent.com/8BBDln1lKgX6ErWkH-_tKlfoD2TEfpcVzrgFlzJO91wK0HiYac_W0wJV7hHhGi8aeqk-8xRI051bK6mlsOLiZw"
],
"rating_histogram": {
"1": 1850,
"2": 871,
"3": 1850,
"4": 4096,
"5": 54630
}
},
{
"app_id": "com.habitnow",
"url": "https://play.google.com/store/apps/details?id=com.habitnow",
"name": "HabitNow Daily Routine Planner",
"summary": "To-do list, Habit Tracker, Routine Planner and Reminders. All in just one app!",
"description": "Maximize Your Productivity with HabitNow: Your Ultimate Todo List and Habit Tracker! 🚀\nKeeping your life organized has never been easier! With HabitNow, efficiently manage your school schedule, house chores, work, and more, all while building strong habits. Enter your routine, re…",
"developer": "HabitNow Apps",
"developer_email": "(已隐去)",
"score": 4.7406015,
"rating_count": 92815,
"review_count": 2861,
"installs": "5,000,000+",
"min_installs": 5000000,
"price": 0,
"is_free": true,
"currency": "USD",
"category": "Productivity",
"content_rating": "Everyone",
"contains_ads": false,
"offers_iap": true,
"version": "2.5.4a",
"released": "May 17, 2019",
"updated_at": "2026-07-26T22:27:33.000Z",
"android_version": "6.0",
"icon_url": "https://play-lh.googleusercontent.com/HsjWZ5h3QDDNPL-0xKP9j4CXG6dxaojS2PtyuRnylitzLm5huDOCMkwc8gYF1glrr1laiRNospq5uNB0HUIo",
"header_image_url": "https://play-lh.googleusercontent.com/rFBjMvOr9AMlbcXyoEcCmd68k7yOPeEwbfmaZar1Anz5nfZZxQvEoWOTj914GRyunw4rCEHtbbt_mtMUivcncQ",
"privacy_policy": "https://www.habitnow.app/privacy-policy",
"platform": "google_play",
"screenshots": [
"https://play-lh.googleusercontent.com/4_x2XH6oemmQ0_d9X_k7sRvq_yQmrb3lUB4ZA7WNZCDhn_kQ9zRzZS2XffNEbBnVcDK-fCm-NowhjTs0VdQJcO8",
"https://play-lh.googleusercontent.com/58H0BAGBiSYeRYK4pixVsgYyebULGiYM2S1mBgxTWCFfGS11wbO4uo0e9eF3JmtFWJ99xgnQEh3-ufpmVztj1Q",
"https://play-lh.googleusercontent.com/Nwb7e4hd53oPd6WyCGKeT-4Q4yBwe4o7oDUdD6Lbpg3RZp-fpkgXceqIs6PLL1Xon8DaxMeZxPGn6XWB6JQDwG8"
],
"rating_histogram": {
"1": 2315,
"2": 802,
"3": 2315,
"4": 7666,
"5": 79668
}
}
],
"next_page_token": …,
"pagination": { … },
"count": 20,
"billing": {
"charged": …,
"charged_usd": …,
"balance_after_usd": …,
…
},
"quota": { … }
}返回字段
业务数据在 results 里;下表是每条记录可能包含的字段,平台没有提供的值不会被补造。
| 字段 | 含义 |
|---|---|
app_id | 应用包名(如 com.example.app),Google Play 的唯一标识。 |
url | 该记录在原平台上的可访问链接。 |
name | 名称。用于账号/商品/商家类能力,指该对象本身的名字。 |
summary | 应用一句话简介。 |
description | 简介或描述,通常比 text 短。 |
developer | 开发者名称。 |
developer_email | 开发者联系邮箱(商店页公开信息)。 |
developer_website | 开发者网站。 |
score | 应用评分,5 分制。 |
rating_count | 参与评分的人数。null 表示不公开,不等于 0。 |
review_count | 评价条数,用于商品/商家类能力。null 表示不公开,不等于 0。 |
installs | 安装量展示值(如 1,000,000+),是区间下限不是精确值。 |
min_installs | 安装量区间下限的数值形式。 |
price | 价格数值,不含货币符号;币种见 currency。 |
is_free | 是否免费。 |
currency | 价格币种代码(如 CNY、USD)。price 存在但 currency 为 null 时不要假定币种。 |
category | 分类名称,取值为原平台的分类体系,未做跨平台归一。 |
content_rating | 内容分级。 |
contains_ads | 是否含广告。 |
offers_iap | 是否含内购。 |
version | 版本号。 |
released | 首次发布日期。 |
updated_at | 最近更新时间。长期不更新是维护风险信号。 |
android_version | 要求的最低 Android 版本。 |
icon_url | 应用图标。 |
header_image_url | 商店页头图。 |
privacy_policy | 隐私政策链接。 |
platform | 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。 |
screenshots | 保留平台原语义 |
rating_histogram | 保留平台原语义 |
错误与计费
- 401
- 缺少 Key 或 Key 无效。先鉴权再校验参数,未鉴权的请求拿不到参数结构。
- 422
- 参数名或取值不对。错误信息会列出这项能力支持的参数、允许值和最接近的候选,按它改即可;发生在扣费之前。
- 402
- 余额不足,请先充值。
- 429
- 超过账户的每分钟请求上限(名下所有 Key 合计;Key 自设了更低上限时先按它算),按 Retry-After 等待后再试。需要更高上限可在控制台买提速包。
- 503
- 暂时无法完成。已预扣的费用按原账本退回;响应里的 billing 与 refund 写明实际结果,结果未知时会明确标出,不要直接重发。
- 200 空结果
- 请求完成但没有数据,不扣费(billing.reason = empty_result_refunded)。