Skip to main content
Version: 0.1.5

NBA — NBA Stats API (stats.nba.com) — League dashboards: leaguedashlineups–leaguedashptstats

nba_stats_leaguedashlineups​

GET /stats/leaguedashlineups

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

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

API ParameterPythonPatternRequiredNullableDescription
Conferenceconference_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_simple_nullableY
GameSegmentgame_segment_nullableY
GroupQuantitygroup_quantityY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_detailed_defenseY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
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_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).
ShotClockRangeshot_clock_range_nullableY
TeamIDteam_id_nullableY
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
group_setcharacterName of the grouping family used for this dashboard or split row.
group_idcharacterESPN group id.
group_namecharacterThe lineup's five players as a ' - ' separated string of abbreviated names (e.g. 'K. Caldwell-Pope - A. Gordon - N. Jokic - ...').
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
gpintegerGames played.
wintegerWins.
lintegerLosses.
w_pctnumericWins percentage (0-1 decimal).
minnumericMinutes played.
fgmnumericField goals made.
fganumericField goal attempts.
fg_pctnumericField goal percentage (0-1).
fg3_mnumericThree-point field goals made.
fg3_anumericThree-point field goal attempts.
fg3_pctnumericThree-point field goal percentage (0-1).
ftmnumericFree throws made.
ftanumericFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
orebnumericOffensive rebounds.
drebnumericDefensive rebounds.
rebnumericRebounds per game.
astnumericAssists.
tovnumericTurnovers.
stlnumericSteals.
blknumericBlocks.
blkanumericBlocked field-goal attempts against for the requested NBA or WNBA Stats split.
pfnumericPersonal fouls.
pfdnumericPersonal fouls drawn for the requested NBA or WNBA Stats split.
ptsnumericPoints scored.
plus_minusnumericPlus/minus point differential while on court.
gp_rankintegerRank for games played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_rankintegerRank for wins within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
l_rankintegerRank for losses within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_pct_rankintegerRank for winning percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
min_rankintegerRank for minutes played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fgm_rankintegerRank for field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fga_rankintegerRank for field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg_pct_rankintegerRank for field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_m_rankintegerRank for three-point field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_a_rankintegerRank for three-point field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_pct_rankintegerRank for three-point field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ftm_rankintegerRank for free throws made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fta_rankintegerRank for free throws attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ft_pct_rankintegerRank for free-throw percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
oreb_rankintegerRank for offensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dreb_rankintegerRank for defensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
reb_rankintegerRank for total rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ast_rankintegerRank for assists within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
tov_rankintegerRank for turnovers within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
stl_rankintegerRank for steals within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blk_rankintegerRank for blocks within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blka_rankintegerRank for blocked field-goal attempts against within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pf_rankintegerRank for personal fouls within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pfd_rankintegerRank for personal fouls drawn within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pts_rankintegerRank for points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
plus_minus_rankintegerRank for plus-minus within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
sum_time_playedintegerTime value for sum time played in the NBA or WNBA Stats result set.

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

Example​

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

Last validated n/a.

nba_stats_leaguedashoppptshot​

GET /stats/leaguedashoppptshot

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

Valid URL: https://stats.nba.com/stats/leaguedashoppptshot?CloseDefDistRange=&Conference=&DateFrom=&DateTo=&Division=&DribbleRange=&GameSegment=&GeneralRange=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PORound=&PerMode=Totals&Period=0&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&ShotDistRange=&TeamID=0&TouchTimeRange=&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
CloseDefDistRangeclose_def_dist_range_nullableY
Conferenceconference_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_nullableY
DribbleRangedribble_range_nullableY
GameSegmentgame_segment_nullableY
GeneralRangegeneral_range_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simpleY
Periodperiod_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).
ShotClockRangeshot_clock_range_nullableY
ShotDistRangeshot_dist_range_nullableY
TeamIDteam_id_nullableY
TouchTimeRangetouch_time_range_nullableY
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
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
gpintegerGames played.
gintegerGames played.
fga_frequencynumericShooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmnumericField goals made.
fganumericField goal attempts.
fg_pctnumericField goal percentage (0-1).
efg_pctnumericPercentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencynumericShooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mnumericShooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_anumericShooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctnumericPercentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencynumericShooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mnumericThree-point field goals made.
fg3_anumericThree-point field goal attempts.
fg3_pctnumericThree-point field goal percentage (0-1).

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

