Skip to contents

Get NBA Stats API Scoreboard V2

Get NBA Stats API Scoreboard V2

Usage

nba_scoreboardv2(
  league_id = "00",
  game_date = "2021-07-20",
  day_offset = 0,
  ...
)

Arguments

league_id

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

game_date

Game Date

day_offset

Day Offset (integer 0,-1)

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: Available, EastConfStandingsByDay, GameHeader, LastMeeting, LineScore, SeriesStandings, TeamLeaders, TicketLinks, WestConfStandingsByDay, WinProbability

GameHeader

col_nametypes
GAME_DATE_ESTcharacter
GAME_SEQUENCEcharacter
GAME_IDcharacter
GAME_STATUS_IDcharacter
GAME_STATUS_TEXTcharacter
GAMECODEcharacter
HOME_TEAM_IDcharacter
VISITOR_TEAM_IDcharacter
SEASONcharacter
LIVE_PERIODcharacter
LIVE_PC_TIMEcharacter
NATL_TV_BROADCASTER_ABBREVIATIONcharacter
HOME_TV_BROADCASTER_ABBREVIATIONcharacter
AWAY_TV_BROADCASTER_ABBREVIATIONcharacter
LIVE_PERIOD_TIME_BCASTcharacter
ARENA_NAMEcharacter
WH_STATUScharacter
WNBA_COMMISSIONER_FLAGcharacter

LineScore

col_nametypes
GAME_DATE_ESTcharacter
GAME_SEQUENCEcharacter
GAME_IDcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_CITY_NAMEcharacter
TEAM_NAMEcharacter
TEAM_WINS_LOSSEScharacter
PTS_QTR1character
PTS_QTR2character
PTS_QTR3character
PTS_QTR4character
PTS_OT1character
PTS_OT2character
PTS_OT3character
PTS_OT4character
PTS_OT5character
PTS_OT6character
PTS_OT7character
PTS_OT8character
PTS_OT9character
PTS_OT10character
PTScharacter
FG_PCTcharacter
FT_PCTcharacter
FG3_PCTcharacter
ASTcharacter
REBcharacter
TOVcharacter

SeriesStandings

col_nametypes
GAME_IDcharacter
HOME_TEAM_IDcharacter
VISITOR_TEAM_IDcharacter
GAME_DATE_ESTcharacter
HOME_TEAM_WINScharacter
HOME_TEAM_LOSSEScharacter
SERIES_LEADERcharacter

LastMeeting

col_nametypes
GAME_IDcharacter
LAST_GAME_IDcharacter
LAST_GAME_DATE_ESTcharacter
LAST_GAME_HOME_TEAM_IDcharacter
LAST_GAME_HOME_TEAM_CITYcharacter
LAST_GAME_HOME_TEAM_NAMEcharacter
LAST_GAME_HOME_TEAM_ABBREVIATIONcharacter
LAST_GAME_HOME_TEAM_POINTScharacter
LAST_GAME_VISITOR_TEAM_IDcharacter
LAST_GAME_VISITOR_TEAM_CITYcharacter
LAST_GAME_VISITOR_TEAM_NAMEcharacter
LAST_GAME_VISITOR_TEAM_CITY1character
LAST_GAME_VISITOR_TEAM_POINTScharacter

EastConfStandingsByDay

col_nametypes
TEAM_IDcharacter
LEAGUE_IDcharacter
SEASON_IDcharacter
STANDINGSDATEcharacter
CONFERENCEcharacter
TEAMcharacter
Gcharacter
Wcharacter
Lcharacter
W_PCTcharacter
HOME_RECORDcharacter
ROAD_RECORDcharacter

WestConfStandingsByDay

col_nametypes
TEAM_IDcharacter
LEAGUE_IDcharacter
SEASON_IDcharacter
STANDINGSDATEcharacter
CONFERENCEcharacter
TEAMcharacter
Gcharacter
Wcharacter
Lcharacter
W_PCTcharacter
HOME_RECORDcharacter
ROAD_RECORDcharacter

Available

col_nametypes
GAME_IDcharacter
PT_AVAILABLEcharacter

TeamLeaders

col_nametypes
GAME_IDcharacter
TEAM_IDcharacter
TEAM_CITYcharacter
TEAM_NICKNAMEcharacter
TEAM_ABBREVIATIONcharacter
PTS_PLAYER_IDcharacter
PTS_PLAYER_NAMEcharacter
PTScharacter
REB_PLAYER_IDcharacter
REB_PLAYER_NAMEcharacter
REBcharacter
AST_PLAYER_IDcharacter
AST_PLAYER_NAMEcharacter
ASTcharacter

TicketLinks

WinProbability

Details

 nba_scoreboardv2(league_id = '00', game_date = '2021-07-20')

See also

Other NBA Schedule Functions: nba_schedule(), nba_scoreboardv3(), nba_scoreboard(), nba_todays_scoreboard()

Author

Saiem Gilani