Skip to main content

NBA — NBA Stats API (stats.nba.com) — Other: alltimeleadersgrids–playbyplayv3

nba_stats_alltimeleadersgrids​

All time leaders grids.

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

Valid URL: https://stats.nba.com/stats/alltimeleadersgrids?LeagueID=00&PerMode=PerGame&SeasonType=Regular+Season&TopX=10

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
PerModeper_mode_simpleY
SeasonTypeseason_typeYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
TopXtopxY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (GPLeaders, PTSLeaders, ASTLeaders, STLLeaders, OREBLeaders, DREBLeaders, REBLeaders, BLKLeaders, FGMLeaders, FGALeaders, FG_PCTLeaders, TOVLeaders, FG3MLeaders, FG3ALeaders, FG3_PCTLeaders, PFLeaders, FTMLeaders, FTALeaders, FT_PCTLeaders) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

GPLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
gpInt64Games played.
gp_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

PTSLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
ptsFloat64Points scored.
pts_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

ASTLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
astFloat64Assists.
ast_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

STLLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
stlFloat64Steals.
stl_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

OREBLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
orebFloat64Offensive rebounds.
oreb_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

DREBLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
drebFloat64Defensive rebounds.
dreb_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

REBLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
rebFloat64Rebounds per game.
reb_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

BLKLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
blkFloat64Blocks.
blk_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FGMLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fgmFloat64Field goals made.
fgm_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FGALeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fgaFloat64Field goal attempts.
fga_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FG_PCTLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fg_pctFloat64Field goal percentage (0-1).
fg_pct_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

TOVLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
tovFloat64Turnovers.
tov_rankInt64All-time league rank of the player's career turnover total on the leaders grid.
is_active_flagStringFlag indicating whether the player is currently active in the league.

FG3MLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fg3_mFloat64Three-point field goals made.
fg3_m_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FG3ALeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fg3_aFloat64Three-point field goal attempts.
fg3_a_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FG3_PCTLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fg3_pctFloat64Three-point field goal percentage (0-1).
fg3_pct_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

PFLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
pfFloat64Personal fouls.
pf_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FTMLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
ftmFloat64Free throws made.
ftm_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FTALeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
ftaFloat64Free throw attempts.
fta_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

FT_PCTLeaders

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
ft_pctFloat64Free throw percentage (0-1).
ft_pct_rankInt64
is_active_flagStringFlag indicating whether the player is currently active in the league.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_alltimeleadersgrids(league_id='00')

nba_stats_assistleaders​

Assist leaders.

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

Valid URL: https://stats.nba.com/stats/assistleaders?LeagueID=00&PerMode=PerGame&PlayerOrTeam=Team&Season=2024-25&SeasonType=Regular+Season

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
PerModeper_mode_simpleY
PlayerOrTeamplayer_or_teamY
SeasonseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonTypeseason_type_playoffsYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).

Returns​

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

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
astFloat64Assists.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_assistleaders(league_id='00', season='2024-25')

nba_stats_assisttracker​

Assist tracker.

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

Valid URL: https://stats.nba.com/stats/assisttracker?LeagueID=00&OpponentTeamID=0&PerMode=PerGame&Season=2024-25&SeasonType=Regular+Season&TeamID=0

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableY
Conferenceconference_nullableY
Countrycountry_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_simple_nullableY
DraftPickdraft_pick_nullableY
DraftYeardraft_year_nullableY
GameScopegame_scope_simple_nullableY
Heightheight_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simple_nullableY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
Seasonseason_nullableYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_all_star_nullableYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY
Weightweight_nullableY

Returns​

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

col_nametypedescription
assistsFloat64Total assists.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_assisttracker(league_id='00', season_nullable='2024-25')

nba_stats_drafthistory​

Draft history.

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

Valid URL: https://stats.nba.com/stats/drafthistory?College=&LeagueID=00&OverallPick=&RoundNum=&RoundPick=&Season=2024&TeamID=0&TopX=

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableY
LeagueIDleague_idY
OverallPickoverall_pick_nullableY
RoundNumround_num_nullableY
RoundPickround_pick_nullableY
Seasonseason_year_nullableYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
TeamIDteam_id_nullableY
TopXtopx_nullableY

Returns​

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

