Skip to main content

NBA — NBA Stats API (stats.nba.com) — Scoreboard

nba_stats_scoreboardv2​

GET /stats/scoreboardv2

Endpoint URL: GET https://stats.nba.com/stats/scoreboardv2

Valid URL: https://stats.nba.com/stats/scoreboardv2?DayOffset=0&GameDate=2021-07-20&LeagueID=00

API ParameterPythonPatternRequiredNullableDescription
DayOffsetday_offsetY
GameDategame_dateY
LeagueIDleague_idY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (GameHeader, LineScore, SeriesStandings, LastMeeting, EastConfStandingsByDay, WestConfStandingsByDay, Available, TeamLeaders, TicketLinks) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

GameHeader

col_nametypedescription
game_date_estcharacterGame date est.
game_sequenceintegerGame sequence.
game_idcharacterUnique game identifier.
game_status_idintegerNumeric game status identifier.
game_status_textcharacterGame status display text (e.g. 'Final', '4:32 - 4th').
gamecodecharacterGamecode.
home_team_idintegerUnique identifier for the home team.
visitor_team_idintegerUnique identifier for visitor team.
seasoncharacterSeason year.
live_periodintegerLive period.
live_pc_timecharacterTime / clock value.
natl_tv_broadcaster_abbreviationcharacterNatl tv broadcaster abbreviation.
home_tv_broadcaster_abbreviationcharacterHome team's tv broadcaster abbreviation.
away_tv_broadcaster_abbreviationcharacterAway team's tv broadcaster abbreviation.
live_period_time_bcastcharacterLive period time bcast.
arena_namecharacterArena name.
wh_statusintegerWh status.
wnba_commissioner_flaginteger

LineScore

col_nametypedescription
game_date_estcharacterGame date est.
game_sequenceintegerGame sequence.
game_idcharacterUnique game identifier.
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_city_namecharacterTeam city name.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_wins_lossescharacterTeam wins losses.
pts_qtr1integerPts qtr1.
pts_qtr2integerPts qtr2.
pts_qtr3integerPts qtr3.
pts_qtr4integerPts qtr4.
pts_ot1integerPts ot1.
pts_ot2integerPoints scored by the team in overtime period 2.
pts_ot3integerPoints scored by the team in overtime period 3.
pts_ot4integerPoints scored by the team in overtime period 4.
pts_ot5integerPoints scored by the team in overtime period 5.
pts_ot6integerPoints scored by the team in overtime period 6.
pts_ot7integerPoints scored by the team in overtime period 7.
pts_ot8integerPoints scored by the team in overtime period 8.
pts_ot9integerPoints scored by the team in overtime period 9.
pts_ot10integerPoints scored by the team in overtime period 10.
ptsintegerPoints scored.
fg_pctnumericField goal percentage (0-1).
ft_pctnumericFree throw percentage (0-1).
fg3_pctnumericThree-point field goal percentage (0-1).
astintegerAssists.
rebintegerRebounds per game.
tovintegerTurnovers.

SeriesStandings

col_nametypedescription
game_idcharacterUnique game identifier.
home_team_idintegerUnique identifier for the home team.
visitor_team_idintegerUnique identifier for visitor team.
game_date_estcharacterGame date est.
home_team_winsintegerHome team's team wins.
home_team_lossesintegerHome team's team losses.
series_leadercharacter

LastMeeting

col_nametypedescription
game_idcharacterUnique game identifier.
last_game_idcharacter
last_game_date_estcharacter
last_game_home_team_idinteger
last_game_home_team_citycharacter
last_game_home_team_namecharacter
last_game_home_team_abbreviationcharacter
last_game_home_team_pointsinteger
last_game_visitor_team_idinteger
last_game_visitor_team_citycharacter
last_game_visitor_team_namecharacter
last_game_visitor_team_city1character
last_game_visitor_team_pointsinteger

EastConfStandingsByDay

col_nametypedescription
team_idintegerUnique team identifier.
league_idcharacterLeague identifier ('10' = WNBA).
season_idcharacterUnique season identifier.
standingsdatecharacter
conferencecharacterConference name.
teamcharacterTeam-side label or team identifier.
gintegerGames played.
wintegerWins.
lintegerLosses.
w_pctnumericWins percentage (0-1 decimal).
home_recordcharacterHome win-loss record.
road_recordcharacterWin-loss record for road.

