Skip to main content
Version: 0.1.5

NBA — NBA Stats API (stats.nba.com) — Box scores: boxscoretraditionalv3–boxscoreusagev3

nba_stats_boxscoretraditionalv3​

GET /stats/boxscoretraditionalv3

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

Valid URL: https://stats.nba.com/stats/boxscoretraditionalv3?EndPeriod=14&EndRange=0&GameID=0022200021&RangeType=0&StartPeriod=0&StartRange=0

API ParameterPythonPatternRequiredNullableDescription
EndPeriodend_periodY
EndRangeend_rangeY
GameIDgame_idY
RangeTyperange_typeY
StartPeriodstart_periodY
StartRangestart_rangeY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (PlayerStats, TeamStats) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

PlayerStats

col_nametypedescription
game_idcharacterUnique 10-character game identifier from the league's stats API.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_tricodecharacterThree-letter team abbreviation.
team_slugcharacterURL-friendly slug for the team name.
person_idintegerPlayer identifier from the league's stats API.
first_namecharacterPlayer's first name.
family_namecharacterPlayer's family (last) name.
name_icharacterAbbreviated player name (first initial and last name).
player_slugcharacterURL-friendly slug for the player's name.
positioncharacterListed roster position (G, F, C, etc.).
commentcharacterPlayer status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive').
jersey_numcharacterPlayer's jersey number.
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
field_goals_madeintegerField goals made recorded in the game.
field_goals_attemptedintegerField goal attempts recorded in the game.
field_goals_percentagenumericField goal percentage for the game, as a decimal.
three_pointers_madeintegerThree-pointers made recorded in the game.
three_pointers_attemptedintegerThree-point attempts recorded in the game.
three_pointers_percentagenumericThree-point percentage for the game, as a decimal.
free_throws_madeintegerFree throws made recorded in the game.
free_throws_attemptedintegerFree throw attempts recorded in the game.
free_throws_percentagenumericFree throw percentage for the game, as a decimal.
rebounds_offensiveintegerOffensive rebounds recorded in the game.
rebounds_defensiveintegerDefensive rebounds recorded in the game.
rebounds_totalintegerTotal rebounds recorded in the game.
assistsintegerTotal assists.
stealsintegerTotal steals.
blocksintegerTotal blocks.
turnoversintegerTotal turnovers.
fouls_personalintegerPersonal fouls recorded in the game.
pointsintegerPoints scored.
plus_minus_pointsnumericTeam point differential while the player was on the floor (plus-minus).

TeamStats

col_nametypedescription
game_idcharacterUnique 10-character game identifier from the league's stats API.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_tricodecharacterThree-letter team abbreviation.
team_slugcharacterURL-friendly slug for the team name.
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
field_goals_madeintegerField goals made recorded in the game.
field_goals_attemptedintegerField goal attempts recorded in the game.
field_goals_percentagenumericField goal percentage for the game, as a decimal.
three_pointers_madeintegerThree-pointers made recorded in the game.
three_pointers_attemptedintegerThree-point attempts recorded in the game.
three_pointers_percentagenumericThree-point percentage for the game, as a decimal.
free_throws_madeintegerFree throws made recorded in the game.
free_throws_attemptedintegerFree throw attempts recorded in the game.
free_throws_percentagenumericFree throw percentage for the game, as a decimal.
rebounds_offensiveintegerOffensive rebounds recorded in the game.
rebounds_defensiveintegerDefensive rebounds recorded in the game.
rebounds_totalintegerTotal rebounds recorded in the game.
assistsintegerTotal assists.
stealsintegerTotal steals.
blocksintegerTotal blocks.
turnoversintegerTotal turnovers.
fouls_personalintegerPersonal fouls recorded in the game.
pointsintegerPoints scored.
plus_minus_pointsnumericTeam point differential while the player was on the floor (plus-minus).

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

Example​

nba_stats_boxscoretraditionalv3()

Last validated n/a.

nba_stats_boxscoreusagev3​

GET /stats/boxscoreusagev3

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

Valid URL: https://stats.nba.com/stats/boxscoreusagev3?EndPeriod=14&EndRange=0&GameID=0022200021&RangeType=0&StartPeriod=0&StartRange=0

API ParameterPythonPatternRequiredNullableDescription
EndPeriodend_periodY
EndRangeend_rangeY
GameIDgame_idY
RangeTyperange_typeY
StartPeriodstart_periodY
StartRangestart_rangeY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (PlayerStats, TeamStats) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

PlayerStats

