Skip to contents

Get NBA Stats API League Leaders

Get NBA Stats API League Leaders

Usage

nba_leagueleaders(
  active_flag = "",
  league_id = "00",
  per_mode = "Totals",
  scope = "S",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  stat_category = "PTS",
  ...
)

Arguments

active_flag

Active Flag

league_id

League - default: '00'. Other options include '10': WNBA, '20': G-League

per_mode

Per Mode - Totals, PerGame, Per48

scope

Scope - RS, S, Rookies

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs

stat_category

Stat Category: PTS, REB, AST, FG_PCT, FT_PCT, FG3_PCT, STL, BLK

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: LeagueLeaders

LeagueLeaders

col_nametypes
PLAYER_IDcharacter
RANKcharacter
PLAYERcharacter
TEAM_IDcharacter
TEAMcharacter
GPcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
STLcharacter
BLKcharacter
TOVcharacter
PFcharacter
PTScharacter
EFFcharacter
AST_TOVcharacter
STL_TOVcharacter

Details

League Leaders

 nba_leagueleaders(league_id = '00')

Author

Saiem Gilani