WestConfStandingsByDay

col_nametypedescription
team_idintegerUnique team identifier.
league_idcharacterLeague identifier ('10' = WNBA).
season_idcharacterUnique season identifier.
standingsdatecharacter
conferencecharacterConference name.
teamcharacterTeam-side label or team identifier.
gintegerGames played.
wintegerWins.
lintegerLosses.
w_pctnumericWins percentage (0-1 decimal).
home_recordcharacterHome win-loss record.
road_recordcharacterWin-loss record for road.

Available

col_nametypedescription
game_idcharacterUnique game identifier.
pt_availableintegerPt available.

TeamLeaders

col_nametypedescription
game_idcharacterUnique game identifier.
team_idintegerUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_nicknamecharacterTeam nickname.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
pts_player_idinteger
pts_player_namecharacter
ptsintegerPoints scored.
reb_player_idinteger
reb_player_namecharacter
rebintegerRebounds per game.
ast_player_idinteger
ast_player_namecharacter
astintegerAssists.

TicketLinks

col_nametypedescription
game_idcharacterUnique game identifier.
leag_tixcharacter

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

nba_stats_scoreboardv2(league_id='00')

Last validated n/a.

nba_stats_scoreboardv3​

GET /stats/scoreboardv3

Endpoint URL: GET https://stats.nba.com/stats/scoreboardv3

Valid URL: https://stats.nba.com/stats/scoreboardv3?GameDate=2023-03-26&LeagueID=00

