Skip to main content

NBA — NBA Stats API (stats.nba.com) — Player dashboards: playerdashboardbyyearoveryear–playerdashptshots

nba_stats_playerdashboardbyyearoveryear​

Player dashboard by year over year.

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

Valid URL: https://stats.nba.com/stats/playerdashboardbyyearoveryear?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PORound=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerID=2544&PlusMinus=N&Rank=N&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_detailedY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerIDplayer_idY
PlusMinusplus_minusY
RankrankY
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_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).
ShotClockRangeshot_clock_range_nullableY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

OverallPlayerDashboard

col_nametypedescription
group_setStringName of the grouping family used for this dashboard or split row.
group_valueStringSpecific grouping value for this dashboard or split row.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
max_game_dateStringDate or timestamp for maximum game date in the NBA or WNBA Stats result set.
gpInt64Games played.
wInt64Wins.
lInt64Losses.
w_pctFloat64Wins percentage (0-1 decimal).
minFloat64Minutes played.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).
ftmFloat64Free throws made.
ftaFloat64Free throw attempts.
ft_pctFloat64Free throw percentage (0-1).
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
astFloat64Assists.
tovFloat64Turnovers.
stlFloat64Steals.
blkFloat64Blocks.
blkaFloat64Blocked field-goal attempts against for the requested NBA or WNBA Stats split.
pfFloat64Personal fouls.
pfdFloat64Personal fouls drawn for the requested NBA or WNBA Stats split.
ptsFloat64Points scored.
plus_minusFloat64Plus/minus point differential while on court.
nba_fantasy_ptsFloat64Nba fantasy points for the requested NBA or WNBA Stats split.
dd2Int64Double-doubles for the requested NBA or WNBA Stats split.
td3Int64Triple-doubles for the requested NBA or WNBA Stats split.
wnba_fantasy_ptsFloat64Wnba fantasy points for the requested NBA or WNBA Stats split.
gp_rankInt64Rank for games played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_rankInt64Rank for wins within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
l_rankInt64Rank for losses within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_pct_rankInt64Rank for winning percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
min_rankInt64Rank for minutes played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fgm_rankInt64Rank for field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fga_rankInt64Rank for field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg_pct_rankInt64Rank for field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_m_rankInt64Rank for three-point field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_a_rankInt64Rank for three-point field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_pct_rankInt64Rank for three-point field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ftm_rankInt64Rank for free throws made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fta_rankInt64Rank for free throws attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ft_pct_rankInt64Rank for free-throw percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
oreb_rankInt64Rank for offensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dreb_rankInt64Rank for defensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
reb_rankInt64Rank for total rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ast_rankInt64Rank for assists within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
tov_rankInt64Rank for turnovers within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
stl_rankInt64Rank for steals within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blk_rankInt64Rank for blocks within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blka_rankInt64Rank for blocked field-goal attempts against within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pf_rankInt64Rank for personal fouls within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pfd_rankInt64Rank for personal fouls drawn within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pts_rankInt64Rank for points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
plus_minus_rankInt64Rank for plus-minus within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
nba_fantasy_pts_rankInt64Rank for NBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dd2_rankInt64Rank for double-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
td3_rankInt64Rank for triple-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
wnba_fantasy_pts_rankInt64Rank for WNBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.

ByYearPlayerDashboard

