Skip to main content

WNBA — WNBA Stats API (stats.wnba.com) — Other

wnba_stats_alltimeleadersgrids​

All time leaders grids.

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

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

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
PerModeper_mode_simpleY
SeasonTypeseason_typeYSeason 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.
TopXtopxY

Returns​

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

GPLeaders

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

PTSLeaders

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

ASTLeaders

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

STLLeaders

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

OREBLeaders

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

DREBLeaders

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

REBLeaders

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

BLKLeaders

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

FGMLeaders

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

FGALeaders

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

FG_PCTLeaders

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

TOVLeaders

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

FG3MLeaders

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

FG3ALeaders

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

FG3_PCTLeaders

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

PFLeaders

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

FTMLeaders

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

FTALeaders

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

FT_PCTLeaders

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

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

Raises​

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

Example​

wnba_stats_alltimeleadersgrids(league_id='10')

wnba_stats_assistleaders​

Assist leaders.

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

Valid URL: https://stats.wnba.com/stats/assistleaders?LeagueID=10&PerMode=PerGame&PlayerOrTeam=Team&Season=2024&SeasonType=Regular+Season

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
PerModeper_mode_simpleY
PlayerOrTeamplayer_or_teamY
SeasonseasonYSeason 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.
SeasonTypeseason_type_playoffsYSeason 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_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
player_idInt64Unique player identifier.
playerStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
jersey_numStringJersey number worn by the player.
player_positionStringPlayer's position abbreviation as stats.nba.com lists it (e.g. 'G', 'F-G', 'C').
astFloat64Assists.

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

Raises​

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

Example​

wnba_stats_assistleaders(league_id='10', season='2024')

wnba_stats_assisttracker​

Assist tracker.

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

Valid URL: https://stats.wnba.com/stats/assisttracker?LeagueID=10&OpponentTeamID=0&PerMode=PerGame&Season=2024&SeasonType=Regular+Season&TeamID=0

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableY
Conferenceconference_nullableY
Countrycountry_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_simple_nullableY
DraftPickdraft_pick_nullableY
DraftYeardraft_year_nullableY
GameScopegame_scope_simple_nullableY
Heightheight_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simple_nullableY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
Seasonseason_nullableYSeason 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.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_all_star_nullableYSeason 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.
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY
Weightweight_nullableY

Returns​

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

col_nametypedescription
assistsFloat64Total assists.

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

Raises​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
SeasonYearseason_all_timeYSeason 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_nametypedescription
seasonStringSeason identifier (4-digit year or 'YYYY-YY' string).
player_idInt64Unique player identifier.
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
player_nameStringPlayer name.
positionStringListed roster position (G, F, C, etc.).
height_wo_shoesFloat64Height measured without shoes, in inches.
height_wo_shoes_ft_inStringHeight without shoes formatted as feet and inches.
height_w_shoesStringHeight measured with shoes, in inches.
height_w_shoes_ft_inStringHeight with shoes formatted as feet and inches.
weightStringPlayer weight in pounds.
wingspanFloat64Wingspan measured at the combine, in inches.
wingspan_ft_inStringWingspan formatted as feet and inches.
standing_reachFloat64Standing reach measured at the combine, in inches.
standing_reach_ft_inStringStanding reach formatted as feet and inches.
body_fat_pctStringBody fat percentage measured at the combine.
hand_lengthFloat64Hand length measured at the combine, in inches.
hand_widthFloat64Hand width measured at the combine, in inches.
standing_vertical_leapFloat64Standing (no-step) vertical leap, in inches.
max_vertical_leapFloat64Maximum (running) vertical leap, in inches.
lane_agility_timeFloat64Lane agility drill time, in seconds.
modified_lane_agility_timeFloat64Modified (shuttle) lane agility drill time, in seconds.
three_quarter_sprintFloat64Three-quarter-court sprint time, in seconds.
bench_pressStringRepetitions of 185 pounds completed on the bench press.
spot_fifteen_corner_leftStringMade-attempted result (e.g. "3-5") from the 15-foot left corner spot-up shooting station at the combine.
spot_fifteen_break_leftStringMade-attempted result (e.g. "3-5") from the 15-foot left wing (break) spot-up shooting station at the combine.
spot_fifteen_top_keyStringMade-attempted result (e.g. "3-5") from the 15-foot top of the key spot-up shooting station at the combine.
spot_fifteen_break_rightStringMade-attempted result (e.g. "3-5") from the 15-foot right wing (break) spot-up shooting station at the combine.
spot_fifteen_corner_rightStringMade-attempted result (e.g. "3-5") from the 15-foot right corner spot-up shooting station at the combine.
spot_college_corner_leftStringMade-attempted result (e.g. "3-5") from the college three-point left corner spot-up shooting station at the combine.
spot_college_break_leftStringMade-attempted result (e.g. "3-5") from the college three-point left wing (break) spot-up shooting station at the combine.
spot_college_top_keyStringMade-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_rightStringMade-attempted result (e.g. "3-5") from the college three-point right wing (break) spot-up shooting station at the combine.
spot_college_corner_rightStringMade-attempted result (e.g. "3-5") from the college three-point right corner spot-up shooting station at the combine.
spot_nba_corner_leftStringMade-attempted result (e.g. "3-5") from the NBA three-point left corner spot-up shooting station at the combine.
spot_nba_break_leftStringMade-attempted result (e.g. "3-5") from the NBA three-point left wing (break) spot-up shooting station at the combine.
spot_nba_top_keyStringMade-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_rightStringMade-attempted result (e.g. "3-5") from the NBA three-point right wing (break) spot-up shooting station at the combine.
spot_nba_corner_rightStringMade-attempted result (e.g. "3-5") from the NBA three-point right corner spot-up shooting station at the combine.
off_drib_fifteen_break_leftStringMade-attempted result from the 15-foot left wing (break) off-the-dribble shooting station at the combine.
off_drib_fifteen_top_keyStringMade-attempted result from the 15-foot top of the key off-the-dribble shooting station at the combine.
off_drib_fifteen_break_rightStringMade-attempted result from the 15-foot right wing (break) off-the-dribble shooting station at the combine.
off_drib_college_break_leftStringMade-attempted result from the college three-point left wing (break) off-the-dribble shooting station at the combine.
off_drib_college_top_keyStringMade-attempted result from the college three-point top of the key off-the-dribble shooting station at the combine.
off_drib_college_break_rightStringMade-attempted result from the college three-point right wing (break) off-the-dribble shooting station at the combine.
on_move_fifteenStringMade-attempted result from the 15-foot shooting-on-the-move station at the combine.
on_move_collegeStringMade-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​

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

Example​

wnba_stats_draftcombinestats(league_id='10', season_all_time='2024')

wnba_stats_drafthistory​

Draft history.

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

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

API ParameterPythonPatternRequiredNullableDescription
Collegecollege_nullableY
LeagueIDleague_idY
OverallPickoverall_pick_nullableY
RoundNumround_num_nullableY
RoundPickround_pick_nullableY
Seasonseason_year_nullableYSeason 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.
TeamIDteam_id_nullableY
TopXtopx_nullableY

Returns​

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

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

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

Raises​

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

Example​

wnba_stats_drafthistory(league_id='10', season_year_nullable='2024')

wnba_stats_fantasywidget​

Fantasy widget.

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

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

API ParameterPythonPatternRequiredNullableDescription
ActivePlayersactive_playersY
DateFromdate_from_nullableY
DateTodate_to_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
Monthmonth_nullableY
OpponentTeamIDopponent_team_id_nullableY
PORoundpo_round_nullableY
PlayerIDplayer_id_nullableY
Positionposition_nullableY
SeasonseasonYSeason 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.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_all_starYSeason 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.
TeamIDteam_id_nullableY
TodaysOpponenttodays_opponentY
TodaysPlayerstodays_playersY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

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

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

Raises​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
GameIDgame_idY
LeagueIDleague_idY

Returns​

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

AwayTeam

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

HomeTeam

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

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

Raises​

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

Example​

wnba_stats_gamerotation(league_id='10')

wnba_stats_homepageleaders​

Homepage leaders.

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

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

API ParameterPythonPatternRequiredNullableDescription
GameScopegame_scope_detailedY
LeagueIDleague_idY
PlayerOrTeamplayer_or_teamY
PlayerScopeplayer_scopeY
SeasonseasonYSeason 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.
SeasonTypeseason_type_playoffsYSeason 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.
StatCategorystat_categoryY

Returns​

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

HomePageLeaders

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

LeagueAverage

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

LeagueMax

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

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

Raises​

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

Example​

wnba_stats_homepageleaders(league_id='10', season='2024')

wnba_stats_homepagev2​

Homepage v2.

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

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

API ParameterPythonPatternRequiredNullableDescription
GameScopegame_scope_detailedY
LeagueIDleague_idY
PlayerOrTeamplayer_or_teamY
PlayerScopeplayer_scopeY
SeasonseasonYSeason 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.
SeasonTypeseason_type_playoffsYSeason 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.
StatTypestat_typeY

Returns​

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

HomePageStat1

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

HomePageStat2

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

HomePageStat3

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

HomePageStat4

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

HomePageStat5

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
fg_pctFloat64Field goal percentage (0-1).

