Assist Leaders

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 NamePython Parameter VariableDescriptionStatusNullable
LeagueIDleague_idOptions include NBA, ABA, G league, WNBA.RequiredDefaults to NBA.
PerModeper_mode_simpleOptions include total, per 36 minutes or per gameRequiredDefaults to total.
PlayerOrTeamplayer_or_teamOptions to get results for either players or the teamRequiredDefaults to team data
Seasonseason_year_nullableOptions include current season, current datetime, current year of season.OptionalDefaults to current season
SeasonTypeseason_type_nullableOther options include regular season or preseason.OptionalYes

#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:


RANKPLAYER_IDPLAYERTEAM_IDTEAM_ABBREVIATIONTEAM_NAMEJERSEY_NUMPLAYER_POSITIONAST
012544LeBron James1610612747LALLos Angeles Lakers23F684
12201937Ricky Rubio1610612756PHXPhoenix Suns11G570
231629027Trae Young1610612737ATLAtlanta Hawks11G560
341629029Luka Doncic1610612742DALDallas Mavericks77F-G538
45203081Damian Lillard1610612757PORPortland Trail Blazers0G530