# B站 游戏评分汇总 API (bilibili.game_score)

- Canonical page: [https://everyinfra.com/bilibili-api/game_score](https://everyinfra.com/bilibili-api/game_score?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "bilibili", "action": "game_score", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=bilibili&action=game_score

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| game_id | not declared | yes | not declared | B 站游戏中心的游戏编号，一串数字，或游戏详情页链接 https://www.biligame.com/detail/?id=<游戏编号>。返回这个游戏的评分、评价总数和各星的评价数。认不出游戏编号时返回 422，不扣费；游戏不存在或没有评价区时返回空结果，不扣费。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| game_id | B 站游戏中心的游戏编号（game_reviews、game_score、game_comment_replies），和请求的 game_id 一致。 |
| url | 该记录在原平台上的可访问链接。 |
| game_name | 游戏名（game_score）。 |
| rating | 评分（game_reviews、game_score）：B 站给的原始分，满分 10（即五星），没有换算；game_score 是这个游戏的总评分。 |
| rating_scale | 评分的满分（general_search 的番剧、影视行，game_reviews、game_score），B 站是 10。 |
| review_count | 这个游戏的评价总数（game_score），B 站给的数；和 game_reviews 的 game_review_count 不是同一个数，不能拿来算页数。 |
| valid_review_count | B 站标成有效的评价数（game_score），B 站给的数，算法没公开。 |
| rating_star_counts | 各星的评价数（game_score），对象，键 "1"～"5" 是星数，值是评价数；五个数加起来通常和 review_count、valid_review_count 都对不上，B 站就是这样给的。B 站没给时没有这个字段。 |
| 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": "bilibili",
  "action": "game_score",
  "params": {
    "game_id": "111392"
  }
}'
```

```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": "bilibili",
        "action": "game_score",
        "params": {
            "game_id": "111392",
        },
    },
    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": "bilibili",
  "action": "game_score",
  "results": {
    "id": …,
    "game_id": …,
    "url": …,
    "game_name": …,
    "rating": …,
    "rating_scale": …,
    "review_count": …,
    "valid_review_count": …,
    "rating_star_counts": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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