Skip to contents

Standings of a championship after a round, one row per team.

Endpoint: GET https://www.legabasket.it/api/championships/get-championship-ranking (id=<championship_id>&d=<round>)

Usage

lba_standings(championship_id, round = NULL)

Arguments

championship_id

(required) Championship id (championship_id in lba_championships; a Regular Season id carries standings).

round

Standings after this round. Required in practice for a finished championship: without it the site sends none (NoDataError).

Value

A hoopR_data tibble: Standings of a championship after a round, one row per team. The columns are always these, in this order (sportsdataverse-py lba_standings); a column the site adds later is appended after them:

col_nametypedescription
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
standing_idintegerStandings row id (one team after one round; joins nothing else).
championships_day_idintegerRound id the standings are after.
team_idintegerTeam id (team-season).
positionintegerRank in the standings.
winsintegerGames the team has won through the round.
defeatsintegerGames the team has lost through the round.
points_madeintegerPoints the team has scored through the round.
points_sufferedintegerPoints allowed.
qpintegerTie-break quotient (quoziente punti?); 1 in the samples (unverified).
lvcharacterNull in every sample (meaning unverified).
lpcharacterNull in every sample (meaning unverified).
lpfcharacterNull in every sample (meaning unverified).
lpscharacterNull in every sample (meaning unverified).
lqpcharacterNull in every sample (meaning unverified).
updated_atcharacterTimestamp, ISO-8601 with the Italian offset.
pointsintegerStandings points (2 per win).
penalty_pointsintegerPoints deducted (0 or null).
game_playedintegerGames the team has played through the round.
home_game_playedintegerHome games played.
home_winsintegerHome games won.
home_defeatsintegerHome games the team has lost through the round.
away_game_playedintegerAway games played.
away_winsintegerAway games won.
away_defeatsintegerAway games the team has lost through the round.
avg_points_madedoublePoints scored per game.
avg_points_suffereddoublePoints allowed per game.
home_points_madeintegerPoints scored at home.
home_points_sufferedintegerPoints allowed at home.
home_avg_points_madedoublePoints scored per home game.
home_avg_points_suffereddoublePoints allowed per home game.
away_points_madeintegerPoints scored away.
away_points_sufferedintegerPoints allowed away.
away_avg_points_madedoublePoints scored per away game.
away_avg_points_suffereddoublePoints allowed per away game.
yearintegerSeason START year (2026 = 2026-27); sdv END year = year + 1.
tiesintegerTies (0 or null; basketball has none).
home_tiesintegerHome ties (null).
away_tiesintegerAway ties (null).
play_off_qualifiedlogicalClinched a play-off place (null in old seasons).
relegationlogicalRelegated (null in old seasons).
movementcharacterPosition change since the previous round, signed string (+2, -1; null for finished seasons).
wins_percentdoubleWin percentage as a string with % (100%).
home_wins_percentdoubleHome win percentage, string with %.
away_wins_percentdoubleAway win percentage, string with %.
max_points_madeintegerMost points scored in a game.
home_max_points_madeintegerMost points scored in a home game.
away_max_points_madeintegerMost points scored in an away game.
day_codeintegerRound code the standings are after (integer).
day_namecharacterRound name, Italian (4a Giornata - 2o fase = matchday 4 of the 2nd phase).
team_namecharacterTeam name in that season, with its sponsor (Nutribullet Treviso Basket); changes with the sponsor.
club_codecharacterClub code (TVB, TS); whether it is stable across seasons is unverified.
logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
ctpintegerClassification marker; 0 or null in the samples (unverified).
ctp_symbolcharacterNull in every sample (meaning unverified).
ctp_descriptioncharacterNull in every sample (meaning unverified).
season_start_yearintegerThe wire season field: the season START year (2026 = 2026-27), same as year.

Details

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

Examples

# \donttest{
  try(lba_standings(championship_id = 602, round = 3))
#> ── LBA Standings from legabasket.it ───────────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:31:43 UTC
#> # A tibble: 16 × 57
#>    season standing_id championships_day_id team_id position  wins defeats
#>     <int>       <int>                <int>   <int>    <int> <int>   <int>
#>  1   2027       44970                 4488    1772        1     3       0
#>  2   2027       44968                 4488    1750        2     3       0
#>  3   2027       44975                 4488    1769        3     2       1
#>  4   2027       44978                 4488    1751        4     2       1
#>  5   2027       44972                 4488    1764        5     2       1
#>  6   2027       44976                 4488    1763        6     2       1
#>  7   2027       44971                 4488    1753        7     2       1
#>  8   2027       44977                 4488    1766        8     2       1
#>  9   2027       44969                 4488    1771        9     2       1
#> 10   2027       44980                 4488    1760       10     1       2
#> 11   2027       44982                 4488    1762       11     1       2
#> 12   2027       44973                 4488    1761       12     1       2
#> 13   2027       44974                 4488    1752       13     1       2
#> 14   2027       44979                 4488    1767       14     0       3
#> 15   2027       44981                 4488    1765       15     0       3
#> 16   2027       44983                 4488    1768       16     0       3
#> # ℹ 50 more variables: points_made <int>, points_suffered <int>, qp <int>,
#> #   lv <chr>, lp <chr>, lpf <chr>, lps <chr>, lqp <chr>, updated_at <chr>,
#> #   points <int>, penalty_points <int>, game_played <int>,
#> #   home_game_played <int>, home_wins <int>, home_defeats <int>,
#> #   away_game_played <int>, away_wins <int>, away_defeats <int>,
#> #   avg_points_made <dbl>, avg_points_suffered <dbl>, home_points_made <int>,
#> #   home_points_suffered <int>, home_avg_points_made <dbl>, …
# }