Skip to contents

Get NBA Stats API Team Year by Year Stats

Get NBA Stats API Team Year by Year Stats

Usage

nba_teamyearbyyearstats(
  league_id = "00",
  per_mode = "Totals",
  season_type = "Regular Season",
  team_id = "1610612749",
  ...
)

Arguments

league_id

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

per_mode

Per Mode

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: TeamStats

TeamStats

col_nametypesdescription
TEAM_IDcharacterUnique team identifier.
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
YEARcharacter4-digit year.
GPcharacterGames played.
WINScharacterTotal wins.
LOSSEScharacterTotal losses.
WIN_PCTcharacter
CONF_RANKcharacter
DIV_RANKcharacter
PO_WINScharacter
PO_LOSSEScharacter
CONF_COUNTcharacter
DIV_COUNTcharacter
NBA_FINALS_APPEARANCEcharacter
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.
PFcharacterPersonal fouls.
STLcharacterSteals.
TOVcharacterTurnovers.
BLKcharacterBlocks.
PTScharacterPoints scored.
PTS_RANKcharacter

Details

Team Year by Year Stats

 nba_teamyearbyyearstats(team_id = '1610612749')

Author

Saiem Gilani