Skip to main content

nba_playercompare

Endpoint URL#

https://stats.nba.com/stats/playercompare

Valid URL#

https://stats.nba.com/stats/playercompare?Conference=&DateFrom=&DateTo=&Division=&GameSegment=&LastNGames=0&LeagueID=&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PaceAdjust=N&PerMode=Totals&Period=0&PlayerIDList=202681%2C203078%2C2544%2C201567%2C203954&PlusMinus=N&Rank=N&Season=2019-20&SeasonSegment=&SeasonType=Regular+Season&ShotClockRange=&VsConference=&VsDivision=&VsPlayerIDList=201566%2C201939%2C201935%2C201142%2C203076

Parameters#

API Parameter NameParameterPatternRequiredNullable
LastNGameslast_n_gamesY
MeasureTypemeasure_type_detailed_defense^(Base)\|(Advanced)\|(Misc)\|(Four Factors)\|(Scoring)\|(Opponent)\|(Usage)\|(Defense)$Y
MonthmonthY
OpponentTeamIDopponent_team_idY
PaceAdjustpace_adjust^(Y)\|(N)$Y
PerModeper_mode_detailed^(Totals)\|(PerGame)\|(MinutesPer)\|(Per48)\|(Per40)\|(Per36)\|(PerMinute)\|(PerPossession)\|(PerPlay)\|(Per100Possessions)\|(Per100Plays)$Y
PeriodperiodY
PlayerIDListplayer_id_listY
PlusMinusplus_minus^(Y)\|(N)$Y
Rankrank^(Y)\|(N)$Y
SeasonseasonY
SeasonTypeseason_type_playoffs^(Regular Season)\|(Pre Season)\|(Playoffs)$Y
VsPlayerIDListvs_player_id_listY
VsDivisionvs_division_nullable^((Atlantic)\|(Central)\|(Northwest)\|(Pacific)\|(Southeast)\|(Southwest)\|(East)\|(West))?$YY
VsConferencevs_conference_nullable^((East)\|(West))?$YY
ShotClockRangeshot_clock_range_nullableY
SeasonSegmentseason_segment_nullable^((Post All-Star)\|(Pre All-Star))?$YY
Outcomeoutcome_nullable^((W)\|(L))?$YY
Locationlocation_nullable^((Home)\|(Road))?$YY
LeagueIDleague_id_nullableY
GameSegmentgame_segment_nullable^((First Half)\|(Overtime)\|(Second Half))?$YY
Divisiondivision_simple_nullableY
DateTodate_to_nullableYY
DateFromdate_from_nullableYY
Conferenceconference_nullable^((East)\|(West))?$Y

Data Sets#

Individual individual#

['GROUP_SET', 'DESCRIPTION', 'MIN', 'FGM', 'FGA', 'FG_PCT', 'FG3M', 'FG3A', 'FG3_PCT', 'FTM', 'FTA', 'FT_PCT', 'OREB', 'DREB', 'REB', 'AST', 'TOV', 'STL', 'BLK', 'BLKA', 'PF', 'PFD', 'PTS', 'PLUS_MINUS']

OverallCompare overall_compare#

['GROUP_SET', 'DESCRIPTION', 'MIN', 'FGM', 'FGA', 'FG_PCT', 'FG3M', 'FG3A', 'FG3_PCT', 'FTM', 'FTA', 'FT_PCT', 'OREB', 'DREB', 'REB', 'AST', 'TOV', 'STL', 'BLK', 'BLKA', 'PF', 'PFD', 'PTS', 'PLUS_MINUS']

JSON#

{    "data_sets": {        "Individual": [            "GROUP_SET",            "DESCRIPTION",            "MIN",            "FGM",            "FGA",            "FG_PCT",            "FG3M",            "FG3A",            "FG3_PCT",            "FTM",            "FTA",            "FT_PCT",            "OREB",            "DREB",            "REB",            "AST",            "TOV",            "STL",            "BLK",            "BLKA",            "PF",            "PFD",            "PTS",            "PLUS_MINUS"        ],        "OverallCompare": [            "GROUP_SET",            "DESCRIPTION",            "MIN",            "FGM",            "FGA",            "FG_PCT",            "FG3M",            "FG3A",            "FG3_PCT",            "FTM",            "FTA",            "FT_PCT",            "OREB",            "DREB",            "REB",            "AST",            "TOV",            "STL",            "BLK",            "BLKA",            "PF",            "PFD",            "PTS",            "PLUS_MINUS"        ]    },    "endpoint": "PlayerCompare",    "last_validated_date": "2020-08-15",    "nullable_parameters": [        "Conference",        "DateFrom",        "DateTo",        "Division",        "GameSegment",        "LeagueID",        "Location",        "Outcome",        "SeasonSegment",        "ShotClockRange",        "VsConference",        "VsDivision"    ],    "parameter_patterns": {        "Conference": "^((East)|(West))?$",        "DateFrom": null,        "DateTo": null,        "Division": null,        "GameSegment": "^((First Half)|(Overtime)|(Second Half))?$",        "LastNGames": null,        "LeagueID": null,        "Location": "^((Home)|(Road))?$",        "MeasureType": "^(Base)|(Advanced)|(Misc)|(Four Factors)|(Scoring)|(Opponent)|(Usage)|(Defense)$",        "Month": null,        "OpponentTeamID": null,        "Outcome": "^((W)|(L))?$",        "PaceAdjust": "^(Y)|(N)$",        "PerMode": "^(Totals)|(PerGame)|(MinutesPer)|(Per48)|(Per40)|(Per36)|(PerMinute)|(PerPossession)|(PerPlay)|(Per100Possessions)|(Per100Plays)$",        "Period": null,        "PlayerIDList": null,        "PlusMinus": "^(Y)|(N)$",        "Rank": "^(Y)|(N)$",        "Season": null,        "SeasonSegment": "^((Post All-Star)|(Pre All-Star))?$",        "SeasonType": "^(Regular Season)|(Pre Season)|(Playoffs)$",        "ShotClockRange": null,        "VsConference": "^((East)|(West))?$",        "VsDivision": "^((Atlantic)|(Central)|(Northwest)|(Pacific)|(Southeast)|(Southwest)|(East)|(West))?$",        "VsPlayerIDList": null    },    "parameters": [        "Conference",        "DateFrom",        "DateTo",        "Division",        "GameSegment",        "LastNGames",        "LeagueID",        "Location",        "MeasureType",        "Month",        "OpponentTeamID",        "Outcome",        "PaceAdjust",        "PerMode",        "Period",        "PlayerIDList",        "PlusMinus",        "Rank",        "Season",        "SeasonSegment",        "SeasonType",        "ShotClockRange",        "VsConference",        "VsDivision",        "VsPlayerIDList"    ],    "required_parameters": [        "DateFrom",        "DateTo",        "GameSegment",        "LastNGames",        "Location",        "MeasureType",        "Month",        "OpponentTeamID",        "Outcome",        "PaceAdjust",        "PerMode",        "Period",        "PlayerIDList",        "PlusMinus",        "Rank",        "Season",        "SeasonSegment",        "SeasonType",        "VsConference",        "VsDivision",        "VsPlayerIDList"    ],    "status": "success"}

Last validated 2020-08-16