col_nametypedescription
group_setStringName of the grouping family used for this dashboard or split row.
group_valueStringSpecific grouping value for this dashboard or split row.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
max_game_dateStringDate or timestamp for maximum game date in the NBA or WNBA Stats result set.
gpInt64Games played.
wInt64Wins.
lInt64Losses.
w_pctFloat64Wins percentage (0-1 decimal).
minFloat64Minutes played.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).
ftmFloat64Free throws made.
ftaFloat64Free throw attempts.
ft_pctFloat64Free throw percentage (0-1).
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
astFloat64Assists.
tovFloat64Turnovers.
stlFloat64Steals.
blkFloat64Blocks.
blkaFloat64Blocked field-goal attempts against for the requested NBA or WNBA Stats split.
pfFloat64Personal fouls.
pfdFloat64Personal fouls drawn for the requested NBA or WNBA Stats split.
ptsFloat64Points scored.
plus_minusFloat64Plus/minus point differential while on court.
nba_fantasy_ptsFloat64Nba fantasy points for the requested NBA or WNBA Stats split.
dd2Int64Double-doubles for the requested NBA or WNBA Stats split.
td3Int64Triple-doubles for the requested NBA or WNBA Stats split.
wnba_fantasy_ptsFloat64Wnba fantasy points for the requested NBA or WNBA Stats split.
gp_rankInt64Rank for games played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_rankInt64Rank for wins within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
l_rankInt64Rank for losses within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_pct_rankInt64Rank for winning percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
min_rankInt64Rank for minutes played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fgm_rankInt64Rank for field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fga_rankInt64Rank for field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg_pct_rankInt64Rank for field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_m_rankInt64Rank for three-point field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_a_rankInt64Rank for three-point field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_pct_rankInt64Rank for three-point field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ftm_rankInt64Rank for free throws made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fta_rankInt64Rank for free throws attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ft_pct_rankInt64Rank for free-throw percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
oreb_rankInt64Rank for offensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dreb_rankInt64Rank for defensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
reb_rankInt64Rank for total rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ast_rankInt64Rank for assists within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
tov_rankInt64Rank for turnovers within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
stl_rankInt64Rank for steals within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blk_rankInt64Rank for blocks within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blka_rankInt64Rank for blocked field-goal attempts against within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pf_rankInt64Rank for personal fouls within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pfd_rankInt64Rank for personal fouls drawn within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pts_rankInt64Rank for points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
plus_minus_rankInt64Rank for plus-minus within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
nba_fantasy_pts_rankInt64Rank for NBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dd2_rankInt64Rank for double-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
td3_rankInt64Rank for triple-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
wnba_fantasy_pts_rankInt64Rank for WNBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.

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_playerdashboardbyyearoveryear(league_id='00', season='2024-25')

nba_stats_playerdashptpass​

Player dash PT pass.

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

Valid URL: https://stats.nba.com/stats/playerdashptpass?DateFrom=&DateTo=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PerMode=Totals&PlayerID=2544&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PerModeper_mode_simpleY
PlayerIDplayer_idY
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_idY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

PassesMade

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
pass_typeStringPassing or assist metric for pass type in the requested NBA or WNBA Stats split.
gInt64Games played.
pass_toString
pass_teammate_player_idInt64Stats API identifier for pass teammate player identifier associated with this NBA or WNBA Stats row.
frequencyFloat64NBA or WNBA Stats value for frequency in the playerdashptpass result set.
passFloat64Passes per game to the paired teammate (PassesMade set) or received from the paired teammate (PassesReceived set).
astFloat64Assists.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

PassesReceived

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
pass_typeStringPassing or assist metric for pass type in the requested NBA or WNBA Stats split.
gInt64Games played.
pass_fromStringPassing or assist metric for pass from in the requested NBA or WNBA Stats split.
pass_teammate_player_idInt64Stats API identifier for pass teammate player identifier associated with this NBA or WNBA Stats row.
frequencyFloat64NBA or WNBA Stats value for frequency in the playerdashptpass result set.
passFloat64Passes per game to the paired teammate (PassesMade set) or received from the paired teammate (PassesReceived set).
astFloat64Assists.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal 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_playerdashptpass(league_id='00', season='2024-25')

nba_stats_playerdashptreb​

Player dash PT reb.

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

Valid URL: https://stats.nba.com/stats/playerdashptreb?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PerMode=Totals&Period=0&PlayerID=2544&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PerModeper_mode_simpleY
PeriodperiodY
PlayerIDplayer_idY
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_idY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

OverallRebounding

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
gInt64Games played.
overallStringOverall pick number.
reb_frequencyFloat64Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split.
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
c_orebFloat64Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split.
c_drebFloat64Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split.
c_rebFloat64Rebounding metric for c rebounds in the requested NBA or WNBA Stats split.
c_reb_pctFloat64Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split.
uc_orebFloat64Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split.
uc_drebFloat64Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split.
uc_rebFloat64Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split.
uc_reb_pctFloat64Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split.

ShotTypeRebounding

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gInt64Games played.
shot_type_rangeStringShooting metric for shot type range in the requested NBA or WNBA Stats split.
reb_frequencyFloat64Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split.
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
c_orebFloat64Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split.
c_drebFloat64Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split.
c_rebFloat64Rebounding metric for c rebounds in the requested NBA or WNBA Stats split.
c_reb_pctFloat64Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split.
uc_orebFloat64Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split.
uc_drebFloat64Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split.
uc_rebFloat64Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split.
uc_reb_pctFloat64Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split.

