Skip to contents

hoopR Data

Loaders Family Overview

hoopR loader family overview (NBA + MBB release loaders)

hoopR_loaders load_nba load_mbb
hoopR Data Loaders Overview

NBA Data Functions

Functions exported by hoopR to access the hoopR-data repository’s NBA Data

load_nba_pbp()
Load hoopR NBA play-by-play
load_nba_team_box()
Load hoopR NBA team box scores
load_nba_player_box()
Load hoopR NBA player box scores
load_nba_schedule()
Load hoopR NBA schedules
load_nba_standings()
Load hoopR NBA standings
load_nba_draft()
Load cleaned NBA draft results from the data repo
load_nba_rosters()
Load cleaned NBA team rosters from the data repo
load_nba_player_stats()
Load cleaned NBA player season stats from the data repo
load_nba_team_stats()
Load cleaned NBA team season stats from the data repo
load_nba_game_rosters()
Load hoopR NBA game rosters
load_nba_officials()
Load hoopR NBA officials
update_nba_db()
Update or create a hoopR NBA play-by-play database

Men’s College Basketball Data Functions

Functions exported by hoopR to access the hoopR-data repository’s Men’s College Basketball Data

load_mbb_pbp()
Load hoopR men's college basketball play-by-play
load_mbb_team_box()
Load hoopR men's college basketball team box scores
load_mbb_player_box()
Load hoopR men's college basketball player box scores
load_mbb_schedule()
Load hoopR men's college basketball schedule
load_mbb_standings()
Load cleaned MBB standings from the data repo
load_mbb_rosters()
Load cleaned MBB team rosters from the data repo
load_mbb_player_stats()
Load cleaned MBB player season stats (long format) from the data repo
load_mbb_team_stats()
Load cleaned MBB team season stats (long format) from the data repo
load_mbb_game_rosters()
Load cleaned MBB per-game rosters from the data repo
load_mbb_officials()
Load cleaned MBB per-game officials from the data repo
update_mbb_db()
Update or create a hoopR MBB play-by-play database

Cross-Source Crosswalks

NBA Crosswalk Functions

Cross-source team/schedule/player crosswalks linking ESPN, NBA Stats, and Fox identities (keyed on espn_team_id), plus cached loaders

nba_team_crosswalk()
Get the NBA cross-source team crosswalk
nba_schedule_crosswalk()
Get the NBA cross-source schedule crosswalk
nba_player_crosswalk()
Get the NBA cross-source player crosswalk
load_nba_team_crosswalk()
Load hoopR NBA team crosswalk
load_nba_schedule_crosswalk()
Load hoopR NBA schedule crosswalk
load_nba_player_crosswalk()
Load hoopR NBA player crosswalk

MBB Crosswalk Functions

Cross-source team/schedule/player crosswalks linking ESPN, KenPom (teams_links), Torvik, and Fox identities (keyed on espn_team_id), plus cached loaders

mbb_team_crosswalk()
Get the MBB cross-source team crosswalk
mbb_schedule_crosswalk()
Get the MBB cross-source schedule crosswalk
mbb_player_crosswalk()
Get the MBB cross-source player crosswalk
load_mbb_team_crosswalk()
Load hoopR MBB team crosswalk
load_mbb_schedule_crosswalk()
Load hoopR MBB schedule crosswalk
load_mbb_player_crosswalk()
Load hoopR MBB player crosswalk

ESPN Data

ESPN Family Overview

ESPN basketball endpoint family overview (NBA + MBB)

espn_basketball espn_nba espn_mbb
ESPN Basketball Endpoint Overview (NBA + MBB)

Men’s College Basketball Data Functions

Functions exported by hoopR to access ESPN Men’s College Basketball Data

