The match types (regular season, playoffs, preseason, all-star, relegation play-off) with their ids.
Endpoint: GET https://data-server.cbaleague.com/api/com-code-tables/getMatchType
Value
A hoopR_data tibble: One row per match type (regular season, playoffs, preseason, all-star, relegation). An
empty valid answer is a zero-row tibble with these columns, in this order (sportsdataverse-py cba_match_types):
| col_name | type | description |
| is_default | integer | Default-selection flag: 1 = the site's default (the preseason, '3', at capture time: it follows the calendar), 2 = not the default. |
| key | character | Match type name (Chinese): regular season, (Chinese text) playoffs, (Chinese text) preseason, (Chinese text) all-star, (Chinese text) relegation play-off. |
| value | character | Match type id as a string ('1' regular season, '2' playoffs, '3' preseason, '4' all-star, '9' relegation); the matchTypeId of every other route. |
Details
Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in cba_seasons().
See also
Other CBA Functions:
cba_best_player(),
cba_best_stats(),
cba_game_info(),
cba_game_team_four(),
cba_game_team_shots(),
cba_pbp(),
cba_period_scores(),
cba_player_advanced(),
cba_player_base(),
cba_player_box(),
cba_player_defensive(),
cba_player_extras(),
cba_player_offensive(),
cba_player_shots(),
cba_report_status(),
cba_rosters(),
cba_schedule_day(),
cba_schedule_month(),
cba_seasons(),
cba_team_basic(),
cba_team_counts(),
cba_team_four(),
cba_team_options(),
cba_team_overview(),
cba_team_shots(),
cba_teams()
Examples
# \donttest{
try(cba_match_types())
#> ── CBA Match Types from data-server.cbaleague.com ─────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:27:34 UTC
#> # A tibble: 5 × 3
#> is_default key value
#> <int> <chr> <chr>
#> 1 1 常规赛 1
#> 2 2 季后赛 2
#> 3 2 季前赛 3
#> 4 2 全明星 4
#> 5 2 保级赛 9
# }
