Skip to contents

Get ESPN men's college basketball data (Pbp, Team and Player Box)

Get ESPN men's college basketball PBP data

Get ESPN men's college basketball team box scores

Get ESPN men's college basketball player box scores

Get ESPN men's college basketball game rosters

Get ESPN MBB's Betting information

Get ESPN NBA game data (Pbp, Team and Player Box)

Get ESPN NBA PBP data

Get ESPN NBA team box scores

Get ESPN NBA player box scores

Get ESPN NBA game rosters

Get ESPN NBA's Betting information

Usage

espn_mbb_game_all(game_id)

espn_mbb_pbp(game_id)

espn_mbb_team_box(game_id)

espn_mbb_player_box(game_id)

espn_mbb_game_rosters(game_id)

espn_mbb_betting(game_id)

espn_nba_game_all(game_id)

espn_nba_pbp(game_id)

espn_nba_team_box(game_id)

espn_nba_player_box(game_id)

espn_nba_game_rosters(game_id)

espn_nba_betting(game_id)

Arguments

game_id

Game ID

Value

A named list of hoopR_data tibbles: Plays, Team, Player.

Plays

col_nametypesdescription
idcharacterESPN play id. Character so the 18-digit MBB ids stay exact (a double cannot hold them).
sequence_numbercharacterSequence number representing a shot-possession (V3 PBP).
textcharacterText description of the play / record.
away_scoreintegerAway team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
home_scoreintegerHome team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
scoring_playlogicalTRUE if the play resulted in points scored.
score_valueintegerPoint value of the play (2 / 3 / 1).
wallclockcharacterWallclock.
shooting_playlogicalTRUE if the play was a shooting attempt.
type_idintegerType identifier (numeric).
type_textcharacterDisplay text for the type field.
period_numberintegerNumeric period (1-4 for quarters; 5+ for OT).
period_display_valuecharacterPeriod display label (e.g. '1st Quarter', 'OT').
clock_display_valuecharacterGame clock display string (e.g. '8:32').
team_idintegerUnique team identifier.
coordinate_x_rawnumericX coordinate as returned by the API before any adjustment.
coordinate_y_rawnumericY coordinate as returned by the API before any adjustment.
coordinate_xnumericX coordinate on the court (half-court layout).
coordinate_ynumericY coordinate on the court (half-court layout).
play_idcharacterUnique play identifier within a game.
athlete_id_1integerPrimary athlete identifier (e.g. shooter).
athlete_id_2integerSecondary athlete identifier (e.g. assister / fouler).
home_team_idintegerUnique identifier for the home team.
home_team_mascotcharacterHome team mascot.
home_team_namecharacterHome team name.
home_team_abbrevcharacterHome team three-letter abbreviation.
home_team_logocharacterHome team logo URL.
home_team_logo_darkcharacterHome team logo URL for dark backgrounds.
home_team_full_namecharacterFull home team name (e.g. 'Las Vegas Aces').
home_team_colorcharacterHome team primary color (hex).
home_team_alternate_colorcharacterHome team alternate color (hex).
home_team_scoreintegerHome team's score.
home_team_winnerlogicalTRUE if the home team won this game.
home_team_recordcharacterHome team's win-loss record.
away_team_idintegerUnique identifier for the away team.
away_team_mascotcharacterAway team mascot.
away_team_namecharacterAway team name.
away_team_abbrevcharacterAway team three-letter abbreviation.
away_team_logocharacterAway team logo URL.
away_team_logo_darkcharacterAway team logo URL for dark backgrounds.
away_team_full_namecharacterFull away team name (e.g. 'Las Vegas Aces').
away_team_colorcharacterAway team primary color (hex).
away_team_alternate_colorcharacterAway team alternate color (hex).
away_team_scoreintegerAway team's score.
away_team_winnerlogicalTRUE if the away team won this game.
away_team_recordcharacterAway team's win-loss record.
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
game_play_numberinteger1-based position of the play in the game's play array.
home_timeout_calledlogicalTRUE on a team timeout the home team called (the play's team_id; a play without one, a home team name as a whole word in the text).
away_timeout_calledlogicalTRUE on a team timeout the away team called (the play's team_id; a play without one, an away team name as a whole word in the text).
halfintegerHalf (the period number; 3+ is overtime).
timecharacterGame clock display string, as ESPN ships it.
clock_minutesintegerMinutes on the game clock.
clock_secondsintegerWhole seconds on the game clock.
lag_periodintegerPrevious play's period number.
lead_periodintegerNext play's period number.
lag_halfintegerPrevious play's half.
lead_halfintegerNext play's half.
start_period_seconds_remainingintegerSeconds left in the period at the start of the play.
start_game_seconds_remainingintegerSeconds left in regulation at the start of the play (overtime: in the period).
end_period_seconds_remainingintegerSeconds left in the period at the end of the play (the next play's start; 0 on a period's last play, NA on the game's last).
end_game_seconds_remainingintegerSeconds left in regulation at the end of the play (the next play's start; NA on the game's last).
score_sourcecharacterWhere this game's home_score/away_score come from: 'rebuilt' (summed from the scoring plays and equal to the official final on the last play) or 'espn' (ESPN's per-play values, kept when the rebuild misses the final or the game has no final).

Team

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
team_idintegerUnique team identifier.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_locationcharacterTeam city or location string.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_display_namecharacterFull team display name.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
team_logocharacterTeam logo image URL.
team_home_awaycharacterTeam home away.
team_scoreintegerTeam's score / final score.
team_winnerlogicalTRUE if the team won this game.
assistsintegerTotal assists.
blocksintegerTotal blocks.
defensive_reboundsintegerDefensive rebounds.
field_goal_pctnumericField goal percentage (0-1).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
flagrant_foulsintegerTotal flagrant fouls.
foulsintegerPersonal fouls.
free_throw_pctnumericFree throw percentage (0-1).
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
largest_leadcharacterLargest lead during the game.
offensive_reboundsintegerOffensive rebounds.
stealsintegerTotal steals.
team_turnoversintegerTeam turnovers (turnovers credited to the team rather than a player).
technical_foulsintegerTotal technical fouls.
three_point_field_goal_pctnumericThree-point field goal percentage (0-1).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
total_reboundsintegerTotal rebounds.
total_technical_foulsintegerTotal technical fouls (player + team).
total_turnoversintegerTotal turnovers (player + team).
turnoversintegerTotal turnovers.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_uidcharacterOpponent team uid.
opponent_team_slugcharacterOpponent team slug.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_namecharacterOpponent team display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_short_display_namecharacterOpponent team short display name.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_logocharacterOpponent team logo URL.
opponent_team_scoreintegerOpponent team's score.

Player

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
athlete_idintegerUnique athlete identifier (ESPN).
athlete_display_namecharacterAthlete display name (full).
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_locationcharacterTeam city or location string.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
minutesnumericMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
offensive_reboundsintegerOffensive rebounds.
defensive_reboundsintegerDefensive rebounds.
reboundsintegerTotal rebounds.
assistsintegerTotal assists.
stealsintegerTotal steals.
blocksintegerTotal blocks.
turnoversintegerTotal turnovers.
foulsintegerPersonal fouls.
pointsintegerPoints scored.
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
ejectedlogicalTRUE if the player was ejected from the game.
did_not_playlogicalTRUE if the player did not appear in the game.
activelogicalTRUE if the row represents an active record (player / team / season).
athlete_jerseycharacterAthlete jersey number.
athlete_short_namecharacterAthlete short display name.
athlete_headshot_hrefcharacterAthlete headshot image URL.
athlete_position_namecharacterAthlete position ('Guard', 'Forward', 'Center').
athlete_position_abbreviationcharacterAthlete position abbreviation (G / F / C).
team_display_namecharacterFull team display name.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_logocharacterTeam logo image URL.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
home_awaycharacterGame venue label ('home' or 'away').
team_winnerlogicalTRUE if the team won this game.
team_scoreintegerTeam's score / final score.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_namecharacterOpponent team display name.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_logocharacterOpponent team logo URL.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_scoreintegerOpponent team's score.

A named list of hoopR_data tibbles: Plays.

Plays

col_nametypesdescription
idcharacterESPN play id. Character so the 18-digit MBB ids stay exact (a double cannot hold them).
sequence_numbercharacterSequence number representing a shot-possession (V3 PBP).
textcharacterText description of the play / record.
away_scoreintegerAway team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
home_scoreintegerHome team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
scoring_playlogicalTRUE if the play resulted in points scored.
score_valueintegerPoint value of the play (2 / 3 / 1).
wallclockcharacterWallclock.
shooting_playlogicalTRUE if the play was a shooting attempt.
type_idintegerType identifier (numeric).
type_textcharacterDisplay text for the type field.
period_numberintegerNumeric period (1-4 for quarters; 5+ for OT).
period_display_valuecharacterPeriod display label (e.g. '1st Quarter', 'OT').
clock_display_valuecharacterGame clock display string (e.g. '8:32').
team_idintegerUnique team identifier.
coordinate_x_rawnumericX coordinate as returned by the API before any adjustment.
coordinate_y_rawnumericY coordinate as returned by the API before any adjustment.
coordinate_xnumericX coordinate on the court (half-court layout).
coordinate_ynumericY coordinate on the court (half-court layout).
play_idcharacterUnique play identifier within a game.
athlete_id_1integerPrimary athlete identifier (e.g. shooter).
athlete_id_2integerSecondary athlete identifier (e.g. assister / fouler).
home_team_idintegerUnique identifier for the home team.
home_team_mascotcharacterHome team mascot.
home_team_namecharacterHome team name.
home_team_abbrevcharacterHome team three-letter abbreviation.
home_team_logocharacterHome team logo URL.
home_team_logo_darkcharacterHome team logo URL for dark backgrounds.
home_team_full_namecharacterFull home team name (e.g. 'Las Vegas Aces').
home_team_colorcharacterHome team primary color (hex).
home_team_alternate_colorcharacterHome team alternate color (hex).
home_team_scoreintegerHome team's score.
home_team_winnerlogicalTRUE if the home team won this game.
home_team_recordcharacterHome team's win-loss record.
away_team_idintegerUnique identifier for the away team.
away_team_mascotcharacterAway team mascot.
away_team_namecharacterAway team name.
away_team_abbrevcharacterAway team three-letter abbreviation.
away_team_logocharacterAway team logo URL.
away_team_logo_darkcharacterAway team logo URL for dark backgrounds.
away_team_full_namecharacterFull away team name (e.g. 'Las Vegas Aces').
away_team_colorcharacterAway team primary color (hex).
away_team_alternate_colorcharacterAway team alternate color (hex).
away_team_scoreintegerAway team's score.
away_team_winnerlogicalTRUE if the away team won this game.
away_team_recordcharacterAway team's win-loss record.
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
game_play_numberinteger1-based position of the play in the game's play array.
home_timeout_calledlogicalTRUE on a team timeout the home team called (the play's team_id; a play without one, a home team name as a whole word in the text).
away_timeout_calledlogicalTRUE on a team timeout the away team called (the play's team_id; a play without one, an away team name as a whole word in the text).
halfintegerHalf (the period number; 3+ is overtime).
timecharacterGame clock display string, as ESPN ships it.
clock_minutesintegerMinutes on the game clock.
clock_secondsintegerWhole seconds on the game clock.
lag_periodintegerPrevious play's period number.
lead_periodintegerNext play's period number.
lag_halfintegerPrevious play's half.
lead_halfintegerNext play's half.
start_period_seconds_remainingintegerSeconds left in the period at the start of the play.
start_game_seconds_remainingintegerSeconds left in regulation at the start of the play (overtime: in the period).
end_period_seconds_remainingintegerSeconds left in the period at the end of the play (the next play's start; 0 on a period's last play, NA on the game's last).
end_game_seconds_remainingintegerSeconds left in regulation at the end of the play (the next play's start; NA on the game's last).
score_sourcecharacterWhere this game's home_score/away_score come from: 'rebuilt' (summed from the scoring plays and equal to the official final on the last play) or 'espn' (ESPN's per-play values, kept when the rebuild misses the final or the game has no final).

A named list of hoopR_data tibbles: Team.

Team

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
team_idintegerUnique team identifier.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_locationcharacterTeam city or location string.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_display_namecharacterFull team display name.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
team_logocharacterTeam logo image URL.
team_home_awaycharacterTeam home away.
team_scoreintegerTeam's score / final score.
team_winnerlogicalTRUE if the team won this game.
assistsintegerTotal assists.
blocksintegerTotal blocks.
defensive_reboundsintegerDefensive rebounds.
field_goal_pctnumericField goal percentage (0-1).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
flagrant_foulsintegerTotal flagrant fouls.
foulsintegerPersonal fouls.
free_throw_pctnumericFree throw percentage (0-1).
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
largest_leadcharacterLargest lead during the game.
offensive_reboundsintegerOffensive rebounds.
stealsintegerTotal steals.
team_turnoversintegerTeam turnovers (turnovers credited to the team rather than a player).
technical_foulsintegerTotal technical fouls.
three_point_field_goal_pctnumericThree-point field goal percentage (0-1).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
total_reboundsintegerTotal rebounds.
total_technical_foulsintegerTotal technical fouls (player + team).
total_turnoversintegerTotal turnovers (player + team).
turnoversintegerTotal turnovers.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_uidcharacterOpponent team uid.
opponent_team_slugcharacterOpponent team slug.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_namecharacterOpponent team display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_short_display_namecharacterOpponent team short display name.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_logocharacterOpponent team logo URL.
opponent_team_scoreintegerOpponent team's score.

A named list of hoopR_data tibbles: Player.

Player

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
athlete_idintegerUnique athlete identifier (ESPN).
athlete_display_namecharacterAthlete display name (full).
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_locationcharacterTeam city or location string.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
minutesnumericMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
offensive_reboundsintegerOffensive rebounds.
defensive_reboundsintegerDefensive rebounds.
reboundsintegerTotal rebounds.
assistsintegerTotal assists.
stealsintegerTotal steals.
blocksintegerTotal blocks.
turnoversintegerTotal turnovers.
foulsintegerPersonal fouls.
pointsintegerPoints scored.
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
ejectedlogicalTRUE if the player was ejected from the game.
did_not_playlogicalTRUE if the player did not appear in the game.
activelogicalTRUE if the row represents an active record (player / team / season).
athlete_jerseycharacterAthlete jersey number.
athlete_short_namecharacterAthlete short display name.
athlete_headshot_hrefcharacterAthlete headshot image URL.
athlete_position_namecharacterAthlete position ('Guard', 'Forward', 'Center').
athlete_position_abbreviationcharacterAthlete position abbreviation (G / F / C).
team_display_namecharacterFull team display name.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_logocharacterTeam logo image URL.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
home_awaycharacterGame venue label ('home' or 'away').
team_winnerlogicalTRUE if the team won this game.
team_scoreintegerTeam's score / final score.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_namecharacterOpponent team display name.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_logocharacterOpponent team logo URL.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_scoreintegerOpponent team's score.

A hoopR_data tibble with one row per athlete on a game roster.

col_nametypesdescription
athlete_idintegerUnique athlete identifier (ESPN).
athlete_uidcharacterESPN athlete UID (universal identifier).
athlete_guidcharacterESPN athlete GUID.
athlete_typecharacterAthlete type / class.
sdrintegerSdr.
first_namecharacterPlayer's first name.
last_namecharacterPlayer's last name.
full_namecharacterPlayer's full name.
athlete_display_namecharacterAthlete display name (full).
short_namecharacterShort display name.
weightintegerPlayer weight in pounds.
display_weightcharacterPlayer weight in display format (e.g. '180 lbs').
heightintegerPlayer height (string e.g. '6-2' or inches).
display_heightcharacterPlayer height in display format (e.g. '6-2').
ageintegerPlayer age (in years).
date_of_birthcharacterDate of birth (YYYY-MM-DD).
birth_place_citycharacterBirth place city.
birth_place_statecharacterBirth place state.
birth_place_countrycharacterBirth place country.
slugcharacterURL-safe identifier.
headshot_hrefcharacterHeadshot image URL.
headshot_altcharacterAlternative-text label for the headshot.
jerseycharacterJersey number worn by the player.
hand_typecharacterHand type.
hand_abbreviationcharacterHand abbreviation.
hand_display_valuecharacterHand display value.
position_idintegerUnique position identifier.
position_namecharacterListed roster position ('Guard', 'Forward', 'Center').
position_display_namecharacterPosition display name.
position_abbreviationcharacterPosition abbreviation ('G' / 'F' / 'C').
position_leaflogicalPosition leaf.
linkedlogicalTRUE if the record is linked to a related entity.
experience_yearsintegerExperience years.
experience_display_valuecharacterExperience display value.
experience_abbreviationcharacterExperience abbreviation.
activelogicalTRUE if the row represents an active record (player / team / season).
draft_display_textcharacterDraft display text.
draft_roundintegerRound of the draft selection.
draft_yearintegerDraft year (4-digit).
draft_selectionintegerDraft selection.
status_idintegerStatus identifier.
status_namecharacterStatus label.
status_typecharacterStatus type.
status_abbreviationcharacterStatus abbreviation.
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
validlogicalValid.
did_not_playlogicalTRUE if the player did not appear in the game.
display_namecharacterDisplay name.
ejectedlogicalTRUE if the player was ejected from the game.
team_idintegerUnique team identifier.
team_guidcharacterESPN team GUID.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_sdrintegerESPN team SDR identifier.
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_locationcharacterTeam city or location string.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_nicknamecharacterTeam nickname.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_display_namecharacterFull team display name.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
is_activelogicalIs active.
is_all_starlogicalIs all star.
logo_hrefcharacterTeam or league logo URL.
logo_dark_hrefcharacterLogo URL for dark backgrounds.
game_idintegerUnique game identifier.
orderintegerDisplay order within the result set.
home_awaycharacterGame venue label ('home' or 'away').
winnerlogicalWinner.
roster_hrefcharacterURL for roster.

A named list of hoopR_data tibbles: pickcenter, againstTheSpread, predictor.

pickcenter

col_nametypesdescription
detailscharacterDetails.
over_undernumericOver under.
spreadnumericSpread.
provider_idintegerUnique identifier for provider.
provider_namecharacterProvider name.
provider_priorityintegerProvider priority.
away_team_odds_favoritelogicalAway team's team odds favorite.
away_team_odds_underdoglogicalAway team's team odds underdog.
away_team_odds_money_lineintegerAway team's team odds money line.
away_team_odds_spread_oddsnumericAway team's team odds spread odds.
away_team_odds_team_idintegerUnique identifier for away team odds team.
away_team_odds_win_percentagenumericAway team odds win percentage (0-1 decimal).
away_team_odds_average_scorenumericAway team's team odds average score.
away_team_odds_money_line_oddsnumericAway team's team odds money line odds.
away_team_odds_spread_returnnumericAway team's team odds spread return.
away_team_odds_spread_record_winsintegerAway team's team odds spread record wins.
away_team_odds_spread_record_lossesintegerAway team's team odds spread record losses.
away_team_odds_spread_record_pushesintegerAway team's team odds spread record pushes.
away_team_odds_spread_record_summarycharacterAway team's team odds spread record summary.
home_team_odds_favoritelogicalHome team's team odds favorite.
home_team_odds_underdoglogicalHome team's team odds underdog.
home_team_odds_money_lineintegerHome team's team odds money line.
home_team_odds_spread_oddsnumericHome team's team odds spread odds.
home_team_odds_team_idintegerUnique identifier for home team odds team.
home_team_odds_win_percentagenumericHome team odds win percentage (0-1 decimal).
home_team_odds_average_scorenumericHome team's team odds average score.
home_team_odds_money_line_oddsnumericHome team's team odds money line odds.
home_team_odds_spread_returnnumericHome team's team odds spread return.
home_team_odds_spread_record_winsintegerHome team's team odds spread record wins.
home_team_odds_spread_record_lossesintegerHome team's team odds spread record losses.
home_team_odds_spread_record_pushesintegerHome team's team odds spread record pushes.
home_team_odds_spread_record_summarycharacterHome team's team odds spread record summary.
game_idintegerUnique game identifier.

againstTheSpread

col_nametypesdescription
idintegerId.
uidcharacterESPN UID string (universal identifier).
display_namecharacterDisplay name.
abbreviationcharacterShort abbreviation.
logocharacterTeam or league logo URL.
logoslistLogos.
recordslistRecords.
game_idintegerUnique game identifier.
team_idintegerUnique team identifier.

predictor

col_nametypesdescription
game_idintegerUnique game identifier.
home_team_idintegerUnique identifier for the home team.
away_team_idintegerUnique identifier for the away team.
away_team_game_projectionnumericAway team's team game projection.
away_team_chance_lossnumericAway team's team chance loss.

A named list of hoopR_data tibbles: Plays, Team, Player.

Plays

col_nametypesdescription
idcharacterESPN play id. Character so the 18-digit MBB ids stay exact (a double cannot hold them).
sequence_numbercharacterSequence number representing a shot-possession (V3 PBP).
textcharacterText description of the play / record.
away_scoreintegerAway team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
home_scoreintegerHome team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
scoring_playlogicalTRUE if the play resulted in points scored.
score_valueintegerPoint value of the play (2 / 3 / 1).
wallclockcharacterWallclock.
shooting_playlogicalTRUE if the play was a shooting attempt.
type_idintegerType identifier (numeric).
type_textcharacterDisplay text for the type field.
period_numberintegerNumeric period (1-4 for quarters; 5+ for OT).
period_display_valuecharacterPeriod display label (e.g. '1st Quarter', 'OT').
clock_display_valuecharacterGame clock display string (e.g. '8:32').
team_idintegerUnique team identifier.
coordinate_x_rawnumericX coordinate as returned by the API before any adjustment.
coordinate_y_rawnumericY coordinate as returned by the API before any adjustment.
coordinate_xnumericX coordinate on the court (half-court layout).
coordinate_ynumericY coordinate on the court (half-court layout).
play_idcharacterUnique play identifier within a game.
athlete_id_1integerPrimary athlete identifier (e.g. shooter).
athlete_id_2integerSecondary athlete identifier (e.g. assister / fouler).
athlete_id_3integerAthlete id 3.
home_team_idintegerUnique identifier for the home team.
home_team_mascotcharacterHome team mascot.
home_team_namecharacterHome team name.
home_team_abbrevcharacterHome team three-letter abbreviation.
home_team_logocharacterHome team logo URL.
home_team_logo_darkcharacterHome team logo URL for dark backgrounds.
home_team_full_namecharacterFull home team name (e.g. 'Las Vegas Aces').
home_team_colorcharacterHome team primary color (hex).
home_team_alternate_colorcharacterHome team alternate color (hex).
home_team_scoreintegerHome team's score.
home_team_winnerlogicalTRUE if the home team won this game.
home_team_recordcharacterHome team's win-loss record.
away_team_idintegerUnique identifier for the away team.
away_team_mascotcharacterAway team mascot.
away_team_namecharacterAway team name.
away_team_abbrevcharacterAway team three-letter abbreviation.
away_team_logocharacterAway team logo URL.
away_team_logo_darkcharacterAway team logo URL for dark backgrounds.
away_team_full_namecharacterFull away team name (e.g. 'Las Vegas Aces').
away_team_colorcharacterAway team primary color (hex).
away_team_alternate_colorcharacterAway team alternate color (hex).
away_team_scoreintegerAway team's score.
away_team_winnerlogicalTRUE if the away team won this game.
away_team_recordcharacterAway team's win-loss record.
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
game_play_numberinteger1-based position of the play in the game's play array.
home_timeout_calledlogicalTRUE on a team timeout the home team called (the play's team_id; a play without one, a home team name as a whole word in the text).
away_timeout_calledlogicalTRUE on a team timeout the away team called (the play's team_id; a play without one, an away team name as a whole word in the text).
qtrintegerQuarter (the period number; 5+ is overtime).
timecharacterGame clock as MM:SS (a bare sub-minute clock such as '23.4' reads 0:23.4).
clock_minutesintegerMinutes on the game clock.
clock_secondsnumericSeconds on the game clock, tenths included.
halfintegerHalf: 1 for quarters 1-2, 2 after.
game_halfintegerSame as half.
lag_qtrintegerPrevious play's quarter.
lead_qtrintegerNext play's quarter.
lag_halfintegerPrevious play's half.
lead_halfintegerNext play's half.
start_quarter_seconds_remainingnumericSeconds left in the quarter at the start of the play.
start_half_seconds_remainingnumericSeconds left in the half at the start of the play (overtime: in the period).
start_game_seconds_remainingnumericSeconds left in regulation at the start of the play (overtime: in the period).
end_quarter_seconds_remainingnumericSeconds left in the quarter at the end of the play (the next play's start; 0 on a quarter's last play, NA on the game's last).
end_half_seconds_remainingnumericSeconds left in the half at the end of the play (the next play's start: Q1's last play ends at 720, Q2's at 0; NA on the game's last).
end_game_seconds_remainingnumericSeconds left in regulation at the end of the play (NA on the game's last).
periodintegerSame as qtr.
score_sourcecharacterWhere this game's home_score/away_score come from: 'rebuilt' (summed from the scoring plays and equal to the official final on the last play) or 'espn' (ESPN's per-play values, kept when the rebuild misses the final or the game has no final).

Team

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
team_idintegerUnique team identifier.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_locationcharacterTeam city or location string.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_display_namecharacterFull team display name.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
team_logocharacterTeam logo image URL.
team_home_awaycharacterTeam home away.
team_scoreintegerTeam's score / final score.
team_winnerlogicalTRUE if the team won this game.
assistsintegerTotal assists.
blocksintegerTotal blocks.
defensive_reboundsintegerDefensive rebounds.
fast_break_pointscharacterFast-break points scored.
field_goal_pctnumericField goal percentage (0-1).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
flagrant_foulsintegerTotal flagrant fouls.
foulsintegerPersonal fouls.
free_throw_pctnumericFree throw percentage (0-1).
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
largest_leadcharacterLargest lead during the game.
offensive_reboundsintegerOffensive rebounds.
points_in_paintcharacterPoints scored in the paint.
stealsintegerTotal steals.
team_turnoversintegerTeam turnovers (turnovers credited to the team rather than a player).
technical_foulsintegerTotal technical fouls.
three_point_field_goal_pctnumericThree-point field goal percentage (0-1).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
total_reboundsintegerTotal rebounds.
total_technical_foulsintegerTotal technical fouls (player + team).
total_turnoversintegerTotal turnovers (player + team).
turnover_pointscharacterTurnover points.
turnoversintegerTotal turnovers.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_uidcharacterOpponent team uid.
opponent_team_slugcharacterOpponent team slug.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_namecharacterOpponent team display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_short_display_namecharacterOpponent team short display name.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_logocharacterOpponent team logo URL.
opponent_team_scoreintegerOpponent team's score.

Player

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
athlete_idintegerUnique athlete identifier (ESPN).
athlete_display_namecharacterAthlete display name (full).
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_locationcharacterTeam city or location string.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
minutesnumericMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
offensive_reboundsintegerOffensive rebounds.
defensive_reboundsintegerDefensive rebounds.
reboundsintegerTotal rebounds.
assistsintegerTotal assists.
stealsintegerTotal steals.
blocksintegerTotal blocks.
turnoversintegerTotal turnovers.
foulsintegerPersonal fouls.
plus_minuscharacterPlus/minus point differential while on court.
pointsintegerPoints scored.
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
ejectedlogicalTRUE if the player was ejected from the game.
did_not_playlogicalTRUE if the player did not appear in the game.
reasoncharacterReason.
activelogicalTRUE if the row represents an active record (player / team / season).
athlete_jerseycharacterAthlete jersey number.
athlete_short_namecharacterAthlete short display name.
athlete_headshot_hrefcharacterAthlete headshot image URL.
athlete_position_namecharacterAthlete position ('Guard', 'Forward', 'Center').
athlete_position_abbreviationcharacterAthlete position abbreviation (G / F / C).
team_display_namecharacterFull team display name.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_logocharacterTeam logo image URL.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
home_awaycharacterGame venue label ('home' or 'away').
team_winnerlogicalTRUE if the team won this game.
team_scoreintegerTeam's score / final score.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_namecharacterOpponent team display name.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_logocharacterOpponent team logo URL.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_scoreintegerOpponent team's score.

A named list of hoopR_data tibbles: Plays.

Plays

col_nametypesdescription
idcharacterESPN play id. Character so the 18-digit MBB ids stay exact (a double cannot hold them).
sequence_numbercharacterSequence number representing a shot-possession (V3 PBP).
textcharacterText description of the play / record.
away_scoreintegerAway team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
home_scoreintegerHome team score after the play. Rebuilt from the scoring plays in feed order when that reaches the official final (score_source 'rebuilt'), otherwise ESPN's per-play value (score_source 'espn').
scoring_playlogicalTRUE if the play resulted in points scored.
score_valueintegerPoint value of the play (2 / 3 / 1).
wallclockcharacterWallclock.
shooting_playlogicalTRUE if the play was a shooting attempt.
type_idintegerType identifier (numeric).
type_textcharacterDisplay text for the type field.
period_numberintegerNumeric period (1-4 for quarters; 5+ for OT).
period_display_valuecharacterPeriod display label (e.g. '1st Quarter', 'OT').
clock_display_valuecharacterGame clock display string (e.g. '8:32').
team_idintegerUnique team identifier.
coordinate_x_rawnumericX coordinate as returned by the API before any adjustment.
coordinate_y_rawnumericY coordinate as returned by the API before any adjustment.
coordinate_xnumericX coordinate on the court (half-court layout).
coordinate_ynumericY coordinate on the court (half-court layout).
play_idcharacterUnique play identifier within a game.
athlete_id_1integerPrimary athlete identifier (e.g. shooter).
athlete_id_2integerSecondary athlete identifier (e.g. assister / fouler).
athlete_id_3integerAthlete id 3.
home_team_idintegerUnique identifier for the home team.
home_team_mascotcharacterHome team mascot.
home_team_namecharacterHome team name.
home_team_abbrevcharacterHome team three-letter abbreviation.
home_team_logocharacterHome team logo URL.
home_team_logo_darkcharacterHome team logo URL for dark backgrounds.
home_team_full_namecharacterFull home team name (e.g. 'Las Vegas Aces').
home_team_colorcharacterHome team primary color (hex).
home_team_alternate_colorcharacterHome team alternate color (hex).
home_team_scoreintegerHome team's score.
home_team_winnerlogicalTRUE if the home team won this game.
home_team_recordcharacterHome team's win-loss record.
away_team_idintegerUnique identifier for the away team.
away_team_mascotcharacterAway team mascot.
away_team_namecharacterAway team name.
away_team_abbrevcharacterAway team three-letter abbreviation.
away_team_logocharacterAway team logo URL.
away_team_logo_darkcharacterAway team logo URL for dark backgrounds.
away_team_full_namecharacterFull away team name (e.g. 'Las Vegas Aces').
away_team_colorcharacterAway team primary color (hex).
away_team_alternate_colorcharacterAway team alternate color (hex).
away_team_scoreintegerAway team's score.
away_team_winnerlogicalTRUE if the away team won this game.
away_team_recordcharacterAway team's win-loss record.
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
game_play_numberinteger1-based position of the play in the game's play array.
home_timeout_calledlogicalTRUE on a team timeout the home team called (the play's team_id; a play without one, a home team name as a whole word in the text).
away_timeout_calledlogicalTRUE on a team timeout the away team called (the play's team_id; a play without one, an away team name as a whole word in the text).
qtrintegerQuarter (the period number; 5+ is overtime).
timecharacterGame clock as MM:SS (a bare sub-minute clock such as '23.4' reads 0:23.4).
clock_minutesintegerMinutes on the game clock.
clock_secondsnumericSeconds on the game clock, tenths included.
halfintegerHalf: 1 for quarters 1-2, 2 after.
game_halfintegerSame as half.
lag_qtrintegerPrevious play's quarter.
lead_qtrintegerNext play's quarter.
lag_halfintegerPrevious play's half.
lead_halfintegerNext play's half.
start_quarter_seconds_remainingnumericSeconds left in the quarter at the start of the play.
start_half_seconds_remainingnumericSeconds left in the half at the start of the play (overtime: in the period).
start_game_seconds_remainingnumericSeconds left in regulation at the start of the play (overtime: in the period).
end_quarter_seconds_remainingnumericSeconds left in the quarter at the end of the play (the next play's start; 0 on a quarter's last play, NA on the game's last).
end_half_seconds_remainingnumericSeconds left in the half at the end of the play (the next play's start: Q1's last play ends at 720, Q2's at 0; NA on the game's last).
end_game_seconds_remainingnumericSeconds left in regulation at the end of the play (NA on the game's last).
periodintegerSame as qtr.
score_sourcecharacterWhere this game's home_score/away_score come from: 'rebuilt' (summed from the scoring plays and equal to the official final on the last play) or 'espn' (ESPN's per-play values, kept when the rebuild misses the final or the game has no final).

A named list of hoopR_data tibbles: Team.

Team

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
team_idintegerUnique team identifier.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_locationcharacterTeam city or location string.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_display_namecharacterFull team display name.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
team_logocharacterTeam logo image URL.
team_home_awaycharacterTeam home away.
team_scoreintegerTeam's score / final score.
team_winnerlogicalTRUE if the team won this game.
assistsintegerTotal assists.
blocksintegerTotal blocks.
defensive_reboundsintegerDefensive rebounds.
fast_break_pointscharacterFast-break points scored.
field_goal_pctnumericField goal percentage (0-1).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
flagrant_foulsintegerTotal flagrant fouls.
foulsintegerPersonal fouls.
free_throw_pctnumericFree throw percentage (0-1).
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
largest_leadcharacterLargest lead during the game.
offensive_reboundsintegerOffensive rebounds.
points_in_paintcharacterPoints scored in the paint.
stealsintegerTotal steals.
team_turnoversintegerTeam turnovers (turnovers credited to the team rather than a player).
technical_foulsintegerTotal technical fouls.
three_point_field_goal_pctnumericThree-point field goal percentage (0-1).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
total_reboundsintegerTotal rebounds.
total_technical_foulsintegerTotal technical fouls (player + team).
total_turnoversintegerTotal turnovers (player + team).
turnover_pointscharacterTurnover points.
turnoversintegerTotal turnovers.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_uidcharacterOpponent team uid.
opponent_team_slugcharacterOpponent team slug.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_namecharacterOpponent team display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_short_display_namecharacterOpponent team short display name.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_logocharacterOpponent team logo URL.
opponent_team_scoreintegerOpponent team's score.

A named list of hoopR_data tibbles: Player.

Player

col_nametypesdescription
game_idintegerUnique game identifier.
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
season_typeintegerSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
game_dateDateGame date (YYYY-MM-DD).
game_date_timePOSIXctGame start date/time (ISO 8601).
athlete_idintegerUnique athlete identifier (ESPN).
athlete_display_namecharacterAthlete display name (full).
team_idintegerUnique team identifier.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_locationcharacterTeam city or location string.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
minutesnumericMinutes played, formatted MM:SS (V3 PT-duration parsed) or decimal minutes (V2).
field_goals_madeintegerField goals made (2-pt + 3-pt).
field_goals_attemptedintegerField goal attempts (2-pt + 3-pt).
three_point_field_goals_madeintegerThree-point field goals made.
three_point_field_goals_attemptedintegerThree-point field goal attempts.
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
offensive_reboundsintegerOffensive rebounds.
defensive_reboundsintegerDefensive rebounds.
reboundsintegerTotal rebounds.
assistsintegerTotal assists.
stealsintegerTotal steals.
blocksintegerTotal blocks.
turnoversintegerTotal turnovers.
foulsintegerPersonal fouls.
plus_minuscharacterPlus/minus point differential while on court.
pointsintegerPoints scored.
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
ejectedlogicalTRUE if the player was ejected from the game.
did_not_playlogicalTRUE if the player did not appear in the game.
reasoncharacterReason.
activelogicalTRUE if the row represents an active record (player / team / season).
athlete_jerseycharacterAthlete jersey number.
athlete_short_namecharacterAthlete short display name.
athlete_headshot_hrefcharacterAthlete headshot image URL.
athlete_position_namecharacterAthlete position ('Guard', 'Forward', 'Center').
athlete_position_abbreviationcharacterAthlete position abbreviation (G / F / C).
team_display_namecharacterFull team display name.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_logocharacterTeam logo image URL.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
home_awaycharacterGame venue label ('home' or 'away').
team_winnerlogicalTRUE if the team won this game.
team_scoreintegerTeam's score / final score.
opponent_team_idintegerUnique identifier for the opponent team.
opponent_team_namecharacterOpponent team display name.
opponent_team_locationcharacterOpponent team city / location.
opponent_team_display_namecharacterOpponent team full display name.
opponent_team_abbreviationcharacterOpponent team abbreviation.
opponent_team_logocharacterOpponent team logo URL.
opponent_team_colorcharacterOpponent team primary color (hex).
opponent_team_alternate_colorcharacterOpponent team alternate color (hex).
opponent_team_scoreintegerOpponent team's score.

A hoopR_data tibble with one row per athlete on a game roster.

col_nametypesdescription
athlete_idintegerUnique athlete identifier (ESPN).
athlete_uidcharacterESPN athlete UID (universal identifier).
athlete_guidcharacterESPN athlete GUID.
athlete_typecharacterAthlete type / class.
sdrintegerSdr.
first_namecharacterPlayer's first name.
last_namecharacterPlayer's last name.
full_namecharacterPlayer's full name.
athlete_display_namecharacterAthlete display name (full).
short_namecharacterShort display name.
weightintegerPlayer weight in pounds.
display_weightcharacterPlayer weight in display format (e.g. '180 lbs').
heightintegerPlayer height (string e.g. '6-2' or inches).
display_heightcharacterPlayer height in display format (e.g. '6-2').
ageintegerPlayer age (in years).
date_of_birthcharacterDate of birth (YYYY-MM-DD).
debut_yearintegerYear of professional debut.
birth_place_citycharacterBirth place city.
birth_place_statecharacterBirth place state.
birth_place_countrycharacterBirth place country.
slugcharacterURL-safe identifier.
headshot_hrefcharacterHeadshot image URL.
headshot_altcharacterAlternative-text label for the headshot.
jerseycharacterJersey number worn by the player.
position_idintegerUnique position identifier.
position_namecharacterListed roster position ('Guard', 'Forward', 'Center').
position_display_namecharacterPosition display name.
position_abbreviationcharacterPosition abbreviation ('G' / 'F' / 'C').
position_leaflogicalPosition leaf.
linkedlogicalTRUE if the record is linked to a related entity.
yearsintegerYears.
activelogicalTRUE if the row represents an active record (player / team / season).
contract_bird_statusintegerContract bird status.
contract_activelogicalContract active.
contract_active_1logicalContract active 1.
contract_incoming_trade_valueintegerContract incoming trade value.
contract_outgoing_trade_valueintegerContract outgoing trade value.
contract_minimum_salary_exceptionlogicalContract minimum salary exception.
contract_option_typeintegerContract option type.
contract_salaryintegerContract salary.
contract_salary_remainingintegerContract salary remaining.
contract_years_remainingintegerContract years remaining.
contract_trade_kicker_activelogicalContract trade kicker active.
contract_trade_kicker_percentageintegerContract trade kicker percentage (0-1 decimal).
contract_trade_kicker_valueintegerContract trade kicker value.
contract_trade_kicker_trade_valueintegerContract trade kicker trade value.
contract_trade_restrictionlogicalContract trade restriction.
contract_unsigned_foreign_picklogicalContract unsigned foreign pick.
contract_active_2logicalContract active 2.
draft_display_textcharacterDraft display text.
draft_roundintegerRound of the draft selection.
draft_yearintegerDraft year (4-digit).
draft_selectionintegerDraft selection.
status_idintegerStatus identifier.
status_namecharacterStatus label.
status_typecharacterStatus type.
status_abbreviationcharacterStatus abbreviation.
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
validlogicalValid.
did_not_playlogicalTRUE if the player did not appear in the game.
display_namecharacterDisplay name.
reasoncharacterReason.
ejectedlogicalTRUE if the player was ejected from the game.
team_idintegerUnique team identifier.
team_guidcharacterESPN team GUID.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
team_locationcharacterTeam city or location string.
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_display_namecharacterFull team display name.
team_short_display_namecharacterShort team display name (e.g. 'Aces').
team_colorcharacterTeam primary color (hex without leading '#').
team_alternate_colorcharacterTeam alternate color (hex without leading '#').
team_is_activelogicalTRUE if the team is currently active.
team_is_all_starlogicalTRUE if the row represents an All-Star team.
logo_hrefcharacterTeam or league logo URL.
logo_dark_hrefcharacterLogo URL for dark backgrounds.
logos_href_2characterLogos href 2.
logos_href_3characterLogos href 3.
game_idintegerUnique game identifier.
orderintegerDisplay order within the result set.
home_awaycharacterGame venue label ('home' or 'away').
winnerlogicalWinner.
citizenshipcharacterCitizenship.
contract_base_year_compensation_activelogicalContract base year compensation active.
contract_base_year_compensation_expirationcharacterContract base year compensation expiration.
hand_typecharacterHand type.
hand_abbreviationcharacterHand abbreviation.
hand_display_valuecharacterHand display value.

A named list of hoopR_data tibbles: pickcenter, againstTheSpread, predictor.

pickcenter

col_nametypesdescription
detailscharacterDetails.
over_undernumericOver under.
spreadnumericSpread.
provider_idintegerUnique identifier for provider.
provider_namecharacterProvider name.
provider_priorityintegerProvider priority.
away_team_odds_favoritelogicalAway team's team odds favorite.
away_team_odds_underdoglogicalAway team's team odds underdog.
away_team_odds_money_lineintegerAway team's team odds money line.
away_team_odds_spread_oddsnumericAway team's team odds spread odds.
away_team_odds_team_idintegerUnique identifier for away team odds team.
away_team_odds_win_percentagenumericAway team odds win percentage (0-1 decimal).
away_team_odds_average_scorenumericAway team's team odds average score.
away_team_odds_money_line_oddsnumericAway team's team odds money line odds.
away_team_odds_spread_returnnumericAway team's team odds spread return.
away_team_odds_spread_record_winsintegerAway team's team odds spread record wins.
away_team_odds_spread_record_lossesintegerAway team's team odds spread record losses.
away_team_odds_spread_record_pushesintegerAway team's team odds spread record pushes.
away_team_odds_spread_record_summarycharacterAway team's team odds spread record summary.
home_team_odds_favoritelogicalHome team's team odds favorite.
home_team_odds_underdoglogicalHome team's team odds underdog.
home_team_odds_money_lineintegerHome team's team odds money line.
home_team_odds_spread_oddsnumericHome team's team odds spread odds.
home_team_odds_team_idintegerUnique identifier for home team odds team.
home_team_odds_win_percentagenumericHome team odds win percentage (0-1 decimal).
home_team_odds_average_scorenumericHome team's team odds average score.
home_team_odds_money_line_oddsnumericHome team's team odds money line odds.
home_team_odds_spread_returnnumericHome team's team odds spread return.
home_team_odds_spread_record_winsintegerHome team's team odds spread record wins.
home_team_odds_spread_record_lossesintegerHome team's team odds spread record losses.
home_team_odds_spread_record_pushesintegerHome team's team odds spread record pushes.
home_team_odds_spread_record_summarycharacterHome team's team odds spread record summary.
game_idintegerUnique game identifier.

againstTheSpread

col_nametypesdescription
idintegerId.
uidcharacterESPN UID string (universal identifier).
display_namecharacterDisplay name.
abbreviationcharacterShort abbreviation.
logocharacterTeam or league logo URL.
logoslistLogos.
recordslistRecords.
game_idintegerUnique game identifier.
team_idintegerUnique team identifier.

predictor

col_nametypesdescription
game_idintegerUnique game identifier.
home_team_idintegerUnique identifier for the home team.
away_team_idintegerUnique identifier for the away team.
away_team_game_projectionnumericAway team's team game projection.
away_team_chance_lossnumericAway team's team chance loss.

See also

family_espn_mbb lists every function in this family.

family_espn_nba lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
# Interactive only: parsing the whole game summary takes 2-4 s.
try(espn_mbb_game_all(game_id = 401479672))
#> $Plays
#> ── ESPN MBB Play-by-Play Information from ESPN.com ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:46 UTC
#> # A tibble: 360 × 69
#>    id       sequence_number text  away_score home_score scoring_play score_value
#>    <chr>    <chr>           <chr>      <int>      <int> <lgl>              <int>
#>  1 4014796… 101799901       Jump…          0          0 FALSE                  0
#>  2 4014796… 101805501       Jess…          0          0 FALSE                  2
#>  3 4014796… 101805502       RJ M…          0          0 FALSE                  0
#>  4 4014796… 101805503       Skyy…          0          0 FALSE                  0
#>  5 4014796… 101808101       Terr…          0          0 FALSE                  3
#>  6 4014796… 101808102       RJ M…          0          0 FALSE                  0
#>  7 4014796… 101809301       RJ M…          0          0 FALSE                  2
#>  8 4014796… 101809302       Benn…          0          0 FALSE                  0
#>  9 4014796… 101809501       Foul…          0          0 FALSE                  0
#> 10 4014796… 101814601       Juda…          0          0 FALSE                  2
#> # ℹ 350 more rows
#> # ℹ 62 more variables: wallclock <chr>, shooting_play <lgl>,
#> #   points_attempted <int>, short_description <chr>, type_id <int>,
#> #   type_text <chr>, period_number <int>, period_display_value <chr>,
#> #   clock_display_value <chr>, team_id <int>, coordinate_x_raw <dbl>,
#> #   coordinate_y_raw <dbl>, coordinate_x <dbl>, coordinate_y <dbl>,
#> #   play_id <chr>, athlete_id_1 <int>, athlete_id_2 <int>, …
#> 
#> $Team
#> ── ESPN MBB Team Box Information from ESPN.com ────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:47 UTC
#> # A tibble: 2 × 57
#>     game_id season season_type game_date  game_date_time      team_id team_uid  
#>       <int>  <int>       <int> <date>     <dttm>                <int> <chr>     
#> 1 401479672   2023           2 2022-11-29 2022-11-29 19:30:00     183 s:40~l:41…
#> 2 401479672   2023           2 2022-11-29 2022-11-29 19:30:00     356 s:40~l:41…
#> # ℹ 50 more variables: team_slug <chr>, team_location <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> #   team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> #   defensive_rebounds <int>, fast_break_points <chr>, field_goal_pct <dbl>,
#> #   field_goals_made <int>, field_goals_attempted <int>, …
#> 
#> $Player
#> ── ESPN MBB Player Box Information from ESPN.com ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:47 UTC
#> # A tibble: 30 × 54
#>      game_id season season_type game_date  game_date_time      athlete_id
#>        <int>  <int>       <int> <date>     <dttm>                   <int>
#>  1 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4684627
#>  2 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4575472
#>  3 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4431816
#>  4 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4684729
#>  5 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4431746
#>  6 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4700878
#>  7 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    5105337
#>  8 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4592369
#>  9 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4684746
#> 10 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4683860
#> # ℹ 20 more rows
#> # ℹ 48 more variables: athlete_display_name <chr>, team_id <int>,
#> #   team_name <chr>, team_location <chr>, team_short_display_name <chr>,
#> #   minutes <dbl>, field_goals_made <int>, field_goals_attempted <int>,
#> #   three_point_field_goals_made <int>,
#> #   three_point_field_goals_attempted <int>, free_throws_made <int>,
#> #   free_throws_attempted <int>, offensive_rebounds <int>, …
#> 
# }
# \donttest{
# Same summary request as espn_mbb_game_all() above.
try(espn_mbb_pbp(game_id = 401479672))
#> ── ESPN MBB Play-by-Play Information from ESPN.com ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:48 UTC
#> # A tibble: 360 × 69
#>    id       sequence_number text  away_score home_score scoring_play score_value
#>    <chr>    <chr>           <chr>      <int>      <int> <lgl>              <int>
#>  1 4014796… 101799901       Jump…          0          0 FALSE                  0
#>  2 4014796… 101805501       Jess…          0          0 FALSE                  2
#>  3 4014796… 101805502       RJ M…          0          0 FALSE                  0
#>  4 4014796… 101805503       Skyy…          0          0 FALSE                  0
#>  5 4014796… 101808101       Terr…          0          0 FALSE                  3
#>  6 4014796… 101808102       RJ M…          0          0 FALSE                  0
#>  7 4014796… 101809301       RJ M…          0          0 FALSE                  2
#>  8 4014796… 101809302       Benn…          0          0 FALSE                  0
#>  9 4014796… 101809501       Foul…          0          0 FALSE                  0
#> 10 4014796… 101814601       Juda…          0          0 FALSE                  2
#> # ℹ 350 more rows
#> # ℹ 62 more variables: wallclock <chr>, shooting_play <lgl>,
#> #   points_attempted <int>, short_description <chr>, type_id <int>,
#> #   type_text <chr>, period_number <int>, period_display_value <chr>,
#> #   clock_display_value <chr>, team_id <int>, coordinate_x_raw <dbl>,
#> #   coordinate_y_raw <dbl>, coordinate_x <dbl>, coordinate_y <dbl>,
#> #   play_id <chr>, athlete_id_1 <int>, athlete_id_2 <int>, …
# }
# \donttest{
# Same summary request as espn_mbb_game_all() above.
try(espn_mbb_team_box(game_id = 401479672))
#> ── ESPN MBB Team Box Information from ESPN.com ────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:48 UTC
#> # A tibble: 2 × 57
#>     game_id season season_type game_date  game_date_time      team_id team_uid  
#>       <int>  <int>       <int> <date>     <dttm>                <int> <chr>     
#> 1 401479672   2023           2 2022-11-29 2022-11-29 19:30:00     183 s:40~l:41…
#> 2 401479672   2023           2 2022-11-29 2022-11-29 19:30:00     356 s:40~l:41…
#> # ℹ 50 more variables: team_slug <chr>, team_location <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> #   team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> #   defensive_rebounds <int>, fast_break_points <chr>, field_goal_pct <dbl>,
#> #   field_goals_made <int>, field_goals_attempted <int>, …
# }
# \donttest{
# Same summary request as espn_mbb_game_all() above.
try(espn_mbb_player_box(game_id = 401479672))
#> ── ESPN MBB Player Box Information from ESPN.com ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:48 UTC
#> # A tibble: 30 × 54
#>      game_id season season_type game_date  game_date_time      athlete_id
#>        <int>  <int>       <int> <date>     <dttm>                   <int>
#>  1 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4684627
#>  2 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4575472
#>  3 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4431816
#>  4 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4684729
#>  5 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4431746
#>  6 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4700878
#>  7 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    5105337
#>  8 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4592369
#>  9 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4684746
#> 10 401479672   2023           2 2022-11-29 2022-11-29 19:30:00    4683860
#> # ℹ 20 more rows
#> # ℹ 48 more variables: athlete_display_name <chr>, team_id <int>,
#> #   team_name <chr>, team_location <chr>, team_short_display_name <chr>,
#> #   minutes <dbl>, field_goals_made <int>, field_goals_attempted <int>,
#> #   three_point_field_goals_made <int>,
#> #   three_point_field_goals_attempted <int>, free_throws_made <int>,
#> #   free_throws_attempted <int>, offensive_rebounds <int>, …
# }
# \donttest{
# One request per athlete on both rosters.
try(espn_mbb_game_rosters(game_id = 401256760))
#> ── ESPN MBB Game Roster Information from ESPN.com ─────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:50 UTC
#> # A tibble: 34 × 151
#>    athlete_id athlete_uid  athlete_guid athlete_type    sdr first_name last_name
#>         <int> <chr>        <chr>        <chr>         <int> <chr>      <chr>    
#>  1    4277850 s:40~l:41~a… 7b156c52-fa… basketball   4.28e6 RaiQuan    Gray     
#>  2    4432829 s:40~l:41~a… 2734604d-09… basketball   4.43e6 Balsa      Koprivica
#>  3    4433134 s:40~l:41~a… dd0bb1da-07… basketball   4.43e6 Scottie    Barnes   
#>  4    4277854 s:40~l:41~a… f44291c9-0d… basketball   4.28e6 MJ         Walker   
#>  5    4277852 s:40~l:41~a… f376da3f-46… basketball   4.28e6 Anthony    Polite   
#>  6    4279098 s:40~l:41~a… 89f097ed-f5… basketball   4.28e6 Malik      Osborne  
#>  7    4701240 s:40~l:41~a… f35c5378-4b… basketball   4.70e6 Tanor      Ngom     
#>  8    4683134 s:40~l:41~a… f878c598-70… basketball   4.68e6 Quincy     Ballard  
#>  9    4701239 s:40~l:41~a… 88820814-39… basketball   4.70e6 Sardaar    Calhoun  
#> 10    4592191 s:40~l:41~a… 066a390d-78… basketball   4.59e6 Nathanael  Jack     
#> # ℹ 24 more rows
#> # ℹ 144 more variables: full_name <chr>, athlete_display_name <chr>,
#> #   short_name <chr>, weight <int>, display_weight <chr>, height <int>,
#> #   display_height <chr>, age <int>, date_of_birth <chr>,
#> #   birth_place_city <chr>, birth_place_state <chr>, birth_place_country <chr>,
#> #   birth_country_alternate_id <chr>, birth_country_abbreviation <chr>,
#> #   slug <chr>, headshot_href <chr>, headshot_alt <chr>, …
# }
# \donttest{
try(espn_mbb_betting(game_id = 401256760))
#> $pickcenter
#> ── ESPN MBB Pickcenter Information from ESPN.com ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:50 UTC
#> # A tibble: 3 × 66
#>   details  over_under spread over_odds under_odds provider_id provider_name
#> * <chr>         <dbl>  <dbl>     <dbl>      <dbl>       <int> <chr>        
#> 1 FSU -1.5       136.   -1.5    -112       -108          1004 consensus    
#> 2 FSU -1.5       134.   -1.5      62.6       37.4        1003 numberfire   
#> 3 FSU -1         134.   -1      -115       -105          1002 teamrankings 
#> # ℹ 59 more variables: provider_priority <int>,
#> #   away_team_odds_win_percentage <dbl>, away_team_odds_favorite <lgl>,
#> #   away_team_odds_underdog <lgl>, away_team_odds_money_line <int>,
#> #   away_team_odds_spread_odds <dbl>, away_team_odds_team_id <int>,
#> #   away_team_odds_average_score <dbl>, away_team_odds_money_line_odds <dbl>,
#> #   away_team_odds_spread_return <dbl>,
#> #   away_team_odds_current_point_spread_alternate_display_value <chr>, …
#> 
#> $againstTheSpread
#> ── ESPN MBB Against the Spread Information from ESPN.com ──────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:50 UTC
#> # A tibble: 2 × 9
#>      id uid        display_name abbreviation logo  logos records game_id team_id
#> * <int> <chr>      <chr>        <chr>        <chr> <lis> <list>    <int>   <int>
#> 1    57 s:40~l:41… Florida Gat… FLA          http… <df>  <list>   4.01e8      57
#> 2    52 s:40~l:41… Florida Sta… FSU          http… <df>  <list>   4.01e8      52
#> 
#> $predictor
#> data frame with 0 columns and 0 rows
#> 
# }
# \donttest{
try(espn_nba_game_all(game_id = 401283399))
#> $Plays
#> ── ESPN NBA Play-by-Play Information from ESPN.com ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:51 UTC
#> # A tibble: 472 × 75
#>    id       sequence_number text  away_score home_score scoring_play score_value
#>    <chr>    <chr>           <chr>      <int>      <int> <lgl>              <int>
#>  1 4012833… 4               Isai…          0          0 FALSE                  0
#>  2 4012833… 7               Jona…          0          0 FALSE                  0
#>  3 4012833… 8               Dari…          0          0 FALSE                  0
#>  4 4012833… 9               Dill…          0          0 FALSE                  0
#>  5 4012833… 11              Dari…          0          0 FALSE                  0
#>  6 4012833… 12              Ja M…          0          0 FALSE                  0
#>  7 4012833… 13              Gray…          0          0 FALSE                  0
#>  8 4012833… 14              Isai…          0          0 FALSE                  0
#>  9 4012833… 15              Shai…          3          0 TRUE                   3
#> 10 4012833… 16              Theo…          3          0 FALSE                  0
#> # ℹ 462 more rows
#> # ℹ 68 more variables: wallclock <chr>, shooting_play <lgl>,
#> #   points_attempted <int>, short_description <chr>, type_id <int>,
#> #   type_text <chr>, period_number <int>, period_display_value <chr>,
#> #   clock_display_value <chr>, team_id <int>, coordinate_x_raw <dbl>,
#> #   coordinate_y_raw <dbl>, coordinate_x <dbl>, coordinate_y <dbl>,
#> #   play_id <chr>, athlete_id_1 <int>, athlete_id_2 <int>, …
#> 
#> $Team
#> ── ESPN NBA Team Box Information from ESPN.com ────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:51 UTC
#> # A tibble: 2 × 57
#>     game_id season season_type game_date  game_date_time      team_id team_uid  
#>       <int>  <int>       <int> <date>     <dttm>                <int> <chr>     
#> 1 401283399   2021           2 2021-02-17 2021-02-17 21:00:00      25 s:40~l:46…
#> 2 401283399   2021           2 2021-02-17 2021-02-17 21:00:00      29 s:40~l:46…
#> # ℹ 50 more variables: team_slug <chr>, team_location <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> #   team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> #   defensive_rebounds <int>, fast_break_points <chr>, field_goal_pct <dbl>,
#> #   field_goals_made <int>, field_goals_attempted <int>, …
#> 
#> $Player
#> ── ESPN NBA Player Box Information from ESPN.com ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:51 UTC
#> # A tibble: 24 × 57
#>      game_id season season_type game_date  game_date_time      athlete_id
#>        <int>  <int>       <int> <date>     <dttm>                   <int>
#>  1 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    4066392
#>  2 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    4423545
#>  3 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    4683027
#>  4 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    4278073
#>  5 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    4397020
#>  6 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    3138156
#>  7 401283399   2021           2 2021-02-17 2021-02-17 21:00:00       6610
#>  8 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    2490089
#>  9 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    3133626
#> 10 401283399   2021           2 2021-02-17 2021-02-17 21:00:00    4080610
#> # ℹ 14 more rows
#> # ℹ 51 more variables: athlete_display_name <chr>, team_id <int>,
#> #   team_name <chr>, team_location <chr>, team_short_display_name <chr>,
#> #   minutes <dbl>, field_goals_made <int>, field_goals_attempted <int>,
#> #   three_point_field_goals_made <int>,
#> #   three_point_field_goals_attempted <int>, free_throws_made <int>,
#> #   free_throws_attempted <int>, offensive_rebounds <int>, …
#> 
# }

# \donttest{
# The same summary request espn_nba_game_all() makes.
try(espn_nba_pbp(game_id = 401071880))
#> ── ESPN NBA Play-by-Play Information from ESPN.com ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:52 UTC
#> # A tibble: 475 × 75
#>    id       sequence_number text  away_score home_score scoring_play score_value
#>    <chr>    <chr>           <chr>      <int>      <int> <lgl>              <int>
#>  1 4010718… 4               Jahl…          0          0 FALSE                  0
#>  2 4010718… 7               Nema…          0          3 TRUE                   3
#>  3 4010718… 9               Elfr…          2          3 TRUE                   2
#>  4 4010718… 10              Ian …          2          3 FALSE                  0
#>  5 4010718… 12              Kenr…          2          3 FALSE                  0
#>  6 4010718… 13              Jahl…          4          3 TRUE                   2
#>  7 4010718… 15              Harr…          4          5 TRUE                   2
#>  8 4010718… 16              King…          4          5 FALSE                  0
#>  9 4010718… 17              Ian …          7          5 TRUE                   3
#> 10 4010718… 19              Chri…          7          5 FALSE                  0
#> # ℹ 465 more rows
#> # ℹ 68 more variables: wallclock <chr>, shooting_play <lgl>,
#> #   points_attempted <int>, short_description <chr>, type_id <int>,
#> #   type_text <chr>, period_number <int>, period_display_value <chr>,
#> #   clock_display_value <chr>, team_id <int>, coordinate_x_raw <dbl>,
#> #   coordinate_y_raw <dbl>, coordinate_x <dbl>, coordinate_y <dbl>,
#> #   play_id <chr>, athlete_id_1 <int>, athlete_id_2 <int>, …
# }
# \donttest{
# The same summary request espn_nba_game_all() makes.
try(espn_nba_team_box(game_id = 401071880))
#> ── ESPN NBA Team Box Information from ESPN.com ────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:52 UTC
#> # A tibble: 2 × 57
#>     game_id season season_type game_date  game_date_time      team_id team_uid  
#>       <int>  <int>       <int> <date>     <dttm>                <int> <chr>     
#> 1 401071880   2019           2 2019-04-07 2019-04-07 21:00:00       3 s:40~l:46…
#> 2 401071880   2019           2 2019-04-07 2019-04-07 21:00:00      23 s:40~l:46…
#> # ℹ 50 more variables: team_slug <chr>, team_location <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> #   team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> #   defensive_rebounds <int>, fast_break_points <chr>, field_goal_pct <dbl>,
#> #   field_goals_made <int>, field_goals_attempted <int>, …
# }
# \donttest{
# The same summary request espn_nba_game_all() makes.
try(espn_nba_player_box(game_id = 401071880))
#> ── ESPN NBA Player Box Information from ESPN.com ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:53 UTC
#> # A tibble: 26 × 57
#>      game_id season season_type game_date  game_date_time      athlete_id
#>        <int>  <int>       <int> <date>     <dttm>                   <int>
#>  1 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    3058254
#>  2 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    3135048
#>  3 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    2489785
#>  4 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    2583639
#>  5 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    3133626
#>  6 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    3919335
#>  7 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    2488958
#>  8 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    2585637
#>  9 401071880   2019           2 2019-04-07 2019-04-07 21:00:00       6583
#> 10 401071880   2019           2 2019-04-07 2019-04-07 21:00:00    3064514
#> # ℹ 16 more rows
#> # ℹ 51 more variables: athlete_display_name <chr>, team_id <int>,
#> #   team_name <chr>, team_location <chr>, team_short_display_name <chr>,
#> #   minutes <dbl>, field_goals_made <int>, field_goals_attempted <int>,
#> #   three_point_field_goals_made <int>,
#> #   three_point_field_goals_attempted <int>, free_throws_made <int>,
#> #   free_throws_attempted <int>, offensive_rebounds <int>, …
# }
# \donttest{
# One request per athlete on both rosters.
try(espn_nba_game_rosters(game_id = 401283399))
#> ── ESPN NBA Game Roster Information from ESPN.com ─────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:54 UTC
#> # A tibble: 24 × 175
#>    athlete_id athlete_uid  athlete_guid athlete_type    sdr first_name last_name
#>         <int> <chr>        <chr>        <chr>         <int> <chr>      <chr>    
#>  1    2993874 s:40~l:46~a… 0b5e3fdc-79… basketball   2.99e6 Kyle       Anderson 
#>  2    3155526 s:40~l:46~a… 653c07b5-85… basketball   3.16e6 Dillon     Brooks   
#>  3       6477 s:40~l:46~a… 585a3d05-44… basketball   2.56e6 Jonas      Valanciu…
#>  4    3135045 s:40~l:46~a… fedd8adf-a9… basketball   3.14e6 Grayson    Allen    
#>  5    4279888 s:40~l:46~a… de5f87e0-85… basketball   4.28e6 Ja         Morant   
#>  6    3906665 s:40~l:46~a… ac9aa77d-db… basketball   3.91e6 Brandon    Clarke   
#>  7    3908903 s:40~l:46~a… 6445df83-a2… basketball   3.91e6 Sean       McDermott
#>  8    4277964 s:40~l:46~a… 4b87dfe2-26… basketball   4.28e6 Xavier     Tillman  
#>  9    3134932 s:40~l:46~a… d4c8df92-1b… basketball   3.13e6 John       Konchar  
#> 10    3135046 s:40~l:46~a… c4cddbcc-95… basketball   3.14e6 Tyus       Jones    
#> # ℹ 14 more rows
#> # ℹ 168 more variables: full_name <chr>, athlete_display_name <chr>,
#> #   short_name <chr>, weight <int>, display_weight <chr>, height <int>,
#> #   display_height <chr>, age <int>, date_of_birth <chr>, debut_year <int>,
#> #   birth_place_city <chr>, birth_place_state <chr>, birth_place_country <chr>,
#> #   citizenship <chr>, slug <chr>, headshot_href <chr>, headshot_alt <chr>,
#> #   athlete_jersey_number <chr>, position_id <int>, position_name <chr>, …
# }
# \donttest{
try(espn_nba_betting(game_id = 401283399))
#> $pickcenter
#> ── ESPN NBA Pickcenter Information from ESPN.com ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:54 UTC
#> # A tibble: 3 × 66
#>   details over_under spread over_odds under_odds provider_id provider_name
#> * <chr>        <int>  <int>     <dbl>      <dbl>       <int> <chr>        
#> 1 MEM -7         227     -7    -110       -110          1004 consensus    
#> 2 MEM -7         228     -7      30.9       67.4        1003 numberfire   
#> 3 MEM -7         228     -7    -110       -110          1002 teamrankings 
#> # ℹ 59 more variables: provider_priority <int>,
#> #   away_team_odds_win_percentage <dbl>, away_team_odds_favorite <lgl>,
#> #   away_team_odds_underdog <lgl>, away_team_odds_money_line <int>,
#> #   away_team_odds_spread_odds <dbl>, away_team_odds_team_id <int>,
#> #   away_team_odds_average_score <dbl>, away_team_odds_money_line_odds <dbl>,
#> #   away_team_odds_spread_return <dbl>,
#> #   away_team_odds_current_point_spread_alternate_display_value <chr>, …
#> 
#> $againstTheSpread
#> ── ESPN NBA Against the Spread Information from ESPN.com ──────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-26 22:37:54 UTC
#> # A tibble: 2 × 9
#>      id uid        display_name abbreviation logo  logos records game_id team_id
#> * <int> <chr>      <chr>        <chr>        <chr> <lis> <list>    <int>   <int>
#> 1    25 s:40~l:46… Oklahoma Ci… OKC          http… <df>  <list>   4.01e8      25
#> 2    29 s:40~l:46… Memphis Gri… MEM          http… <df>  <list>   4.01e8      29
#> 
#> $predictor
#> data frame with 0 columns and 0 rows
#> 
# }