Skip to main content

NBA — NBA Stats API (stats.nba.com) — Player: playergamelogs–playervsplayer

nba_stats_playergamelogs​

Player game logs.

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

Valid URL: https://stats.nba.com/stats/playergamelogs?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&Outcome=&PORound=&PerMode=Totals&Period=0&PlayerID=&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_games_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_player_game_logs_nullableY
Monthmonth_nullableY
OppTeamIDoppteamidY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PerModeper_mode_simple_nullableY
Periodperiod_nullableY
PlayerIDplayer_id_nullableY
Seasonseason_nullableYSeason 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.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_nullableYSeason 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).
ShotClockRangeshot_clock_range_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
season_yearStringSeason year string ('YYYY-YY' format).
player_idInt64Unique player identifier.
player_nameStringPlayer name.
nicknameStringTeam or athlete nickname.
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
team_nameStringFull team display name (e.g. 'Las Vegas Aces').
game_idStringUnique game identifier.
game_dateStringGame date (YYYY-MM-DD).
matchupStringMatchup.
wlStringWl.
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.
rebFloat64Rebounds per game.
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.
nba_fantasy_ptsFloat64Nba fantasy points for the requested NBA or WNBA Stats split.
dd2Int64Double-doubles for the requested NBA or WNBA Stats split.
td3Int64Triple-doubles for the requested NBA or WNBA Stats split.
wnba_fantasy_ptsFloat64Wnba fantasy points for the requested NBA or WNBA Stats split.
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.
nba_fantasy_pts_rankInt64Rank for NBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
dd2_rankInt64Rank for double-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
td3_rankInt64Rank for triple-doubles within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
wnba_fantasy_pts_rankInt64Rank for WNBA fantasy points within the requested NBA or WNBA Stats leaderboard or split, where 1 is the leader.
available_flagInt64Flag indicating whether the requested NBA or WNBA Stats video or data asset is available.
min_secStringMinutes and seconds played, formatted as a game-clock duration string.
team_countInt64NBA or WNBA Stats value for team count in the playergamelogs result set.

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_playergamelogs(league_id='00', season_nullable='2024-25')

nba_stats_playergamestreakfinder​

Player game streak finder.

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

Valid URL: https://stats.nba.com/stats/playergamestreakfinder?ActiveStreaksOnly=&Conference=&DateFrom=&DateTo=&Division=&DraftNumber=&DraftRound=&DraftTeamID=0&DraftYear=&EqAST=&EqBLK=&EqDD=&EqDREB=&EqFG3A=&EqFG3M=&EqFG3_PCT=&EqFGA=&EqFGM=&EqFG_PCT=&EqFTA=&EqFTM=&EqFT_PCT=&EqMINUTES=&EqOREB=&EqPF=&EqPTS=&EqREB=&EqSTL=&EqTD=&EqTOV=&GameID=&GtAST=&GtBLK=&GtDD=&GtDREB=&GtFG3A=&GtFG3M=&GtFG3_PCT=&GtFGA=&GtFGM=&GtFG_PCT=&GtFTA=&GtFTM=&GtFT_PCT=&GtMINUTES=&GtOREB=&GtPF=&GtPTS=&GtREB=&GtSTL=&GtTD=&GtTOV=&LeagueID=00&Location=&LtAST=&LtBLK=&LtDD=&LtDREB=&LtFG3A=&LtFG3M=&LtFG3_PCT=&LtFGA=&LtFGM=&LtFG_PCT=&LtFTA=&LtFTM=&LtFT_PCT=&LtMINUTES=&LtOREB=&LtPF=&LtPTS=&LtREB=&LtSTL=&LtTD=&LtTOV=&MinGames=&Outcome=&PORound=&PlayerID=&RookieYear=&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&StarterBench=&TeamID=0&VsConference=&VsDivision=&VsTeamID=0&YearsExperience=

