Skip to contents

Get season player statistics leaders from RealGM (basketball.realgm.com).

Returns the qualified-player leaderboard for a season, statistic family and season segment. RealGM exposes basic box-score averages as well as advanced and miscellaneous splits not all available from first-party feeds.

Requires a headless browser (see realgm_players()).

Usage

realgm_player_stats(
  season = most_recent_nba_season(),
  stat_type = "Averages",
  season_type = "Regular_Season"
)

Arguments

season

Season (the year the season ends, e.g. 2026 for 2025-26). Defaults to most_recent_nba_season().

stat_type

Statistic family. One of "Averages" (default), "Totals", "Per_48", "Per_40", "Per_36", "Per_Minute", "Advanced_Stats" or "Misc_Stats".

season_type

Season segment. One of "Regular_Season" (default), "Playoffs", "Preseason" or "Summer_League".

Value

A hoopR_data tibble with one row per qualified player. Its columns are listed in return_columns (subset(return_columns, fn == "realgm_player_stats")) and in the searchable return columns article.

See also

family_realgm lists every function in this family.

Examples

if (FALSE) { # \dontrun{
  try(realgm_player_stats(season = 2025, stat_type = "Averages"))
} # }