col_nametypedescription
person_idInt64Unique player identifier (V3 endpoints).
player_nameStringPlayer name.
seasonStringSeason year.
round_numberInt64Numeric round.
round_pickInt64Round pick.
overall_pickInt64Overall pick.
draft_typeStringNBA or WNBA Stats value for draft type in the drafthistory result set.
team_idInt64Unique team identifier.
team_cityStringTeam city or region (e.g. 'Las Vegas').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
organizationStringOrganization.
organization_typeStringOrganization type.
player_profile_flagInt64Player profile flag.

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

Raises​

ExceptionDescription
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]). curl_cffi is not installed. stats.nba.com/stats.wnba.com TLS-fingerprint-block plain requests, so the live transport requires it (pip install curl_cffi, or pip install sportsdataverse[all]).
NoDataErrorThe host answered 404 -- the requested resource does not exist. The host answered HTTP 404.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The host answered HTTP 400 / 422 (it rejected a parameter value).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other non-2xx (401 / 403 / 429 / 5xx; a missing required Season draws an empty HTTP 500), a blank or non-JSON 2xx body, or a connection failure (timeout, reset), once SDV_PY_NBA_STATS_RETRIES retries are exhausted.

Example​

nba_stats_drafthistory(league_id='00', season_year_nullable='2024')

nba_stats_fantasywidget​

Fantasy widget.

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

Valid URL: https://stats.nba.com/stats/fantasywidget?ActivePlayers=N&DateFrom=&DateTo=&LastNGames=0&LeagueID=00&Location=&Month=&OpponentTeamID=0&PORound=&PlayerID=&Position=&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&TodaysOpponent=0&TodaysPlayers=N&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
ActivePlayersactive_playersY
DateFromdate_from_nullableY
DateTodate_to_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
PORoundpo_round_nullableY
PlayerIDplayer_id_nullableY
Positionposition_nullableY
SeasonseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_all_starYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
TeamIDteam_id_nullableY
TodaysOpponenttodays_opponentY
TodaysPlayerstodays_playersY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
gpInt64Games played.
minFloat64Minutes played.
fan_duel_ptsFloat64Fantasy points under FanDuel's scoring formula.
nba_fantasy_ptsFloat64Fantasy points under the NBA's fantasy scoring formula.
ptsFloat64Points scored.
rebFloat64Rebounds per game.
astFloat64Assists.
blkFloat64Blocks.
stlFloat64Steals.
tovFloat64Turnovers.
fg3_mFloat64Three-point field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
ftaFloat64Free throw attempts.
ft_pctFloat64Free throw percentage (0-1).

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_fantasywidget(league_id='00', season='2024-25')

nba_stats_gamerotation​

Game rotation.

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

Valid URL: https://stats.nba.com/stats/gamerotation?GameID=0022200021&LeagueID=00

API ParameterPythonPatternRequiredNullableDescription
GameIDgame_idY
LeagueIDleague_idY

Returns​

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

AwayTeam

col_nametypedescription
game_idStringUnique game identifier.
team_idInt64Unique team identifier.
team_cityStringTeam city or region (e.g. 'Las Vegas').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
person_idInt64Unique player identifier (V3 endpoints).
player_firstStringNBA or WNBA Stats value for player first in the gamerotation result set.
player_lastStringNBA or WNBA Stats value for player last in the gamerotation result set.
in_time_realFloat64Real-time clock value when the player entered the game rotation stint.
out_time_realFloat64Real-time clock value when the player exited the game rotation stint.
player_ptsInt64Scoring or score-margin metric for player points in the requested NBA or WNBA Stats split.
pt_diffFloat64NBA or WNBA Stats value for pt diff in the gamerotation result set.
usg_pctFloat64Percentage or rate for usage percentage in the requested NBA or WNBA Stats split.

HomeTeam

col_nametypedescription
game_idStringUnique game identifier.
team_idInt64Unique team identifier.
team_cityStringTeam city or region (e.g. 'Las Vegas').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
person_idInt64Unique player identifier (V3 endpoints).
player_firstStringNBA or WNBA Stats value for player first in the gamerotation result set.
player_lastStringNBA or WNBA Stats value for player last in the gamerotation result set.
in_time_realFloat64Real-time clock value when the player entered the game rotation stint.
out_time_realFloat64Real-time clock value when the player exited the game rotation stint.
player_ptsInt64Scoring or score-margin metric for player points in the requested NBA or WNBA Stats split.
pt_diffFloat64NBA or WNBA Stats value for pt diff in the gamerotation result set.
usg_pctFloat64Percentage or rate for usage percentage in the requested NBA or WNBA Stats split.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_gamerotation(league_id='00')

