Skip to contents

Get play-by-play data for a team-season from the CollegeBasketballData API.

Usage

cbbd_plays_team(
  season = most_recent_mbb_season(),
  team,
  shooting_plays_only = FALSE
)

Arguments

season

(integer required): Season, 4-digit ending-year (e.g. 2024). Defaults to most_recent_mbb_season().

team

(character required): Team name (e.g. Duke).

shooting_plays_only

(logical optional): If TRUE, return only shooting plays. Defaults to FALSE.

Value

A hoopR_data tibble with one row per play (same columns as cbbd_plays_game()).

Examples

# \donttest{
  try(cbbd_plays_team(season = 2024, team = "Duke"))
#>  2026-06-09 22:48:23.175536: Invalid arguments or no play data available for Duke!
#>  Args: season = 2024, team = "Duke", shooting_plays_only = FALSE
#>  Error: api.collegebasketballdata.com requires an API key.        See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }