cfbd_betting_lines: *CFBD Betting Lines Endpoint Overview*

View source: R/cfbd_betting.R

cfbd_betting_linesR Documentation

CFBD Betting Lines Endpoint Overview

Description

Get betting lines information for games

Usage

cfbd_betting_lines(
  game_id = NULL,
  year = NULL,
  week = NULL,
  season_type = "regular",
  team = NULL,
  home_team = NULL,
  away_team = NULL,
  conference = NULL,
  line_provider = NULL
)

Arguments

game_id

(Integer optional): Game ID filter for querying a single game. Required if year not provided
Can be found using the cfbd_game_info() function

year

(Integer optional): Year, 4 digit format(YYYY). Required if game_id not provided
Minimum value accepted: 2013

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

home_team

(String optional): Home D-I Team

away_team

(String optional): Away 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

line_provider

(String optional): Select Line Provider - Caesars, consensus, numberfire, or teamrankings

Value

Betting information for games with the following 21 columns:

col_name types description
game_id integer Unique CFBD game identifier.
season integer Four-digit season year (e.g. 2024).
season_type character Season type (regular, postseason, both).
week integer Week of the season; 1-15, or 1-14 for seasons pre-playoff (2013 earlier).
start_date character Kickoff timestamp in ISO 8601 format.
home_team character Home D-I team name.
home_conference character Home team D-I conference.
home_classification character Home team conference classification (fbs, fcs, ii, iii).
home_score integer Final score of the home team.
away_team character Away D-I team name.
away_conference character Away team D-I conference.
away_classification character Away team conference classification (fbs, fcs, ii, iii).
away_score integer Final score of the away team.
provider character Sportsbook / line provider name.
spread character Closing point spread for the game.
formatted_spread character Human-readable formatted spread (e.g. "Florida State -7.5").
spread_open character Opening point spread for the game.
over_under character Closing over/under (total) for the game.
over_under_open character Opening over/under (total) for the game.
home_moneyline character Home team moneyline odds.
away_moneyline character Away team moneyline odds.

See Also

Other CFBD Betting Functions: cfbd_betting_ats()

Examples


   try(cfbd_betting_lines(year = 2018, week = 12, team = "Florida State"))


cfbfastR documentation built on Aug. 24, 2026, 5:13 p.m.