col_nametypedescription
game_idcharacterUnique 10-character game identifier from the league's stats API.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_tricodecharacterThree-letter team abbreviation.
team_slugcharacterURL-friendly slug for the team name.
person_idintegerPlayer identifier from the league's stats API.
first_namecharacterPlayer's first name.
family_namecharacterPlayer's family (last) name.
name_icharacterAbbreviated player name (first initial and last name).
player_slugcharacterURL-friendly slug for the player's name.
positioncharacterListed roster position (G, F, C, etc.).
commentcharacterPlayer status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive').
jersey_numcharacterPlayer's jersey number.
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
usage_percentagenumericPercentage of team plays used by the player while on the floor, as a decimal.
percentage_field_goals_madenumericShare of the team's field goals made accounted for by the player while on the floor, as a decimal.
percentage_field_goals_attemptednumericShare of the team's field goal attempts accounted for by the player while on the floor, as a decimal.
percentage_three_pointers_madenumericShare of the team's three-pointers made accounted for by the player while on the floor, as a decimal.
percentage_three_pointers_attemptednumericShare of the team's three-point attempts accounted for by the player while on the floor, as a decimal.
percentage_free_throws_madenumericShare of the team's free throws made accounted for by the player while on the floor, as a decimal.
percentage_free_throws_attemptednumericShare of the team's free throw attempts accounted for by the player while on the floor, as a decimal.
percentage_rebounds_offensivenumericShare of the team's offensive rebounds accounted for by the player while on the floor, as a decimal.
percentage_rebounds_defensivenumericShare of the team's defensive rebounds accounted for by the player while on the floor, as a decimal.
percentage_rebounds_totalnumericShare of the team's total rebounds accounted for by the player while on the floor, as a decimal.
percentage_assistsnumericShare of the team's assists accounted for by the player while on the floor, as a decimal.
percentage_turnoversnumericShare of the team's turnovers accounted for by the player while on the floor, as a decimal.
percentage_stealsnumericShare of the team's steals accounted for by the player while on the floor, as a decimal.
percentage_blocksnumericShare of the team's blocked shots accounted for by the player while on the floor, as a decimal.
percentage_blocks_allowednumericShare of the team's shot attempts blocked by opponents accounted for by the player while on the floor, as a decimal.
percentage_personal_foulsnumericShare of the team's personal fouls accounted for by the player while on the floor, as a decimal.
percentage_personal_fouls_drawnnumericShare of the team's personal fouls drawn accounted for by the player while on the floor, as a decimal.
percentage_pointsnumericShare of the team's points accounted for by the player while on the floor, as a decimal.

TeamStats

col_nametypedescription
game_idcharacterUnique 10-character game identifier from the league's stats API.
away_team_idintegerUnique identifier for the away team.
home_team_idintegerUnique identifier for the home team.
team_idintegerUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_tricodecharacterThree-letter team abbreviation.
team_slugcharacterURL-friendly slug for the team name.
minutescharacterMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
usage_percentagenumericPercentage of team plays used by the player while on the floor, as a decimal.
percentage_field_goals_madenumericShare of the team's field goals made accounted for by the player while on the floor, as a decimal.
percentage_field_goals_attemptednumericShare of the team's field goal attempts accounted for by the player while on the floor, as a decimal.
percentage_three_pointers_madenumericShare of the team's three-pointers made accounted for by the player while on the floor, as a decimal.
percentage_three_pointers_attemptednumericShare of the team's three-point attempts accounted for by the player while on the floor, as a decimal.
percentage_free_throws_madenumericShare of the team's free throws made accounted for by the player while on the floor, as a decimal.
percentage_free_throws_attemptednumericShare of the team's free throw attempts accounted for by the player while on the floor, as a decimal.
percentage_rebounds_offensivenumericShare of the team's offensive rebounds accounted for by the player while on the floor, as a decimal.
percentage_rebounds_defensivenumericShare of the team's defensive rebounds accounted for by the player while on the floor, as a decimal.
percentage_rebounds_totalnumericShare of the team's total rebounds accounted for by the player while on the floor, as a decimal.
percentage_assistsnumericShare of the team's assists accounted for by the player while on the floor, as a decimal.
percentage_turnoversnumericShare of the team's turnovers accounted for by the player while on the floor, as a decimal.
percentage_stealsnumericShare of the team's steals accounted for by the player while on the floor, as a decimal.
percentage_blocksnumericShare of the team's blocked shots accounted for by the player while on the floor, as a decimal.
percentage_blocks_allowednumericShare of the team's shot attempts blocked by opponents accounted for by the player while on the floor, as a decimal.
percentage_personal_foulsnumericShare of the team's personal fouls accounted for by the player while on the floor, as a decimal.
percentage_personal_fouls_drawnnumericShare of the team's personal fouls drawn accounted for by the player while on the floor, as a decimal.
percentage_pointsnumericShare of the team's points accounted for by the player while on the floor, as a decimal.

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

Example​

nba_stats_boxscoreusagev3()

Last validated n/a.