Skip to main content

WNBA — WNBA Stats API (stats.wnba.com) — League dashboards: leaguedashteamshotlocations–leaguedashteamstats

wnba_stats_leaguedashteamshotlocations​

League dash team shot locations.

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

Valid URL: https://stats.wnba.com/stats/leaguedashteamshotlocations?Conference=&DateFrom=&DateTo=&DistanceRange=By+Zone&Division=&GameScope=&GameSegment=&LastNGames=0&LeagueID=10&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PORound=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerExperience=&PlayerPosition=&PlusMinus=N&Rank=N&Season=2024&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
Conferenceconference_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
DistanceRangedistance_rangeY
Divisiondivision_simple_nullableY
GameScopegame_scope_simple_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_simpleY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
PlusMinusplus_minusY
RankrankY
SeasonseasonYSeason 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.
ShotClockRangeshot_clock_range_nullableY
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

col_nametypedescription
team_idInt64Unique team identifier.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
less_than_5_ft_fgmFloat64Field goals made from less than 5 feet.
less_than_5_ft_fgaFloat64Field goals attempted from less than 5 feet.
less_than_5_ft_fg_pctFloat64Field goal percentage on shots from less than 5 feet, as a decimal.
5_9_ft_fgmFloat64Field goals made from 5-9 feet.
5_9_ft_fgaFloat64Field goals attempted from 5-9 feet.
5_9_ft_fg_pctFloat64Field goal percentage on shots from 5-9-f feet, as a decimal.
10_14_ft_fgmFloat64Field goals made from 10-14 feet.
10_14_ft_fgaFloat64Field goals attempted from 10-14 feet.
10_14_ft_fg_pctFloat64Field goal percentage on shots from 10-14-f feet, as a decimal.
15_19_ft_fgmFloat64Field goals made from 15-19 feet.
15_19_ft_fgaFloat64Field goals attempted from 15-19 feet.
15_19_ft_fg_pctFloat64Field goal percentage on shots from 15-19-f feet, as a decimal.
20_24_ft_fgmFloat64Field goals made from 20-24 feet.
20_24_ft_fgaFloat64Field goals attempted from 20-24 feet.
20_24_ft_fg_pctFloat64Field goal percentage on shots from 20-24-f feet, as a decimal.
25_29_ft_fgmFloat64Field goals made from 25-29 feet.
25_29_ft_fgaFloat64Field goals attempted from 25-29 feet.
25_29_ft_fg_pctFloat64Field goal percentage on shots from 25-29-f feet, as a decimal.
30_34_ft_fgmFloat64Field goals made from 30-34 feet.
30_34_ft_fgaFloat64Field goals attempted from 30-34 feet.
30_34_ft_fg_pctFloat64Field goal percentage on shots from 30-34-f feet, as a decimal.
35_39_ft_fgmFloat64Field goals made from 35-39 feet.
35_39_ft_fgaFloat64Field goals attempted from 35-39 feet.
35_39_ft_fg_pctFloat64Field goal percentage on shots from 35-39-f feet, as a decimal.
40+_ft_fgmFloat64Team field goals made from 40 feet and beyond, per the stats API's shot-location distance bands.
40+_ft_fgaFloat64Team field goals attempted from 40 feet and beyond, per the stats API's shot-location distance bands.
40+_ft_fg_pctFloat64Team field-goal percentage on attempts from 40 feet and beyond, as a decimal.

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_leaguedashteamshotlocations(league_id='10', season='2024')

wnba_stats_leaguedashteamstats​

League dash team stats.

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

Valid URL: https://stats.wnba.com/stats/leaguedashteamstats?Conference=&DateFrom=&DateTo=&Division=&GameScope=&GameSegment=&LastNGames=0&LeagueID=10&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PORound=&PaceAdjust=N&PerMode=Totals&Period=0&PlusMinus=N&Rank=N&Season=2024&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&StarterBench=&TeamID=0&TwoWay=&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
Conferenceconference_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_simple_nullableY
GameScopegame_scope_simple_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_detailed_defenseY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerExperienceplayer_experience_nullableY
PlayerPositionplayer_position_abbreviation_nullableY
PlusMinusplus_minusY
RankrankY
SeasonseasonYSeason 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.
ShotClockRangeshot_clock_range_nullableY
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
TwoWaytwo_way_nullableY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY

Returns​

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

col_nametypedescription
team_idInt64Unique team identifier.
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
gpInt64Games played.
wInt64Wins.
lInt64Losses.
w_pctFloat64Wins percentage (0-1 decimal).
minFloat64Minutes played.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).
fg3_mFloat64Three-point field goals made.
fg3_aFloat64Three-point field goal attempts.
fg3_pctFloat64Three-point field goal percentage (0-1).
ftmFloat64Free throws made.
ftaFloat64Free throw attempts.
ft_pctFloat64Free throw percentage (0-1).
orebFloat64Offensive rebounds.
drebFloat64Defensive rebounds.
rebFloat64Total rebounds.
astFloat64Assists.
tovFloat64Turnovers.
stlFloat64Steals.
blkFloat64Blocks.
blkaFloat64Blocked field-goal attempts against for the requested NBA or WNBA Stats split.
pfFloat64Personal fouls.
pfdFloat64Personal fouls drawn for the requested NBA or WNBA Stats split.
ptsFloat64Points scored.
plus_minusFloat64Plus/minus point differential while on court.
gp_rankInt64Rank for games played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_rankInt64Rank for wins within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
l_rankInt64Rank for losses within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
w_pct_rankInt64Rank for winning percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
min_rankInt64Rank for minutes played within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fgm_rankInt64Rank for field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fga_rankInt64Rank for field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg_pct_rankInt64Rank for field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_m_rankInt64Rank for three-point field goals made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_a_rankInt64Rank for three-point field goals attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fg3_pct_rankInt64Rank for three-point field-goal percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ftm_rankInt64Rank for free throws made within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
fta_rankInt64Rank for free throws attempted within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ft_pct_rankInt64Rank for free-throw percentage within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
oreb_rankInt64Rank for offensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dreb_rankInt64Rank for defensive rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
reb_rankInt64Rank for total rebounds within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
ast_rankInt64Rank for assists within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
tov_rankInt64Rank for turnovers within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
stl_rankInt64Rank for steals within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blk_rankInt64Rank for blocks within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
blka_rankInt64Rank for blocked field-goal attempts against within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pf_rankInt64Rank for personal fouls within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pfd_rankInt64Rank for personal fouls drawn within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
pts_rankInt64Rank for points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
plus_minus_rankInt64Rank for plus-minus within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.

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_leaguedashteamstats(league_id='10', season='2024')