Skip to contents

get_team_roster() retrieves information on each player for a given set of team, season, and player_type, including but not limited to their ID, name, bio-metrics, and birth date and location. Access get_teams() for team and get_team_seasons() for season references.

Usage

get_team_roster(
  team = "BOS",
  season = get_season_now()$seasonId,
  player_type = "forwards"
)

Arguments

team

string 3-letter Code

season

integer in YYYYYYYY

player_type

string of 'forwards', 'defensemen', or 'goalies'

Value

tibble with one row per player

Examples

COL_defensemen_20242025 <- get_team_roster(
  team='COL',
  season=20242025,
  player_type='defensemen'
)