Skip to contents

Get NBA Stats API Team Game Log

Get NBA Stats API Team Game Log

Usage

nba_teamgamelog(
  date_from = "",
  date_to = "",
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  team_id = "1610612749",
  ...
)

Arguments

date_from

date_from

date_to

date_to

league_id

League - default: '00'. Other options include '10': WNBA, '20': G-League

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs, All-Star

team_id

Team ID

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: TeamGameLog

TeamGameLog

col_nametypesdescription
Team_IDcharacterUnique team identifier.
Game_IDcharacterUnique game identifier.
GAME_DATEcharacterGame date (YYYY-MM-DD).
MATCHUPcharacterMatchup.
WLcharacterWl.
WcharacterWins.
LcharacterLosses.
W_PCTcharacter
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.

Details

Teams Game Log

 nba_teamgamelog(team_id = '1610612749')

Author

Saiem Gilani