Example​

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

Last validated n/a.

nba_stats_leaguedashplayerbiostats​

GET /stats/leaguedashplayerbiostats

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

Valid URL: https://stats.nba.com/stats/leaguedashplayerbiostats?College=&Conference=&Country=&DateFrom=&DateTo=&Division=&DraftPick=&DraftYear=&GameScope=&GameSegment=&Height=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PORound=&PerMode=Totals&Period=&PlayerExperience=&PlayerPosition=&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&VsConference=&VsDivision=&Weight=

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
GameSegmentgame_segment_nullableY
Heightheight_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simpleY
Periodperiod_nullableY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_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).
ShotClockRangeshot_clock_range_nullableY
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
player_idintegerUnique player identifier.
player_namecharacterPlayer name.
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
agenumericPlayer age (in years).
player_heightcharacterPlayer height as a feet-inches string (e.g. '6-4').
player_height_inchesintegerNBA or WNBA Stats value for player height inches in the leaguedashplayerbiostats result set.
player_weightcharacterPlayer weight in pounds, as a string.
collegecharacterCollege.
countrycharacterVenue country.
draft_yearcharacterDraft year (4-digit).
draft_roundcharacterRound of the draft selection.
draft_numbercharacterOverall pick the player was selected with, as a string; 'Undrafted' when never drafted.
gpintegerGames played.
ptsnumericPoints scored.
rebnumericRebounds per game.
astnumericAssists.
net_ratingnumericNet rating (off rating - def rating).
oreb_pctnumericPercentage or rate for offensive rebounds percentage in the requested NBA or WNBA Stats split.
dreb_pctnumericPercentage or rate for defensive rebounds percentage in the requested NBA or WNBA Stats split.
usg_pctnumericPercentage or rate for usage percentage in the requested NBA or WNBA Stats split.
ts_pctnumericTrue shooting percentage (0-1).
ast_pctnumericAssist percentage.

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

Example​

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

Last validated n/a.

nba_stats_leaguedashplayerclutch​

GET /stats/leaguedashplayerclutch

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

Valid URL: https://stats.nba.com/stats/leaguedashplayerclutch?AheadBehind=Ahead+or+Behind&ClutchTime=Last+5+Minutes&College=&Conference=&Country=&DateFrom=&DateTo=&Division=&DraftPick=&DraftYear=&GameScope=&GameSegment=&Height=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PORound=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerExperience=&PlayerPosition=&PlusMinus=N&PointDiff=5&Rank=N&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&VsConference=&VsDivision=&Weight=