API ParameterPythonPatternRequiredNullableDescription
ActiveStreaksOnlyactive_streaks_only_nullableY
Conferenceconference_nullableY
DateFromdate_from_nullableY
DateTodate_to_nullableY
Divisiondivision_simple_nullableY
DraftNumberdraft_number_nullableY
DraftRounddraft_round_nullableY
DraftTeamIDdraft_team_id_nullableY
DraftYeardraft_year_nullableY
EqASTeq_ast_nullableY
EqBLKeq_blk_nullableY
EqDDeq_dd_nullableY
EqDREBeq_dreb_nullableY
EqFG3Aeq_fg3a_nullableY
EqFG3Meq_fg3m_nullableY
EqFG3_PCTeq_fg3_pct_nullableY
EqFGAeq_fga_nullableY
EqFGMeq_fgm_nullableY
EqFG_PCTeq_fg_pct_nullableY
EqFTAeq_fta_nullableY
EqFTMeq_ftm_nullableY
EqFT_PCTeq_ft_pct_nullableY
EqMINUTESeq_minutes_nullableY
EqOREBeq_oreb_nullableY
EqPFeq_pf_nullableY
EqPTSeq_pts_nullableY
EqREBeq_reb_nullableY
EqSTLeq_stl_nullableY
EqTDeq_td_nullableY
EqTOVeq_tov_nullableY
GameIDgame_id_nullableY
GtASTgt_ast_nullableY
GtBLKgt_blk_nullableY
GtDDgt_dd_nullableY
GtDREBgt_dreb_nullableY
GtFG3Agt_fg3a_nullableY
GtFG3Mgt_fg3m_nullableY
GtFG3_PCTgt_fg3_pct_nullableY
GtFGAgt_fga_nullableY
GtFGMgt_fgm_nullableY
GtFG_PCTgt_fg_pct_nullableY
GtFTAgt_fta_nullableY
GtFTMgt_ftm_nullableY
GtFT_PCTgt_ft_pct_nullableY
GtMINUTESgt_minutes_nullableY
GtOREBgt_oreb_nullableY
GtPFgt_pf_nullableY
GtPTSgt_pts_nullableY
GtREBgt_reb_nullableY
GtSTLgt_stl_nullableY
GtTDgt_td_nullableY
GtTOVgt_tov_nullableY
LeagueIDleague_idY
Locationlocation_nullableY
LtASTlt_ast_nullableY
LtBLKlt_blk_nullableY
LtDDlt_dd_nullableY
LtDREBlt_dreb_nullableY
LtFG3Alt_fg3a_nullableY
LtFG3Mlt_fg3m_nullableY
LtFG3_PCTlt_fg3_pct_nullableY
LtFGAlt_fga_nullableY
LtFGMlt_fgm_nullableY
LtFG_PCTlt_fg_pct_nullableY
LtFTAlt_fta_nullableY
LtFTMlt_ftm_nullableY
LtFT_PCTlt_ft_pct_nullableY
LtMINUTESlt_minutes_nullableY
LtOREBlt_oreb_nullableY
LtPFlt_pf_nullableY
LtPTSlt_pts_nullableY
LtREBlt_reb_nullableY
LtSTLlt_stl_nullableY
LtTDlt_td_nullableY
LtTOVlt_tov_nullableY
MinGamesmin_games_nullableY
Outcomeoutcome_nullableY
PORoundpo_round_nullableY
PlayerIDplayer_id_nullableY
RookieYearrookie_year_nullableY
Seasonseason_nullableYSeason 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.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_nullableYSeason 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).
StarterBenchstarter_bench_nullableY
TeamIDteam_id_nullableY
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY
VsTeamIDvs_team_id_nullableY
YearsExperienceyears_experience_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_name_last_firstStringPlayer display name formatted as Last, First for sorting in NBA or WNBA Stats tables.
player_idInt64Unique player identifier.
gamestreakInt64NBA or WNBA Stats value for gamestreak in the playergamestreakfinder result set.
startdateStringDate or timestamp for startdate in the NBA or WNBA Stats result set.
enddateStringDate or timestamp for enddate in the NBA or WNBA Stats result set.
activestreakInt64NBA or WNBA Stats value for activestreak in the playergamestreakfinder result set.
numseasonsInt64NBA or WNBA Stats value for numseasons in the playergamestreakfinder result set.
lastseasonStringNBA or WNBA Stats value for lastseason in the playergamestreakfinder result set.
firstseasonStringNBA or WNBA Stats value for firstseason in the playergamestreakfinder result set.

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_playergamestreakfinder(league_id='00', season_nullable='2024-25')

nba_stats_playerindex​

Player index.

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

Valid URL: https://stats.nba.com/stats/playerindex?College=&Country=&DraftPick=&DraftRound=&DraftYear=&Height=&Historical=1&LeagueID=00&Season=2024-25&TeamID=0&Weight=

