Skip to contents

Every competition team of one competition: ids, names and country.

Endpoint: GET https://bnxt.sportpress.info/api/v1/competition-team/all

Usage

sportpress_competition_teams(competition_id)

Arguments

competition_id

(required) Competition id (integer), ONE per season of the league: 24 = 2025-26, 25 = 2026-27 (sportpress_phases() maps a season to it).

Value

A hoopR_data tibble: Every competition team of one competition: ids, names and country. An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py sportpress_competition_teams):

col_nametypedescription
competition_idintegerCompetition id the team plays in (key space: sportpress competitions); the competition_id the route was asked for.
seasonintegerSeason END year of the team's competition.
uu_team_idintegerStable club key across seasons (key space: sportpress clubs-as-teams); competition_team_id changes every season, this does not.
competition_team_idintegerCompetition-team id (key space: sportpress competition teams): a team in ONE competition, so a club has a new id every season (Antwerp = 3 in 2021-22, 506 in 2025-26, 541 in 2026-27). uu_team_id is the stable club key.
teamcharacterTeam display name including the sponsor; varies with language and playoff suffixes: never join on it.
team_short_namecharacterThree-letter club code (ANT, MON, ...), stable across seasons in the samples.
club_idintegerCountry of the team (key space: sportpress clubs): 1 = Belgium, 2 = Netherlands. The provider calls the country a club.
club_namecharacterCountry name in English, Belgium or Netherlands.

Details

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

Examples

# \donttest{
  try(sportpress_competition_teams(competition_id = 24))
#> ── BNXT League Competition Teams from Sportpress ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:34:12 UTC
#> # A tibble: 18 × 8
#>    competition_id season uu_team_id competition_team_id team     team_short_name
#>             <int>  <int>      <int>               <int> <chr>    <chr>          
#>  1             24   2026          1                 502 Val-Die… CHA            
#>  2             24   2026          2                 504 Filou O… OOS            
#>  3             24   2026          3                 506 Windros… ANT            
#>  4             24   2026          4                 508 Union M… MON            
#>  5             24   2026          5                 510 Hubo Li… LIM            
#>  6             24   2026          7                 512 Donar G… GRO            
#>  7             24   2026          8                 514 PrismaW… BAL            
#>  8             24   2026          9                 516 Landste… ZWO            
#>  9             24   2026         10                 518 Zeeuw &… RCB            
#> 10             24   2026         11                 520 LWD Bas… LWD            
#> 11             24   2026         12                 522 Zorg en… LEI            
#> 12             24   2026         14                 524 Den Hel… DHE            
#> 13             24   2026         18                 526 Heroes … DBO            
#> 14             24   2026         19                 528 Partena… AAL            
#> 15             24   2026         20                 530 AB InBe… LEU            
#> 16             24   2026         21                 532 Brussel… BRU            
#> 17             24   2026         22                 534 Kangoer… MEC            
#> 18             24   2026         32                 536 House o… KOR            
#> # ℹ 2 more variables: club_id <int>, club_name <chr>
# }