espn_mbb_athletes_index()
Get ESPN Women's College Basketball Athletes Index
espn_mbb_award()
Get ESPN MBB Season Award Detail
espn_mbb_betting()
Get ESPN MBB's Betting information
espn_mbb_calendar()
Get ESPN MBB Calendar
espn_mbb_coach()
Get ESPN MBB Single-Coach Detail
espn_mbb_coach_record()
Get ESPN MBB Coach Career Record (Long Format)
espn_mbb_coach_season()
Get ESPN MBB Coach-in-Season Detail
espn_mbb_coaches()
Get ESPN Women's College Basketball Coaches
espn_mbb_conferences()
Get ESPN conference names and IDs
espn_mbb_franchise()
Get ESPN MBB Franchise Detail
espn_mbb_franchises()
Get ESPN MBB Franchises Index
espn_mbb_futures()
Get ESPN MBB Season Futures (Long Format)
espn_mbb_game_all()
Get ESPN men's college basketball data (Pbp, Team and Player Box)
espn_mbb_game_broadcasts()
Get ESPN Women's College Basketball Event Broadcasts
espn_mbb_game_odds()
Get ESPN Women's College Basketball Event Odds
espn_mbb_game_official_detail()
Get ESPN MBB Event Official Detail (Single Official)
espn_mbb_game_officials()
Get ESPN Women's College Basketball Event Officials
espn_mbb_game_play()
Get ESPN MBB Event Play Detail (Single Play)
espn_mbb_game_play_personnel()
Get ESPN MBB Event Play Personnel (On-Court Lineup at Play)
espn_mbb_game_player_box()
Get ESPN MBB Event Player Box Score (Long Format)
espn_mbb_game_powerindex()
Get ESPN MBB Event Power Index Index
espn_mbb_game_predictor()
Get ESPN MBB Event Predictor (Pre-game)
espn_mbb_game_probabilities()
Get ESPN Women's College Basketball Event Win Probabilities
espn_mbb_game_propbets()
Get ESPN MBB Event Prop Bets (Long Format)
espn_mbb_game_rosters()
Get ESPN men's college basketball game rosters
espn_mbb_game_situation()
Get ESPN MBB Event Situation (Live)
espn_mbb_game_team_leaders()
Get ESPN MBB Event Competitor Leaders (Top Performers)
espn_mbb_game_team_linescores()
Get ESPN MBB Event Competitor Linescores (Per-Quarter)
espn_mbb_game_team_records()
Get ESPN MBB Event Competitor Records (At-Game Breakdown)
espn_mbb_game_team_roster()
Get ESPN MBB Event Competitor Roster (Game-Day)
espn_mbb_game_team_roster_entry()
Get ESPN MBB Event Competitor Roster Entry (Per-Athlete Game-Day Row)
espn_mbb_game_team_score()
Get ESPN MBB Event Competitor Score (Single Row)
espn_mbb_game_team_statistics()
Get ESPN MBB Event Competitor Team Statistics (Long Format)
espn_mbb_injuries()
Get ESPN Women's College Basketball Injuries
espn_mbb_leaders()
Get ESPN Women's College Basketball League Leaders
espn_mbb_news()
Get ESPN MBB News
espn_mbb_pbp()
Get ESPN men's college basketball PBP data
espn_mbb_player_awards()
Get ESPN Women's College Basketball Athlete Awards
espn_mbb_player_box()
Get ESPN men's college basketball player box scores
espn_mbb_player_career_stats()
Get ESPN MBB Athlete Career Stats (Long Format)
espn_mbb_player_eventlog()
Get ESPN Women's College Basketball Athlete Eventlog
espn_mbb_player_eventlog_v2()
Get ESPN MBB Athlete Per-Season Event Log (core-v2)
espn_mbb_player_gamelog()
Get ESPN Women's College Basketball Athlete Gamelog
espn_mbb_player_info()
Get ESPN Women's College Basketball Athlete Info
espn_mbb_player_overview()
Get ESPN Women's College Basketball Athlete Overview
espn_mbb_player_seasons()
Get ESPN MBB Athlete Career Seasons
espn_mbb_player_splits()
Get ESPN Women's College Basketball Athlete Splits
espn_mbb_player_statisticslog()
Get ESPN Women's College Basketball Athlete Statisticslog
espn_mbb_player_stats()
Get ESPN men's college basketball player stats data
espn_mbb_player_stats_v3()
Get ESPN Women's College Basketball Athlete Stats
espn_mbb_position()
Get ESPN MBB Position Detail
espn_mbb_positions()
Get ESPN MBB Positions Index
espn_mbb_powerindex()
Get ESPN MBB Season Power Index (Long Format)
espn_mbb_rankings()
Get men's college basketball AP and Coaches Poll rankings from ESPN
espn_mbb_scoreboard()
Get ESPN men's college basketball schedule for a specific year
espn_mbb_season_awards()
Get ESPN MBB Season Awards Index
espn_mbb_season_group()
Get ESPN MBB Season Group Detail
espn_mbb_season_group_children()
Get ESPN MBB Season Group Children Index
espn_mbb_season_group_teams()
Get ESPN MBB Season Group Teams Index
espn_mbb_season_groups()
Get ESPN MBB Season Groups Index
espn_mbb_season_info()
Get ESPN Women's College Basketball Season Info
espn_mbb_season_leaders()
Get ESPN MBB Season Leaders (Long Format)
espn_mbb_season_ranking()
Get ESPN MBB Season Ranking Detail
espn_mbb_season_rankings()
Get ESPN MBB Season Rankings Index
espn_mbb_season_type()
Get ESPN MBB Season-Type Detail
espn_mbb_season_types()
Get ESPN MBB Season Types Index
espn_mbb_season_week()
Get ESPN MBB Season-Week Detail
espn_mbb_season_weeks()
Get ESPN MBB Season Weeks Index
espn_mbb_seasons()
Get ESPN Women's College Basketball Seasons
espn_mbb_standings()
Get ESPN men's college basketball standings
espn_mbb_team()
Get ESPN Women's College Basketball Team Detail
espn_mbb_team_box()
Get ESPN men's college basketball team box scores
espn_mbb_team_current_roster()
Get ESPN men's college basketball current team roster
espn_mbb_team_injuries()
Get ESPN Women's College Basketball Team Injuries
espn_mbb_team_leaders()
Get ESPN Women's College Basketball Team Leaders
espn_mbb_team_news()
Get ESPN MBB Team News
espn_mbb_team_odds_records()
Get ESPN MBB Team Odds-Records (Long Format)
espn_mbb_team_record()
Get ESPN MBB Team Record (Per Season Type)
espn_mbb_team_record_detail()
Get ESPN MBB Team Record Detail (Long Format)
espn_mbb_team_roster()
Get ESPN Women's College Basketball Team Roster
espn_mbb_team_schedule()
Get ESPN Women's College Basketball Team Schedule
espn_mbb_team_season_profile()
Get ESPN MBB Team-in-Season Profile
espn_mbb_team_season_roster()
Get ESPN MBB Team Roster (Per-Season, core-v2)
espn_mbb_team_season_statistics()
Get ESPN MBB Team Season Statistics (Long Format with Rank)
espn_mbb_team_stats()
Get ESPN men's college basketball team stats data
espn_mbb_teams()
Get ESPN men's college basketball team names and IDs
espn_mbb_tournament()
Get ESPN MBB Tournament Detail
espn_mbb_tournament_season()
Get ESPN MBB Tournament Season Detail
espn_mbb_tournament_seasons()
Get ESPN MBB Tournament Seasons List
espn_mbb_tournaments()
Get ESPN MBB Tournaments Index
espn_mbb_venues()
Get ESPN Women's College Basketball Venues
espn_mbb_week_ranking()
Get ESPN MBB Per-Week Ranking Detail
espn_mbb_week_rankings()
Get ESPN MBB Per-Week Rankings Index
espn_mbb_wp()
Men's College Basketball win probability chart data from ESPN

NBA Data Functions

Functions exported by hoopR to access ESPN’s NBA Data

