Skip to contents

A thin wrapper around the pbpstats API’s “get-team-players-for-season” endpoint.

Usage

get_team_players_for_season(season, season_type = "Regular Season", team_id)

Arguments

season

Character or integer. The season to query; e.g., "2024-25".

season_type

Character. One of:

  • "Regular Season"

  • "Playoffs"

  • "PlayIn"

  • "All"

; defaults to "Regular Season".

team_id

Integer or character. The pbpstats ID of the team.

Value

A tibble of players for the specified team and season as returned by the API.

References

Darryl Blackport (2020). PBPStats API, MIT License. https://api.pbpstats.com/docs