Skip to contents

A player's game log for one season, one row per game.

Endpoint: GET https://www.legabasket.it/api/players/get-player-matches (cs_id=1&id=<player_id>&s=<season>)

Usage

lba_game_log(player_id, season = NULL)

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.

season

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

Value

A hoopR_data tibble: A player's game log for one season, one row per game. The columns are always these, in this order (sportsdataverse-py lba_game_log); a column the site adds later is appended after them:

col_nametypedescription
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
stat_line_idintegerId of the player's stat line for the game (one per player and game).
championship_idintegerChampionship id of the game.
championships_match_idintegerGame id (global across seasons); joins lba_calendar and lba_game.
player_idintegerPlayer id (global, one per career).
team_idintegerTeam id (team-season) of the player.
numberintegerJersey number the player wore in the game.
played_minutesintegerMinutes played, in that game.
pointsintegerPoints, in that game.
suffered_foulsintegerFouls drawn, in that game.
done_foulsintegerFouls committed, in that game.
shots_2p_realizedinteger2-point field goals made, in that game.
shots_2p_totalinteger2-point field goals attempted, in that game.
shots_3p_realizedinteger3-point field goals made, in that game.
shots_3p_totalinteger3-point field goals attempted, in that game.
free_throws_realizedintegerFree throws made, in that game.
free_throws_totalintegerFree throws attempted, in that game.
restricted_area_p1characterNull in every sample (meaning unverified).
restricted_area_p2characterNull in every sample (meaning unverified).
restricted_area_p3characterNull in every sample (meaning unverified).
slam_dunkintegerDunks, in that game.
offensive_reboundintegerOffensive rebounds, in that game.
defensive_reboundintegerDefensive rebounds, in that game.
ball_stop_givenintegerBlocks, in that game.
ball_stop_receivedintegerOwn shots blocked, in that game.
lost_ballsintegerTurnovers, in that game.
regain_ballsintegerSteals, in that game.
assistsintegerAssists, in that game.
technical_foulscharacterTechnical fouls (null in old seasons).
minute5_foulsintegerMinute of the fifth foul (0 = did not foul out; inferred, unverified).
time5_foulsintegerGame time of the fifth foul (0 = did not foul out; inferred, unverified).
rating_legaintegerLBA efficiency rating (valutazione), in that game.
quintetintegerStarts (in the starting five), in that game.
rating_oerdoubleOER (points / (FGA + turnovers + FTA / 2)), in that game.
avg_pointsintegerThe player's plus-minus in the game (the site's name is misleading).
wp_idintegerNull in every sample (meaning unverified).
deleted_atcharacterNull in every sample (meaning unverified).
created_atcharacterTimestamp, ISO-8601 with the Italian offset.
updated_atcharacterTimestamp, ISO-8601 with the Italian offset.
player_role_idintegerPosition id (position key space: the id behind player_role; joins the r_id filter).
orderintegerRow order in the box score.
captainlogicalTeam captain in that game.
shots_2p_percinteger2-point field-goal percentage, 0-100, in that game.
shots_3p_percinteger3-point field-goal percentage, 0-100, in that game.
free_throws_percintegerFree-throw percentage, 0-100, in that game.
total_reboundintegerTotal rebounds, in that game.
ext_codecharacter<websocket_match_id>\|<team code>\|<player code> (1674778\|TVU\|CAP-ALE-95).
fouls_first_categoryintegerCategory-1 technical fouls (null in old seasons; reading inferred).
fouls_flagrantintegerUnsportsmanlike / flagrant fouls.
championship_day_namecharacterRound code, number sent as a string.
home_scoreintegerHome points after the action, parsed from the score text (2021-22 on; else null).
visitor_scoreintegerVisitor points after the action, parsed from the score text (2021-22 on; else null).
match_datecharacterTip-off in UTC, ISO-8601 Z (local time in match_hh / match_mm).
match_hhintegerTip-off hour, local time.
match_mmintegerTip-off minute, local time.
championship_match_idintegerGame id (repeated).
player_team_idintegerTeam id (team-season) of the player (repeated).
player_team_namecharacterShort name of the player's team in the game (without the season sponsor).
player_team_codecharacter<season>\|<team code> (1995\|BOF).
visitor_team_idintegerVisitor team-season id of the game (the play-by-play vt_id).
visitor_team_namecharacterAway team short name.
visitor_team_logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
home_team_idintegerHome team-season id of the game (the play-by-play ht_id).
home_team_namecharacterHome team short name.
home_team_logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
phase_descriptioncharacterPhase code: And (Andata, 1st half of the season) / Rit (Ritorno).
match_adpintegerThe player's plus-minus in the game (the site's name is misleading).
home_match_resultcharacterw / l for the home team when the player was on it, else null.
visitor_match_resultcharacterw / l for the away team when the player was on it, else null.

Details

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

 lba_game_log(player_id = 969, season = 2027)