WNBA — WNBA Stats API (stats.wnba.com) — Other
wnba_stats_alltimeleadersgrids
All time leaders grids.
Endpoint URL: GET https://stats.wnba.com/stats/alltimeleadersgrids
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
LeagueID | league_id | Y | |||
PerMode | per_mode_simple | Y | |||
SeasonType | season_type | Y | Season type, a label: Regular Season, Pre Season, Playoffs or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. | ||
TopX | topx | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (GPLeaders, PTSLeaders, ASTLeaders, STLLeaders, OREBLeaders, DREBLeaders, REBLeaders, BLKLeaders, FGMLeaders, FGALeaders, FG_PCTLeaders, TOVLeaders, FG3MLeaders, FG3ALeaders, FG3_PCTLeaders, PFLeaders, FTMLeaders, FTALeaders, FT_PCTLeaders) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
GPLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
gp | Int64 | Games played. |
gp_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
PTSLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
pts | Float64 | Points scored. |
pts_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
ASTLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
ast | Float64 | Assists. |
ast_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
STLLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
stl | Float64 | Steals. |
stl_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
OREBLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
oreb | Float64 | Offensive rebounds. |
oreb_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
DREBLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
dreb | Float64 | Defensive rebounds. |
dreb_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
REBLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
reb | Float64 | Total rebounds. |
reb_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
BLKLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
blk | Float64 | Blocks. |
blk_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FGMLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fgm | Float64 | Field goals made. |
fgm_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FGALeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fga | Float64 | Field goal attempts. |
fga_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FG_PCTLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg_pct_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
TOVLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
tov | Float64 | Turnovers. |
tov_rank | Int64 | All-time league rank of the player's career turnover total on the leaders grid. |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FG3MLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fg3_m | Float64 | Three-point field goals made. |
fg3_m_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FG3ALeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fg3_a | Float64 | Three-point field goal attempts. |
fg3_a_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FG3_PCTLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
fg3_pct_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
PFLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
pf | Float64 | Personal fouls. |
pf_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FTMLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
ftm | Float64 | Free throws made. |
ftm_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FTALeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
fta | Float64 | Free throw attempts. |
fta_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
FT_PCTLeaders
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
ft_pct | Float64 | Free throw percentage (0-1). |
ft_pct_rank | Int64 | |
is_active_flag | String | Flag indicating whether the player is currently active in the league. |
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
wnba_stats_alltimeleadersgrids(league_id='10')
wnba_stats_assistleaders
Assist leaders.
Endpoint URL: GET https://stats.wnba.com/stats/assistleaders
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
LeagueID | league_id | Y | |||
PerMode | per_mode_simple | Y | |||
PlayerOrTeam | player_or_team | Y | |||
Season | season | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. | ||
SeasonType | season_type_playoffs | Y | Season type, a label: Regular Season, Pre Season, Playoffs or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. |
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 |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
player_id | Int64 | Unique player identifier. |
player | String | Player name. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
jersey_num | String | Jersey number worn by the player. |
player_position | String | Player's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C'). |
ast | Float64 | Assists. |
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
wnba_stats_assistleaders(league_id='10', season='2024')
wnba_stats_assisttracker
Assist tracker.
Endpoint URL: GET https://stats.wnba.com/stats/assisttracker
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
College | college_nullable | Y | |||
Conference | conference_nullable | Y | |||
Country | country_nullable | Y | |||
DateFrom | date_from_nullable | Y | |||
DateTo | date_to_nullable | Y | |||
Division | division_simple_nullable | Y | |||
DraftPick | draft_pick_nullable | Y | |||
DraftYear | draft_year_nullable | Y | |||
GameScope | game_scope_simple_nullable | Y | |||
Height | height_nullable | Y | |||
LastNGames | last_n_games_nullable | Y | |||
LeagueID | league_id | Y | |||
Location | location_nullable | Y | |||
Month | month_nullable | Y | |||
OpponentTeamID | opponent_team_id_nullable | Y | |||
Outcome | outcome_nullable | Y | |||
PORound | po_round_nullable | Y | |||
PerMode | per_mode_simple_nullable | Y | |||
PlayerExperience | player_experience_nullable | Y | |||
PlayerPosition | player_position_abbreviation_nullable | Y | |||
Season | season_nullable | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. | ||
SeasonSegment | season_segment_nullable | Y | |||
SeasonType | season_type_all_star_nullable | Y | Season type, a label: Regular Season, Pre Season, Playoffs or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. | ||
StarterBench | starter_bench_nullable | Y | |||
TeamID | team_id_nullable | Y | |||
VsConference | vs_conference_nullable | Y | |||
VsDivision | vs_division_nullable | Y | |||
Weight | weight_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 |
|---|---|---|
assists | Float64 | Total assists. |
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
wnba_stats_assisttracker(league_id='10', season_nullable='2024')
wnba_stats_draftcombinestats
Draft combine stats.
Endpoint URL: GET https://stats.wnba.com/stats/draftcombinestats
Valid URL: https://stats.wnba.com/stats/draftcombinestats?LeagueID=10&SeasonYear=2024
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
LeagueID | league_id | Y | |||
SeasonYear | season_all_time | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. |
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 |
|---|---|---|
season | String | Season identifier (4-digit year or 'YYYY-YY' string). |
player_id | Int64 | Unique player identifier. |
first_name | String | Player's first name. |
last_name | String | Player's last name. |
player_name | String | Player name. |
position | String | Listed roster position (G, F, C, etc.). |
height_wo_shoes | Float64 | Height measured without shoes, in inches. |
height_wo_shoes_ft_in | String | Height without shoes formatted as feet and inches. |
height_w_shoes | String | Height measured with shoes, in inches. |
height_w_shoes_ft_in | String | Height with shoes formatted as feet and inches. |
weight | String | Player weight in pounds. |
wingspan | Float64 | Wingspan measured at the combine, in inches. |
wingspan_ft_in | String | Wingspan formatted as feet and inches. |
standing_reach | Float64 | Standing reach measured at the combine, in inches. |
standing_reach_ft_in | String | Standing reach formatted as feet and inches. |
body_fat_pct | String | Body fat percentage measured at the combine. |
hand_length | Float64 | Hand length measured at the combine, in inches. |
hand_width | Float64 | Hand width measured at the combine, in inches. |
standing_vertical_leap | Float64 | Standing (no-step) vertical leap, in inches. |
max_vertical_leap | Float64 | Maximum (running) vertical leap, in inches. |
lane_agility_time | Float64 | Lane agility drill time, in seconds. |
modified_lane_agility_time | Float64 | Modified (shuttle) lane agility drill time, in seconds. |
three_quarter_sprint | Float64 | Three-quarter-court sprint time, in seconds. |
bench_press | String | Repetitions of 185 pounds completed on the bench press. |
spot_fifteen_corner_left | String | Made-attempted result (e.g. "3-5") from the 15-foot left corner spot-up shooting station at the combine. |
spot_fifteen_break_left | String | Made-attempted result (e.g. "3-5") from the 15-foot left wing (break) spot-up shooting station at the combine. |
spot_fifteen_top_key | String | Made-attempted result (e.g. "3-5") from the 15-foot top of the key spot-up shooting station at the combine. |
spot_fifteen_break_right | String | Made-attempted result (e.g. "3-5") from the 15-foot right wing (break) spot-up shooting station at the combine. |
spot_fifteen_corner_right | String | Made-attempted result (e.g. "3-5") from the 15-foot right corner spot-up shooting station at the combine. |
spot_college_corner_left | String | Made-attempted result (e.g. "3-5") from the college three-point left corner spot-up shooting station at the combine. |
spot_college_break_left | String | Made-attempted result (e.g. "3-5") from the college three-point left wing (break) spot-up shooting station at the combine. |
spot_college_top_key | String | Made-attempted result (e.g. "3-5") from the college three-point top of the key spot-up shooting station at the combine. |
spot_college_break_right | String | Made-attempted result (e.g. "3-5") from the college three-point right wing (break) spot-up shooting station at the combine. |
spot_college_corner_right | String | Made-attempted result (e.g. "3-5") from the college three-point right corner spot-up shooting station at the combine. |
spot_nba_corner_left | String | Made-attempted result (e.g. "3-5") from the NBA three-point left corner spot-up shooting station at the combine. |
spot_nba_break_left | String | Made-attempted result (e.g. "3-5") from the NBA three-point left wing (break) spot-up shooting station at the combine. |
spot_nba_top_key | String | Made-attempted result (e.g. "3-5") from the NBA three-point top of the key spot-up shooting station at the combine. |
spot_nba_break_right | String | Made-attempted result (e.g. "3-5") from the NBA three-point right wing (break) spot-up shooting station at the combine. |
spot_nba_corner_right | String | Made-attempted result (e.g. "3-5") from the NBA three-point right corner spot-up shooting station at the combine. |
off_drib_fifteen_break_left | String | Made-attempted result from the 15-foot left wing (break) off-the-dribble shooting station at the combine. |
off_drib_fifteen_top_key | String | Made-attempted result from the 15-foot top of the key off-the-dribble shooting station at the combine. |
off_drib_fifteen_break_right | String | Made-attempted result from the 15-foot right wing (break) off-the-dribble shooting station at the combine. |
off_drib_college_break_left | String | Made-attempted result from the college three-point left wing (break) off-the-dribble shooting station at the combine. |
off_drib_college_top_key | String | Made-attempted result from the college three-point top of the key off-the-dribble shooting station at the combine. |
off_drib_college_break_right | String | Made-attempted result from the college three-point right wing (break) off-the-dribble shooting station at the combine. |
on_move_fifteen | String | Made-attempted result from the 15-foot shooting-on-the-move station at the combine. |
on_move_college | String | Made-attempted result from the college three-point shooting-on-the-move station at the combine. |
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
wnba_stats_draftcombinestats(league_id='10', season_all_time='2024')
wnba_stats_drafthistory
Draft history.
Endpoint URL: GET https://stats.wnba.com/stats/drafthistory
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
College | college_nullable | Y | |||
LeagueID | league_id | Y | |||
OverallPick | overall_pick_nullable | Y | |||
RoundNum | round_num_nullable | Y | |||
RoundPick | round_pick_nullable | Y | |||
Season | season_year_nullable | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. | ||
TeamID | team_id_nullable | Y | |||
TopX | topx_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 |
|---|---|---|
person_id | Int64 | Unique player identifier (V3 endpoints). |
player_name | String | Player name. |
season | String | Season identifier (4-digit year or 'YYYY-YY' string). |
round_number | Int64 | Numeric round. |
round_pick | Int64 | Round pick. |
overall_pick | Int64 | Overall pick. |
draft_type | String | NBA or WNBA Stats value for draft type in the drafthistory result set. |
team_id | Int64 | Unique team identifier. |
team_city | String | Team city or region (e.g. 'Las Vegas'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
organization | String | Organization. |
organization_type | String | Organization type. |
player_profile_flag | Int64 | Player profile flag. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
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]). curl_cffi is not installed. stats.nba.com/stats.wnba.com TLS-fingerprint-block plain requests, so the live transport requires it (pip install curl_cffi, or pip install sportsdataverse[all]). |
NoDataError | The host answered 404 -- the requested resource does not exist. The host answered HTTP 404. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. The host answered HTTP 400 / 422 (it rejected a parameter value). |
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. Any other non-2xx (401 / 403 / 429 / 5xx; a missing required Season draws an empty HTTP 500), a blank or non-JSON 2xx body, or a connection failure (timeout, reset), once SDV_PY_NBA_STATS_RETRIES retries are exhausted. |
Example
wnba_stats_drafthistory(league_id='10', season_year_nullable='2024')
wnba_stats_fantasywidget
Fantasy widget.
Endpoint URL: GET https://stats.wnba.com/stats/fantasywidget
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
ActivePlayers | active_players | Y | |||
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_nullable | Y | |||
OpponentTeamID | opponent_team_id_nullable | Y | |||
PORound | po_round_nullable | Y | |||
PlayerID | player_id_nullable | Y | |||
Position | position_nullable | Y | |||
Season | season | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.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 or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. | ||
TeamID | team_id_nullable | Y | |||
TodaysOpponent | todays_opponent | Y | |||
TodaysPlayers | todays_players | 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 |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
player_position | String | Player's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C'). |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
gp | Int64 | Games played. |
min | Float64 | Minutes played. |
fan_duel_pts | Float64 | Fantasy points under FanDuel's scoring formula. |
nba_fantasy_pts | Float64 | Fantasy points under the NBA's fantasy scoring formula. |
pts | Float64 | Points scored. |
reb | Float64 | Total rebounds. |
ast | Float64 | Assists. |
blk | Float64 | Blocks. |
stl | Float64 | Steals. |
tov | Float64 | Turnovers. |
fg3_m | Float64 | Three-point field goals made. |
fga | Float64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
fta | Float64 | Free throw attempts. |
ft_pct | Float64 | Free throw 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
wnba_stats_fantasywidget(league_id='10', season='2024')
wnba_stats_gamerotation
Game rotation.
Endpoint URL: GET https://stats.wnba.com/stats/gamerotation
Valid URL: https://stats.wnba.com/stats/gamerotation?GameID=1022200034&LeagueID=10
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameID | game_id | Y | |||
LeagueID | league_id | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (AwayTeam, HomeTeam) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
AwayTeam
| col_name | type | description |
|---|---|---|
game_id | String | Unique game identifier. |
team_id | Int64 | Unique team identifier. |
team_city | String | Team city or region (e.g. 'Las Vegas'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
person_id | Int64 | Unique player identifier (V3 endpoints). |
player_first | String | NBA or WNBA Stats value for player first in the gamerotation result set. |
player_last | String | NBA or WNBA Stats value for player last in the gamerotation result set. |
in_time_real | Float64 | Real-time clock value when the player entered the game rotation stint. |
out_time_real | Float64 | Real-time clock value when the player exited the game rotation stint. |
player_pts | Int64 | Scoring or score-margin metric for player points in the requested NBA or WNBA Stats split. |
pt_diff | Float64 | NBA or WNBA Stats value for pt diff in the gamerotation result set. |
usg_pct | Float64 | Percentage or rate for usage percentage in the requested NBA or WNBA Stats split. |
HomeTeam
| col_name | type | description |
|---|---|---|
game_id | String | Unique game identifier. |
team_id | Int64 | Unique team identifier. |
team_city | String | Team city or region (e.g. 'Las Vegas'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
person_id | Int64 | Unique player identifier (V3 endpoints). |
player_first | String | NBA or WNBA Stats value for player first in the gamerotation result set. |
player_last | String | NBA or WNBA Stats value for player last in the gamerotation result set. |
in_time_real | Float64 | Real-time clock value when the player entered the game rotation stint. |
out_time_real | Float64 | Real-time clock value when the player exited the game rotation stint. |
player_pts | Int64 | Scoring or score-margin metric for player points in the requested NBA or WNBA Stats split. |
pt_diff | Float64 | NBA or WNBA Stats value for pt diff in the gamerotation result set. |
usg_pct | Float64 | Percentage or rate for usage 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
wnba_stats_gamerotation(league_id='10')
wnba_stats_homepageleaders
Homepage leaders.
Endpoint URL: GET https://stats.wnba.com/stats/homepageleaders
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameScope | game_scope_detailed | Y | |||
LeagueID | league_id | Y | |||
PlayerOrTeam | player_or_team | Y | |||
PlayerScope | player_scope | Y | |||
Season | season | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. | ||
SeasonType | season_type_playoffs | Y | Season type, a label: Regular Season, Pre Season, Playoffs or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. | ||
StatCategory | stat_category | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (HomePageLeaders, LeagueAverage, LeagueMax) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
HomePageLeaders
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
pts | Float64 | Points scored. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ft_pct | Float64 | Free throw percentage (0-1). |
efg_pct | Float64 | Effective field goal percentage, as a decimal. |
ts_pct | Float64 | True shooting percentage (0-1). |
pts_per48 | Float64 | Points scored per 48 minutes played. |
LeagueAverage
| col_name | type | description |
|---|---|---|
pts | Float64 | Points scored. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ft_pct | Float64 | Free throw percentage (0-1). |
efg_pct | Float64 | Effective field goal percentage, as a decimal. |
ts_pct | Float64 | True shooting percentage (0-1). |
pts_per48 | Float64 | Points scored per 48 minutes played. |
LeagueMax
| col_name | type | description |
|---|---|---|
pts | Float64 | Points scored. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ft_pct | Float64 | Free throw percentage (0-1). |
efg_pct | Float64 | Effective field goal percentage, as a decimal. |
ts_pct | Float64 | True shooting percentage (0-1). |
pts_per48 | Float64 | Points scored per 48 minutes played. |
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
wnba_stats_homepageleaders(league_id='10', season='2024')
wnba_stats_homepagev2
Homepage v2.
Endpoint URL: GET https://stats.wnba.com/stats/homepagev2
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameScope | game_scope_detailed | Y | |||
LeagueID | league_id | Y | |||
PlayerOrTeam | player_or_team | Y | |||
PlayerScope | player_scope | Y | |||
Season | season | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. | ||
SeasonType | season_type_playoffs | Y | Season type, a label: Regular Season, Pre Season, Playoffs or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. | ||
StatType | stat_type | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (HomePageStat1, HomePageStat2, HomePageStat3, HomePageStat4, HomePageStat5, HomePageStat6, HomePageStat7, HomePageStat8) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
HomePageStat1
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
pts | Float64 | Points scored. |
HomePageStat2
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
reb | Float64 | Total rebounds. |
HomePageStat3
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
ast | Float64 | Assists. |
HomePageStat4
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
stl | Float64 | Steals. |
HomePageStat5
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
fg_pct | Float64 | Field goal percentage (0-1). |
HomePageStat6
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
ft_pct | Float64 | Free throw percentage (0-1). |
HomePageStat7
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
HomePageStat8
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
blk | Float64 | Blocks. |
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
wnba_stats_homepagev2(league_id='10', season='2024')
wnba_stats_hustlestatsboxscore
Hustle stats box score.
Endpoint URL: GET https://stats.wnba.com/stats/hustlestatsboxscore
Valid URL: https://stats.wnba.com/stats/hustlestatsboxscore
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameID | game_id | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (HustleStatsAvailable, PlayerStats, TeamStats) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
HustleStatsAvailable
| col_name | type | description |
|---|---|---|
game_id | String | Unique game identifier. |
hustle_status | Int64 | Hustle status. |
PlayerStats
| col_name | type | description |
|---|---|---|
game_id | String | Unique game identifier. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_city | String | Team city or region (e.g. 'Las Vegas'). |
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
start_position | String | Position the player started the game at (F, C, or G); empty for reserves. |
comment | String | Player status / inactive reason (e.g. 'DNP - Coach's Decision', 'Inactive'). |
minutes | String | Minutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2). |
pts | Int64 | Points scored. |
contested_shots | Float64 | Defensively contested shots. |
contested_shots_2_pt | Float64 | Opponent two-point attempts contested. |
contested_shots_3_pt | Float64 | Opponent three-point attempts contested. |
deflections | Float64 | Defensive deflections. |
charges_drawn | Float64 | Charges drawn. |
screen_assists | Float64 | Screen assists (resulting in a basket). |
screen_ast_pts | Float64 | Points teammates scored directly off the row's screen assists. |
off_loose_balls_recovered | Float64 | Loose balls recovered while on offense. |
def_loose_balls_recovered | Float64 | Loose balls recovered while on defense. |
loose_balls_recovered | Float64 | Total loose balls recovered. |
off_boxouts | Float64 | Box-outs recorded on the offensive glass. |
def_boxouts | Float64 | Box-outs recorded on the defensive glass. |
box_out_player_team_rebs | Float64 | Team rebounds secured following the row's box-outs. |
box_out_player_rebs | Float64 | Rebounds the player secured directly off their own box-outs. |
box_outs | Float64 | Box-outs executed. |
TeamStats
| col_name | type | description |
|---|---|---|
game_id | String | Unique game identifier. |
team_id | Int64 | Unique team identifier. |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_city | String | Team city or region (e.g. 'Las Vegas'). |
minutes | String | Minutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2). |
pts | Int64 | Points scored. |
contested_shots | Float64 | Defensively contested shots. |
contested_shots_2_pt | Float64 | Opponent two-point attempts contested. |
contested_shots_3_pt | Float64 | Opponent three-point attempts contested. |
deflections | Float64 | Defensive deflections. |
charges_drawn | Float64 | Charges drawn. |
screen_assists | Float64 | Screen assists (resulting in a basket). |
screen_ast_pts | Float64 | Points teammates scored directly off the row's screen assists. |
off_loose_balls_recovered | Float64 | Loose balls recovered while on offense. |
def_loose_balls_recovered | Float64 | Loose balls recovered while on defense. |
loose_balls_recovered | Float64 | Total loose balls recovered. |
off_boxouts | Float64 | Box-outs recorded on the offensive glass. |
def_boxouts | Float64 | Box-outs recorded on the defensive glass. |
box_out_player_team_rebs | Float64 | Team rebounds secured following the row's box-outs. |
box_out_player_rebs | Float64 | Rebounds the player secured directly off their own box-outs. |
box_outs | Float64 | Box-outs executed. |
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
wnba_stats_hustlestatsboxscore()
wnba_stats_infographicfanduelplayer
Infographic fanduel player.
Endpoint URL: GET https://stats.wnba.com/stats/infographicfanduelplayer
Valid URL: https://stats.wnba.com/stats/infographicfanduelplayer?GameID=1022200034
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameID | game_id | 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 |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
team_id | Int64 | Unique team identifier. |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
jersey_num | String | Jersey number worn by the player. |
player_position | String | Player's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C'). |
location | String | Filter results by game location. |
fan_duel_pts | Float64 | Scoring or score-margin metric for fan duel points in the requested NBA or WNBA Stats split. |
nba_fantasy_pts | Float64 | Nba fantasy points for the requested NBA or WNBA Stats split. |
usg_pct | Float64 | Percentage or rate for usage percentage in the requested NBA or WNBA Stats split. |
min | Float64 | Minutes played. |
fgm | Int64 | Field goals made. |
fga | Int64 | Field goal attempts. |
fg_pct | Float64 | Field goal percentage (0-1). |
fg3_m | Int64 | Three-point field goals made. |
fg3_a | Int64 | Three-point field goal attempts. |
fg3_pct | Float64 | Three-point field goal percentage (0-1). |
ftm | Int64 | Free throws made. |
fta | Int64 | Free throw attempts. |
ft_pct | Float64 | Free throw percentage (0-1). |
oreb | Int64 | Offensive rebounds. |
dreb | Int64 | Defensive rebounds. |
reb | Int64 | Total rebounds. |
ast | Int64 | Assists. |
tov | Int64 | Turnovers. |
stl | Int64 | Steals. |
blk | Int64 | Blocks. |
blka | Int64 | Blocked field-goal attempts against for the requested NBA or WNBA Stats split. |
pf | Int64 | Personal fouls. |
pfd | Int64 | Personal fouls drawn for the requested NBA or WNBA Stats split. |
pts | Int64 | Points scored. |
plus_minus | Int64 | Plus/minus point differential while on court. |
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
wnba_stats_infographicfanduelplayer()
wnba_stats_leaderstiles
Leaders tiles.
Endpoint URL: GET https://stats.wnba.com/stats/leaderstiles
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameScope | game_scope_detailed | Y | |||
LeagueID | league_id | Y | |||
PlayerOrTeam | player_or_team | Y | |||
PlayerScope | player_scope | Y | |||
Season | season | Y | Season year, e.g. 2024. 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. A WNBA season tips off in mid-May and becomes the default in June (2025 through May 2026, 2026 from June 2026); a draft (drafthistory, mid-April) in May. With season type Playoffs (or commonplayoffseries) the WNBA rolls over in October, after its mid-September playoffs start; with All Star in August, after the July game. A month table cannot follow a lockout or pandemic calendar: pass a season then. Without one stats.wnba.com answers an empty HTTP 500 or every season summed. | ||
SeasonType | season_type_playoffs | Y | Season type, a label: Regular Season, Pre Season, Playoffs or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs rolls over in October, All Star in August. | ||
Stat | stat | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (LeadersTiles, AllTimeSeasonHigh, LastSeasonHigh, LowSeasonHigh) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
LeadersTiles
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
player_id | Int64 | Unique player identifier. |
player | String | Player name. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
pts | Float64 | Points scored. |
AllTimeSeasonHigh
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
pts | Float64 | Points scored. |
season_year | String | Season year string ('YYYY-YY' format). |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
LastSeasonHigh
| col_name | type | description |
|---|---|---|
rank | Int64 | Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by. |
player_id | Int64 | Unique player identifier. |
player | String | Player name. |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
pts | Float64 | Points scored. |
LowSeasonHigh
| col_name | type | description |
|---|---|---|
player_id | Int64 | Unique player identifier. |
player_name | String | Player name. |
pts | Float64 | Points scored. |
season_year | String | Season year string ('YYYY-YY' format). |
team_id | Int64 | Unique team identifier. |
team_abbreviation | String | Short team abbreviation (e.g. 'LAS'). |
team_name | String | Full team display name (e.g. 'Las Vegas Aces'). |
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
wnba_stats_leaderstiles(league_id='10', season='2024')
wnba_stats_playbyplayv2
Play by play v2.
Endpoint URL: GET https://stats.wnba.com/stats/playbyplayv2
Valid URL: https://stats.wnba.com/stats/playbyplayv2?EndPeriod=0&GameID=1022200034&StartPeriod=0
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
EndPeriod | end_period | Y | |||
GameID | game_id | Y | |||
StartPeriod | start_period | Y |
Returns
return_parsed=True (default) — A dict of DataFrames keyed by result-set name (PlayByPlay, AvailableVideo) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
PlayByPlay
| col_name | type | description |
|---|---|---|
game_id | String | Unique game identifier. |
eventnum | Int64 | Sequential event number within the game's play-by-play feed. |
eventmsgtype | Int64 | Numeric event type code (1 = made shot, 2 = missed shot, 3 = free throw, 4 = rebound, 5 = turnover, 6 = foul, ...). |
eventmsgactiontype | Int64 | Numeric sub-type code refining eventmsgtype (e.g. the specific shot, foul, or turnover variety). |
period | Int64 | Period of the game (1-4 quarters; 5+ for OT). |
wctimestring | String | Wall-clock time of day when the event occurred. |
pctimestring | String | Game clock remaining in the period when the event occurred (MM:SS). |
homedescription | String | Text description of the event from the home team's perspective; empty when not a home-team action. |
neutraldescription | String | Neutral text description of the event (e.g. period start/end); empty for team actions. |
visitordescription | String | Text description of the event from the visiting team's perspective; empty when not a visitor action. |
score | String | Final score. |
scoremargin | String | Score margin after the event ('TIE' when tied); empty on non-scoring events. |
person1_type | Int64 | |
player1_id | Int64 | V2 PBP primary player ID (e.g. shooter / fouler). |
player1_name | String | V2 PBP primary player name. |
player1_team_id | Int64 | Team ID of player1. |
player1_team_city | String | Player1 team city. |
player1_team_nickname | String | Player1 team nickname. |
player1_team_abbreviation | String | Player1 team abbreviation. |
person2_type | Int64 | |
player2_id | Int64 | V2 PBP secondary player ID (e.g. assister / fouled-by). |
player2_name | String | V2 PBP secondary player name. |
player2_team_id | Int64 | Team ID of player2. |
player2_team_city | String | Player2 team city. |
player2_team_nickname | String | Player2 team nickname. |
player2_team_abbreviation | String | Player2 team abbreviation. |
person3_type | Int64 | |
player3_id | Int64 | V2 PBP tertiary player ID (e.g. blocker). |
player3_name | String | V2 PBP tertiary player name. |
player3_team_id | Int64 | Team ID of player3. |
player3_team_city | String | Player3 team city. |
player3_team_nickname | String | Player3 team nickname. |
player3_team_abbreviation | String | Player3 team abbreviation. |
video_available_flag | Int64 | Video available flag. |
AvailableVideo
| col_name | type | description |
|---|---|---|
video_available_flag | Int64 | Video available flag. |
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
wnba_stats_playbyplayv2()
wnba_stats_playbyplayv3
Play by play v3.
Endpoint URL: GET https://stats.wnba.com/stats/playbyplayv3
Valid URL: https://stats.wnba.com/stats/playbyplayv3?EndPeriod=0&GameID=1022200034&StartPeriod=0
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
EndPeriod | end_period | Y | |||
GameID | game_id | Y | |||
StartPeriod | start_period | Y |
Returns
return_parsed=True (default) — the output of parse_wnba_stats_result_sets; pass return_as_pandas=True for a pandas.DataFrame.
No returns table is published for this endpoint: the committed capture tests/fixtures/wnba_stats/endpoints/playbyplayv3.json is not a resultSets envelope (top-level keys: game, meta), which parse_nba_stats_result_sets does not read, so the parsed output is empty; use return_parsed=False for the raw payload.
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| 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
wnba_stats_playbyplayv3()
wnba_stats_videostatus
Video status.
Endpoint URL: GET https://stats.wnba.com/stats/videostatus
Valid URL: https://stats.wnba.com/stats/videostatus?GameDate=2022-06-10&LeagueID=10
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
GameDate | game_date | Y | |||
LeagueID | league_id | 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 |
|---|---|---|
game_id | String | Unique game identifier. |
game_date | String | Game date (YYYY-MM-DD). |
visitor_team_id | Int64 | Unique identifier for visitor team. |
visitor_team_city | String | City name of the visiting team. |
visitor_team_name | String | Nickname of the visiting team. |
visitor_team_abbreviation | String | Abbreviation of the visiting team. |
home_team_id | Int64 | Unique identifier for the home team. |
home_team_city | String | Home team city / location. |
home_team_name | String | Home team name. |
home_team_abbreviation | String | Home team's three-letter tricode (e.g. 'PHI'). |
game_status | Int64 | Game status label. |
game_status_text | String | Game status display text (e.g. 'Final', '4:32 - 4th'). |
is_available | Int64 | Flag indicating whether game video is available in the league's stats video system. |
pt_xyz_available | Int64 | Pt xyz available. |
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
wnba_stats_videostatus(league_id='10')