Skip to contents

Game report header: both teams, score, tip-off time and colours.

Endpoint: GET https://data-server.cbaleague.com/api/team-match-datas/getMatchDataReport/baseInfo/{schedule_id}

Usage

cba_game_info(schedule_id)

Arguments

schedule_id

(required) Required. CBA game id (integer), the global 9-digit sequence 100xxxxxx (100105799 = 2025-26 round 1). Only a finished game is served.

Value

A hoopR_data tibble: One row: both teams, score, tip-off time and colours. An empty valid answer is a zero-row tibble with these columns, in this order (sportsdataverse-py cba_game_info):

col_nametypedescription
schedule_idintegerCBA game id (key space: CBA games, ONE global 9-digit sequence 100xxxxxx across seasons and match types; the {scheduleId} of every game route). Stamped by the runtime from the request; null on a body parsed without it.
countintegerUnverified: an integer shown in the report header (83 in the 2025-26 sample, 99 in 2017-18). Not the play-by-play row count; plausibly possessions per team, which the bundle does not confirm.
guest_colorcharacterVisiting team colour as a '#RRGGBB' hex string.
guest_scoreintegerVisiting team final points.
guest_team_idintegerteamId (key space: CBA clubs; 5 digits 29115-29140 for the long-standing clubs, 9 digits for newer ones (100074683 = Ningbo); stable across seasons and club renames, but the display name changes with the sponsor: 29128 = 'Zhejiang Guangsha' under many sponsor names, (Chinese text) in 2025-26). Joins getTeam / teamList and the team and player routes. Not a player or schedule id. Visiting team.
guest_team_logocharacterAbsolute URL of the visiting team logo.
guest_team_namecharacterVisiting team name (Chinese) at the time of the game. Names change with the sponsor, the id does not; teamId -> English glossary in cba_glossary.yaml.
host_colorcharacterHome team colour as a '#RRGGBB' hex string (the game report's theme colour).
host_scoreintegerHome team final points.
host_team_idintegerteamId (key space: CBA clubs; 5 digits 29115-29140 for the long-standing clubs, 9 digits for newer ones (100074683 = Ningbo); stable across seasons and club renames, but the display name changes with the sponsor: 29128 = 'Zhejiang Guangsha' under many sponsor names, (Chinese text) in 2025-26). Joins getTeam / teamList and the team and player routes. Not a player or schedule id. Home team.
host_team_logocharacterAbsolute URL of the home team logo.
host_team_namecharacterHome team name (Chinese) at the time of the game (e.g. in 2017-18). Names change with the sponsor, the id does not; teamId -> English glossary in cba_glossary.yaml.
schedule_timecharacterTip-off as 'YYYY-MM-DD HH:MM:SS' (China local time); equals schedules/day scheduleTime.

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in cba_seasons().

Examples

# \donttest{
  try(cba_game_info(schedule_id = 100105799))
#> ── CBA Game Info from data-server.cbaleague.com ───────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:27:32 UTC
#> # A tibble: 1 × 13
#>   schedule_id count guest_color guest_score guest_team_id guest_team_logo       
#>         <int> <int> <chr>             <int>         <int> <chr>                 
#> 1   100105799    83 #7E040C              74         29132 https://image.cbaleag…
#> # ℹ 7 more variables: guest_team_name <chr>, host_color <chr>,
#> #   host_score <int>, host_team_id <int>, host_team_logo <chr>,
#> #   host_team_name <chr>, schedule_time <chr>
# }