Skip to contents

Season team leaderboards, offensive or defensive, one row per team and category.

Endpoint: GET https://www.legabasket.it/api/statistics/get-teams-statistics-by-type (cs_id=1&type=<board>&s=<season>)

Usage

lba_teams_leaderboard(board, season = NULL)

Arguments

board

(required) Board: teams_offensive or teams_defensive. One of "teams_offensive", "teams_defensive".

season

Season END year (2027 = 2026-27). Omitted = the site's default season (unverified).

Value

A hoopR_data tibble: Season team leaderboards, offensive or defensive, one row per team and category. The columns are always these, in this order (sportsdataverse-py lba_teams_leaderboard); a column the site adds later is appended after them:

col_nametypedescription
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
categorycharacterCategory of this row (the cat param, e.g. points).
namecharacterGiven name (players) / team name (teams).
sponsor_namecharacterSponsor name (empty or null in the samples).
short_namecharacterShort name of the team, e.g. BC Roma.
tv_namecharacterShort team name for TV graphics.
yearintegerSeason START year (2026 = 2026-27); sdv END year = year + 1.
logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
attemptsintegerShots attempted in the zone, parsed from num.
total_played_matchesintegerGames the team has played, counted for the leaderboard.
total_pointsintegerPoints scored (offensive) or allowed (defensive) in the season.
minutesintegerMinutes per game (players: decimal string 28.67) / total minutes (teams: integer).
score_40_mindoubleValue per 40 minutes.
scoredoubleValue in the category under the ob order (default avg = per game); players send a decimal string, teams a number.
team_idintegerTeam id (team-season).

Details

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

 lba_teams_leaderboard(board = "teams_offensive", season = 2027)