Skip to contents

Get against-the-spread (ATS) summary records by team

Retrieves a season-level against-the-spread summary for each team: how often the team covered, failed to cover, or pushed relative to the closing spread, plus the average margin by which it beat the spread. Complements cfbd_betting_lines(), which returns the per-game lines themselves.

Usage

cfbd_betting_ats(year = NULL, team = NULL, conference = NULL)

Arguments

year

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

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

Value

Against-the-spread records with the following 9 columns:

col_nametypesdescription
yearintegerFour-digit season year.
team_idintegerUnique CFBD team identifier.
teamcharacterD-I team name.
conferencecharacterTeam conference name.
gamesintegerNumber of games included in the ATS summary.
ats_winsintegerGames the team covered the spread.
ats_lossesintegerGames the team failed to cover the spread.
ats_pushesintegerGames that pushed against the spread.
avg_cover_marginnumericAverage margin by which the team beat the spread.

See also

Other CFBD Betting Functions: cfbd_betting_lines()

Examples

# \donttest{
   try(cfbd_betting_ats(year = 2023, team = "Michigan"))
#> ── Against-the-spread records from CollegeFootballData.com ─── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-09 19:57:36 UTC
#> # A tibble: 1 × 9
#>    year team_id team     conference games ats_wins ats_losses ats_pushes
#>   <int>   <int> <chr>    <chr>      <int>    <int>      <int>      <int>
#> 1  2023     130 Michigan B1G           15       10          5          0
#> # ℹ 1 more variable: avg_cover_margin <dbl>
# }