AllTimeLeadersGrids

AllTimeLeadersGrids

This Endpoint returns All time leaders for different stats in the NBA.

from nba_api.stats.endpoints import alltimeleadersgrids
alltimeleadersgrids.AllTimeLeadersGrids()

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.
SeasonTypeseason_typeOther options include regular season or preseason.RequiredDefaults to regular season.
TopXtopxNo info availableRequiredNo info available

Arguments Taken

['ASTLeaders', 'BLKLeaders', 'DREBLeaders', 'FG3ALeaders', 'FG3MLeaders', 'FG3_PCTLeaders', 'FGALeaders', 'FGMLeaders', 'FG_PCTLeaders', 'FTALeaders', 'FTMLeaders', 'FT_PCTLeaders', 'GPLeaders', 'OREBLeaders', 'PFLeaders', 'PTSLeaders', 'REBLeaders', 'STLLeaders', 'TOVLeaders']

Response

The response for each argument is shown below in key: value format

'{"ASTLeaders": ["PLAYER_ID", "PLAYER_NAME", "AST", "AST_RANK"], "BLKLeaders": ["PLAYER_ID", "PLAYER_NAME", "BLK", "BLK_RANK"], "DREBLeaders": ["PLAYER_ID", "PLAYER_NAME", "DREB", "DREB_RANK"], "FG3ALeaders": ["PLAYER_ID", "PLAYER_NAME", "FG3A", "FG3A_RANK"], "FG3MLeaders": ["PLAYER_ID", "PLAYER_NAME", "FG3M", "FG3M_RANK"], "FG3_PCTLeaders": ["PLAYER_ID", "PLAYER_NAME", "FG3_PCT", "FG3_PCT_RANK"], "FGALeaders": ["PLAYER_ID", "PLAYER_NAME", "FGA", "FGA_RANK"], "FGMLeaders": ["PLAYER_ID", "PLAYER_NAME", "FGM", "FGM_RANK"], "FG_PCTLeaders": ["PLAYER_ID", "PLAYER_NAME", "FG_PCT", "FG_PCT_RANK"], "FTALeaders": ["PLAYER_ID", "PLAYER_NAME", "FTA", "FTA_RANK"], "FTMLeaders": ["PLAYER_ID", "PLAYER_NAME", "FTM", "FTM_RANK"], "FT_PCTLeaders": ["PLAYER_ID", "PLAYER_NAME", "FT_PCT", "FT_PCT_RANK"], "GPLeaders": ["PLAYER_ID", "PLAYER_NAME", "GP", "GP_RANK"], "OREBLeaders": ["PLAYER_ID", "PLAYER_NAME", "OREB", "OREB_RANK"], "PFLeaders": ["PLAYER_ID", "PLAYER_NAME", "PF", "PF_RANK"], "PTSLeaders": ["PLAYER_ID", "PLAYER_NAME", "PTS", "PTS_RANK"], "REBLeaders": ["PLAYER_ID", "PLAYER_NAME", "REB", "REB_RANK"], "STLLeaders": ["PLAYER_ID", "PLAYER_NAME", "STL", "STL_RANK"], "TOVLeaders": ["PLAYER_ID", "PLAYER_NAME", "TOV", "TOV_RANK"]}'

Example:

from nba_api.stats.endpoints import alltimeleadersgrids

alltime_stats = alltimeleadersgrids.AllTimeLeadersGrids()
alltime_stats.ast_leaders.get_json()

Result:

'{"headers": ["PLAYER_ID", "PLAYER_NAME", "AST", "AST_RANK", "IS_ACTIVE_FLAG"], "data": [[304, "John Stockton", 15806, 1, "N"], [467, "Jason Kidd", 12091, 2, "N"], [101108, "Chris Paul", 10977, 3, "Y"], [959, "Steve Nash", 10335, 4, "N"], [349, "Mark Jackson", 10334, 5, "N"], [77142, "Magic Johnson", 10141, 6, "N"], [2544, "LeBron James", 10045, 7, "Y"], [600015, "Oscar Robertson", 9887, 8, "N"], [78318, "Isiah Thomas", 9061, 9, "N"], [56, "Gary Payton", 8966, 10, "N"]]}'