Skip to main content
Version: 0.2.0

NBA — NBA Stats API (stats.nba.com) — Other: playoffpicture–synergyplaytypes

nba_stats_playoffpicture​

Playoff picture.

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

Valid URL: https://stats.nba.com/stats/playoffpicture?LeagueID=00&SeasonID=22022

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
SeasonIDseason_idY

Returns​

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

EastConfPlayoffPicture

col_nametypedescription
conferenceStringConference name.
high_seed_rankInt64
high_seed_teamString
high_seed_team_idInt64
low_seed_rankInt64
low_seed_teamString
low_seed_team_idInt64
high_seed_series_wInt64
high_seed_series_lInt64
high_seed_series_remaining_gInt64
high_seed_series_remaining_home_gInt64
high_seed_series_remaining_away_gInt64

WestConfPlayoffPicture

col_nametypedescription
conferenceStringConference name.
high_seed_rankInt64
high_seed_teamString
high_seed_team_idInt64
low_seed_rankInt64
low_seed_teamString
low_seed_team_idInt64
high_seed_series_wInt64
high_seed_series_lInt64
high_seed_series_remaining_gInt64
high_seed_series_remaining_home_gInt64
high_seed_series_remaining_away_gInt64

EastConfStandings

col_nametypedescription
conferenceStringConference name.
rankInt64Conference standing position of the team (1 = top seed) in the playoff picture.
teamStringTeam-side label or team identifier.
team_slugStringURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_idInt64Unique team identifier.
winsInt64Total wins.
lossesInt64Total losses.
pctFloat64Win percentage.
divStringAbbreviation of the team's division.
confStringcharacter.
homeStringHome.
awayStringAway record.
gbFloat64Games behind the conference leader.
gr_over_500Int64Remaining games against teams with winning (over .500) records.
gr_over_500_homeInt64Remaining home games against teams with winning records.
gr_over_500_awayInt64Remaining road games against teams with winning records.
gr_under_500Int64Remaining games against teams with losing (under .500) records.
gr_under_500_homeInt64Remaining home games against teams with losing records.
gr_under_500_awayInt64Remaining road games against teams with losing records.
ranking_criteriaInt64Code for the ranking or tiebreak criteria applied to the team in the playoff picture.
clinched_playoffsInt64Flag (1/0) for whether the team has clinched a playoff berth.
clinched_conferenceInt64Flag (1/0) for whether the team has clinched the conference title.
clinched_divisionInt64Flag (1/0) for whether the team has clinched its division.
eliminated_playoffsInt64Flag (1/0) for whether the team has been eliminated from playoff contention.
sosa_remainingStringStrength of schedule of the team's remaining opponents (combined opponent winning percentage).

WestConfStandings

col_nametypedescription
conferenceStringConference name.
rankInt64Conference standing position of the team (1 = top seed) in the playoff picture.
teamStringTeam-side label or team identifier.
team_slugStringURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_idInt64Unique team identifier.
winsInt64Total wins.
lossesInt64Total losses.
pctFloat64Win percentage.
divStringAbbreviation of the team's division.
confStringcharacter.
homeStringHome.
awayStringAway record.
gbFloat64Games behind the conference leader.
gr_over_500Int64Remaining games against teams with winning (over .500) records.
gr_over_500_homeInt64Remaining home games against teams with winning records.
gr_over_500_awayInt64Remaining road games against teams with winning records.
gr_under_500Int64Remaining games against teams with losing (under .500) records.
gr_under_500_homeInt64Remaining home games against teams with losing records.
gr_under_500_awayInt64Remaining road games against teams with losing records.
ranking_criteriaInt64Code for the ranking or tiebreak criteria applied to the team in the playoff picture.
clinched_playoffsInt64Flag (1/0) for whether the team has clinched a playoff berth.
clinched_conferenceInt64Flag (1/0) for whether the team has clinched the conference title.
clinched_divisionInt64Flag (1/0) for whether the team has clinched its division.
eliminated_playoffsInt64Flag (1/0) for whether the team has been eliminated from playoff contention.
sosa_remainingStringStrength of schedule of the team's remaining opponents (combined opponent winning percentage).

EastConfRemainingGames

col_nametypedescription
teamStringTeam-side label or team identifier.
team_idInt64Unique team identifier.
remaining_gInt64
remaining_home_gInt64
remaining_away_gInt64

WestConfRemainingGames

col_nametypedescription
teamStringTeam-side label or team identifier.
team_idInt64Unique team identifier.
remaining_gInt64
remaining_home_gInt64
remaining_away_gInt64

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​

nba_stats_playoffpicture(league_id='00')

nba_stats_synergyplaytypes​

Synergy play types.

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

Valid URL: https://stats.nba.com/stats/synergyplaytypes?LeagueID=00&PerMode=PerGame&PlayType=Isolation&PlayerOrTeam=P&SeasonType=Regular+Season&SeasonYear=2024-25&TypeGrouping=Offensive

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
PerModeper_mode_simpleY
PlayTypeplay_type_nullableY
PlayerOrTeamplayer_or_team_abbreviationY
SeasonTypeseason_type_all_starYSeason type, a label: Regular Season, Pre Season, Playoffs, PlayIn or All Star (each endpoint takes a subset). Not ESPN's numeric code: 3 is HTTP 400. A default season follows it: Playoffs / PlayIn roll over in May (NBA, G League), All Star in March (NBA).
SeasonYearseasonYSeason label, e.g. 2024-25. Defaults at call time by a calendar cutoff, the month after a season's first games, so it can lag the newest rows by a few weeks. An NBA season tips off in late October and becomes the default in November (2025-26 through October 2026, 2026-27 from November 2026); a G League season (regular season from late December) in January; a Summer League (played in July, which stats.nba.com labels 2026-27 in 2026) in August; a draft combine (May) in June; a draft (drafthistory, a year; late June) in July. With season type Playoffs / PlayIn (or commonplayoffseries) the NBA and the G League roll over in May, after their playoffs start; with All Star the NBA rolls over in March, after the February game (the G League has no All-Star rows and keeps its own rule). A month table cannot follow a lockout or pandemic calendar (1998-99, 2011-12, 2020-21): pass a season then. Without one stats.nba.com answers an empty HTTP 500 or every season summed.
TypeGroupingtype_grouping_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
season_idStringUnique season identifier.
player_idInt64Unique player identifier.
player_nameStringPlayer name.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
play_typeStringPlay type description.
type_groupingStringWhether the play-type row measures the offensive or defensive side.
percentileFloat64League percentile of the row's points per possession for the play type, as a decimal.
gpInt64Games played.
poss_pctFloat64Poss percentage (0-1 decimal).
pppFloat64Points scored per possession on the play type (Synergy play-type tracking).
fg_pctFloat64Field goal percentage (0-1).
ft_poss_pctFloat64Share of play-type possessions ending in free throws, as a decimal.
tov_poss_pctFloat64Share of play-type possessions ending in a turnover, as a decimal.
sf_poss_pctFloat64Share of play-type possessions on which a shooting foul was drawn, as a decimal.
plusone_poss_pctFloat64Share of play-type possessions producing an and-one, as a decimal.
score_poss_pctFloat64Share of play-type possessions on which points were scored, as a decimal.
efg_pctFloat64Effective field goal percentage on the play type, as a decimal.
possFloat64Poss.
ptsFloat64Points scored.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fgmxFloat64Field goals missed on the play type.

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​

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