Skip to contents

Get player statistics by game

Usage

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

Arguments

year

(Integer required unless game_id is supplied): Year, 4 digit format(YYYY)
Minimum value accepted: 2004

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. When supplied it is sent alone as id; year, week, season_type, team and conference are omitted (CFBD rejects them alongside id). Can be found using the cfbd_game_info() function

division

(String optional): Division/classification filter – one of fbs, fcs, ii, ii/iii, iii. Sent to CFBD as classification.

Value

cfbd_game_player_stats() - A data frame with 32 variables:

col_nametypedescription
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_tddoubleDefensive touchdowns scored by the player.
defensive_qb_hurdoubleQuarterback hurries credited to the player.
defensive_pddoublePasses defended (pass breakups) by the player.
defensive_tfldoubleTackles for loss credited to the player.
defensive_sacksdoubleSacks credited to the player.
defensive_solodoubleSolo (unassisted) tackles by the player.
defensive_totdoubleTotal tackles (solo plus assisted) by the player.
fumbles_recdoubleFumbles recovered by the player.
fumbles_lostdoubleFumbles by the player that were lost to the opposing team.
fumbles_fumdoubleFumbles committed by the player.
punting_longdoubleLongest punt by the player, in yards.
punting_in_20doublePunts downed inside the opponent 20-yard line.
punting_tbdoublePunts resulting in a touchback.
punting_avgdoubleAverage yards per punt.
punting_ydsdoubleTotal punting yards (gross).
punting_nodoubleNumber of punts attempted.
kicking_ptsdoubleTotal points scored by the kicker (FGs + XPs).
kicking_longdoubleLongest made field goal, in yards.
kicking_pctdoubleField-goal percentage (made / attempted), 0-100.
punt_returns_tddoubleTouchdowns scored on punt returns.
punt_returns_longdoubleLongest punt return, in yards.
punt_returns_avgdoubleAverage yards per punt return.
punt_returns_ydsdoubleTotal punt-return yards.
punt_returns_nodoubleNumber of punt returns.
kick_returns_tddoubleTouchdowns scored on kickoff returns.
kick_returns_longdoubleLongest kickoff return, in yards.
kick_returns_avgdoubleAverage yards per kickoff return.
kick_returns_ydsdoubleTotal kickoff-return yards.
kick_returns_nodoubleNumber of kickoff returns.
interceptions_tddoubleTouchdowns scored on interception returns (pick-sixes).
interceptions_ydsdoubleInterception-return yards.
interceptions_intdoubleNumber of interceptions made by the player.
receiving_longdoubleLongest reception by the player, in yards.
receiving_tddoubleReceiving touchdowns.
receiving_avgdoubleAverage yards per reception.
receiving_ydsdoubleTotal receiving yards.
receiving_recdoubleNumber of receptions (catches).
rushing_longdoubleLongest rush by the player, in yards.
rushing_tddoubleRushing touchdowns.
rushing_avgdoubleAverage yards per rushing attempt.
rushing_ydsdoubleTotal rushing yards.
rushing_cardoubleRushing carries (attempts).
passing_intdoubleInterceptions thrown by the passer.
passing_tddoublePassing touchdowns thrown.
passing_avgdoubleYards per pass attempt.
passing_ydsdoubleTotal passing yards.
passing_completionsdoublePass completions (split from CFBD's C/ATT field).
passing_attemptsdoublePass attempts (split from CFBD's C/ATT field).
passing_qbrdoubleESPN Quarterback Rating (QBR) for the player in this game.
kicking_xpmdoubleExtra points made (split from CFBD's XP field).
kicking_xpadoubleExtra points attempted (split from CFBD's XP field).
kicking_fgmdoubleField goals made (split from CFBD's FG field).
kicking_fgadoubleField 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 3.0.0.9000 ──
#> ℹ Data updated: 2026-10-11 01:03:26 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 3.0.0.9000 ──
#> ℹ Data updated: 2026-10-11 01:03:27 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>, …
# }