API ParameterPythonPatternRequiredNullableDescription
AheadBehindahead_behindY
ClutchTimeclutch_timeY
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
GameSegmentgame_segment_nullableY
Heightheight_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_detailed_defenseY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
PlusMinusplus_minusY
PointDiffpoint_diffY
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_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).
ShotClockRangeshot_clock_range_nullableY
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
group_setcharacterName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
player_idintegerUnique player identifier.
player_namecharacterPlayer name.
nicknamecharacterTeam or athlete nickname.
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
agenumericPlayer age (in years).
gpintegerGames played.
wintegerWins.
lintegerLosses.
w_pctnumericWins percentage (0-1 decimal).
minnumericMinutes played.
fgmnumericField goals made.
fganumericField goal attempts.
fg_pctnumericField goal percentage (0-1).
fg3_mnumericThree-point field goals made.
fg3_anumericThree-point field goal attempts.
fg3_pctnumericThree-point field goal percentage (0-1).
ftmnumericFree throws made.
ftanumericFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
orebnumericOffensive rebounds.
drebnumericDefensive rebounds.
rebnumericRebounds per game.
astnumericAssists.
tovnumericTurnovers.
stlnumericSteals.
blknumericBlocks.
blkanumericShot attempts blocked by opponents (blocks against).
pfnumericPersonal fouls.
pfdnumericPersonal fouls drawn.
ptsnumericPoints scored.
plus_minusnumericPlus/minus point differential while on court.
nba_fantasy_ptsnumericFantasy points under the NBA's fantasy scoring formula.
dd2integerDouble-doubles recorded over the split.
td3integerTriple-doubles recorded over the split.
wnba_fantasy_ptsnumericFantasy points under the WNBA's fantasy scoring formula.
gp_rankintegerLeague rank of the row's games played for the season and split.
w_rankintegerLeague rank of the row's wins for the season and split.
l_rankintegerLeague rank of the row's losses for the season and split.
w_pct_rankintegerLeague rank of the row's win percentage for the season and split.
min_rankintegerLeague rank of the row's minutes played for the season and split.
fgm_rankintegerLeague rank of the row's field goals made for the season and split.
fga_rankintegerLeague rank of the row's field goals attempted for the season and split.
fg_pct_rankintegerLeague rank of the row's field goal percentage for the season and split.
fg3_m_rankintegerLeague rank of the row's three-point field goals made for the season and split.
fg3_a_rankintegerLeague rank of the row's three-point field goals attempted for the season and split.
fg3_pct_rankintegerLeague rank of the row's three-point field goal percentage for the season and split.
ftm_rankintegerLeague rank of the row's free throws made for the season and split.
fta_rankintegerLeague rank of the row's free throws attempted for the season and split.
ft_pct_rankintegerLeague rank of the row's free throw percentage for the season and split.
oreb_rankintegerLeague rank of the row's offensive rebounds for the season and split.
dreb_rankintegerLeague rank of the row's defensive rebounds for the season and split.
reb_rankintegerLeague rank of the row's total rebounds for the season and split.
ast_rankintegerLeague rank of the row's assists for the season and split.
tov_rankintegerLeague rank of the row's turnovers for the season and split.
stl_rankintegerLeague rank of the row's steals for the season and split.
blk_rankintegerLeague rank of the row's blocked shots for the season and split.
blka_rankintegerLeague rank of the row's shot attempts blocked by opponents (blocks against) for the season and split.
pf_rankintegerLeague rank of the row's personal fouls committed for the season and split.
pfd_rankintegerLeague rank of the row's personal fouls drawn for the season and split.
pts_rankintegerLeague rank of the row's points scored for the season and split.
plus_minus_rankintegerLeague rank of the row's plus-minus point differential while on the floor for the season and split.
nba_fantasy_pts_rankintegerLeague rank of the row's NBA fantasy points (league scoring formula) for the season and split.
dd2_rankintegerLeague rank of the row's double-doubles for the season and split.
td3_rankintegerLeague rank of the row's triple-doubles for the season and split.
wnba_fantasy_pts_rankintegerLeague rank of the row's WNBA fantasy points (league scoring formula) for the season and split.
team_countintegerNumber of distinct teams aggregated into the split row.

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

Example​

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

Last validated n/a.

nba_stats_leaguedashplayerptshot​

GET /stats/leaguedashplayerptshot

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

Valid URL: https://stats.nba.com/stats/leaguedashplayerptshot?CloseDefDistRange=&College=&Conference=&Country=&DateFrom=&DateTo=&Division=&DraftPick=&DraftYear=&DribbleRange=&GameSegment=&GeneralRange=&Height=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PORound=&PerMode=Totals&Period=0&PlayerExperience=&PlayerPosition=&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&TouchTimeRange=&VsConference=&VsDivision=&Weight=