nba_stats_homepageleaders​

Homepage leaders.

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

Valid URL: https://stats.nba.com/stats/homepageleaders?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2024-25&SeasonType=Regular+Season&StatCategory=Points

API ParameterPythonPatternRequiredNullableDescription
GameScopegame_scope_detailedY
LeagueIDleague_idY
PlayerOrTeamplayer_or_teamY
PlayerScopeplayer_scopeY
SeasonseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonTypeseason_type_playoffsYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
StatCategorystat_categoryY

Returns​

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

HomePageLeaders

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
team_idInt64Unique team identifier.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
ptsFloat64Points scored.
fg_pctFloat64Field goal percentage (0-1).
fg3_pctFloat64Three-point field goal percentage (0-1).
ft_pctFloat64Free throw percentage (0-1).
efg_pctFloat64Effective field goal percentage, as a decimal.
ts_pctFloat64True shooting percentage (0-1).
pts_per48Float64Points scored per 48 minutes played.

LeagueAverage

col_nametypedescription
ptsFloat64Points scored.
fg_pctFloat64Field goal percentage (0-1).
fg3_pctFloat64Three-point field goal percentage (0-1).
ft_pctFloat64Free throw percentage (0-1).
efg_pctFloat64Effective field goal percentage, as a decimal.
ts_pctFloat64True shooting percentage (0-1).
pts_per48Float64Points scored per 48 minutes played.

LeagueMax

col_nametypedescription
ptsFloat64Points scored.
fg_pctFloat64Field goal percentage (0-1).
fg3_pctFloat64Three-point field goal percentage (0-1).
ft_pctFloat64Free throw percentage (0-1).
efg_pctFloat64Effective field goal percentage, as a decimal.
ts_pctFloat64True shooting percentage (0-1).
pts_per48Float64Points scored per 48 minutes played.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_homepageleaders(league_id='00', season='2024-25')

nba_stats_homepagev2​

Homepage v2.

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

Valid URL: https://stats.nba.com/stats/homepagev2?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2024-25&SeasonType=Regular+Season&StatType=Traditional

API ParameterPythonPatternRequiredNullableDescription
GameScopegame_scope_detailedY
LeagueIDleague_idY
PlayerOrTeamplayer_or_teamY
PlayerScopeplayer_scopeY
SeasonseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonTypeseason_type_playoffsYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
StatTypestat_typeY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (HomePageStat1, HomePageStat2, HomePageStat3, HomePageStat4, HomePageStat5, HomePageStat6, HomePageStat7, HomePageStat8) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

HomePageStat1

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
ptsFloat64Points scored.

HomePageStat2

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
rebFloat64Rebounds per game.

HomePageStat3

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
astFloat64Assists.

HomePageStat4

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
stlFloat64Steals.

HomePageStat5

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
fg_pctFloat64Field goal percentage (0-1).

HomePageStat6

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
ft_pctFloat64Free throw percentage (0-1).

HomePageStat7

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
fg3_pctFloat64Three-point field goal percentage (0-1).

HomePageStat8

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
blkFloat64Blocks.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_homepagev2(league_id='00', season='2024-25')

nba_stats_hustlestatsboxscore​

Hustle stats box score.

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

Valid URL: https://stats.nba.com/stats/hustlestatsboxscore?GameID=0022200021

API ParameterPythonPatternRequiredNullableDescription
GameIDgame_idY

Returns​

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

HustleStatsAvailable

col_nametypedescription
game_idStringUnique game identifier.
hustle_statusInt64Hustle status.

PlayerStats

