Assist Leaders
#Description
This Endpoint returns the assist leaders for seasons. It can return the leaders for either teams or players.
from nba_api.stats.endpoints import assistleaders
assistleaders.AssistLeaders()
#Query Parameters
API Parameter Name | Python Parameter Variable | Description | Status | Nullable |
---|---|---|---|---|
LeagueID | league_id | Options include NBA, ABA, G league, WNBA. | Required | Defaults to NBA. |
PerMode | per_mode_simple | Options include total, per 36 minutes or per game | Required | Defaults to total. |
PlayerOrTeam | player_or_team | Options to get results for either players or the team | Required | Defaults to team data |
Season | season_year_nullable | Options include current season, current datetime, current year of season. | Optional | Defaults to current season |
SeasonType | season_type_nullable | Other options include regular season or preseason. | Optional | Yes |
#Arguments Taken
This endpoint returns the assist leaders for each season either by team points or assists
#Response
'{'AssistLeaders': ['RANK', 'TEAM_ID', 'TEAM_ABBREVIATION', 'TEAM_NAME', 'AST']}''
#Example
Getting the player assist leaders of 2019-20 season
from nba_api.stats.endpoints import assistleaders
ast_leaders19_20 = assistleaders.AssistLeaders(season="2019-20", player_or_team="Player")
ast_leaders19_20.get_data_frames()
Result:
RANK | PLAYER_ID | PLAYER | TEAM_ID | TEAM_ABBREVIATION | TEAM_NAME | JERSEY_NUM | PLAYER_POSITION | AST | |
---|---|---|---|---|---|---|---|---|---|
0 | 1 | 2544 | LeBron James | 1610612747 | LAL | Los Angeles Lakers | 23 | F | 684 |
1 | 2 | 201937 | Ricky Rubio | 1610612756 | PHX | Phoenix Suns | 11 | G | 570 |
2 | 3 | 1629027 | Trae Young | 1610612737 | ATL | Atlanta Hawks | 11 | G | 560 |
3 | 4 | 1629029 | Luka Doncic | 1610612742 | DAL | Dallas Mavericks | 77 | F-G | 538 |
4 | 5 | 203081 | Damian Lillard | 1610612757 | POR | Portland Trail Blazers | 0 | G | 530 |