API ParameterPythonPatternRequiredNullableDescription
CloseDefDistRangeclose_def_dist_range_nullableY
Collegecollege_nullableY
Conferenceconference_nullableY
Countrycountry_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_nullableY
DraftPickdraft_pick_nullableY
DraftYeardraft_year_nullableY
DribbleRangedribble_range_nullableY
GameSegmentgame_segment_nullableY
GeneralRangegeneral_range_nullableY
Heightheight_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simpleY
Periodperiod_nullableY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_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).
ShotClockRangeshot_clock_range_nullableY
ShotDistRangeshot_dist_range_nullableY
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
TouchTimeRangetouch_time_range_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
player_idintegerUnique player identifier.
player_namecharacterPlayer name.
player_last_team_idintegerStats API identifier for player last team identifier associated with this NBA or WNBA Stats row.
player_last_team_abbreviationcharacterNBA or WNBA Stats value for player last team abbreviation in the leaguedashplayerptshot result set.
agenumericPlayer age (in years).
gpintegerGames played.
gintegerGames played.
fga_frequencynumericShooting metric for fga frequency in the requested NBA or WNBA Stats split.
fgmnumericField goals made.
fganumericField goal attempts.
fg_pctnumericField goal percentage (0-1).
efg_pctnumericPercentage or rate for efg percentage in the requested NBA or WNBA Stats split.
fg2_a_frequencynumericShooting metric for fg2a frequency in the requested NBA or WNBA Stats split.
fg2_mnumericShooting metric for fg2m in the requested NBA or WNBA Stats split.
fg2_anumericShooting metric for fg2a in the requested NBA or WNBA Stats split.
fg2_pctnumericPercentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split.
fg3_a_frequencynumericShooting metric for fg3a frequency in the requested NBA or WNBA Stats split.
fg3_mnumericThree-point field goals made.
fg3_anumericThree-point field goal attempts.
fg3_pctnumericThree-point field goal percentage (0-1).

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

Example​

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

Last validated n/a.

nba_stats_leaguedashplayershotlocations​

GET /stats/leaguedashplayershotlocations

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

Valid URL: https://stats.nba.com/stats/leaguedashplayershotlocations?College=&Conference=&Country=&DateFrom=&DateTo=&DistanceRange=By+Zone&Division=&DraftPick=&DraftYear=&GameScope=&GameSegment=&Height=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PORound=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerExperience=&PlayerPosition=&PlusMinus=N&Rank=N&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&VsConference=&VsDivision=&Weight=

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableY
Conferenceconference_nullableY
Countrycountry_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
DistanceRangedistance_rangeY
Divisiondivision_simple_nullableY
DraftPickdraft_pick_nullableY
DraftYeardraft_year_nullableY
GameScopegame_scope_simple_nullableY
GameSegmentgame_segment_nullableY
Heightheight_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_simpleY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
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_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).
ShotClockRangeshot_clock_range_nullableY
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
player_idintegerUnique player identifier.
player_namecharacterPlayer name.
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
agenumericPlayer age (in years).
nicknamecharacterTeam or athlete nickname.
less_than_5_ft_fgmnumericField goals made from less than 5 feet.
less_than_5_ft_fganumericField goals attempted from less than 5 feet.
less_than_5_ft_fg_pctnumericField goal percentage on shots from less than 5 feet, as a decimal.
5_9_ft_fgmnumericField goals made from 5-9 feet.
5_9_ft_fganumericField goals attempted from 5-9 feet.
5_9_ft_fg_pctnumericField goal percentage on shots from 5-9-f feet, as a decimal.
10_14_ft_fgmnumericField goals made from 10-14 feet.
10_14_ft_fganumericField goals attempted from 10-14 feet.
10_14_ft_fg_pctnumericField goal percentage on shots from 10-14-f feet, as a decimal.
15_19_ft_fgmnumericField goals made from 15-19 feet.
15_19_ft_fganumericField goals attempted from 15-19 feet.
15_19_ft_fg_pctnumericField goal percentage on shots from 15-19-f feet, as a decimal.
20_24_ft_fgmnumericField goals made from 20-24 feet.
20_24_ft_fganumericField goals attempted from 20-24 feet.
20_24_ft_fg_pctnumericField goal percentage on shots from 20-24-f feet, as a decimal.
25_29_ft_fgmnumericField goals made from 25-29 feet.
25_29_ft_fganumericField goals attempted from 25-29 feet.
25_29_ft_fg_pctnumericField goal percentage on shots from 25-29-f feet, as a decimal.
30_34_ft_fgmnumericField goals made from 30-34 feet.
30_34_ft_fganumericField goals attempted from 30-34 feet.
30_34_ft_fg_pctnumericField goal percentage on shots from 30-34-f feet, as a decimal.
35_39_ft_fgmnumericField goals made from 35-39 feet.
35_39_ft_fganumericField goals attempted from 35-39 feet.
35_39_ft_fg_pctnumericField goal percentage on shots from 35-39-f feet, as a decimal.
40+_ft_fgmnumericField goals made from 40 feet and beyond, per the stats API's shot-location distance bands.
40+_ft_fganumericField goals attempted from 40 feet and beyond, per the stats API's shot-location distance bands.
40+_ft_fg_pctnumericField-goal percentage on attempts from 40 feet and beyond, as a decimal.

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

