Skip to contents

Get player statistics by game

Usage

cfbd_game_player_stats(
  year,
  week = NULL,
  season_type = "regular",
  team = NULL,
  conference = NULL,
  category = NULL,
  game_id = NULL
)

Arguments

year

(Integer required): Year, 4 digit format(YYYY)

week

(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff (i.e. 2013 or earlier)

season_type

(String default regular): Select Season Type: regular, postseason, both, allstar, spring_regular, spring_postseason

team

(String optional): D-I Team

conference

(String optional): Conference abbreviation - Select a valid FBS conference Conference abbreviations P5: ACC, B12, B1G, SEC, PAC Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

category

(String optional): Category filter (e.g defensive) Offense: passing, receiving, rushing Defense: defensive, fumbles, interceptions Special Teams: punting, puntReturns, kicking, kickReturns

game_id

(Integer optional): Game ID filter for querying a single game Can be found using the cfbd_game_info() function

Value

cfbd_game_player_stats() - A data frame with 32 variables:

col_nametypesdescription
game_idintegerCFBD-internal game id; join key to other CFBD endpoints.
teamcharacterFull team name (e.g. "Alabama") for the player's team.
conferencecharacterConference name of the player's team (e.g. "SEC").
home_awaycharacterWhether the player's team played at home or away ("home"/"away").
team_pointsintegerTotal points scored by the player's team in this game.
athlete_idintegerCFBD-internal athlete id for the player.
athlete_namecharacterPlayer's display name as reported by CFBD.
defensive_tdnumericDefensive touchdowns scored by the player.
defensive_qb_hurnumericQuarterback hurries credited to the player.
defensive_pdnumericPasses defended (pass breakups) by the player.
defensive_tflnumericTackles for loss credited to the player.
defensive_sacksnumericSacks credited to the player.
defensive_solonumericSolo (unassisted) tackles by the player.
defensive_totnumericTotal tackles (solo plus assisted) by the player.
fumbles_recnumericFumbles recovered by the player.
fumbles_lostnumericFumbles by the player that were lost to the opposing team.
fumbles_fumnumericFumbles committed by the player.
punting_longnumericLongest punt by the player, in yards.
punting_in_20numericPunts downed inside the opponent 20-yard line.
punting_tbnumericPunts resulting in a touchback.
punting_avgnumericAverage yards per punt.
punting_ydsnumericTotal punting yards (gross).
punting_nonumericNumber of punts attempted.
kicking_ptsnumericTotal points scored by the kicker (FGs + XPs).
kicking_longnumericLongest made field goal, in yards.
kicking_pctnumericField-goal percentage (made / attempted), 0-100.
punt_returns_tdnumericTouchdowns scored on punt returns.
punt_returns_longnumericLongest punt return, in yards.
punt_returns_avgnumericAverage yards per punt return.
punt_returns_ydsnumericTotal punt-return yards.
punt_returns_nonumericNumber of punt returns.
kick_returns_tdnumericTouchdowns scored on kickoff returns.
kick_returns_longnumericLongest kickoff return, in yards.
kick_returns_avgnumericAverage yards per kickoff return.
kick_returns_ydsnumericTotal kickoff-return yards.
kick_returns_nonumericNumber of kickoff returns.
interceptions_tdnumericTouchdowns scored on interception returns (pick-sixes).
interceptions_ydsnumericInterception-return yards.
interceptions_intnumericNumber of interceptions made by the player.
receiving_longnumericLongest reception by the player, in yards.
receiving_tdnumericReceiving touchdowns.
receiving_avgnumericAverage yards per reception.
receiving_ydsnumericTotal receiving yards.
receiving_recnumericNumber of receptions (catches).
rushing_longnumericLongest rush by the player, in yards.
rushing_tdnumericRushing touchdowns.
rushing_avgnumericAverage yards per rushing attempt.
rushing_ydsnumericTotal rushing yards.
rushing_carnumericRushing carries (attempts).
passing_intnumericInterceptions thrown by the passer.
passing_tdnumericPassing touchdowns thrown.
passing_avgnumericYards per pass attempt.
passing_ydsnumericTotal passing yards.
passing_completionsnumericPass completions (split from CFBD's C/ATT field).
passing_attemptsnumericPass attempts (split from CFBD's C/ATT field).
passing_qbrnumericESPN Quarterback Rating (QBR) for the player in this game.
kicking_xpmnumericExtra points made (split from CFBD's XP field).
kicking_xpanumericExtra points attempted (split from CFBD's XP field).
kicking_fgmnumericField goals made (split from CFBD's FG field).
kicking_fganumericField goals attempted (split from CFBD's FG field).

Examples

# \donttest{
  try(cfbd_game_player_stats(year = 2020, week = 15, team = "Alabama"))
#> ── Game player stats data from CollegeFootballData.com ─────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-13 04:18:08 UTC
#> # A tibble: 48 × 60
#>      game_id team     conference home_away team_points athlete_id athlete_name  
#>        <int> <chr>    <chr>      <chr>           <int>      <int> <chr>         
#>  1 401267164 Arkansas SEC        home                3    4034948 Feleipe Franks
#>  2 401267164 Arkansas SEC        home                3    4567149 KJ Jefferson  
#>  3 401267164 Arkansas SEC        home                3    4567156 Treylon Burks 
#>  4 401267164 Arkansas SEC        home                3    4242881 Trelon Smith  
#>  5 401267164 Arkansas SEC        home                3    4035576 T.J. Hammonds 
#>  6 401267164 Arkansas SEC        home                3    4360174 Michael Woods 
#>  7 401267164 Arkansas SEC        home                3    4079623 Blake Kern    
#>  8 401267164 Arkansas SEC        home                3    4567151 Trey Knox     
#>  9 401267164 Arkansas SEC        home                3    4372007 Nathan Parodi 
#> 10 401267164 Arkansas SEC        home                3    4391568 M Phillips    
#> # ℹ 38 more rows
#> # ℹ 53 more variables: defensive_td <dbl>, defensive_qb_hur <dbl>,
#> #   defensive_pd <dbl>, defensive_tfl <dbl>, defensive_sacks <dbl>,
#> #   defensive_solo <dbl>, defensive_tot <dbl>, fumbles_rec <dbl>,
#> #   fumbles_lost <dbl>, fumbles_fum <dbl>, punting_long <dbl>,
#> #   punting_in_20 <dbl>, punting_tb <dbl>, punting_avg <dbl>,
#> #   punting_yds <dbl>, punting_no <dbl>, kicking_pts <dbl>, …

  try(cfbd_game_player_stats(2013, week = 1, team = "Florida State", category = "passing"))
#> ── Game player stats data from CollegeFootballData.com ─────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-13 04:18:08 UTC
#> # A tibble: 3 × 60
#>     game_id team        conference home_away team_points athlete_id athlete_name
#>       <int> <chr>       <chr>      <chr>           <int>      <int> <chr>       
#> 1 332450221 Pittsburgh  ACC        home               13     514116 Tom Savage  
#> 2 332450221 Florida St… ACC        away               41     530308 Jameis Wins…
#> 3 332450221 Florida St… ACC        away               41     514124 Jake Coker  
#> # ℹ 53 more variables: defensive_td <dbl>, defensive_qb_hur <dbl>,
#> #   defensive_pd <dbl>, defensive_tfl <dbl>, defensive_sacks <dbl>,
#> #   defensive_solo <dbl>, defensive_tot <dbl>, fumbles_rec <dbl>,
#> #   fumbles_lost <dbl>, fumbles_fum <dbl>, punting_long <dbl>,
#> #   punting_in_20 <dbl>, punting_tb <dbl>, punting_avg <dbl>,
#> #   punting_yds <dbl>, punting_no <dbl>, kicking_pts <dbl>, kicking_long <dbl>,
#> #   kicking_pct <dbl>, punt_returns_td <dbl>, punt_returns_long <dbl>, …
# }