R/espn_mbb_data.R
espn_mbb_game_all.RdGet ESPN men's college basketball data (Pbp, Team and Player Box)
espn_mbb_game_all(game_id)Game ID
A named list of data frames: Plays, Team, Player
# \donttest{
try(espn_mbb_game_all(game_id = 401256760))
#> $Plays
#> # A tibble: 353 × 17
#> shooting_play sequence_number home_score scoring_play away_score id text
#> <lgl> <chr> <int> <lgl> <int> <chr> <chr>
#> 1 TRUE 101805901 0 FALSE 0 40125… M.J.…
#> 2 FALSE 101806301 0 FALSE 0 40125… RaiQ…
#> 3 TRUE 101806302 2 TRUE 0 40125… RaiQ…
#> 4 TRUE 101808801 2 FALSE 0 40125… Scot…
#> 5 FALSE 101809001 2 FALSE 0 40125… Bals…
#> 6 TRUE 101814501 2 FALSE 0 40125… Bals…
#> 7 FALSE 101814502 2 FALSE 0 40125… Flor…
#> 8 TRUE 101817001 2 TRUE 3 40125… Tre …
#> 9 FALSE 101818201 2 FALSE 3 40125… RaiQ…
#> 10 FALSE 101818202 2 FALSE 3 40125… Tre …
#> # … with 343 more rows, and 10 more variables: score_value <int>,
#> # period_display_value <chr>, period_number <int>, clock_display_value <chr>,
#> # team_id <chr>, type_id <chr>, type_text <chr>, play_id <chr>,
#> # athlete_id_1 <chr>, athlete_id_2 <chr>
#>
#> $Team
#> game_id season season_type game_date team_short_display_name
#> 1 401256760 2021 2 2020-12-12 Florida
#> 2 401256760 2021 2 2020-12-12 Florida State
#> team_uid team_alternate_color team_color team_display_name
#> 1 s:40~l:41~t:57 0021a5 0021A5 Florida Gators
#> 2 s:40~l:41~t:52 ceb888 782F40 Florida State Seminoles
#> team_name team_logo team_location
#> 1 Gators https://a.espncdn.com/i/teamlogos/ncaa/500/57.png Florida
#> 2 Seminoles https://a.espncdn.com/i/teamlogos/ncaa/500/52.png Florida State
#> team_id team_abbreviation team_slug
#> 1 57 FLA florida-gators
#> 2 52 FSU florida-state-seminoles
#> field_goals_made_field_goals_attempted field_goal_pct
#> 1 25-59 42.4
#> 2 26-54 48.1
#> three_point_field_goals_made_three_point_field_goals_attempted
#> 1 10-23
#> 2 8-16
#> three_point_field_goal_pct free_throws_made_free_throws_attempted
#> 1 43.5 11-16
#> 2 50.0 23-30
#> free_throw_pct total_rebounds offensive_rebounds defensive_rebounds
#> 1 68.8 34 10 24
#> 2 76.7 33 8 25
#> team_rebounds assists steals blocks turnovers team_turnovers total_turnovers
#> 1 0 14 6 8 20 0 20
#> 2 0 17 8 4 16 0 16
#> technical_fouls total_technical_fouls flagrant_fouls fouls largest_lead
#> 1 0 0 0 24 9
#> 2 0 0 0 18 18
#> home_away opponent_id opponent_name opponent_mascot opponent_abbrev
#> 1 HOME 52 Florida State Seminoles FSU
#> 2 AWAY 57 Florida Gators FLA
#>
#> $Player
#> athlete_display_name team_short_display_name min fg fg3 ft oreb dreb
#> 1 Colin Castleton Florida 21 3-4 0-0 1-3 4 3
#> 2 Keyontae Johnson Florida 4 2-3 0-1 1-1 0 0
#> 3 Tre Mann Florida 29 7-17 2-7 1-1 0 8
#> 4 Scottie Lewis Florida 39 6-13 4-5 3-5 2 2
#> 5 Noah Locke Florida 24 2-6 2-5 2-2 0 0
#> 6 Osayi Osifo Florida 15 0-1 0-0 2-2 1 2
#> 7 Omar Payne Florida 16 1-2 0-0 0-0 1 1
#> 8 Anthony Duruji Florida 14 0-1 0-0 1-2 0 1
#> 9 Ques Glover Florida 12 2-4 0-0 0-0 0 2
#> 10 Niels Lane Florida 3 0-1 0-1 0-0 0 0
#> 11 Tyree Appleby Florida 23 2-7 2-4 0-0 0 2
#> 12 RaiQuan Gray Florida State 23 2-5 0-0 1-2 2 6
#> 13 Balsa Koprivica Florida State 16 3-7 0-0 0-1 0 3
#> 14 Scottie Barnes Florida State 28 7-10 1-2 2-6 0 2
#> 15 MJ Walker Florida State 30 2-5 1-2 12-12 0 2
#> 16 Anthony Polite Florida State 28 4-7 3-4 3-4 2 3
#> 17 Malik Osborne Florida State 21 1-5 0-1 0-0 1 1
#> 18 Tanor Ngom Florida State 6 2-2 0-0 2-2 0 1
#> 19 Quincy Ballard Florida State 2 0-0 0-0 0-0 0 0
#> 20 Sardaar Calhoun Florida State 7 1-3 1-1 0-0 0 0
#> 21 Nathanael Jack Florida State 3 1-1 1-1 0-0 0 0
#> 22 RayQuan Evans Florida State 18 1-4 0-1 3-3 0 3
#> 23 Wyatt Wilkes Florida State 18 2-5 1-4 0-0 0 0
#> reb ast stl blk to pf pts starter ejected did_not_play active athlete_jersey
#> 1 7 0 2 1 1 3 7 TRUE FALSE FALSE FALSE 12
#> 2 0 0 0 0 0 0 5 TRUE FALSE FALSE FALSE 11
#> 3 8 7 1 0 3 4 17 TRUE FALSE FALSE FALSE 1
#> 4 4 3 2 3 5 3 19 TRUE FALSE FALSE FALSE 23
#> 5 0 1 0 0 3 2 8 TRUE FALSE FALSE FALSE 0
#> 6 3 0 0 1 1 2 2 FALSE FALSE FALSE FALSE 15
#> 7 2 0 0 3 0 3 2 FALSE FALSE FALSE FALSE 4
#> 8 1 1 0 0 0 3 1 FALSE FALSE FALSE FALSE 4
#> 9 2 1 0 0 2 1 4 FALSE FALSE FALSE FALSE 0
#> 10 0 0 0 0 0 0 0 FALSE FALSE FALSE FALSE 44
#> 11 2 1 1 0 5 3 6 FALSE FALSE FALSE FALSE 22
#> 12 8 2 1 2 3 3 5 TRUE FALSE FALSE FALSE 1
#> 13 3 0 0 1 3 1 6 TRUE FALSE FALSE FALSE 5
#> 14 2 5 1 0 3 3 17 TRUE FALSE FALSE FALSE 4
#> 15 2 3 3 0 4 1 17 TRUE FALSE FALSE FALSE 23
#> 16 5 2 1 1 1 1 14 TRUE FALSE FALSE FALSE 2
#> 17 2 0 1 0 1 4 2 FALSE FALSE FALSE FALSE 10
#> 18 1 0 0 0 0 1 6 FALSE FALSE FALSE FALSE 11
#> 19 0 0 0 0 0 0 0 FALSE FALSE FALSE FALSE 15
#> 20 0 1 1 0 0 0 3 FALSE FALSE FALSE FALSE 5
#> 21 0 0 0 0 0 2 3 FALSE FALSE FALSE FALSE 0
#> 22 3 2 0 0 1 2 5 FALSE FALSE FALSE FALSE 0
#> 23 0 2 0 0 0 0 5 FALSE FALSE FALSE FALSE 31
#> athlete_id athlete_short_name
#> 1 4397204 C. Castleton
#> 2 4395714 K. Johnson
#> 3 4432819 T. Mann
#> 4 4432812 S. Lewis
#> 5 4395713 N. Locke
#> 6 4702251 O. Osifo
#> 7 4432825 O. Payne
#> 8 4279008 A. Duruji
#> 9 4592827 Q. Glover
#> 10 4565449 N. Lane
#> 11 4280299 T. Appleby
#> 12 4277850 R. Gray
#> 13 4432829 B. Koprivica
#> 14 4433134 S. Barnes
#> 15 4277854 M.J. Walker
#> 16 4277852 A. Polite
#> 17 4279098 M. Osborne
#> 18 4701240 T. Ngom
#> 19 4683134 Q. Ballard
#> 20 4701239 S. Calhoun
#> 21 4592191 N. Jack
#> 22 4592190 R. Evans
#> 23 4277855 W. Wilkes
#> athlete_headshot_href
#> 1 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4397204.png
#> 2 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4395714.png
#> 3 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4432819.png
#> 4 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4432812.png
#> 5 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4395713.png
#> 6 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4702251.png
#> 7 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4432825.png
#> 8 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4279008.png
#> 9 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4592827.png
#> 10 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4565449.png
#> 11 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4280299.png
#> 12 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4277850.png
#> 13 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4432829.png
#> 14 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4433134.png
#> 15 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4277854.png
#> 16 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4277852.png
#> 17 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4279098.png
#> 18 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4701240.png
#> 19 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4683134.png
#> 20 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4701239.png
#> 21 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4592191.png
#> 22 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4592190.png
#> 23 https://a.espncdn.com/i/headshots/mens-college-basketball/players/full/4277855.png
#> athlete_position_name athlete_position_abbreviation team_name
#> 1 Forward F Gators
#> 2 Forward F Gators
#> 3 Guard G Gators
#> 4 Guard G Gators
#> 5 Guard G Gators
#> 6 Forward F Gators
#> 7 Forward F Gators
#> 8 Forward F Gators
#> 9 Guard G Gators
#> 10 Guard G Gators
#> 11 Guard G Gators
#> 12 Forward F Seminoles
#> 13 Center C Seminoles
#> 14 Guard G Seminoles
#> 15 Guard G Seminoles
#> 16 Guard G Seminoles
#> 17 Forward F Seminoles
#> 18 Center C Seminoles
#> 19 Center C Seminoles
#> 20 Guard G Seminoles
#> 21 Guard G Seminoles
#> 22 Guard G Seminoles
#> 23 Guard G Seminoles
#> team_logo team_id team_abbreviation
#> 1 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 2 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 3 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 4 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 5 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 6 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 7 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 8 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 9 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 10 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 11 https://a.espncdn.com/i/teamlogos/ncaa/500/57.png 57 FLA
#> 12 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 13 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 14 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 15 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 16 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 17 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 18 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 19 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 20 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 21 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 22 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> 23 https://a.espncdn.com/i/teamlogos/ncaa/500/52.png 52 FSU
#> team_color team_alternate_color
#> 1 0021A5 0021a5
#> 2 0021A5 0021a5
#> 3 0021A5 0021a5
#> 4 0021A5 0021a5
#> 5 0021A5 0021a5
#> 6 0021A5 0021a5
#> 7 0021A5 0021a5
#> 8 0021A5 0021a5
#> 9 0021A5 0021a5
#> 10 0021A5 0021a5
#> 11 0021A5 0021a5
#> 12 782F40 ceb888
#> 13 782F40 ceb888
#> 14 782F40 ceb888
#> 15 782F40 ceb888
#> 16 782F40 ceb888
#> 17 782F40 ceb888
#> 18 782F40 ceb888
#> 19 782F40 ceb888
#> 20 782F40 ceb888
#> 21 782F40 ceb888
#> 22 782F40 ceb888
#> 23 782F40 ceb888
#>
# }