# Bilibili Game score summary API (bilibili.game_score)

- Canonical page: [https://everyinfra.com/en/bilibili-api/game_score](https://everyinfra.com/en/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 | The numeric ID of a game in Bilibili's game center, or the link to its detail page, `https://www.biligame.com/detail/?id=<game ID>`. A value without a recognizable game ID returns 422 and is not charged; a game that does not exist or has no review section returns an empty result and is not charged. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| game_id | Bilibili game center ID of the game (game_reviews, game_score, game_comment_replies), the same as the requested game_id. |
| url | Link to the record on the platform. |
| game_name | Name of the game (game_score). |
| rating | Rating (game_reviews, game_score): the score as Bilibili gives it, out of 10 (five stars), not converted; in game_score it is the game's overall score. |
| rating_scale | The full score of the rating (rows of anime and film/TV in general_search, game_reviews and game_score); on Bilibili it is 10. |
| review_count | Total number of reviews of the game (game_score), as Bilibili gives it. It is not the same number as game_review_count in game_reviews, so do not use it to count pages. |
| valid_review_count | Number of reviews Bilibili marks as valid (game_score), as Bilibili gives it; how it is counted is not published. |
| rating_star_counts | Number of reviews for each star (game_score): an object whose keys "1" to "5" are the stars and whose values are review counts. The five numbers usually do not add up to review_count or valid_review_count; that is how Bilibili gives them. Absent when Bilibili does not give it. |
| platform | Source platform identifier, the same as platform in the request (for example 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