API ParameterPythonPatternRequiredNullableDescription
Activeactive_nullableY
AllStarallstar_nullableY
Collegecollege_nullableY
Countrycountry_nullableY
DraftPickdraft_pick_nullableY
DraftRounddraft_round_nullableY
DraftYeardraft_year_nullableY
Heightheight_nullableY
Historicalhistorical_nullableY
LeagueIDleague_idY
SeasonseasonYSeason 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.
TeamIDteam_id_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
person_idInt64Unique player identifier (V3 endpoints).
player_last_nameStringPlayer's last name.
player_first_nameStringPlayer's first name.
player_slugStringURL-safe player identifier.
team_idInt64Unique team identifier.
team_slugStringURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
is_defunctInt64Flag indicating is defunct for the requested NBA or WNBA Stats context.
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').
jersey_numberStringJersey number.
positionStringListed roster position (G, F, C, etc.).
heightStringPlayer height (string e.g. '6-2' or inches).
weightStringPlayer weight in pounds.
collegeStringCollege.
countryStringVenue country.
draft_yearInt64Draft year (4-digit).
draft_roundInt64Round of the draft selection.
draft_numberInt64Overall pick the player was selected with, as a string; 'Undrafted' when never drafted.
roster_statusFloat64Roster status flag: 1 when the player is on a current roster, 0 otherwise.
from_yearStringFirst season.
to_yearStringMost recent season.
ptsFloat64Points scored.
rebFloat64Rebounds per game.
astFloat64Assists.
stats_timeframeStringTime value for stats timeframe in the NBA or WNBA Stats result set.

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_playerindex(league_id='00', season='2024-25')

nba_stats_playerprofilev2​

Player profile v2.

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

Valid URL: https://stats.nba.com/stats/playerprofilev2?LeagueID=00&PerMode=Totals&PlayerID=2544

API ParameterPythonPatternRequiredNullableDescription
LeagueIDleague_idY
PerModeper_mode36Y
PlayerIDplayer_idY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (SeasonTotalsRegularSeason, CareerTotalsRegularSeason, SeasonTotalsPostSeason, CareerTotalsPostSeason, SeasonTotalsAllStarSeason, CareerTotalsAllStarSeason, SeasonTotalsCollegeSeason, CareerTotalsCollegeSeason, SeasonTotalsPreseason, CareerTotalsPreseason, SeasonRankingsRegularSeason, SeasonRankingsPostSeason, SeasonHighs, CareerHighs, NextGame) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

SeasonTotalsRegularSeason

col_nametypedescription
player_idInt64Unique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
player_ageFloat64NBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

CareerTotalsRegularSeason

col_nametypedescription
player_idInt64Unique player identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

SeasonTotalsPostSeason

col_nametypedescription
player_idInt64Unique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
player_ageFloat64NBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

CareerTotalsPostSeason

col_nametypedescription
player_idInt64Unique player identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

SeasonTotalsAllStarSeason

col_nametypedescription
player_idInt64Unique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
player_ageFloat64NBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

CareerTotalsAllStarSeason

col_nametypedescription
player_idInt64Unique player identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

SeasonTotalsCollegeSeason

col_nametypedescription
player_idStringUnique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
organization_idString
school_nameStringCollege or school of the season row (SeasonTotalsCollegeSeason set).
player_ageStringNBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpStringGames played.
gsStringGames started.
minStringMinutes played.
fgmStringField goals made.
fgaStringField goal attempts.
fg_pctStringField goal percentage (0-1).
fg3_mStringThree-point field goals made.
fg3_aStringThree-point field goal attempts.
fg3_pctStringThree-point field goal percentage (0-1).
ftmStringFree throws made.
ftaStringFree throw attempts.
ft_pctStringFree throw percentage (0-1).
orebStringOffensive rebounds.
drebStringDefensive rebounds.
rebStringRebounds per game.
astStringAssists.
stlStringSteals.
blkStringBlocks.
tovStringTurnovers.
pfStringPersonal fouls.
ptsStringPoints scored.

CareerTotalsCollegeSeason

col_nametypedescription
player_idStringUnique player identifier.
league_idStringLeague identifier ('10' = WNBA).
organization_idString
gpStringGames played.
gsStringGames started.
minStringMinutes played.
fgmStringField goals made.
fgaStringField goal attempts.
fg_pctStringField goal percentage (0-1).
fg3_mStringThree-point field goals made.
fg3_aStringThree-point field goal attempts.
fg3_pctStringThree-point field goal percentage (0-1).
ftmStringFree throws made.
ftaStringFree throw attempts.
ft_pctStringFree throw percentage (0-1).
orebStringOffensive rebounds.
drebStringDefensive rebounds.
rebStringRebounds per game.
astStringAssists.
stlStringSteals.
blkStringBlocks.
tovStringTurnovers.
pfStringPersonal fouls.
ptsStringPoints scored.