col_nametypedescription
game_idStringUnique game identifier.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_cityStringTeam city or region (e.g. 'Las Vegas').
player_idInt64Unique player identifier.
player_nameStringPlayer name.
start_positionStringPosition the player started the game at (F, C, or G); empty for reserves.
commentStringPlayer status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive').
minutesStringMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
ptsInt64Points scored.
contested_shotsFloat64Defensively contested shots.
contested_shots_2_ptFloat64Opponent two-point attempts contested.
contested_shots_3_ptFloat64Opponent three-point attempts contested.
deflectionsFloat64Defensive deflections.
charges_drawnFloat64Charges drawn.
screen_assistsFloat64Screen assists (resulting in a basket).
screen_ast_ptsFloat64Points teammates scored directly off the row's screen assists.
off_loose_balls_recoveredFloat64Loose balls recovered while on offense.
def_loose_balls_recoveredFloat64Loose balls recovered while on defense.
loose_balls_recoveredFloat64Total loose balls recovered.
off_boxoutsFloat64Box-outs recorded on the offensive glass.
def_boxoutsFloat64Box-outs recorded on the defensive glass.
box_out_player_team_rebsFloat64Team rebounds secured following the row's box-outs.
box_out_player_rebsFloat64Rebounds the player secured directly off their own box-outs.
box_outsFloat64Box-outs executed.

TeamStats

col_nametypedescription
game_idStringUnique game identifier.
team_idInt64Unique team identifier.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_cityStringTeam city or region (e.g. 'Las Vegas').
minutesStringMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
ptsInt64Points scored.
contested_shotsFloat64Defensively contested shots.
contested_shots_2_ptFloat64Opponent two-point attempts contested.
contested_shots_3_ptFloat64Opponent three-point attempts contested.
deflectionsFloat64Defensive deflections.
charges_drawnFloat64Charges drawn.
screen_assistsFloat64Screen assists (resulting in a basket).
screen_ast_ptsFloat64Points teammates scored directly off the row's screen assists.
off_loose_balls_recoveredFloat64Loose balls recovered while on offense.
def_loose_balls_recoveredFloat64Loose balls recovered while on defense.
loose_balls_recoveredFloat64Total loose balls recovered.
off_boxoutsFloat64Box-outs recorded on the offensive glass.
def_boxoutsFloat64Box-outs recorded on the defensive glass.
box_out_player_team_rebsFloat64Team rebounds secured following the row's box-outs.
box_out_player_rebsFloat64Rebounds the player secured directly off their own box-outs.
box_outsFloat64Box-outs executed.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_hustlestatsboxscore()

nba_stats_infographicfanduelplayer​

Infographic fanduel player.

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

Valid URL: https://stats.nba.com/stats/infographicfanduelplayer?GameID=0022201086

API ParameterPythonPatternRequiredNullableDescription
GameIDgame_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
player_idInt64Unique player identifier.
player_nameStringPlayer name.
team_idInt64Unique team identifier.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
locationStringLocation.
fan_duel_ptsFloat64Scoring or score-margin metric for fan duel points in the requested NBA or WNBA Stats split.
nba_fantasy_ptsFloat64Nba fantasy points for the requested NBA or WNBA Stats split.
usg_pctFloat64Percentage or rate for usage percentage in the requested NBA or WNBA Stats split.
minFloat64Minutes played.
fgmInt64Field goals made.
fgaInt64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
fg3_mInt64Three-point field goals made.
fg3_aInt64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).
ftmInt64Free throws made.
ftaInt64Free throw attempts.
ft_pctFloat64Free throw percentage (0-1).
orebInt64Offensive rebounds.
drebInt64Defensive rebounds.
rebInt64Rebounds per game.
astInt64Assists.
tovInt64Turnovers.
stlInt64Steals.
blkInt64Blocks.
blkaInt64Blocked field-goal attempts against for the requested NBA or WNBA Stats split.
pfInt64Personal fouls.
pfdInt64Personal fouls drawn for the requested NBA or WNBA Stats split.
ptsInt64Points scored.
plus_minusInt64Plus/minus point differential while on court.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_infographicfanduelplayer()

nba_stats_leaderstiles​

Leaders tiles.

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

Valid URL: https://stats.nba.com/stats/leaderstiles?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2024-25&SeasonType=Regular+Season&Stat=PTS

API ParameterPythonPatternRequiredNullableDescription
GameScopegame_scope_detailedY
LeagueIDleague_idY
PlayerOrTeamplayer_or_teamY
PlayerScopeplayer_scopeY
SeasonseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonTypeseason_type_playoffsYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
StatstatY

