Skip to contents

Wrappers around the NBA Stats backend at stats.nba.com/stats/.... All requests go through request_with_proxy() (in utils_nba_stats.R) which sets the required NBA-side headers (x-nba-stats-origin: stats, x-nba-stats-token: true, Referer: https://www.nba.com/) and threads a proxy via getOption("hoopR.proxy") / env vars / explicit proxy = arg.

Details

Play-by-play

FunctionPurpose
nba_pbp()V2 + V3 play-by-play (with V3-to-V2 conversion pipeline)
nba_pbps()Multi-game PBP loader
nba_playbyplayv3()V3-only PBP
nba_pbp_v2V2-only PBP (legacy)
nba_data_pbp()Data.nba.com PBP scraper
nba_live_pbp()Live PBP (CDN feed)
nba_live_boxscore()Live boxscore (CDN feed)
nba_winprobabilitypbp()Win-probability PBP overlay

Player + team season + game stats

Full per-mode / per-split families. Search the reference index for nba_playerdashboard*, nba_teamdashboard*, nba_playerprofile*, nba_playergamelogs(), nba_teamgamelogs(), nba_leaguedashplayerstats(), nba_leaguedashteamstats().