SeasonTotalsPreseason

col_nametypedescription
player_idInt64Unique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
player_ageFloat64NBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

CareerTotalsPreseason

col_nametypedescription
player_idInt64Unique player identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
gpInt64Games played.
gsInt64Games started.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
stlFloat64Steals.
blkFloat64Blocks.
tovFloat64Turnovers.
pfFloat64Personal fouls.
ptsFloat64Points scored.

SeasonRankingsRegularSeason

col_nametypedescription
player_idInt64Unique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
player_ageStringNBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpStringGames played.
gsStringGames started.
rank_pg_minInt64
rank_pg_fgmInt64
rank_pg_fgaInt64
rank_fg_pctInt64
rank_pg_fg3_mInt64
rank_pg_fg3_aInt64
rank_fg3_pctInt64
rank_pg_ftmInt64
rank_pg_ftaInt64
rank_ft_pctInt64
rank_pg_orebInt64
rank_pg_drebInt64
rank_pg_rebInt64
rank_pg_astInt64
rank_pg_stlInt64
rank_pg_blkInt64
rank_pg_tovInt64
rank_pg_ptsInt64
rank_pg_effInt64

SeasonRankingsPostSeason

col_nametypedescription
player_idInt64Unique player identifier.
season_idStringUnique season identifier.
league_idStringLeague identifier ('10' = WNBA).
team_idInt64Unique team identifier.
team_abbreviationStringShort team abbreviation (e.g. 'LAS').
player_ageStringNBA or WNBA Stats value for player age in the playerprofilev2 result set.
gpStringGames played.
gsStringGames started.
rank_pg_minInt64
rank_pg_fgmInt64
rank_pg_fgaInt64
rank_fg_pctInt64
rank_pg_fg3_mInt64
rank_pg_fg3_aInt64
rank_fg3_pctInt64
rank_pg_ftmInt64
rank_pg_ftaInt64
rank_ft_pctInt64
rank_pg_orebInt64
rank_pg_drebInt64
rank_pg_rebInt64
rank_pg_astInt64
rank_pg_stlInt64
rank_pg_blkInt64
rank_pg_tovInt64
rank_pg_ptsInt64
rank_pg_effInt64

SeasonHighs

col_nametypedescription
player_idInt64Unique player identifier.
game_idStringUnique game identifier.
game_dateStringGame date (YYYY-MM-DD).
vs_team_idInt64
vs_team_cityString
vs_team_nameString
vs_team_abbreviationString
statStringStat.
stat_valueInt64Stat value.
stat_orderInt64
date_estString

CareerHighs

col_nametypedescription
player_idInt64Unique player identifier.
game_idStringUnique game identifier.
game_dateStringGame date (YYYY-MM-DD).
vs_team_idInt64
vs_team_cityString
vs_team_nameString
vs_team_abbreviationString
statStringStat.
stat_valueInt64Stat value.
stat_orderInt64
date_estString

NextGame

col_nametypedescription
game_idStringUnique game identifier.
game_dateStringGame date (YYYY-MM-DD).
game_timeStringGame start time.
locationStringLocation.
player_team_idInt64Team id of the player's current team in the NextGame set.
player_team_cityString
player_team_nicknameString
player_team_abbreviationString
vs_team_idInt64
vs_team_cityString
vs_team_nicknameString
vs_team_abbreviationString

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_playerprofilev2(league_id='00')

nba_stats_playervsplayer​

Player vs player.

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

Valid URL: https://stats.nba.com/stats/playervsplayer?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerID=2544&PlusMinus=N&Rank=N&Season=2024-25&SeasonSegment=&SeasonType=Regular+Season&VsConference=&VsDivision=&VsPlayerID=203076

API ParameterPythonPatternRequiredNullableDescription
DateFromdate_from_nullableY
DateTodate_to_nullableY
GameSegmentgame_segment_nullableY
LastNGameslast_n_gamesY
LeagueIDleague_idY
Locationlocation_nullableY
MeasureTypemeasure_type_detailed_defenseY
MonthmonthY
OpponentTeamIDopponent_team_idY
Outcomeoutcome_nullableY
PaceAdjustpace_adjustY
PerModeper_mode_detailedY
PeriodperiodY
PlayerIDplayer_idY
PlusMinusplus_minusY
RankrankY
SeasonseasonYSeason 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.
SeasonSegmentseason_segment_nullableY
SeasonTypeseason_type_playoffsYSeason 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).
VsConferencevs_conference_nullableY
VsDivisionvs_division_nullableY
VsPlayerIDvs_player_idY

