Get game betting lines from the CollegeBasketballData API.
Get betting line providers from the CollegeBasketballData API.
Usage
cbbd_lines(
season = most_recent_mbb_season(),
team = NULL,
conference = NULL,
start_date_range = NULL,
end_date_range = NULL
)
cbbd_lines_providers()Arguments
- season
(integer optional): Season, 4-digit ending-year (e.g.
2024). Defaults tomost_recent_mbb_season().- team
(character optional): Team name filter.
- conference
(character optional): Conference abbreviation filter.
- start_date_range
(character optional): ISO 8601 start of date range.
- end_date_range
(character optional): ISO 8601 end of date range.
Value
A hoopR_data tibble with one row per game.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_lines")) and in the searchable
return columns article.
A hoopR_data tibble with one row per line provider.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_lines_providers")) and in the searchable
return columns article.
Examples
# \donttest{
try(cbbd_lines(season = 2024, team = "Duke"))
#> ✖ 2026-11-13 21:11:17.010103: Invalid arguments or no betting lines available!
#> ✖ Args: season = 2024, team = "Duke", conference = NULL, start_date_range = NULL, end_date_range = NULL
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
# \donttest{
try(cbbd_lines_providers())
#> ✖ 2026-11-13 21:11:17.020931: Invalid arguments or no line providers available!
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