espn_nba_athletes_index()
Get ESPN NBA Athletes Index
espn_nba_award()
Get ESPN NBA Season Award Detail
espn_nba_betting()
Get ESPN NBA's Betting information
espn_nba_calendar()
Get ESPN NBA Calendar
espn_nba_coach()
Get ESPN NBA Single-Coach Detail
espn_nba_coach_record()
Get ESPN NBA Coach Career Record (Long Format)
espn_nba_coach_season()
Get ESPN NBA Coach-in-Season Detail
espn_nba_coaches()
Get ESPN NBA Coaches
espn_nba_conferences()
Get ESPN NBA Conferences
espn_nba_draft()
Get ESPN NBA Draft Picks
espn_nba_draft_athlete_detail()
Get ESPN NBA Draft Athlete Detail (Single Drafted Player)
espn_nba_draft_athletes()
Get ESPN NBA Draft Athletes Index
espn_nba_draft_pick()
Get ESPN NBA Draft Pick Detail
espn_nba_draft_rounds()
Get ESPN NBA Draft Rounds Summary
espn_nba_draft_status()
Get ESPN NBA Draft Status
espn_nba_franchise()
Get ESPN NBA Franchise Detail
espn_nba_franchises()
Get ESPN NBA Franchises Index
espn_nba_freeagents()
Get ESPN NBA Free Agents
espn_nba_futures()
Get ESPN NBA Season Futures (Long Format)
espn_nba_game_all()
Get ESPN NBA game data (Pbp, Team and Player Box)
espn_nba_game_broadcasts()
Get ESPN NBA Event Broadcasts
espn_nba_game_odds()
Get ESPN NBA Event Odds
espn_nba_game_official_detail()
Get ESPN NBA Event Official Detail (Single Official)
espn_nba_game_officials()
Get ESPN NBA Event Officials
espn_nba_game_play()
Get ESPN NBA Event Play Detail (Single Play)
espn_nba_game_play_personnel()
Get ESPN NBA Event Play Personnel (On-Court Lineup at Play)
espn_nba_game_player_box()
Get ESPN NBA Event Player Box Score (Long Format)
espn_nba_game_powerindex()
Get ESPN NBA Event Power Index Index
espn_nba_game_predictor()
Get ESPN NBA Event Predictor (Pre-game)
espn_nba_game_probabilities()
Get ESPN NBA Event Win Probabilities
espn_nba_game_propbets()
Get ESPN NBA Event Prop Bets (Long Format)
espn_nba_game_rosters()
Get ESPN NBA game rosters
espn_nba_game_situation()
Get ESPN NBA Event Situation (Live)
espn_nba_game_team_leaders()
Get ESPN NBA Event Competitor Leaders (Top Performers)
espn_nba_game_team_linescores()
Get ESPN NBA Event Competitor Linescores (Per-Quarter)
espn_nba_game_team_records()
Get ESPN NBA Event Competitor Records (At-Game Breakdown)
espn_nba_game_team_roster()
Get ESPN NBA Event Competitor Roster (Game-Day)
espn_nba_game_team_roster_entry()
Get ESPN NBA Event Competitor Roster Entry (Per-Athlete Game-Day Row)
espn_nba_game_team_score()
Get ESPN NBA Event Competitor Score (Single Row)
espn_nba_game_team_statistics()
Get ESPN NBA Event Competitor Team Statistics (Long Format)
espn_nba_injuries()
Get ESPN NBA Injuries
espn_nba_leaders()
Get ESPN NBA League Leaders
espn_nba_news()
Get ESPN NBA News
espn_nba_pbp()
Get ESPN NBA PBP data
espn_nba_player_awards()
Get ESPN NBA Athlete Awards
espn_nba_player_box()
Get ESPN NBA player box scores
espn_nba_player_career_stats()
Get ESPN NBA Athlete Career Stats (Long Format)
espn_nba_player_contract()
Get ESPN NBA Athlete Contract (Single Season)
espn_nba_player_contracts()
Get ESPN NBA Athlete Contracts Index
espn_nba_player_eventlog()
Get ESPN NBA Athlete Eventlog
espn_nba_player_eventlog_v2()
Get ESPN NBA Athlete Per-Season Event Log (core-v2)
espn_nba_player_gamelog()
Get ESPN NBA Athlete Gamelog
espn_nba_player_info()
Get ESPN NBA Athlete Info
espn_nba_player_overview()
Get ESPN NBA Athlete Overview
espn_nba_player_seasons()
Get ESPN NBA Athlete Career Seasons
espn_nba_player_splits()
Get ESPN NBA Athlete Splits
espn_nba_player_statisticslog()
Get ESPN NBA Athlete Statisticslog
espn_nba_player_stats()
Get ESPN NBA player stats data
espn_nba_player_stats_v3()
Get ESPN NBA Athlete Stats
espn_nba_position()
Get ESPN NBA Position Detail
espn_nba_positions()
Get ESPN NBA Positions Index
espn_nba_powerindex()
Get ESPN NBA Season Power Index (Long Format)
espn_nba_scoreboard()
Get ESPN NBA schedule for a specific year
espn_nba_season_awards()
Get ESPN NBA Season Awards Index
espn_nba_season_draft()
Get ESPN NBA Season Draft (Top-Level Metadata)
espn_nba_season_group()
Get ESPN NBA Season Group Detail
espn_nba_season_group_children()
Get ESPN NBA Season Group Children Index
espn_nba_season_group_teams()
Get ESPN NBA Season Group Teams Index
espn_nba_season_groups()
Get ESPN NBA Season Groups Index
espn_nba_season_info()
Get ESPN NBA Season Info
espn_nba_season_leaders()
Get ESPN NBA Season Leaders (Long Format)
espn_nba_season_ranking()
Get ESPN NBA Season Ranking Detail
espn_nba_season_rankings()
Get ESPN NBA Season Rankings Index
espn_nba_season_type()
Get ESPN NBA Season-Type Detail
espn_nba_season_types()
Get ESPN NBA Season Types Index
espn_nba_season_week()
Get ESPN NBA Season-Week Detail
espn_nba_season_weeks()
Get ESPN NBA Season Weeks Index
espn_nba_seasons()
Get ESPN NBA Seasons
espn_nba_standings()
Get ESPN NBA's Standings
espn_nba_team()
Get ESPN NBA Team Detail
espn_nba_team_box()
Get ESPN NBA team box scores
espn_nba_team_current_roster()
Get ESPN NBA current team roster
espn_nba_team_depthchart()
Get ESPN NBA Team Depth Chart (Long Format)
espn_nba_team_injuries()
Get ESPN NBA Team Injuries
espn_nba_team_leaders()
Get ESPN NBA Team Leaders
espn_nba_team_news()
Get ESPN NBA Team News
espn_nba_team_odds_records()
Get ESPN NBA Team Odds-Records (Long Format)
espn_nba_team_record()
Get ESPN NBA Team Record (Per Season Type)
espn_nba_team_record_detail()
Get ESPN NBA Team Record Detail (Long Format)
espn_nba_team_roster()
Get ESPN NBA Team Roster
espn_nba_team_schedule()
Get ESPN NBA Team Schedule
espn_nba_team_season_profile()
Get ESPN NBA Team-in-Season Profile
espn_nba_team_season_roster()
Get ESPN NBA Team Roster (Per-Season, core-v2)
espn_nba_team_season_statistics()
Get ESPN NBA Team Season Statistics (Long Format with Rank)
espn_nba_team_stats()
Get ESPN NBA team stats data
espn_nba_teams()
Get ESPN NBA team names and IDs
espn_nba_tournament()
Get ESPN NBA Tournament Detail
espn_nba_tournament_season()
Get ESPN NBA Tournament Season Detail
espn_nba_tournament_seasons()
Get ESPN NBA Tournament Seasons List
espn_nba_tournaments()
Get ESPN NBA Tournaments Index
espn_nba_transactions()
Get ESPN NBA Transactions
espn_nba_venues()
Get ESPN NBA Venues
espn_nba_week_ranking()
Get ESPN NBA Per-Week Ranking Detail
espn_nba_week_rankings()
Get ESPN NBA Per-Week Rankings Index
espn_nba_wp()
Get NBA win probability chart data from ESPN

