Skip to contents

Get player recruiting rankings from the CollegeBasketballData API.

Usage

cbbd_recruiting_players(
  year = NULL,
  team = NULL,
  conference = NULL,
  position = NULL
)

Arguments

year

(integer optional): Recruiting class year (e.g. 2024).

team

(character optional): Committed team filter.

conference

(character optional): Conference abbreviation filter.

position

(character optional): Position filter.

Value

A hoopR_data tibble with one row per recruit. The hometown and committed_to objects are flattened into prefixed columns:

col_nametypesdescription
idintegerRecruit id.
source_idcharacterSource (ESPN) recruit id.
positioncharacterRecruit position.
school_idintegerHigh school / club id.
schoolcharacterHigh school / club name.
athlete_idintegerAthlete id (once enrolled).
yearintegerRecruiting class year.
namecharacterRecruit name.
height_inchesnumericHeight in inches.
weight_poundsintegerWeight in pounds.
starsintegerStar rating.
ratingnumericNumeric recruit rating.
rankingintegerOverall ranking.

See also

Other CBD Recruiting Functions: cbbd_recruiting_portal(), cbbd_recruiting_teams()

Examples

# \donttest{
  try(cbbd_recruiting_players(year = 2024))
#>  2026-06-09 22:48:24.504517: Invalid arguments or no recruiting players available!
#>  Args: year = 2024, team = NULL, conference = NULL, position = NULL
#>  Error: api.collegebasketballdata.com requires an API key.        See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }