# Google Play 关键词搜索 API (google_play.search)

- Canonical page: https://everyinfra.com/google-play-api/search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "google_play", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours; up to 100 rows
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=google_play&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Google Play 应用名称或用途搜索词，例如 note taking；不是应用包名精确定位。详情与评论使用 app_id。 |
| country | not declared | no | not declared | Google Play 店面国家/地区，建议小写代码，默认 us；search、profile 用它决定查哪个国家的店面，不是用户手机地区或应用开发者国籍。reviews 里它不改变返回哪些评价：评价只随 language 变，同一 language 下 us、gb 返回的评价相同（10-25 实测）。要按国家比较评价，请换 language，不要只换 country。 |
| language | not declared | no | not declared | Play 商店内容/评论查询语言，默认 en；例如 en 或 zh。它不自动更换 country，也不保证所有返回评论都是该语言的原文。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一页响应里的 next_page_token 原样传回拿下一页；不传从第一页开始。其他参数须与上一页一致，令牌 24 小时有效，每页算一次调用；最深能翻多少条、多深要改用 mode=async，见目录里的 pagination。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| 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 | platform-native meaning |
| rating_histogram | platform-native meaning |

## Example

```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"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "google_play",
        "action": "search",
        "params": {
            "keyword": "habit tracker",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "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": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=google_play
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