Fox Sports Basketball Data Functions

Read-only Fox Sports (Bifrost) NBA + MBB wrappers (play-by-play, boxscore, odds, roster, stats, game log, standings, leaders)

fox_nba_boxscore() fox_mbb_boxscore()
Get Fox Sports Basketball Boxscore
fox_nba_league_leaders() fox_mbb_league_leaders()
Get Fox Sports Basketball Statistical Leaders
fox_nba_odds() fox_mbb_odds()
Get Fox Sports Basketball Game Odds
fox_nba_pbp() fox_mbb_pbp()
Get Fox Sports Basketball Play-by-Play
fox_nba_standings() fox_mbb_standings()
Get Fox Sports Basketball Standings
fox_nba_team_gamelog() fox_mbb_team_gamelog()
Get Fox Sports Basketball Team Game Log
fox_nba_team_roster() fox_mbb_team_roster()
Get Fox Sports Basketball Team Roster
fox_nba_team_stats() fox_mbb_team_stats()
Get Fox Sports Basketball Team Stat Leaders
fox_nba_teams() fox_mbb_teams()
Get Fox Sports Basketball Team Directory
fox_mbb_teams_all()
Get the full Fox Sports men's college basketball team directory

NBA Data

NBA Stats Family Overview

NBA Stats API endpoint family overview

nba_stats hoopR_nba_stats
NBA Stats API Endpoint Overview

Basketball Analytics Utilities

Pure, vectorized efficiency / rating / four-factor calculators and box-score scaling / enrichment helpers (no network calls; league-agnostic).

nba_true_shooting_pct()
True Shooting Percentage
nba_effective_fg_pct()
Effective Field Goal Percentage
nba_ft_rate()
Free Throw Rate
nba_game_score()
Game Score
nba_assist_to_turnover()
Assist-to-Turnover Ratio
nba_possessions()
Estimated Possessions
nba_pace()
Pace (possessions per 48 minutes)
nba_offensive_rating()
Offensive Rating (points per 100 possessions)
nba_defensive_rating()
Defensive Rating (points allowed per 100 possessions)
nba_net_rating()
Net Rating
nba_usage_rate()
Usage Rate
nba_assist_pct()
Assist Percentage
nba_turnover_pct()
Turnover Percentage
nba_oreb_pct()
Offensive Rebound Percentage
nba_four_factors()
Four Factors
nba_per_minutes()
Scale Box-Score Counting Stats Per N Minutes
nba_per_possessions()
Scale Box-Score Counting Stats Per N Possessions
nba_add_advanced_metrics()
Append Advanced Metrics to a Box Score

NBA Dictionaries & Media

Player / team dictionaries and CDN headshot / logo URL helpers.

nba_player_dict()
NBA Player Dictionary
nba_team_dict()
NBA Team Dictionary
nba_player_headshot_url()
NBA Player Headshot URL
nba_team_logo_url()
NBA Team Logo URL

NBA Result-Set Helpers

Reduce the named list of result sets an nba_*() wrapper returns to a single tibble – row-bind (B), join/widen (C) or nest (D).

nba_bind_sets() nba_join_sets() nba_nest_sets()
Reduce NBA Stats API result sets

NBA Combined Datasets

Dataset-specific wrappers that fetch a multi-result-set endpoint and apply its canonical reduction in one call (the per-dataset equivalent of the generic result-set helpers).

nba_tidy_franchise_history()
NBA Franchise History (active + defunct)
nba_tidy_boxscore()
NBA Player Box Score with Team Context
nba_tidy_player_profile()
NBA Player Profile (nested by table)

NBA Stats API

Functions exported by hoopR to access the NBA Stats API