Returns​

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

LeadersTiles

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
ptsFloat64Points scored.

AllTimeSeasonHigh

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
ptsFloat64Points scored.
season_yearStringSeason year string ('YYYY-YY' format).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').

LastSeasonHigh

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
ptsFloat64Points scored.

LowSeasonHigh

col_nametypedescription
player_idInt64Unique player identifier.
player_nameStringPlayer name.
ptsFloat64Points scored.
season_yearStringSeason year string ('YYYY-YY' format).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_leaderstiles(league_id='00', season='2024-25')

nba_stats_matchupsrollup​

Matchups rollup.

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

Valid URL: https://stats.nba.com/stats/matchupsrollup?DefPlayerID=&DefTeamID=0&LeagueID=00&OffPlayerID=&OffTeamID=0&PerMode=Totals&Season=2024-25&SeasonType=Regular+Season

API ParameterPythonPatternRequiredNullableDescription
DefPlayerIDdef_player_id_nullableY
DefTeamIDdef_team_id_nullableY
LeagueIDleague_idY
OffPlayerIDoff_player_id_nullableY
OffTeamIDoff_team_id_nullableY
PerModeper_mode_simpleY
SeasonseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
SeasonTypeseason_type_playoffsYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).

Returns​

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

col_nametypedescription
season_idStringUnique season identifier.
positionStringListed roster position (G, F, C, etc.).
percent_of_timeFloat64Time value for percent of time in the NBA or WNBA Stats result set.
def_player_idInt64Stats API identifier for defensive player identifier associated with this NBA or WNBA Stats row.
def_player_nameStringDisplay name for defensive player name associated with this NBA or WNBA Stats row.
gpInt64Games played.
matchup_minFloat64NBA or WNBA Stats value for matchup minutes in the matchupsrollup result set.
partial_possFloat64Estimated partial possessions credited to the stint or rotation interval.
player_ptsFloat64Scoring or score-margin metric for player points in the requested NBA or WNBA Stats split.
team_ptsFloat64Scoring or score-margin metric for team points in the requested NBA or WNBA Stats split.
matchup_astFloat64NBA or WNBA Stats value for matchup assists in the matchupsrollup result set.
matchup_tovFloat64Turnover or loose-ball metric for matchup turnovers in the requested NBA or WNBA Stats split.
matchup_blkFloat64NBA or WNBA Stats value for matchup blocks in the matchupsrollup result set.
matchup_fgmFloat64Shooting metric for matchup fgm in the requested NBA or WNBA Stats split.
matchup_fgaFloat64Shooting metric for matchup fga in the requested NBA or WNBA Stats split.
matchup_fg_pctFloat64Percentage or rate for matchup field goals percentage in the requested NBA or WNBA Stats split.
matchup_fg3_mFloat64Shooting metric for matchup fg3m in the requested NBA or WNBA Stats split.
matchup_fg3_aFloat64Shooting metric for matchup fg3a in the requested NBA or WNBA Stats split.
matchup_fg3_pctFloat64Percentage or rate for matchup three-point field goals percentage in the requested NBA or WNBA Stats split.
matchup_ftmFloat64NBA or WNBA Stats value for matchup ftm in the matchupsrollup result set.
matchup_ftaFloat64NBA or WNBA Stats value for matchup fta in the matchupsrollup result set.
sflFloat64NBA or WNBA Stats value for sfl in the matchupsrollup result set.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_matchupsrollup(league_id='00', season='2024-25')

nba_stats_playbyplayv3​

Play by play v3.

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

Valid URL: https://stats.nba.com/stats/playbyplayv3?EndPeriod=0&GameID=0022201086&StartPeriod=0

API ParameterPythonPatternRequiredNullableDescription
EndPeriodend_periodY
GameIDgame_idY
StartPeriodstart_periodY

Returns​

return_parsed=True (default) — the output of parse_nba_stats_result_sets; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: the committed capture tests/fixtures/nba_stats/endpoints/playbyplayv3.json is not a resultSets envelope (top-level keys: game, meta), which parse_nba_stats_result_sets does not read, so the parsed output is empty; use return_parsed=False for the raw payload.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

nba_stats_playbyplayv3()