Example​

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

Last validated n/a.

nba_stats_leaguedashplayerstats​

GET /stats/leaguedashplayerstats

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

Valid URL: https://stats.nba.com/stats/leaguedashplayerstats?College=&Conference=&Country=&DateFrom=&DateTo=&Division=&DraftPick=&DraftYear=&GameScope=&GameSegment=&Height=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PORound=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerExperience=&PlayerPosition=&PlusMinus=N&Rank=N&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&TwoWay=&VsConference=&VsDivision=&Weight=

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
GameSegmentgame_segment_nullableY
Heightheight_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_detailed_defenseY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
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_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).
ShotClockRangeshot_clock_range_nullableY
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
TwoWaytwo_way_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
player_idintegerUnique player identifier.
player_namecharacterPlayer name.
nicknamecharacterTeam or athlete nickname.
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
agenumericPlayer age (in years).
gpintegerGames played.
wintegerWins.
lintegerLosses.
w_pctnumericWins percentage (0-1 decimal).
minnumericMinutes played.
fgmnumericField goals made.
fganumericField goal attempts.
fg_pctnumericField goal percentage (0-1).
fg3_mnumericThree-point field goals made.
fg3_anumericThree-point field goal attempts.
fg3_pctnumericThree-point field goal percentage (0-1).
ftmnumericFree throws made.
ftanumericFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
orebnumericOffensive rebounds.
drebnumericDefensive rebounds.
rebnumericRebounds per game.
astnumericAssists.
tovnumericTurnovers.
stlnumericSteals.
blknumericBlocks.
blkanumericBlocked shot attempts against the player — shots the player attempted that were blocked by opponents.
pfnumericPersonal fouls.
pfdnumericPersonal fouls drawn — fouls committed by opponents against this player.
ptsnumericPoints scored.
plus_minusnumericPlus/minus point differential while on court.
nba_fantasy_ptsnumericNBA fantasy points accrued under the standard NBA fantasy scoring formula.
dd2integerNumber of double-doubles recorded over the span.
td3integerNumber of triple-doubles recorded over the span.
wnba_fantasy_ptsnumericWNBA fantasy points accrued under the standard WNBA fantasy scoring formula.
gp_rankintegerPlayer's league rank for games played among qualified players (1 = most games).
w_rankintegerPlayer's league rank for wins (1 = most wins while active).
l_rankintegerPlayer's league rank for losses (1 = most losses while active).
w_pct_rankintegerPlayer's league rank for win percentage (1 = highest win pct).
min_rankintegerPlayer's league rank for minutes played (1 = most minutes).
fgm_rankintegerPlayer's league rank for field goals made (1 = most made).
fga_rankintegerPlayer's league rank for field goal attempts (1 = most attempts).
fg_pct_rankintegerPlayer's league rank for field goal percentage (1 = highest pct).
fg3_m_rankintegerPlayer's league rank for three-point field goals made (1 = most made).
fg3_a_rankintegerPlayer's league rank for three-point field goal attempts (1 = most attempts).
fg3_pct_rankintegerPlayer's league rank for three-point percentage (1 = highest pct).
ftm_rankintegerPlayer's league rank for free throws made (1 = most made).
fta_rankintegerPlayer's league rank for free throw attempts (1 = most attempts).
ft_pct_rankintegerPlayer's league rank for free throw percentage (1 = highest pct).
oreb_rankintegerPlayer's league rank for offensive rebounds (1 = most offensive rebounds).
dreb_rankintegerPlayer's league rank for defensive rebounds (1 = most defensive rebounds).
reb_rankintegerPlayer's league rank for total rebounds (1 = most rebounds).
ast_rankintegerPlayer's league rank for assists (1 = most assists).
tov_rankintegerPlayer's league rank for turnovers — note: lower turnovers is typically better.
stl_rankintegerPlayer's league rank for steals (1 = most steals).
blk_rankintegerPlayer's league rank for blocked shots (1 = most blocks).
blka_rankintegerPlayer's league rank for shots blocked by opponents (1 = most blocked).
pf_rankintegerPlayer's league rank for personal fouls committed (1 = most fouls).
pfd_rankintegerPlayer's league rank for personal fouls drawn from opponents (1 = most drawn).
pts_rankintegerPlayer's league rank for points scored (1 = league leader).
plus_minus_rankintegerPlayer's league rank for plus/minus rating (1 = best differential).
nba_fantasy_pts_rankintegerPlayer's league rank for NBA fantasy points scored (1 = most fantasy points).
dd2_rankintegerPlayer's league rank for double-doubles recorded (1 = most double-doubles).
td3_rankintegerPlayer's league rank for triple-doubles recorded (1 = most triple-doubles).
wnba_fantasy_pts_rankintegerPlayer's league rank for WNBA fantasy points scored (1 = most fantasy points).
team_countintegerNumber of teams the player appeared for within the span.

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