Returns​

return_parsed=True (default) — A dict of DataFrames keyed by result-set name (Overall, OnOffCourt, ShotDistanceOverall, ShotDistanceOnCourt, ShotDistanceOffCourt, ShotAreaOverall, ShotAreaOnCourt, ShotAreaOffCourt, PlayerInfo, VsPlayerInfo) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

Overall

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
group_valueString
player_idInt64Unique player identifier.
player_nameStringPlayer name.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
tovFloat64Turnovers.
stlFloat64Steals.
blkFloat64Blocks.
blkaFloat64Shot attempts blocked by opponents (blocks against).
pfFloat64Personal fouls.
pfdFloat64Personal fouls drawn.
ptsFloat64Points scored.
plus_minusFloat64Plus/minus point differential while on court.
nba_fantasy_ptsFloat64Fantasy points under the NBA's fantasy scoring formula.

OnOffCourt

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
player_idInt64Unique player identifier.
player_nameStringPlayer name.
vs_player_idInt64Stats API player id of the comparison (vs.) player.
vs_player_nameStringName of the comparison (vs.) player.
court_statusStringWhether the split covers minutes with the vs. player on or off the court.
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.
rebFloat64Rebounds per game.
astFloat64Assists.
tovFloat64Turnovers.
stlFloat64Steals.
blkFloat64Blocks.
blkaFloat64Shot attempts blocked by opponents (blocks against).
pfFloat64Personal fouls.
pfdFloat64Personal fouls drawn.
ptsFloat64Points scored.
plus_minusFloat64Plus/minus point differential while on court.
nba_fantasy_ptsFloat64Fantasy points under the NBA's fantasy scoring formula.

ShotDistanceOverall

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
group_valueString
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).

ShotDistanceOnCourt

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
player_idInt64Unique player identifier.
player_nameStringPlayer name.
vs_player_idInt64Stats API player id of the comparison (vs.) player.
vs_player_nameStringName of the comparison (vs.) player.
court_statusStringWhether the split covers minutes with the vs. player on or off the court.
group_valueString
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).

ShotDistanceOffCourt

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
player_idInt64Unique player identifier.
player_nameStringPlayer name.
vs_player_idInt64Stats API player id of the comparison (vs.) player.
vs_player_nameStringName of the comparison (vs.) player.
court_statusStringWhether the split covers minutes with the vs. player on or off the court.
group_valueString
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).

ShotAreaOverall

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
group_valueString
player_idInt64Unique player identifier.
player_nameStringPlayer name.
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).

ShotAreaOnCourt

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
player_idInt64Unique player identifier.
player_nameStringPlayer name.
vs_player_idInt64Stats API player id of the comparison (vs.) player.
vs_player_nameStringName of the comparison (vs.) player.
court_statusStringWhether the split covers minutes with the vs. player on or off the court.
group_valueString
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).

ShotAreaOffCourt

col_nametypedescription
group_setStringName of the split group the row belongs to (e.g. Overall, By Opponent, By Month).
player_idInt64Unique player identifier.
player_nameStringPlayer name.
vs_player_idInt64Stats API player id of the comparison (vs.) player.
vs_player_nameStringName of the comparison (vs.) player.
court_statusStringWhether the split covers minutes with the vs. player on or off the court.
group_valueString
fgmFloat64Field goals made.
fgaFloat64Field goal attempts.
fg_pctFloat64Field goal percentage (0-1).

PlayerInfo

col_nametypedescription
person_idInt64Unique player identifier (V3 endpoints).
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
display_first_lastString
display_last_comma_firstString
display_fi_lastString
birthdateStringDate of birth as an ISO timestamp string (e.g. '1984-12-30T00:00:00').
schoolStringPlayer school / pre-draft team.
countryStringVenue country.
last_affiliationString

VsPlayerInfo

col_nametypedescription
person_idInt64Unique player identifier (V3 endpoints).
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
display_first_lastString
display_last_comma_firstString
display_fi_lastString
birthdateStringDate of birth as an ISO timestamp string (e.g. '1984-12-30T00:00:00').
schoolStringPlayer school / pre-draft team.
countryStringVenue country.
last_affiliationString

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_playervsplayer(league_id='00', season='2024-25')