Skip to contents

Deprecated in hoopR 3.0.0. This endpoint is unstable/partial; use nba_scoreboardv3() instead.

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_nametypesdescription
GAME_DATE_ESTcharacterGame date est.
GAME_SEQUENCEcharacterGame sequence.
GAME_IDcharacterUnique game identifier.
GAME_STATUS_IDcharacterNumeric game status identifier.
GAME_STATUS_TEXTcharacterGame status display text (e.g. 'Final', '4:32 - 4th').
GAMECODEcharacter
HOME_TEAM_IDcharacterUnique identifier for the home team.
VISITOR_TEAM_IDcharacter
SEASONcharacterSeason identifier (4-digit year or 'YYYY-YY' string).
LIVE_PERIODcharacter
LIVE_PC_TIMEcharacter
NATL_TV_BROADCASTER_ABBREVIATIONcharacter
HOME_TV_BROADCASTER_ABBREVIATIONcharacter
AWAY_TV_BROADCASTER_ABBREVIATIONcharacter
LIVE_PERIOD_TIME_BCASTcharacter
ARENA_NAMEcharacterArena name.
WH_STATUScharacterWh status.
WNBA_COMMISSIONER_FLAGcharacter

LineScore

col_nametypesdescription
GAME_DATE_ESTcharacterGame date est.
GAME_SEQUENCEcharacterGame sequence.
GAME_IDcharacterUnique game identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
TEAM_CITY_NAMEcharacter
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
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
PTScharacterPoints scored.
FG_PCTcharacterField goal percentage (0-1).
FT_PCTcharacterFree throw percentage (0-1).
FG3_PCTcharacterThree-point field goal percentage (0-1).
ASTcharacterAssists.
REBcharacterTotal rebounds.
TOVcharacterTurnovers.

SeriesStandings

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
HOME_TEAM_IDcharacterUnique identifier for the home team.
VISITOR_TEAM_IDcharacter
GAME_DATE_ESTcharacterGame date est.
HOME_TEAM_WINScharacterHome team's team wins.
HOME_TEAM_LOSSEScharacterHome team's team losses.
SERIES_LEADERcharacter

LastMeeting

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
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_nametypesdescription
TEAM_IDcharacterUnique team identifier.
LEAGUE_IDcharacterLeague identifier ('10' = WNBA).
SEASON_IDcharacterUnique season identifier.
STANDINGSDATEcharacter
CONFERENCEcharacterConference.
TEAMcharacterTeam-side label or team identifier.
GcharacterGames played.
WcharacterWins.
LcharacterLosses.
W_PCTcharacter
HOME_RECORDcharacterHome win-loss record.
ROAD_RECORDcharacter

WestConfStandingsByDay

col_nametypesdescription
TEAM_IDcharacterUnique team identifier.
LEAGUE_IDcharacterLeague identifier ('10' = WNBA).
SEASON_IDcharacterUnique season identifier.
STANDINGSDATEcharacter
CONFERENCEcharacterConference.
TEAMcharacterTeam-side label or team identifier.
GcharacterGames played.
WcharacterWins.
LcharacterLosses.
W_PCTcharacter
HOME_RECORDcharacterHome win-loss record.
ROAD_RECORDcharacter

Available

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
PT_AVAILABLEcharacterPt available.

TeamLeaders

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
TEAM_NICKNAMEcharacterTeam nickname.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
PTS_PLAYER_IDcharacter
PTS_PLAYER_NAMEcharacter
PTScharacterPoints scored.
REB_PLAYER_IDcharacter
REB_PLAYER_NAMEcharacter
REBcharacterTotal rebounds.
AST_PLAYER_IDcharacter
AST_PLAYER_NAMEcharacter
ASTcharacterAssists.

TicketLinks

WinProbability

Details

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

Author

Saiem Gilani