nba_add_advanced_metrics()
Append Advanced Metrics to a Box Score
nba_alltimeleadersgrids()
Get NBA Stats API All-time Leaders Grid
nba_assist_pct()
Assist Percentage
nba_assist_to_turnover()
Assist-to-Turnover Ratio
nba_assistleaders()
Get NBA Stats API Assist Leaders
nba_assisttracker()
Get NBA Stats API Assist Tracker
nba_bind_sets() nba_join_sets() nba_nest_sets()
Reduce NBA Stats API result sets
nba_boxscoreadvancedv2()
Get NBA Stats API Boxscore Advanced V2
nba_boxscoreadvancedv3()
Get NBA Stats API Boxscore Advanced V3
nba_boxscoredefensive()
Get NBA Stats API Boxscore Defensive
nba_boxscoredefensivev2()
Get NBA Stats API Boxscore Defensive V2
nba_boxscorefourfactorsv2() deprecated
Get NBA Stats API Boxscore Four Factors V2
nba_boxscorefourfactorsv3()
Get NBA Stats API Boxscore Four Factors V3
nba_boxscorehustlev2() deprecated
Get NBA Stats API Boxscore Hustle V2
nba_boxscorematchups()
Get NBA Stats API Boxscore Matchups
nba_boxscorematchupsv3()
Get NBA Stats API Boxscore Matchups V3
nba_boxscoremiscv2() deprecated
Get NBA Stats API Boxscore Misc V2
nba_boxscoremiscv3()
Get NBA Stats API Boxscore Misc V3
nba_boxscoreplayertrackv2() deprecated
Get NBA Stats API Boxscore Player Tracking V2
nba_boxscoreplayertrackv3()
Get NBA Stats API Boxscore Player Tracking V3
nba_boxscorescoringv2() deprecated
Get NBA Stats API Boxscore Scoring V2
nba_boxscorescoringv3()
Get NBA Stats API Boxscore Scoring V3
nba_boxscoresimilarityscore()
Get NBA Stats API Boxscore Similarity Score
nba_boxscoresummaryv2()
Get NBA Stats API Boxscore Summary V2
nba_boxscoresummaryv3()
Get NBA Stats API Boxscore Summary V3
nba_boxscoretraditionalv2()
Get NBA Stats API Boxscore Traditional V2
nba_boxscoretraditionalv3()
Get NBA Stats API Boxscore Traditional V3
nba_boxscoreusagev2() deprecated
Get NBA Stats API Boxscore Usage V2
nba_boxscoreusagev3()
Get NBA Stats API Boxscore Usage V3
nba_commonallplayers()
Get NBA Stats API All Players
nba_commonplayerinfo()
Get NBA Stats API Player Info
nba_commonplayoffseries()
Get NBA Stats API Playoff Series
nba_commonteamroster()
Get NBA Stats API Team Roster
nba_commonteamyears()
Get NBA Stats API Common Team Years
nba_cumestatsplayer()
Get NBA Stats API Cumulative Player Stats
nba_cumestatsplayergames()
Get NBA Stats API Cumulative Player Game Stats
nba_cumestatsteam()
Get NBA Stats API Cumulative Team Stats
nba_cumestatsteamgames()
Get NBA Stats API Cumulative Team Game Stats
nba_data_pbp()
Get NBA Data API Play-by-Play
nba_defensehub()
Get NBA Stats API Defense Hub
nba_defensive_rating()
Defensive Rating (points allowed per 100 possessions)
nba_draftboard()
Get NBA Stats API Draft Board
nba_draftcombinedrillresults()
Get NBA Stats API Draft Combine Drill Results
nba_draftcombinenonstationaryshooting()
Get NBA Stats API Draft Combine Non-Stationary Shooting
nba_draftcombineplayeranthro()
Get NBA Stats API Draft Combine Player Anthropological Measurements
nba_draftcombinespotshooting()
Get NBA Stats API Draft Combine - Spot Shooting
nba_draftcombinestats()
Get NBA Stats API Draft Combine Stats
nba_drafthistory()
Get NBA Stats API Draft History
nba_dunkscoreleaders()
Get NBA Stats API Dunk Score Leaders
nba_effective_fg_pct()
Effective Field Goal Percentage
nba_fantasywidget()
Get NBA Stats API Fantasy Widget
nba_four_factors()
Four Factors
nba_franchisehistory()
Get NBA Stats API Franchise History
nba_franchiseleaders()
Get NBA Stats API Franchise Leaders
nba_franchiseleaderswrank()
Get NBA Stats API Franchise Leaders with Rank
nba_franchiseplayers()
Get NBA Stats API Franchise Players
nba_ft_rate()
Free Throw Rate
nba_game_score()
Game Score
nba_gamerotation()
Get NBA Stats API Game Rotation
nba_glalumboxscoresimilarityscore()
Get NBA Stats API G-League Alum Boxscore Similarity Score
nba_gravityleaders()
Get NBA Stats API Gravity Leaders
nba_homepageleaders() deprecated
Get NBA Stats API Homepage Leaders
nba_homepagev2() deprecated
Get NBA Stats API HomepageV2 Leaders
nba_hustlestatsboxscore()
Get NBA Stats API Hustle Stats Boxscore
nba_infographicfanduelplayer()
Get NBA Stats API FanDuel Player Infographic
nba_iststandings()
Get NBA Stats API In-Season Tournament Standings
nba_leaderstiles() deprecated
Get NBA Stats API Leaders Tiles
nba_leaguedashlineups()
Get NBA Stats API League Dashboard Lineups
nba_leaguedashoppptshot()
Get NBA Stats API League Dashboard Player Tracking - Opponent Shots
nba_leaguedashplayerbiostats()
Get NBA Stats API League Dashboard Player Biographical Stats
nba_leaguedashplayerclutch()
Get NBA Stats API League Dashboard by Player Clutch Splits
nba_leaguedashplayerptshot()
Get NBA Stats API League Dashboard Player Tracking - Player Shots
nba_leaguedashplayershotlocations()
Get NBA Stats API League Dashboard Player Shot Locations
nba_leaguedashplayerstats()
Get NBA Stats API League Dashboard Player Stats
nba_leaguedashptdefend()
Get NBA Stats API League Dashboard Player Tracking - Defense
nba_leaguedashptstats()
Get NBA Stats API League Dashboard Player Tracking - Stats
nba_leaguedashptteamdefend()
Get NBA Stats API League Dashboard Player Tracking - Team Defense
nba_leaguedashteamclutch()
Get NBA Stats API League Dashboard by Team Clutch Splits
nba_leaguedashteamptshot()
Get NBA Stats API League Dashboard Player Tracking - Team Shots
nba_leaguedashteamshotlocations()
Get NBA Stats API League Dashboard Team Shot Locations
nba_leaguedashteamstats()
Get NBA Stats API League Dashboard Team Stats
nba_leaguegamefinder()
Get NBA Stats API League Game Streak Finder
nba_leaguegamelog()
Get NBA Stats API League Game Log
nba_leaguehustlestatsplayer()
Get NBA Stats API League Hustle Stats Player
nba_leaguehustlestatsplayerleaders()
Get NBA Stats API League Hustle Stats Player Leaders
nba_leaguehustlestatsteam()
Get NBA Stats API League Hustle Stats Team
nba_leaguehustlestatsteamleaders()
Get NBA Stats API League Hustle Stats Team Leaders
nba_leagueleaders()
Get NBA Stats API League Leaders
nba_leaguelineupviz()
Get NBA Stats API League Lineup Visual Data
nba_leagueplayerondetails()
Get NBA Stats API League Player On/Off Details
nba_leagueseasonmatchups()
Get NBA Stats API League Season Matchups
nba_leaguestandings()
Get NBA Stats API League Standings
nba_leaguestandingsv3()
Get NBA Stats API League Standings V3
nba_live_boxscore()
Get NBA Stats API Live Boxscore
nba_live_pbp()
Get NBA Stats API Live play-by-play
nba_matchupsrollup()
Get NBA Stats API Matchups Rollup
nba_net_rating()
Net Rating
nba_offensive_rating()
Offensive Rating (points per 100 possessions)
nba_oreb_pct()
Offensive Rebound Percentage
nba_pace()
Pace (possessions per 48 minutes)
nba_pbp()
Get NBA Stats API play-by-play
nba_pbps()
Get NBA Stats API play-by-play (Multiple Games)
nba_per_minutes()
Scale Box-Score Counting Stats Per N Minutes
nba_per_possessions()
Scale Box-Score Counting Stats Per N Possessions
nba_playbyplayv3()
Get NBA Stats API Play-by-Play V3
nba_player_crosswalk()
Get the NBA cross-source player crosswalk
nba_player_dict()
NBA Player Dictionary
nba_player_headshot_url()
NBA Player Headshot URL
nba_playerawards()
Get NBA Stats API Player Awards
nba_playercareerbycollege()
Get NBA Stats API Player Career By College
nba_playercareerbycollegerollup()
Get NBA Stats API Player Career By College Rollup
nba_playercareerstats()
Get NBA Stats API Player Career Stats
nba_playercompare()
Get NBA Stats API Player Compare
nba_playerdashboardbyclutch() nba_playerdashboardbygamesplits() nba_playerdashboardbygeneralsplits() nba_playerdashboardbylastngames() nba_playerdashboardbyopponent() nba_playerdashboardbyshootingsplits() nba_playerdashboardbyteamperformance() nba_playerdashboardbyyearoveryear()
Get NBA Stats API Player Dashboard by Clutch Splits
nba_playerdashptpass()
Get NBA Stats API Player Dashboard Player Tracking - Passing
nba_playerdashptreb()
Get NBA Stats API Player Dashboard Player Tracking - Rebounding
nba_playerdashptshotdefend()
Get NBA Stats API Player Dashboard Player Tracking - Defense
nba_playerdashptshots()
Get NBA Stats API Player Dashboard Player Tracking - Shots
nba_playerestimatedmetrics()
Get NBA Stats API Player Estimated Metrics
nba_playerfantasyprofile()
Get NBA Stats API Player Fantasy Profile
nba_playerfantasyprofilebargraph()
Get NBA Stats API Player Fantasy Profile Bar Graph
nba_playergamelog()
Get NBA Stats API Player Game Log
nba_playergamelogs()
Get NBA Stats API Player Game Logs
nba_playergamestreakfinder()
Get NBA Stats API Player Game Streak Finder
nba_playerheadshot()
Get NBA Stats API Player Head-shot
nba_playerindex()
Get NBA Stats API Player Index
nba_playernextngames()
Get NBA Stats API Player Next N Games
nba_playerprofilev2()
Get NBA Stats API Player Profile V2
nba_playervsplayer()
Get NBA Stats API Player vs Player
nba_playoffpicture()
Get NBA Stats API Playoff Picture
nba_possessions()
Estimated Possessions
nba_schedule()
Get NBA Stats API Season Schedule
nba_schedule_crosswalk()
Get the NBA cross-source schedule crosswalk
nba_scheduleleaguev2int()
Get NBA Stats API International Schedule
nba_scoreboard()
Get NBA Stats API Scoreboard
nba_scoreboardv2()
Get NBA Stats API Scoreboard V2
nba_scoreboardv3()
Get NBA Stats API Scoreboard V3
nba_shotchartdetail()
Get NBA Stats API Shot Chart Detail
nba_shotchartleaguewide()
Get NBA Stats API Shot Chart League-Wide
nba_shotchartlineupdetail()
Get NBA Stats API Shot Chart for Lineups
nba_stats hoopR_nba_stats
NBA Stats API Endpoint Overview
nba_synergyplaytypes()
Get NBA Stats API Synergy Play Type Stats
nba_team_crosswalk()
Get the NBA cross-source team crosswalk
nba_team_dict()
NBA Team Dictionary
nba_team_logo_url()
NBA Team Logo URL
nba_teamandplayersvsplayers()
Get NBA Stats API Team and Players vs Players
nba_teamdashboardbyclutch() nba_teamdashboardbygamesplits() nba_teamdashboardbygeneralsplits() nba_teamdashboardbylastngames() nba_teamdashboardbyopponent() nba_teamdashboardbyshootingsplits() nba_teamdashboardbyteamperformance() nba_teamdashboardbyyearoveryear()
Get NBA Stats API Team Dashboard by Clutch Splits
nba_teamdashlineups()
Get NBA Stats API Team Dashboard - Lineups
nba_teamdashptpass()
Get NBA Stats API Team Dashboard Player Tracking - Passing
nba_teamdashptreb()
Get NBA Stats API Team Dashboard Player Tracking - Rebounding
nba_teamdashptshots()
Get NBA Stats API Team Dashboard Player Tracking - Shots
nba_teamdetails()
Get NBA Stats API Team Details
nba_teamestimatedmetrics()
Get NBA Stats API Team Estimated Metrics
nba_teamgamelog()
Get NBA Stats API Team Game Log
nba_teamgamelogs()
Get NBA Stats API Team Game Logs
nba_teamgamestreakfinder() deprecated
Get NBA Stats API Team Game Streak Finder
nba_teamhistoricalleaders() deprecated
Get NBA Stats API Team Historical Leaders
nba_teaminfocommon()
Get NBA Stats API Team Common Info
nba_teamplayerdashboard()
Get NBA Stats API Team Player Dashboard
nba_teamplayeronoffdetails()
Get NBA Stats API Team Player On/Off Details
nba_teamplayeronoffsummary()
Get NBA Stats API Team Player On/Off Summary
nba_teams()
Get NBA Stats API Teams
nba_teamvsplayer()
Get NBA Stats API Team vs Player
nba_teamyearbyyearstats()
Get NBA Stats API Team Year by Year Stats
nba_tidy_boxscore()
NBA Player Box Score with Team Context
nba_tidy_franchise_history()
NBA Franchise History (active + defunct)
nba_tidy_player_profile()
NBA Player Profile (nested by table)
nba_todays_scoreboard()
Get NBA Stats API Today's Scoreboard
nba_true_shooting_pct()
True Shooting Percentage
nba_turnover_pct()
Turnover Percentage
nba_usage_rate()
Usage Rate
nba_videodetails() deprecated
Get NBA Stats API Video Details
nba_videodetailsasset()
Get NBA Stats API Video Details
nba_videoevents()
Get NBA Stats API Video Events
nba_videoeventsasset()
Get NBA Stats API Video Events Asset
nba_videostatus()
Get NBA Stats API Video Status
nba_winprobabilitypbp() deprecated
Get NBA Stats API Win Probability PBP

