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 with one row per match type.
Its columns are listed in return_columns
(subset(return_columns, fn == "cba_match_types")) and in the searchable
return columns article.
Details
Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in cba_seasons().
See also
family_cba lists every function in this family.
Examples
# \donttest{
try(cba_match_types())
#> ── CBA Match Types from data-server.cbaleague.com ─────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-13 21:11:03 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
# }