HomePageStat6

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
ft_pctFloat64Free throw percentage (0-1).

HomePageStat7

col_nametypedescription
rankInt64Rank of the row within the returned leaderboard (1 = best) for the stat the endpoint sorts by.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
fg3_pctFloat64Three-point field goal percentage (0-1).

HomePageStat8

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

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

Raises​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
GameIDgame_idY

Returns​

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

HustleStatsAvailable

col_nametypedescription
game_idStringUnique game identifier.
hustle_statusInt64Hustle status.

PlayerStats

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

TeamStats

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

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

Raises​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
GameIDgame_idY

Returns​

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

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

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

Raises​

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

Example​

wnba_stats_infographicfanduelplayer()

wnba_stats_leaderstiles​

Leaders tiles.

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

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

API ParameterPythonPatternRequiredNullableDescription
GameScopegame_scope_detailedY
LeagueIDleague_idY
PlayerOrTeamplayer_or_teamY
PlayerScopeplayer_scopeY
SeasonseasonYSeason 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.
SeasonTypeseason_type_playoffsYSeason 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.
StatstatY

Returns​

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

LeadersTiles

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

AllTimeSeasonHigh

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

LastSeasonHigh

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

LowSeasonHigh

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

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

Raises​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
EndPeriodend_periodY
GameIDgame_idY
StartPeriodstart_periodY

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_nametypedescription
game_idStringUnique game identifier.
eventnumInt64Sequential event number within the game's play-by-play feed.
eventmsgtypeInt64Numeric event type code (1 = made shot, 2 = missed shot, 3 = free throw, 4 = rebound, 5 = turnover, 6 = foul, ...).
eventmsgactiontypeInt64Numeric sub-type code refining eventmsgtype (e.g. the specific shot, foul, or turnover variety).
periodInt64Period of the game (1-4 quarters; 5+ for OT).
wctimestringStringWall-clock time of day when the event occurred.
pctimestringStringGame clock remaining in the period when the event occurred (MM:SS).
homedescriptionStringText description of the event from the home team's perspective; empty when not a home-team action.
neutraldescriptionStringNeutral text description of the event (e.g. period start/end); empty for team actions.
visitordescriptionStringText description of the event from the visiting team's perspective; empty when not a visitor action.
scoreStringFinal score.
scoremarginStringScore margin after the event ('TIE' when tied); empty on non-scoring events.
person1_typeInt64
player1_idInt64V2 PBP primary player ID (e.g. shooter / fouler).
player1_nameStringV2 PBP primary player name.
player1_team_idInt64Team ID of player1.
player1_team_cityStringPlayer1 team city.
player1_team_nicknameStringPlayer1 team nickname.
player1_team_abbreviationStringPlayer1 team abbreviation.
person2_typeInt64
player2_idInt64V2 PBP secondary player ID (e.g. assister / fouled-by).
player2_nameStringV2 PBP secondary player name.
player2_team_idInt64Team ID of player2.
player2_team_cityStringPlayer2 team city.
player2_team_nicknameStringPlayer2 team nickname.
player2_team_abbreviationStringPlayer2 team abbreviation.
person3_typeInt64
player3_idInt64V2 PBP tertiary player ID (e.g. blocker).
player3_nameStringV2 PBP tertiary player name.
player3_team_idInt64Team ID of player3.
player3_team_cityStringPlayer3 team city.
player3_team_nicknameStringPlayer3 team nickname.
player3_team_abbreviationStringPlayer3 team abbreviation.
video_available_flagInt64Video available flag.

AvailableVideo

col_nametypedescription
video_available_flagInt64Video available flag.

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

Raises​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
EndPeriodend_periodY
GameIDgame_idY
StartPeriodstart_periodY

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​

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

Example​

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 ParameterPythonPatternRequiredNullableDescription
GameDategame_dateY
LeagueIDleague_idY

Returns​

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

col_nametypedescription
game_idStringUnique game identifier.
game_dateStringGame date (YYYY-MM-DD).
visitor_team_idInt64Unique identifier for visitor team.
visitor_team_cityStringCity name of the visiting team.
visitor_team_nameStringNickname of the visiting team.
visitor_team_abbreviationStringAbbreviation of the visiting team.
home_team_idInt64Unique identifier for the home team.
home_team_cityStringHome team city / location.
home_team_nameStringHome team name.
home_team_abbreviationStringHome team's three-letter tricode (e.g. 'PHI').
game_statusInt64Game status label.
game_status_textStringGame status display text (e.g. 'Final', '4:32 - 4th').
is_availableInt64Flag indicating whether game video is available in the league's stats video system.
pt_xyz_availableInt64Pt xyz available.

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

Raises​

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

Example​

wnba_stats_videostatus(league_id='10')