NBA G-League Stats API

Functions exported by hoopR to access the NBA G-League Stats API

nbagl_live_boxscore()
Get NBA G-League Stats API Live Boxscore
nbagl_live_pbp()
Get NBA G-League Stats API Live play-by-play
nbagl_pbp()
Get NBA Data API Play-by-Play for G-League Games
nbagl_players()
Get G League Player Data Base from NBA API
nbagl_schedule()
Get G League Schedule from NBA API
nbagl_standings()
Get Current G League Standings from NBA API

NCAA Data

NCAA Data Functions

Functions exported by hoopR to access NCAA Men’s College Basketball Data

ncaa_mbb_NET_rankings()
Get men's college basketball NET rankings for the current date from the NCAA website
ncaa_mbb_teams()
Scrape NCAA Men's Baskebtall Teams (Division I, II, and III)

KenPom Data

KenPom Family Overview

KenPom scraper overview

kp kenpom hoopR_kenpom
KenPom Scraper Overview

KenPom Data Functions

Functions exported by hoopR

kp_arenas()
Get Home Court Arenas
kp_box()
Get KenPom Game Box Score
kp_coach_history()
Get KenPom's coaching resume data
kp_conf()
Get KenPom's conference-wide stats
kp_confhistory()
Get KenPom's historical conference ratings
kp_confstats()
Get KenPom's conference comparison stats
kp_efficiency()
Get KenPom Efficiency and Tempo Summary
kp_fanmatch()
Get FanMatch by date
kp_foul_trouble()
Get 2-Foul Participation Stats
kp_fourfactors()
Get Four Factors Data
kp_game_attrs()
Get Game Attributes
kp_gameplan()
Get KenPom's team game plan page
kp_hca()
Get Home Court Advantage Estimates
kp_height()
Get Heights, Experience, Bench and Continuity Data
kp_kpoy()
Get KPoY Leaders Tables
kp_minutes_matrix()
Get Minutes Matrix from Expanded Player Page
kp_officials()
Get officials rankings
kp_opptracker()
Get KenPom's team opponent tracker page
kp_player_career()
Get KenPom's player career stats from the player page
kp_playerstats()
Get Player Stats Leaders by Metric
kp_pointdist()
Get Team Points Distribution
kp_pomeroy_archive_ratings()
Get KenPom's ratings archive pages
kp_pomeroy_ratings()
Get KenPom Ratings
kp_program_ratings()
Get KenPom's program ratings
kp_referee()
Get referee game log
kp_team_depth_chart()
Get Depth Chart Last 5 Games from Team Page
kp_team_history()
Get KenPom's team efficiency history
kp_team_lineups()
Get Lineups Last 5 Games from Team Page
kp_team_player_stats()
Get Team Player Stats
kp_team_players()
Get KenPom's player stats from the team page
kp_team_schedule()
Get team schedule results
kp_teamstats()
Get Team Stats
kp_trends()
Get Division-I statistical trends
login() kp_user_email() kp_password() has_kp_user_and_pw()
KenPom Login and Password credentials
kp_winprob()
Get KenPom Win Probability

