Skip to contents

One player's per-season rows and career row (totals or per game).

Endpoint: GET https://api.data.cebl.ca/players/{player_id}/statistics/

Usage

cebl_player_seasons(
  player_id,
  mode = "PER_GAME",
  career_only = FALSE,
  competition = NULL
)

Arguments

player_id

(required) CEBL player id (global across seasons and teams), e.g. 570965 (Javonte Smart); player_id in cebl_player_stats.

mode

(default "PER_GAME") TOTALS (sums over the selected games) or PER_GAME (per-game averages); the API requires one.

career_only

(default FALSE) TRUE returns the career row alone; FALSE the per-season rows and the career row.

competition

(default NULL) REGULAR (regular season) or FINALS (the playoffs). NULL = both.

Value

A hoopR_data tibble with one row per player-season. Its columns are listed in return_columns (subset(return_columns, fn == "cebl_player_seasons")) and in the searchable return columns article.

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in cebl_seasons().

 cebl_player_seasons(player_id = 570965, mode = "PER_GAME")