View source: R/nba_stats_leaders.R
| nba_homepageleaders | R Documentation | 
Get NBA Stats API Homepage Leaders
Get NBA Stats API Homepage Leaders
nba_homepageleaders(
  league_id = "00",
  game_scope = "Season",
  player_or_team = "Team",
  player_scope = "All Players",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  stat_category = "Points",
  ...
)
league_id | 
 League - default: '00'. Other options include '10': WNBA, '20': G-League  | 
game_scope | 
 Game Scope - Season, Last 10, ,Yesterday, Finals  | 
player_or_team | 
 Player or Team  | 
player_scope | 
 Player Scope - All Players, Rookies  | 
season | 
 Season - format 2020-21  | 
season_type | 
 Season Type - Regular Season, Playoffs  | 
stat_category | 
 Stat Category: Points, Rebounds, Assists, Defense, Clutch, Playmaking, Efficiency, Fast Break, Scoring Breakdown  | 
... | 
 Additional arguments passed to an underlying function like httr.  | 
nba_homepageleaders(league_id = '00', player_or_team = "Player") nba_homepageleaders(league_id = '00', player_or_team = "Team")
Returns a named list of data frames: HomePageLeaders, LeagueAverage, LeagueMax
HomePageLeaders
| col_name | types | 
| RANK | character | 
| TEAM_ID | character | 
| TEAM_NAME | character | 
| TEAM_ABBREVIATION | character | 
| PTS | character | 
| FG_PCT | character | 
| FG3_PCT | character | 
| FT_PCT | character | 
| EFG_PCT | character | 
| TS_PCT | character | 
| PTS_PER48 | character | 
LeagueAverage
| col_name | types | 
| PTS | numeric | 
| FG_PCT | numeric | 
| FG3_PCT | numeric | 
| FT_PCT | numeric | 
| EFG_PCT | numeric | 
| TS_PCT | numeric | 
| PTS_PER48 | numeric | 
LeagueMax
| col_name | types | 
| PTS | numeric | 
| FG_PCT | numeric | 
| FG3_PCT | numeric | 
| FT_PCT | numeric | 
| EFG_PCT | numeric | 
| TS_PCT | numeric | 
| PTS_PER48 | numeric | 
Saiem Gilani
Other NBA Leaders Functions: 
nba_alltimeleadersgrids(),
nba_assistleaders(),
nba_assisttracker(),
nba_defensehub(),
nba_homepagev2(),
nba_leaderstiles(),
nba_leagueleaders()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.