API ParameterPythonPatternRequiredNullableDescription
GameDategame_dateY
LeagueIDleague_idY

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
awayteam_inbonuscharacterWhether the away team is currently in the bonus (penalty) foul situation.
awayteam_lossesintegerAway team's loss total entering the game.
awayteam_scoreintegerCurrent or final points scored by the away team.
awayteam_seedintegerPlayoff seed of the away team, populated for postseason games.
awayteam_teamcitycharacterCity name of the away team.
awayteam_teamidintegerTeam identifier of the away team from the league's stats API.
awayteam_teamnamecharacterNickname of the away team.
awayteam_teamslugcharacterURL-friendly slug for the away team's name.
awayteam_teamtricodecharacterThree-letter abbreviation of the away team.
awayteam_timeoutsremainingintegerTimeouts the away team has remaining.
awayteam_winsintegerAway team's win total entering the game.
gameclockcharacterCurrent game clock display for a live game.
gamecodecharacterGamecode.
gamedatecharacterGame date the scoreboard was requested for (YYYY-MM-DD).
gameetcharacterScheduled game start time in US Eastern time.
gameidcharacterUnique 10-character game identifier from the league's stats API.
gamelabelcharacterDisplay label for the game (e.g. a playoff series or event name).
gameleaders_awayleaders_assistsintegerAssist total of the away team's in-game statistical leader.
gameleaders_awayleaders_jerseynumcharacterJersey number of the away team's in-game statistical leader.
gameleaders_awayleaders_namecharacterName of the away team's in-game statistical leader.
gameleaders_awayleaders_personidintegerStats API player id of the away team's in-game statistical leader.
gameleaders_awayleaders_playerslugcharacterURL name slug of the away team's in-game statistical leader.
gameleaders_awayleaders_pointsintegerPoint total of the away team's in-game statistical leader.
gameleaders_awayleaders_positioncharacterPosition of the away team's in-game statistical leader.
gameleaders_awayleaders_reboundsintegerRebound total of the away team's in-game statistical leader.
gameleaders_awayleaders_teamtricodecharacterTeam tricode of the away team's in-game statistical leader.
gameleaders_homeleaders_assistsintegerAssist total of the home team's in-game statistical leader.
gameleaders_homeleaders_jerseynumcharacterJersey number of the home team's in-game statistical leader.
gameleaders_homeleaders_namecharacterName of the home team's in-game statistical leader.
gameleaders_homeleaders_personidintegerStats API player id of the home team's in-game statistical leader.
gameleaders_homeleaders_playerslugcharacterURL name slug of the home team's in-game statistical leader.
gameleaders_homeleaders_pointsintegerPoint total of the home team's in-game statistical leader.
gameleaders_homeleaders_positioncharacterPosition of the home team's in-game statistical leader.
gameleaders_homeleaders_reboundsintegerRebound total of the home team's in-game statistical leader.
gameleaders_homeleaders_teamtricodecharacterTeam tricode of the home team's in-game statistical leader.
gamestatusintegerNumeric game status code (1 = scheduled, 2 = in progress, 3 = final).
gamestatustextcharacterHuman-readable game status (e.g. "Final", "7:00 pm ET").
gamesublabelcharacterSecondary display label for the game (e.g. game number within a series).
gamesubtypecharacterSubtype code for the game as reported by the stats API (e.g. in-season tournament flags).
gametimeutccharacterScheduled game start time in UTC.
hometeam_inbonuscharacterWhether the home team is currently in the bonus (penalty) foul situation.
hometeam_lossesintegerHome team's loss total entering the game.
hometeam_scoreintegerCurrent or final points scored by the home team.
hometeam_seedintegerPlayoff seed of the home team, populated for postseason games.
hometeam_teamcitycharacterCity name of the home team.
hometeam_teamidintegerTeam identifier of the home team from the league's stats API.
hometeam_teamnamecharacterNickname of the home team.
hometeam_teamslugcharacterURL-friendly slug for the home team's name.
hometeam_teamtricodecharacterThree-letter abbreviation of the home team.
hometeam_timeoutsremainingintegerTimeouts the home team has remaining.
hometeam_winsintegerHome team's win total entering the game.
ifnecessarylogicalWhether the game is an if-necessary playoff series game.
isneutrallogicalWhether the game is played at a neutral site.
leagueidcharacterLeague identifier from the stats API ("00" = NBA, "10" = WNBA).
leaguenamecharacterDisplay name of the league.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
porounddesccharacterPlayoff round description (e.g. Conference Finals).
regulationperiodsintegerNumber of regulation periods for the game (4).
seriesconferencecharacterConference of the playoff series the game belongs to.
seriesgamenumbercharacterGame number within the playoff series.
seriestextcharacterDisplay text summarizing the series state (e.g. "BOS leads 2-1").
teamleaders_awayleaders_assistsnumericAssist total of the away team's season statistical leader.
teamleaders_awayleaders_jerseynumcharacterJersey number of the away team's season statistical leader.
teamleaders_awayleaders_namecharacterName of the away team's season statistical leader.
teamleaders_awayleaders_personidintegerStats API player id of the away team's season statistical leader.
teamleaders_awayleaders_playerslugcharacterURL name slug of the away team's season statistical leader.
teamleaders_awayleaders_pointsnumericPoint total of the away team's season statistical leader.
teamleaders_awayleaders_positioncharacterPosition of the away team's season statistical leader.
teamleaders_awayleaders_reboundsnumericRebound total of the away team's season statistical leader.
teamleaders_awayleaders_teamtricodecharacterTeam tricode of the away team's season statistical leader.
teamleaders_homeleaders_assistsnumericAssist total of the home team's season statistical leader.
teamleaders_homeleaders_jerseynumcharacterJersey number of the home team's season statistical leader.
teamleaders_homeleaders_namecharacterName of the home team's season statistical leader.
teamleaders_homeleaders_personidintegerStats API player id of the home team's season statistical leader.
teamleaders_homeleaders_playerslugcharacterURL name slug of the home team's season statistical leader.
teamleaders_homeleaders_pointsnumericPoint total of the home team's season statistical leader.
teamleaders_homeleaders_positioncharacterPosition of the home team's season statistical leader.
teamleaders_homeleaders_reboundsnumericRebound total of the home team's season statistical leader.
teamleaders_homeleaders_teamtricodecharacterTeam tricode of the home team's season statistical leader.
teamleaders_seasonleadersflagintegerFlag indicating the team-leaders block carries season-long leaders rather than in-game leaders.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

nba_stats_scoreboardv3(league_id='00')

Last validated n/a.