Skip to contents

Get NBA Stats API Team Common Info

Get NBA Stats API Team Common Info

Usage

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

Arguments

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: AvailableSeasons, TeamInfoCommon, TeamSeasonRanks

TeamInfoCommon

col_nametypes
TEAM_IDcharacter
SEASON_YEARcharacter
TEAM_CITYcharacter
TEAM_NAMEcharacter
TEAM_ABBREVIATIONcharacter
TEAM_CONFERENCEcharacter
TEAM_DIVISIONcharacter
TEAM_CODEcharacter
TEAM_SLUGcharacter
Wcharacter
Lcharacter
PCTcharacter
CONF_RANKcharacter
DIV_RANKcharacter
MIN_YEARcharacter
MAX_YEARcharacter

TeamSeasonRanks

col_nametypes
LEAGUE_IDcharacter
SEASON_IDcharacter
TEAM_IDcharacter
PTS_RANKcharacter
PTS_PGcharacter
REB_RANKcharacter
REB_PGcharacter
AST_RANKcharacter
AST_PGcharacter
OPP_PTS_RANKcharacter
OPP_PTS_PGcharacter

AvailableSeasons

col_nametypes
SEASON_IDcharacter

Details

 nba_teaminfocommon(team_id = '1610612749')

Author

Saiem Gilani