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: One player's per-season rows and career row (totals or per game). An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py cebl_player_seasons):

col_nametypedescription
modecharacterTable mode of the request: TOTALS (sums over the selected games) or PER_GAME (per-game averages); the body does not echo it.
competitioncharacterCompetition filter of the request: REGULAR or FINALS; null when both were asked. The body does not echo it.
player_idintegerCEBL player id: the player_id of the request, on every row. Joins /players/{player_id}/ and id in the other player rows. Genius LiveStats data.json carries no person id, so the join to Genius play-by-play is by name, team and jersey number (unverified).
seasonintegerSeason (calendar year = sdv END year); null on the career row.
is_careerlogicalTrue on the career row (null season): the sum or average over every season and team; false on a per-season row.
team_idintegerCEBL team id (its own key space; not a Genius id). Joins /teams/ id, the games' home_team_id / away_team_id, team_id in player rows and the team_id / vs_team_id params. A relocated or renamed franchise has a second id: the Stats Hub groups 15+56 (Saskatchewan Rattlers, Saskatoon Mamba), 17+53 (Calgary Surge, Guelph Nighthawks), 19+55 (Brampton, Hamilton Honey Badgers) and 16+54 (Vancouver, Fraser Valley Bandits). The player's team that season (on the career row, his latest).
team_name_encharacterFull English name of the player's team.
team_short_name_encharacterShort English name (city) of the player's team.
team_name_frcharacterFull French name of the player's team.
team_short_name_frcharacterShort French name (city) of the player's team.
team_logo_urlcharacterLogo URL (icon with the name) of the player's team.
playedintegerGames played (a count in both modes).
startedintegerGames started (a count in both modes).
minutesdoubleMinutes played, decimal minutes (not mm:ss). TOTALS: the sum ('1281.7'); PER_GAME: the per-game average ('29.5'). A string.
pointsdoublePoints scored. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
field_goals_madedoubleField goals made (2- and 3-pointers). TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
field_goals_attempteddoubleField goals attempted (2- and 3-pointers). TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
field_goal_percentagedoubleField-goal percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
three_points_madedoubleThree-pointers made. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
three_points_attempteddoubleThree-pointers attempted. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
three_point_percentagedoubleThree-point percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
free_throws_madedoubleFree throws made. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
free_throws_attempteddoubleFree throws attempted. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
free_throw_percentagedoubleFree-throw percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
offensive_reboundsdoubleOffensive rebounds. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
defensive_reboundsdoubleDefensive rebounds. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
reboundsdoubleTotal rebounds (offensive + defensive). TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
assistsdoubleAssists. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
turn_oversdoubleTurnovers. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
stealsdoubleSteals. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
blocksdoubleShots blocked. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
foulsdoublePersonal fouls committed. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
double_doublesdoubleDouble-doubles: games with 10 or more in two of points, rebounds, assists, steals, blocks. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
triple_doublesdoubleTriple-doubles: games with 10 or more in three of those. TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').
target_scoresdoubleTarget-score baskets: games in which the player made the basket that reached the Elam Ending target score and ended the game (CEBL has used the Elam Ending since 2020, so 2019 is 0). TOTALS: the sum over the selected games; PER_GAME: the per-game average, 1 decimal. A decimal sent as a string ('2256.0', '12.7').

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")