Example​

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

Last validated n/a.

nba_stats_leaguedashptdefend​

GET /stats/leaguedashptdefend

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

Valid URL: https://stats.nba.com/stats/leaguedashptdefend?College=&Conference=&Country=&DateFrom=&DateTo=&DefenseCategory=Overall&Division=&DraftPick=&DraftYear=&GameSegment=&Height=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PORound=&PerMode=Totals&Period=&PlayerExperience=&PlayerID=&PlayerPosition=&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&StarterBench=&TeamID=0&VsConference=&VsDivision=&Weight=

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableY
Conferenceconference_nullableY
Countrycountry_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
DefenseCategorydefense_categoryY
Divisiondivision_nullableY
DraftPickdraft_pick_nullableY
DraftYeardraft_year_nullableY
GameSegmentgame_segment_nullableY
Heightheight_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simpleY
Periodperiod_nullableY
PlayerExperienceplayer_experience_nullableY
PlayerIDplayer_id_nullableY
PlayerPositionplayer_position_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).
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
close_def_person_idintegerStats API identifier for close defensive person identifier associated with this NBA or WNBA Stats row.
player_namecharacterPlayer name.
player_last_team_idintegerStats API identifier for player last team identifier associated with this NBA or WNBA Stats row.
player_last_team_abbreviationcharacterNBA or WNBA Stats value for player last team abbreviation in the leaguedashptdefend result set.
player_positioncharacterPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
agenumericPlayer age (in years).
gpintegerGames played.
gintegerGames played.
freqnumericNBA or WNBA Stats value for freq in the leaguedashptdefend result set.
d_fgmnumericShooting metric for d fgm in the requested NBA or WNBA Stats split.
d_fganumericShooting metric for d fga in the requested NBA or WNBA Stats split.
d_fg_pctnumericPercentage or rate for d field goals percentage in the requested NBA or WNBA Stats split.
normal_fg_pctnumericPercentage or rate for normal field goals percentage in the requested NBA or WNBA Stats split.
pct_plusminusnumericPercentage share of plusminus for the requested NBA or WNBA Stats split.

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

