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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
DateFrom | date_from_nullable | Y | |||
DateTo | date_to_nullable | Y | |||
GameSegment | game_segment_nullable | Y | |||
LastNGames | last_n_games | Y | |||
LeagueID | league_id | Y | |||
Location | location_nullable | Y | |||
MeasureType | measure_type_detailed | Y | |||
Month | month | Y | |||
OpponentTeamID | opponent_team_id | Y | |||
Outcome | outcome_nullable | Y | |||
PORound | po_round_nullable | Y | |||
PaceAdjust | pace_adjust | Y | |||
PerMode | per_mode_detailed | Y | |||
Period | period | Y | |||
PlayerID | player_id | Y | |||
PlusMinus | plus_minus | Y | |||
Rank | rank | Y | |||
Season | season | Y | Season 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. | ||
SeasonSegment | season_segment_nullable | Y | |||
SeasonType | season_type_playoffs | Y | Season 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). | ||
ShotClockRange | shot_clock_range_nullable | Y | |||
VsConference | vs_conference_nullable | Y | |||
VsDivision | vs_division_nullable | Y |
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_name | type | description |
|---|---|---|
group_set | String | Name of the grouping family used for this dashboard or split row. |
group_value | String | Specific grouping value for this dashboard or split row. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
max_game_date | String | Date or timestamp for maximum game date in the NBA or WNBA Stats result set. |
gp | Int64 | Games played. |
w | Int64 | Wins. |
l | Int64 | Losses. |
w_pct | Float64 | Wins percentage (0-1 decimal). |
min | Float64 | Minutes played. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ftm | Float64 | Free throws made. |
fta | Float64 | Free throw attempts. |
ft_pct | Float64 | Free throw percentage (0-1). |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
ast | Float64 | Assists. |
tov | Float64 | Turnovers. |
stl | Float64 | Steals. |
blk | Float64 | Blocks. |
blka | Float64 | Blocked field-goal attempts against for the requested NBA or WNBA Stats split. |
pf | Float64 | Personal fouls. |
pfd | Float64 | Personal fouls drawn for the requested NBA or WNBA Stats split. |
pts | Float64 | Points scored. |
plus_minus | Float64 | Plus/minus point differential while on court. |
nba_fantasy_pts | Float64 | Nba fantasy points for the requested NBA or WNBA Stats split. |
dd2 | Int64 | Double-doubles for the requested NBA or WNBA Stats split. |
td3 | Int64 | Triple-doubles for the requested NBA or WNBA Stats split. |
wnba_fantasy_pts | Float64 | Wnba fantasy points for the requested NBA or WNBA Stats split. |
gp_rank | Int64 | Rank for games played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
w_rank | Int64 | Rank for wins within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
l_rank | Int64 | Rank for losses within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
w_pct_rank | Int64 | Rank for winning percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
min_rank | Int64 | Rank for minutes played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fgm_rank | Int64 | Rank for field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fga_rank | Int64 | Rank for field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg_pct_rank | Int64 | Rank for field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg3_m_rank | Int64 | Rank for three-point field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg3_a_rank | Int64 | Rank for three-point field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg3_pct_rank | Int64 | Rank for three-point field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ftm_rank | Int64 | Rank for free throws made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fta_rank | Int64 | Rank for free throws attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ft_pct_rank | Int64 | Rank for free-throw percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
oreb_rank | Int64 | Rank for offensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
dreb_rank | Int64 | Rank for defensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
reb_rank | Int64 | Rank for total rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ast_rank | Int64 | Rank for assists within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
tov_rank | Int64 | Rank for turnovers within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
stl_rank | Int64 | Rank for steals within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
blk_rank | Int64 | Rank for blocks within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
blka_rank | Int64 | Rank for blocked field-goal attempts against within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
pf_rank | Int64 | Rank for personal fouls within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
pfd_rank | Int64 | Rank for personal fouls drawn within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
pts_rank | Int64 | Rank for points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
plus_minus_rank | Int64 | Rank for plus-minus within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
nba_fantasy_pts_rank | Int64 | Rank for NBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
dd2_rank | Int64 | Rank for double-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
td3_rank | Int64 | Rank for triple-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
wnba_fantasy_pts_rank | Int64 | Rank for WNBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ByYearPlayerDashboard
| col_name | type | description |
|---|---|---|
group_set | String | Name of the grouping family used for this dashboard or split row. |
group_value | String | Specific grouping value for this dashboard or split row. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
max_game_date | String | Date or timestamp for maximum game date in the NBA or WNBA Stats result set. |
gp | Int64 | Games played. |
w | Int64 | Wins. |
l | Int64 | Losses. |
w_pct | Float64 | Wins percentage (0-1 decimal). |
min | Float64 | Minutes played. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ftm | Float64 | Free throws made. |
fta | Float64 | Free throw attempts. |
ft_pct | Float64 | Free throw percentage (0-1). |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
ast | Float64 | Assists. |
tov | Float64 | Turnovers. |
stl | Float64 | Steals. |
blk | Float64 | Blocks. |
blka | Float64 | Blocked field-goal attempts against for the requested NBA or WNBA Stats split. |
pf | Float64 | Personal fouls. |
pfd | Float64 | Personal fouls drawn for the requested NBA or WNBA Stats split. |
pts | Float64 | Points scored. |
plus_minus | Float64 | Plus/minus point differential while on court. |
nba_fantasy_pts | Float64 | Nba fantasy points for the requested NBA or WNBA Stats split. |
dd2 | Int64 | Double-doubles for the requested NBA or WNBA Stats split. |
td3 | Int64 | Triple-doubles for the requested NBA or WNBA Stats split. |
wnba_fantasy_pts | Float64 | Wnba fantasy points for the requested NBA or WNBA Stats split. |
gp_rank | Int64 | Rank for games played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
w_rank | Int64 | Rank for wins within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
l_rank | Int64 | Rank for losses within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
w_pct_rank | Int64 | Rank for winning percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
min_rank | Int64 | Rank for minutes played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fgm_rank | Int64 | Rank for field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fga_rank | Int64 | Rank for field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg_pct_rank | Int64 | Rank for field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg3_m_rank | Int64 | Rank for three-point field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg3_a_rank | Int64 | Rank for three-point field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fg3_pct_rank | Int64 | Rank for three-point field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ftm_rank | Int64 | Rank for free throws made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
fta_rank | Int64 | Rank for free throws attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ft_pct_rank | Int64 | Rank for free-throw percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
oreb_rank | Int64 | Rank for offensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
dreb_rank | Int64 | Rank for defensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
reb_rank | Int64 | Rank for total rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
ast_rank | Int64 | Rank for assists within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
tov_rank | Int64 | Rank for turnovers within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
stl_rank | Int64 | Rank for steals within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
blk_rank | Int64 | Rank for blocks within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
blka_rank | Int64 | Rank for blocked field-goal attempts against within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
pf_rank | Int64 | Rank for personal fouls within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
pfd_rank | Int64 | Rank for personal fouls drawn within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
pts_rank | Int64 | Rank for points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
plus_minus_rank | Int64 | Rank for plus-minus within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
nba_fantasy_pts_rank | Int64 | Rank for NBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
dd2_rank | Int64 | Rank for double-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
td3_rank | Int64 | Rank for triple-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader. |
wnba_fantasy_pts_rank | Int64 | Rank 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
ImportError | curl_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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
DateFrom | date_from_nullable | Y | |||
DateTo | date_to_nullable | Y | |||
LastNGames | last_n_games | Y | |||
LeagueID | league_id | Y | |||
Location | location_nullable | Y | |||
Month | month | Y | |||
OpponentTeamID | opponent_team_id | Y | |||
Outcome | outcome_nullable | Y | |||
PerMode | per_mode_simple | Y | |||
PlayerID | player_id | Y | |||
Season | season | Y | Season 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. | ||
SeasonSegment | season_segment_nullable | Y | |||
SeasonType | season_type_all_star | Y | Season 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). | ||
TeamID | team_id | Y | |||
VsConference | vs_conference_nullable | Y | |||
VsDivision | vs_division_nullable | Y |
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_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
pass_type | String | Passing or assist metric for pass type in the requested NBA or WNBA Stats split. |
g | Int64 | Games played. |
pass_to | String | |
pass_teammate_player_id | Int64 | Stats API identifier for pass teammate player identifier associated with this NBA or WNBA Stats row. |
frequency | Float64 | NBA or WNBA Stats value for frequency in the playerdashptpass result set. |
pass | Float64 | Passes per game to the paired teammate (PassesMade set) or received from the paired teammate (PassesReceived set). |
ast | Float64 | Assists. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
PassesReceived
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
pass_type | String | Passing or assist metric for pass type in the requested NBA or WNBA Stats split. |
g | Int64 | Games played. |
pass_from | String | Passing or assist metric for pass from in the requested NBA or WNBA Stats split. |
pass_teammate_player_id | Int64 | Stats API identifier for pass teammate player identifier associated with this NBA or WNBA Stats row. |
frequency | Float64 | NBA or WNBA Stats value for frequency in the playerdashptpass result set. |
pass | Float64 | Passes per game to the paired teammate (PassesMade set) or received from the paired teammate (PassesReceived set). |
ast | Float64 | Assists. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
ImportError | curl_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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
DateFrom | date_from_nullable | Y | |||
DateTo | date_to_nullable | Y | |||
GameSegment | game_segment_nullable | Y | |||
LastNGames | last_n_games | Y | |||
LeagueID | league_id | Y | |||
Location | location_nullable | Y | |||
Month | month | Y | |||
OpponentTeamID | opponent_team_id | Y | |||
Outcome | outcome_nullable | Y | |||
PerMode | per_mode_simple | Y | |||
Period | period | Y | |||
PlayerID | player_id | Y | |||
Season | season | Y | Season 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. | ||
SeasonSegment | season_segment_nullable | Y | |||
SeasonType | season_type_all_star | Y | Season 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). | ||
TeamID | team_id | Y | |||
VsConference | vs_conference_nullable | Y | |||
VsDivision | vs_division_nullable | Y |
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_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
g | Int64 | Games played. |
overall | String | Overall pick number. |
reb_frequency | Float64 | Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split. |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
c_oreb | Float64 | Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split. |
c_dreb | Float64 | Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split. |
c_reb | Float64 | Rebounding metric for c rebounds in the requested NBA or WNBA Stats split. |
c_reb_pct | Float64 | Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split. |
uc_oreb | Float64 | Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split. |
uc_dreb | Float64 | Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split. |
uc_reb | Float64 | Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split. |
uc_reb_pct | Float64 | Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split. |
ShotTypeRebounding
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
g | Int64 | Games played. |
shot_type_range | String | Shooting metric for shot type range in the requested NBA or WNBA Stats split. |
reb_frequency | Float64 | Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split. |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
c_oreb | Float64 | Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split. |
c_dreb | Float64 | Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split. |
c_reb | Float64 | Rebounding metric for c rebounds in the requested NBA or WNBA Stats split. |
c_reb_pct | Float64 | Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split. |
uc_oreb | Float64 | Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split. |
uc_dreb | Float64 | Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split. |
uc_reb | Float64 | Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split. |
uc_reb_pct | Float64 | Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split. |
NumContestedRebounding
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
g | Int64 | Games played. |
reb_num_contesting_range | String | |
reb_frequency | Float64 | Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split. |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
c_oreb | Float64 | Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split. |
c_dreb | Float64 | Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split. |
c_reb | Float64 | Rebounding metric for c rebounds in the requested NBA or WNBA Stats split. |
c_reb_pct | Float64 | Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split. |
uc_oreb | Float64 | Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split. |
uc_dreb | Float64 | Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split. |
uc_reb | Float64 | Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split. |
uc_reb_pct | Float64 | Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split. |
ShotDistanceRebounding
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
g | Int64 | Games played. |
shot_dist_range | String | |
reb_frequency | Float64 | Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split. |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
c_oreb | Float64 | Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split. |
c_dreb | Float64 | Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split. |
c_reb | Float64 | Rebounding metric for c rebounds in the requested NBA or WNBA Stats split. |
c_reb_pct | Float64 | Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split. |
uc_oreb | Float64 | Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split. |
uc_dreb | Float64 | Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split. |
uc_reb | Float64 | Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split. |
uc_reb_pct | Float64 | Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split. |
RebDistanceRebounding
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
g | Int64 | Games played. |
reb_dist_range | String | |
reb_frequency | Float64 | Rebounding metric for rebounds frequency in the requested NBA or WNBA Stats split. |
oreb | Float64 | Offensive rebounds. |
dreb | Float64 | Defensive rebounds. |
reb | Float64 | Rebounds per game. |
c_oreb | Float64 | Rebounding metric for c offensive rebounds in the requested NBA or WNBA Stats split. |
c_dreb | Float64 | Rebounding metric for c defensive rebounds in the requested NBA or WNBA Stats split. |
c_reb | Float64 | Rebounding metric for c rebounds in the requested NBA or WNBA Stats split. |
c_reb_pct | Float64 | Percentage or rate for c rebounds percentage in the requested NBA or WNBA Stats split. |
uc_oreb | Float64 | Rebounding metric for uc offensive rebounds in the requested NBA or WNBA Stats split. |
uc_dreb | Float64 | Rebounding metric for uc defensive rebounds in the requested NBA or WNBA Stats split. |
uc_reb | Float64 | Rebounding metric for uc rebounds in the requested NBA or WNBA Stats split. |
uc_reb_pct | Float64 | Percentage or rate for uc rebounds percentage in the requested NBA or WNBA Stats split. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
ImportError | curl_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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
DateFrom | date_from_nullable | Y | |||
DateTo | date_to_nullable | Y | |||
GameSegment | game_segment_nullable | Y | |||
LastNGames | last_n_games | Y | |||
LeagueID | league_id | Y | |||
Location | location_nullable | Y | |||
Month | month | Y | |||
OpponentTeamID | opponent_team_id | Y | |||
Outcome | outcome_nullable | Y | |||
PerMode | per_mode_simple | Y | |||
Period | period | Y | |||
PlayerID | player_id | Y | |||
Season | season | Y | Season 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. | ||
SeasonSegment | season_segment_nullable | Y | |||
SeasonType | season_type_all_star | Y | Season 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). | ||
TeamID | team_id | Y | |||
VsConference | vs_conference_nullable | Y | |||
VsDivision | vs_division_nullable | Y |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
matchupid | Int64 | Stats API identifier for matchupid associated with this NBA or WNBA Stats row. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
defense_category | String | NBA or WNBA Stats value for defense category in the playerdashptshotdefend result set. |
freq | Float64 | NBA or WNBA Stats value for freq in the playerdashptshotdefend result set. |
d_fgm | Float64 | Shooting metric for d fgm in the requested NBA or WNBA Stats split. |
d_fga | Float64 | Shooting metric for d fga in the requested NBA or WNBA Stats split. |
d_fg_pct | Float64 | Percentage or rate for d field goals percentage in the requested NBA or WNBA Stats split. |
normal_fg_pct | Float64 | Percentage or rate for normal field goals percentage in the requested NBA or WNBA Stats split. |
pct_plusminus | Float64 | Percentage share of plusminus for the requested NBA or WNBA Stats split. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
ImportError | curl_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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
DateFrom | date_from_nullable | Y | |||
DateTo | date_to_nullable | Y | |||
GameSegment | game_segment_nullable | Y | |||
LastNGames | last_n_games | Y | |||
LeagueID | league_id | Y | |||
Location | location_nullable | Y | |||
Month | month | Y | |||
OpponentTeamID | opponent_team_id | Y | |||
Outcome | outcome_nullable | Y | |||
PerMode | per_mode_simple | Y | |||
Period | period | Y | |||
PlayerID | player_id | Y | |||
Season | season | Y | Season 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. | ||
SeasonSegment | season_segment_nullable | Y | |||
SeasonType | season_type_all_star | Y | Season 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). | ||
TeamID | team_id | Y | |||
VsConference | vs_conference_nullable | Y | |||
VsDivision | vs_division_nullable | Y |
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_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
shot_type | String | Shot type label (e.g. 'Jump Shot', 'Layup'). |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
GeneralShooting
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
shot_type | String | Shot type label (e.g. 'Jump Shot', 'Layup'). |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ShotClockShooting
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
shot_clock_range | String | |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
DribbleShooting
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
dribble_range | String | |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ClosestDefenderShooting
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
close_def_dist_range | String | |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ClosestDefender10ftPlusShooting
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
close_def_dist_range | String | |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
TouchTimeShooting
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name_last_first | String | Player display name formatted as Last, First for sorting in NBA or WNBA Stats tables. |
sort_order | Int64 | Display order of the split rows within the result set (1 = first), as a string. |
gp | Int64 | Games played. |
g | Int64 | Games played. |
touch_time_range | String | Time value for touch time range in the NBA or WNBA Stats result set. |
fga_frequency | Float64 | Shooting metric for fga frequency in the requested NBA or WNBA Stats split. |
fgm | Float64 | Field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
efg_pct | Float64 | Percentage or rate for efg percentage in the requested NBA or WNBA Stats split. |
fg2_a_frequency | Float64 | Shooting metric for fg2a frequency in the requested NBA or WNBA Stats split. |
fg2_m | Float64 | Shooting metric for fg2m in the requested NBA or WNBA Stats split. |
fg2_a | Float64 | Shooting metric for fg2a in the requested NBA or WNBA Stats split. |
fg2_pct | Float64 | Percentage or rate for two-point field goals percentage in the requested NBA or WNBA Stats split. |
fg3_a_frequency | Float64 | Shooting metric for fg3a frequency in the requested NBA or WNBA Stats split. |
fg3_m | Float64 | Three-point field goals made. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
ImportError | curl_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')