PlayerAwards

PlayerAwards

#Description

This Endpoint gives all the awards that a player has won.

from nba_api.stats.endpoints import playerawards

playerawards.PlayerAwards(`required parameter`)

#Query Parameters

API Parameter NamePython Parameter VariableDescriptionStatusNullable
PlayerIDplayer_idPlayer IDRequiredNo

#Arguments Taken

This Endpoint returns only player awards with no additional features.

#Response

{'PlayerAwards': ['PERSON_ID',
  'FIRST_NAME',
  'LAST_NAME',
  'TEAM',
  'DESCRIPTION',
  'ALL_NBA_TEAM_NUMBER',
  'SEASON',
  'MONTH',
  'WEEK',
  'CONFERENCE',
  'TYPE',
  'SUBTYPE1',
  'SUBTYPE2',
  'SUBTYPE3']}

#Response fields

#example

Getting all Andrew Wiggins awards in the NBA

from nba_api.stats.endpoints import playerawards
wiggs = playerawards.PlayerAwards(203952)
wiggs.get_json()

Results:

'{"resource": "playerawards", "parameters": {"PlayerID": 203952}, "resultSets": [{"name": "PlayerAwards", "headers": ["PERSON_ID", "FIRST_NAME", "LAST_NAME", "TEAM", "DESCRIPTION", "ALL_NBA_TEAM_NUMBER", "SEASON", "MONTH", "WEEK", "CONFERENCE", "TYPE", "SUBTYPE1", "SUBTYPE2", "SUBTYPE3"], "rowSet": [[203952, "Andrew", "Wiggins", "Minnesota Timberwolves", "All-Rookie Team", "1", "2014-15", null, null, "1610612750", "Award", "Kia Motors", "KIART", null], [203952, "Andrew", "Wiggins", "Minnesota Timberwolves", "NBA Rookie of the Month", null, "2014-15", "1/1/2015", null, "West", "Award", "Kia Motors", "KIRMO", null], [203952, "Andrew", "Wiggins", "Minnesota Timberwolves", "NBA Rookie of the Month", null, "2014-15", "11/1/2014", null, "West", "Award", "Kia Motors", "KIRMO", null], [203952, "Andrew", "Wiggins", "Minnesota Timberwolves", "NBA Rookie of the Month", null, "2014-15", "12/1/2014", null, "West", "Award", "Kia Motors", "KIRMO", null], [203952, "Andrew", "Wiggins", "Minnesota Timberwolves", "NBA Rookie of the Year", null, "2014-15", null, null, null, "Award", "Kia Motors", "KIROY", null]]}]}'