Skip to contents

A player's career by championship: per-game averages, single-game highs and totals.

Endpoint: GET https://www.legabasket.it/api/players/get-player-stats (id=<player_id>)

Usage

lba_player_stats(player_id)

Arguments

player_id

(required) Player id (player_id in lba_players or a box score), e.g. 969. Global: one id for a whole career.

Value

A hoopR_data tibble: A player's career by championship: per-game averages, single-game highs and totals. The columns are always these, in this order (sportsdataverse-py lba_player_stats); a column the site adds later is appended after them:

col_nametypedescription
player_idintegerPlayer id (global: one id for a whole career); the request's player.
stat_typecharacterStatistic of the row: avg (per game), max (single-game high) or sum (total).
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
championship_yearintegerSeason START year (2026 = 2026-27); sdv END year = year + 1.
championship_positionintegerDisplay order of the competition within the season (1 = Regular Season; inferred).
championship_namecharacterCompetition name (Regular Season, Play Off, Coppa Italia, ...).
team_namecharacterTeam name in that season, with its sponsor (Nutribullet Treviso Basket); changes with the sponsor.
quintetintegerPer-game average of starts (in the starting five) in that season, competition and team.
pointsdoublePer-game average of points in that season, competition and team.
played_minutesdoublePer-game average of minutes played in that season, competition and team.
played_matchesintegerGames played in that season, competition and team: a count, the same in the avg, max and sum rows.
total_matchesintegerTeam games while the player was listed (a player with 3 of 21 shows 21; inferred) in that season, competition and team: a count, the same in the avg, max and sum rows.
done_foulsintegerPer-game average of fouls committed in that season, competition and team.
suffered_foulsintegerPer-game average of fouls drawn in that season, competition and team.
shots_2p_realizeddoublePer-game average of 2-point field goals made in that season, competition and team.
shots_2p_totalintegerPer-game average of 2-point field goals attempted in that season, competition and team.
slam_dunkintegerPer-game average of dunks in that season, competition and team.
shots_3p_realizedintegerPer-game average of 3-point field goals made in that season, competition and team.
shots_3p_totalintegerPer-game average of 3-point field goals attempted in that season, competition and team.
free_throws_realizedintegerPer-game average of free throws made in that season, competition and team.
free_throws_totalintegerPer-game average of free throws attempted in that season, competition and team.
offensive_reboundintegerPer-game average of offensive rebounds in that season, competition and team.
defensive_reboundintegerPer-game average of defensive rebounds in that season, competition and team.
total_reboundintegerPer-game average of total rebounds in that season, competition and team.
ball_stop_givenintegerPer-game average of blocks in that season, competition and team.
ball_stop_receivedintegerPer-game average of own shots blocked in that season, competition and team.
lost_ballsintegerPer-game average of turnovers in that season, competition and team.
regain_ballsintegerPer-game average of steals in that season, competition and team.
assistsintegerPer-game average of assists in that season, competition and team.
rating_legaintegerPer-game average of LBA efficiency rating (valutazione) in that season, competition and team.
rating_oerdoublePer-game average of OER (points / (FGA + turnovers + FTA / 2)) in that season, competition and team.
avg_pointsdoublePer-game average of plus-minus, despite the name (see the game-log row, where it equals the box score plus_minus) in that season, competition and team.
aplus_dpintegerPer-game average of aplus_dp, an unverified metric (not plus-minus or assists: Macura 2026-27 has 9 against plus-minus 8 and 3 assists) in that season, competition and team.

Details

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

 lba_player_stats(player_id = 969)