Skip to contents

Get NBA Stats API League Game Log

Get NBA Stats API League Game Log

Usage

nba_leaguegamelog(
  counter = 0,
  date_from = "",
  date_to = "",
  direction = "ASC",
  league_id = "00",
  player_or_team = "T",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  sorter = "DATE",
  ...
)

Arguments

counter

counter

date_from

date_from

date_to

date_to

direction

direction

league_id

league_id

player_or_team

player_or_team

season

season

season_type

season_type

sorter

sorter

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: LeagueGameLog

LeagueGameLog

col_nametypesdescription
SEASON_IDcharacterUnique season identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
GAME_IDcharacterUnique game identifier.
GAME_DATEcharacterGame date (YYYY-MM-DD).
MATCHUPcharacterMatchup.
WLcharacterWl.
MINcharacterMinutes played.
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).
FG3McharacterThree-point field goals made.
FG3AcharacterThree-point field goal attempts.
FG3_PCTcharacterThree-point field goal percentage (0-1).
FTMcharacterFree throws made.
FTAcharacterFree throw attempts.
FT_PCTcharacterFree throw percentage (0-1).
OREBcharacterOffensive rebounds.
DREBcharacterDefensive rebounds.
REBcharacterTotal rebounds.
ASTcharacterAssists.
STLcharacterSteals.
BLKcharacterBlocks.
TOVcharacterTurnovers.
PFcharacterPersonal fouls.
PTScharacterPoints scored.
PLUS_MINUScharacterPlus/minus point differential while on court.
VIDEO_AVAILABLEcharacterVideo available.

Author

Saiem Gilani