CollegeBasketballData (CBD)

CBD API Key Registration

Registering your CollegeBasketballData API key

cbbd_key() has_cbbd_key() check_cbbd_key()
College Basketball Data API Key Registration

CBD Data Functions

Functions exported by hoopR to access the CollegeBasketballData API

cbbd_conferences()
CBD Conferences
cbbd_conferences_history()
CBD Conference Membership History
cbbd_draft_picks()
CBD Draft Picks
cbbd_draft_positions()
CBD Draft Positions
cbbd_draft_teams()
CBD Draft Teams
cbbd_games()
CBD Games
cbbd_games_media()
CBD Game Media
cbbd_games_players()
CBD Player Box Scores
cbbd_games_teams()
CBD Team Box Scores
cbbd_lines()
CBD Betting Lines
cbbd_lines_providers()
CBD Line Providers
cbbd_lineups_game()
CBD Game Lineups
cbbd_lineups_team()
CBD Team Lineups
cbbd_play_types()
CBD Play Types
cbbd_plays_date()
CBD Plays by Date
cbbd_plays_game()
CBD Plays by Game
cbbd_plays_player()
CBD Plays by Player
cbbd_plays_team()
CBD Plays by Team
cbbd_plays_tournament()
CBD Plays by Tournament
cbbd_rankings()
CBD Rankings
cbbd_ratings_adjusted()
CBD Adjusted Efficiency Ratings
cbbd_ratings_elo()
CBD Elo Ratings
cbbd_ratings_srs()
CBD SRS Ratings
cbbd_recruiting_players()
CBD Recruiting Players
cbbd_recruiting_portal()
CBD Transfer Portal
cbbd_recruiting_teams()
CBD Recruiting Team Rankings
cbbd_scoreboard()
CBD Scoreboard
cbbd_stats_player_season()
CBD Player Season Stats
cbbd_stats_player_shooting_season()
CBD Player Shooting Stats
cbbd_stats_team_leaderboard()
CBD Team Stats Leaderboard
cbbd_stats_team_season()
CBD Team Season Stats
cbbd_stats_team_shooting_season()
CBD Team Shooting Stats
cbbd_substitutions_game()
CBD Substitutions by Game
cbbd_substitutions_player()
CBD Substitutions by Player
cbbd_substitutions_team()
CBD Substitutions by Team
cbbd_teams()
CBD Teams
cbbd_teams_roster()
CBD Team Roster
cbbd_venues()
CBD Venues
cbbd_key() has_cbbd_key() check_cbbd_key()
College Basketball Data API Key Registration