Example​

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

Last validated n/a.

nba_stats_leaguedashptstats​

GET /stats/leaguedashptstats

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

Valid URL: https://stats.nba.com/stats/leaguedashptstats?College=&Conference=&Country=&DateFrom=&DateTo=&Division=&DraftPick=&DraftYear=&GameScope=&Height=&LastNGames=0&LeagueID=00&Location=&Month=0&OpponentTeamID=0&Outcome=&PORound=&PerMode=PerGame&PlayerExperience=&PlayerOrTeam=Player&PlayerPosition=&PtMeasureType=Drives&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&StarterBench=&TeamID=0&VsConference=&VsDivision=&Weight=

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableYCollege query parameter.
Conferenceconference_nullableYConference query parameter.
Countrycountry_nullableYCountry query parameter.
DateFromdate_from_nullableYDateFrom query parameter.
DateTodate_to_nullableYDateTo query parameter.
Divisiondivision_simple_nullableYDivision query parameter.
DraftPickdraft_pick_nullableYDraftPick query parameter.
DraftYeardraft_year_nullableYDraftYear query parameter.
GameScopegame_scope_simple_nullableYGameScope query parameter.
Heightheight_nullableYHeight query parameter.
LastNGameslast_n_gamesYLastNGames query parameter.
LeagueIDleague_idYLeagueID query parameter.
Locationlocation_nullableYLocation query parameter.
MonthmonthYMonth query parameter.
OpponentTeamIDopponent_team_idYOpponentTeamID query parameter.
Outcomeoutcome_nullableYOutcome query parameter.
PORoundpo_round_nullableYPORound query parameter.
PerModeper_mode_simpleYPerMode query parameter.
PlayerExperienceplayer_experience_nullableYPlayerExperience query parameter.
PlayerOrTeamplayer_or_teamYPlayerOrTeam query parameter.
PlayerPositionplayer_position_abbreviation_nullableYPlayerPosition query parameter.
PtMeasureTypept_measure_typeYPtMeasureType query parameter.
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_nullableYSeasonSegment query parameter.
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).
StarterBenchstarter_bench_nullableYStarterBench query parameter.
TeamIDteam_id_nullableYTeamID query parameter.
VsConferencevs_conference_nullableYVsConference query parameter.
VsDivisionvs_division_nullableYVsDivision query parameter.
Weightweight_nullableYWeight query parameter.

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_idintegerUnique player identifier.
player_namecharacterPlayer name.
team_idintegerUnique team identifier.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
gpintegerGames played.
wintegerWins.
lintegerLosses.
minnumericMinutes played.
dist_feetnumericNBA or WNBA Stats value for dist feet in the leaguedashptstats result set.
dist_milesnumericNBA or WNBA Stats value for dist miles in the leaguedashptstats result set.
dist_miles_offnumericNBA or WNBA Stats value for dist miles offensive in the leaguedashptstats result set.
dist_miles_defnumericNBA or WNBA Stats value for dist miles defensive in the leaguedashptstats result set.
avg_speednumericNBA or WNBA Stats value for average speed in the leaguedashptstats result set.
avg_speed_offnumericNBA or WNBA Stats value for average speed offensive in the leaguedashptstats result set.
avg_speed_defnumericNBA or WNBA Stats value for average speed defensive in the leaguedashptstats result set.

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

Example​

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

Last validated n/a.