NumContestedRebounding

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gInt64Games played.
reb_num_contesting_rangeString
reb_frequencyFloat64Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split.
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
c_orebFloat64Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split.
c_drebFloat64Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split.
c_rebFloat64Rebounding metric for c rebounds in the requested NBA or WNBA Stats split.
c_reb_pctFloat64Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split.
uc_orebFloat64Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split.
uc_drebFloat64Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split.
uc_rebFloat64Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split.
uc_reb_pctFloat64Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split.

ShotDistanceRebounding

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gInt64Games played.
shot_dist_rangeString
reb_frequencyFloat64Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split.
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
c_orebFloat64Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split.
c_drebFloat64Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split.
c_rebFloat64Rebounding metric for c rebounds in the requested NBA or WNBA Stats split.
c_reb_pctFloat64Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split.
uc_orebFloat64Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split.
uc_drebFloat64Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split.
uc_rebFloat64Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split.
uc_reb_pctFloat64Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split.

RebDistanceRebounding

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gInt64Games played.
reb_dist_rangeString
reb_frequencyFloat64Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split.
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Rebounds per game.
c_orebFloat64Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split.
c_drebFloat64Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split.
c_rebFloat64Rebounding metric for c rebounds in the requested NBA or WNBA Stats split.
c_reb_pctFloat64Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split.
uc_orebFloat64Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split.
uc_drebFloat64Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split.
uc_rebFloat64Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split.
uc_reb_pctFloat64Percentage or rate for uc rebounds 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_playerdashptreb(league_id='00', season='2024-25')

nba_stats_playerdashptshotdefend​

Player dash PT shot defend.

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

Valid URL: https://stats.nba.com/stats/playerdashptshotdefend?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PerMode=Totals&Period=0&PlayerID=2544&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PerModeper_mode_simpleY
PeriodperiodY
PlayerIDplayer_idY
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_idY
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
matchupidInt64Stats API identifier for matchupid associated with this NBA or WNBA Stats row.
gpInt64Games played.
gInt64Games played.
defense_categoryStringNBA or WNBA Stats value for defense category in the playerdashptshotdefend result set.
freqFloat64NBA or WNBA Stats value for freq in the playerdashptshotdefend result set.
d_fgmFloat64Shooting metric for d fgm in the requested NBA or WNBA Stats split.
d_fgaFloat64Shooting metric for d fga in the requested NBA or WNBA Stats split.
d_fg_pctFloat64Percentage or rate for d field goals percentage in the requested NBA or WNBA Stats split.
normal_fg_pctFloat64Percentage or rate for normal field goals percentage in the requested NBA or WNBA Stats split.
pct_plusminusFloat64Percentage share of plusminus for 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_playerdashptshotdefend(league_id='00', season='2024-25')

nba_stats_playerdashptshots​

Player dash PT shots.

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

Valid URL: https://stats.nba.com/stats/playerdashptshots?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PerMode=Totals&Period=0&PlayerID=2544&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&TeamID=1610612747&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PerModeper_mode_simpleY
PeriodperiodY
PlayerIDplayer_idY
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_idY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (Overall, GeneralShooting, ShotClockShooting, DribbleShooting, ClosestDefenderShooting, ClosestDefender10ftPlusShooting, TouchTimeShooting) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

Overall

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
shot_typeStringShot type label (e.g. 'Jump Shot', 'Layup').
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

GeneralShooting

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
shot_typeStringShot type label (e.g. 'Jump Shot', 'Layup').
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

ShotClockShooting

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
shot_clock_rangeString
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

DribbleShooting

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
dribble_rangeString
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

ClosestDefenderShooting

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
close_def_dist_rangeString
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

ClosestDefender10ftPlusShooting

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
close_def_dist_rangeString
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).

TouchTimeShooting

col_nametypedescription
player_idInt64Unique player identifier.
player_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
sort_orderInt64Display order of the split rows within the result set (1 = first), as a string.
gpInt64Games played.
gInt64Games played.
touch_time_rangeStringTime value for touch time range in the NBA or WNBA Stats result set.
fga_frequencyFloat64Shooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
efg_pctFloat64Percentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencyFloat64Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mFloat64Shooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_aFloat64Shooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctFloat64Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencyFloat64Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal 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_playerdashptshots(league_id='00', season='2024-25')