Bart Torvik (T-Rank)

Torvik Data Functions

Functions exported by hoopR to access Bart Torvik (barttorvik.com) data

torvik_game_schedule()
Bart Torvik Season Schedule & Results
torvik_game_stats()
Bart Torvik Game Stats
torvik_ncaa_results()
Bart Torvik NCAA Tournament Results
torvik_player_stats()
Bart Torvik Player Season Stats
torvik_ratings()
Bart Torvik T-Rank Ratings
torvik_team_factors()
Bart Torvik Team Four Factors

Injury Reports

NBA Injury Functions

Current NBA injury reports. RotoWire is the live replacement for the defunct RotoWorld feed; Basketball-Reference offers a second source.

rotowire_injuries()
RotoWire NBA Injury Report
bref_injuries()
Basketball-Reference NBA Injury Report

Basketball-Reference

Basketball-Reference Functions

Functions exported by hoopR to scrape basketball-reference.com

bref_awards()
Basketball-Reference Awards Voting
bref_draft()
Basketball-Reference Draft
bref_injuries()
Basketball-Reference NBA Injury Report
bref_player_bios()
Basketball-Reference Player Bios / Index
bref_player_game_log()
Basketball-Reference Player Game Log
bref_players_stats()
Basketball-Reference Player Season Stats
bref_standings()
Basketball-Reference Standings
bref_team_roster()
Basketball-Reference Team Roster
bref_teams_stats()
Basketball-Reference Team Season Stats

Salary & Mock Draft Sources

Salary & Draft Functions

Functions exported by hoopR to scrape Spotrac, HoopsHype, and NBADraft.net

spotrac_team_cap()
Spotrac NBA Team Salary Cap
hoopshype_salaries()
HoopsHype Player Salaries
nbadraft_mock_draft()
NBADraft.net Mock Draft

RealGM

RealGM Functions

Functions exported by hoopR to access basketball.realgm.com. RealGM sits behind a Cloudflare browser challenge, so these require the optional chromote package and Google Chrome.

realgm_coaches()
RealGM NBA Head Coaches
realgm_draft()
RealGM NBA Draft Results
realgm_draft_prospects()
RealGM NBA Draft Prospect Stats
realgm_early_entry()
RealGM NBA Draft Early Entrants
realgm_future_free_agents()
RealGM Future NBA Free Agents
realgm_gms()
RealGM NBA General Managers
realgm_individual_games()
RealGM NBA Best Individual Games
realgm_individual_seasons()
RealGM NBA Best Individual Seasons
realgm_player_stats()
RealGM NBA Player Stats
realgm_players()
RealGM NBA Player Index
realgm_players_abroad()
RealGM NBA Players Abroad
realgm_rookie_scale()
RealGM NBA Rookie Scale
realgm_salary_cap()
RealGM NBA Salary Cap History
realgm_standings()
RealGM NBA Standings
realgm_team_stats()
RealGM NBA Team Stats
realgm_teams()
RealGM NBA Teams Index
realgm_transactions()
RealGM NBA Transactions Log

Helper Functions and Data

Included data

Data included within the package

teams_links
Men's College Basketball KenPom Teams Dictionary Team link KenPom reference lookup for the package

hoopR Helper Functions

Internal functions used by hoopR

login() kp_user_email() kp_password() has_kp_user_and_pw()
KenPom Login and Password credentials
check_status()
Check Status function
clean_team_names_NCAA_merge()
Clean KenPom Data Frame Team Names to match NCAA Team Names for easier merging
csv_from_url()
Load .csv / .csv.gz file from a remote connection
rds_from_url()
Load .rds file from a remote connection
rejoin_schedules()
rejoin schedules (when used from league game finder)
most_recent_mbb_season()
Most Recent Men's College Basketball Season
most_recent_nba_season()
Most Recent NBA Season
progressively()
Progressively
year_to_season()
year to season (XXXX -> XXXX-YY)
request_with_proxy()
Retry http request with optional proxy
helper_espn_nba_pbp()
Parse ESPN NBA PBP, helper function
helper_espn_nba_team_box()
Parse ESPN NBA Team Box, helper function
helper_espn_nba_player_box()
Parse ESPN NBA Player Box, helper function
helper_espn_mbb_pbp()
Parse ESPN MBB PBP, helper function
helper_espn_mbb_team_box()
Parse ESPN MBB Team Box, helper function
helper_espn_mbb_player_box()
Parse ESPN MBB Player Box, helper function
.players_on_court
Add players on court in NBA Stats API play-by-play
.players_on_court_v3
Add players on court in NBA Stats API V3 play-by-play
.v3_to_v2_format
Convert V3 PBP columns to V2-compatible format
.build_player_roster
Build player roster lookup from boxscore data