# Google Play 游戏榜单与浏览 API (google_play.games)

- Canonical page: https://everyinfra.com/google-play-api/games
- Endpoint: POST /api/v1/social with {"platform": "google_play", "action": "games", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 50 per call (larger values are capped)
- 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=games

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| category | not declared | no | not declared | 游戏类目（games），如 GAME_PUZZLE、GAME_ACTION，也可只写 puzzle、action。和 chart、keyword 三选一。 |
| chart | not declared | no | not declared | 游戏榜单（games）：top_free 免费榜（默认）、top_paid 付费榜、top_grossing 畅销榜。和 category、keyword 三选一。 |
| country | not declared | no | not declared | Google Play 店面的国家/地区，两位字母代码，例如 us、gb、jp，默认 us；榜单和搜索结果都按这个国家的店面给。 |
| keyword | not declared | no | not declared | 按游戏名或玩法搜，例如 puzzle adventure；和 chart、category 三选一，三个都不给时看免费榜。 |
| language | not declared | no | not declared | 结果的显示语言，例如 en（默认）、zh、ja；它不自动更换 country。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限照收，按上限返回。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | 在这次榜单或浏览结果里的名次（games），从 1 开始。 |
| app_id | 应用包名（如 com.example.app），Google Play 的唯一标识。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| developer | 开发者名称。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| score | 应用评分，5 分制。 |
| installs | 安装量展示值（如 1,000,000+），是区间下限不是精确值。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| is_free | 是否免费下载。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| icon_url | 应用图标。 |
| description | 简介或描述，通常比 text 短。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## 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": "games",
  "params": {}
}'
```

```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": "games",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "google_play",
  "action": "games",
  "results": [
    {
      "rank": …,
      "app_id": …,
      "name": …,
      "url": …,
      "developer": …,
      "category": …,
      "score": …,
      "installs": …,
      "price": …,
      "is_free": …,
      "currency": …,
      "icon_url": …,
      "description": …,
      "platform": …
    }
  ],
  "count": …,
  "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
