Skip to contents

Team statistic table (totals or per game) with a league row; filter by season, competition, segment, opponent team or opponent conference.

Endpoint: GET https://api.data.cebl.ca/teams/statistics/aggregated/

Usage

cebl_team_stats(
  mode = "PER_GAME",
  season = NULL,
  competition = NULL,
  segment = NULL,
  vs_team_id = NULL,
  vs_conference = NULL
)

Arguments

mode

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

season

(default NULL) Season: the calendar year (May to August) = the sdv END year. NULL = every season combined (the Stats Hub's All-Time). An unknown year answers hoopR_no_data.

competition

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

segment

(default NULL) Game subset: HOME, AWAY, L7D (last 7 days), L5G (last 5 games), L10G (last 10 games), MAY, JUNE, JULY or AUGUST. NULL = all games. Values from the CEBL Stats Hub bundle.

vs_team_id

(default NULL) CEBL team id of the opponent: only games against that team count.

vs_conference

(default NULL) EAST or WEST: only games against that conference's teams count.

Value

A hoopR_data tibble with one row per team, plus a league row. Its columns are listed in return_columns (subset(return_columns, fn == "cebl_team_stats")) 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_team_stats(mode = "TOTALS", season = 2025, competition = "REGULAR")