Skip to main content
Version: 0.2.0

CEBL — CEBL stats API (api.data.cebl.ca, Canada)

sportsdataverse.basketball.cebl — 12 endpoints.

Note: CEBL own API, owner-approved gray area: these wrappers read the league's own FastAPI service (api.data.cebl.ca, the backend of the CEBL Stats Hub) with the X-Api-Key that the hub's own page bundle ships to every browser. The key is not issued to third parties and no developer terms were found; cebl.ca's terms of use were not reviewed. The runtime reads the key from the bundle at run time, falls back to a documented constant, never prints it, and raises AssetFetchError with a 'key rotated?' hint on a persistent 401. www.cebl.ca/robots.txt disallows nothing. Payloads are not redistributed as release assets; requests are spaced at least 1 s apart.

Note: Season is the calendar year (May to August) = the sdv END year: no mapping. The first season is 2019. An unknown season, team or player answers an empty list, which the runtime raises as NoDataError. Ids are CEBL's own; a relocated franchise has two team ids (cebl_teams lists all 15).

Note: This API has no box-score, play-by-play or shot route. They live in Genius LiveStats (organisation CEBL, see the genius family): cebl_games and cebl_player_gamelog carry the Genius match id as genius_match_id, parsed from the stats URLs (derived, not fetched; the match of a cancelled game may have no data). home_team_id is Genius team 1 and away_team_id team 2 (checked on match 2600563).

Note: Some completed schedule rows have null scores (2026), and a cancelled game has status CANELLED (the API's spelling) with null or zero scores. The schedule lists unplayed games too, so no wrapper refuses an unfinished game. Aggregates are decimal strings upstream and Float64 here. Players' names, nationality and birth date are the public bio; no contact data is served.

cebl_seasons​

Every CEBL season (2019 on), with the active and live flags.

Endpoint URL: GET https://api.data.cebl.ca/seasons/

Valid URL: https://api.data.cebl.ca/seasons/

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
season_idInt64CEBL season row id (1 = 2019 ... 8 = 2026). No route takes it: routes take year.
seasonInt64Season: the calendar year it is played in (May-August) = the sdv END year. The key every route's season param takes.
is_activeBooleanTrue for the current season (one row: 2026 on 2026-10-12).
is_liveBooleanTrue while the current season is in progress or open for live data (true for 2026 on 2026-10-12, after its last game: the exact meaning is unverified).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_seasons()

cebl_teams​

Every franchise identity, past and present (15 team ids; a relocated franchise has a second id).

Endpoint URL: GET https://api.data.cebl.ca/teams/

Valid URL: https://api.data.cebl.ca/teams/

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_idInt64CEBL 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).
name_enStringTeam full name in English ('Niagara River Lions').
short_name_enStringTeam short name in English, usually the city ('Niagara').
name_frStringTeam full name in French ('River Lions de Niagara').
short_name_frStringTeam short name in French, usually the city.
is_activeBooleanTrue for a team in the current league; false for a former identity (Guelph Nighthawks, Hamilton Honey Badgers, Fraser Valley Bandits, Saskatchewan Rattlers, Newfoundland Growlers).
logo_urlStringTeam logo URL (icon with the team name; upstream: 'Should include the icon and team name').
icon_urlStringTeam icon URL (upstream: 'Should not include the team name').

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_teams()

cebl_standings​

Standings of one season, one row per team: record, home/away splits, games behind, streak.

Endpoint URL: GET https://api.data.cebl.ca/teams/{season}/

Valid URL: https://api.data.cebl.ca/teams/2025/

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYRequired. Season: the calendar year it is played in (May to August) = the sdv END year (2025 = the 2025 season). The CEBL's first season is 2019. A season with no data answers NoDataError.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season: the calendar year it is played in (May to August) = the sdv END year (2025). Taken from the request (the body does not echo it); null for the all-time table and for a bare body.
team_idInt64CEBL 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).
name_enStringTeam full name in English ('Niagara River Lions').
short_name_enStringTeam short name in English, usually the city ('Niagara').
name_frStringTeam full name in French ('River Lions de Niagara').
short_name_frStringTeam short name in French, usually the city.
conferenceStringConference: EAST or WEST.
positionInt64Rank in the team's conference standings (1 = first), not a playing position.
playedInt64Regular-season games played (24 a team in 2025).
winsInt64Regular-season games won.
win_percentageFloat64Win fraction, 0-1 (0.583), not a percentage; the API sends a decimal string.
home_winsInt64Regular-season home games won.
away_winsInt64Regular-season away games won.
lossesInt64Regular-season games lost.
home_lossesInt64Regular-season home games lost.
away_lossesInt64Regular-season away games lost.
games_behindFloat64Games behind the conference leader; the API sends a decimal string ('0.0').
points_differenceInt64Points scored minus points allowed over the season. An integer.
last_fiveStringRecord in the last 5 games, 'W-L' ('4-1').
streakStringCurrent streak: W or L and its length ('W4', 'L1').
logo_urlStringTeam logo URL (icon with the team name) on Google Cloud Storage.
icon_urlStringTeam icon URL (without the team name) on Google Cloud Storage.
tickets_url_enStringTicket-sales page for the team's home games (English).
tickets_url_frStringTicket-sales page for the team's home games (French).
website_url_enStringThe team's own website (English).
website_url_frStringThe team's own website (French).
shop_url_enStringThe team's merchandise shop (English).
shop_url_frStringThe team's merchandise shop (French).
stats_url_enStringThe team's stats page on cebl.ca (https://cebl.ca/stats/{slug}).
stats_url_frStringThe team's stats page on the French cebl.ca (https://cebl.ca/fr-ca/stats/{slug}).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_standings(season=2025)

cebl_roster​

One team's roster in one season: player, nationality, birth date, position and jersey.

Endpoint URL: GET https://api.data.cebl.ca/teams/{team_id}/roster/{season}/

Valid URL: https://api.data.cebl.ca/teams/14/roster/2025/

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYRequired. CEBL team id of that season (team_id in cebl_standings), e.g. 20 (Ottawa BlackJacks).
seasonseasonYRequired. Season: the calendar year it is played in (May to August) = the sdv END year (2025 = the 2025 season). The CEBL's first season is 2019. A season with no data answers NoDataError.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season of the roster asked for (from the request; the body does not echo it).
team_idInt64CEBL team id of the roster asked for (from the request; the body does not echo it).
player_idInt64CEBL player id (its own key space). 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).
full_nameStringPlayer's full name.
nationalityStringNationality: an upper-case English country name ('CANADA', 'UNITED STATES', 'SOUTH SUDAN'); null when unknown.
birth_dateStringDate of birth, YYYY-MM-DD (players' public bio field); null when unknown.
positionStringPlaying position: G (guard), F (forward), C (center), or a combination such as 'C/F'; null when unknown.
jersey_numberStringJersey number, as a string of up to 2 characters ('0', '00' and '1' are distinct); null when unknown.
photo_urlStringPlayer headshot URL on the Genius Sports image CDN (images.statsengine.playbyplay.api.geniussports.com).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_roster(season=2025, team_id=14)

cebl_team_stats​

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

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

Valid URL: https://api.data.cebl.ca/teams/statistics/aggregated/?mode=TOTALS&season=2025&competition=REGULAR

API ParameterPythonPatternRequiredNullableDescription
modemodeYTOTALS (sums over the selected games) or PER_GAME (per-game averages); the API requires one.
seasonseasonYSeason: the calendar year (May to August) = the sdv END year. None = every season combined (the Stats Hub's All-Time). An unknown year answers NoDataError.
competitioncompetitionYREGULAR (regular season) or FINALS (the playoffs). None = both.
segmentsegmentYGame subset: HOME, AWAY, L7D (last 7 days), L5G (last 5 games), L10G (last 10 games), MAY, JUNE, JULY or AUGUST. None = all games. Values from the CEBL Stats Hub bundle.
vs_team_idvs_team_idYCEBL team id of the opponent: only games against that team count.
vs_conferencevs_conferenceYEAST or WEST: only games against that conference's teams count.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season: the calendar year it is played in (May to August) = the sdv END year (2025). Taken from the request (the body does not echo it); null for the all-time table and for a bare body.
modeStringTable mode of the request: TOTALS (sums over the selected games) or PER_GAME (per-game averages); the body does not echo it.
competitionStringCompetition filter of the request: REGULAR or FINALS; null when both were asked. The body does not echo it.
segmentStringGame-subset filter of the request (HOME, AWAY, L5G, MAY ...); null for all games. The body does not echo it.
vs_conferenceStringOpponent-conference filter of the request (EAST or WEST); null when not asked. The body does not echo it.
vs_team_idInt64Opponent team filter of the request (CEBL team id); null when not asked. The body does not echo it.
team_idInt64CEBL 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). Null on the league row.
is_league_rowBooleanTrue on the one league row of a team table (null team_id and names): the league's own figures, where played counts team-games and, in TOTALS, points equals points_against.
name_enStringTeam full name in English ('Niagara River Lions'). Null on the league row.
short_name_enStringTeam short name in English, usually the city ('Niagara'). Null on the league row.
name_frStringTeam full name in French ('River Lions de Niagara'). Null on the league row.
short_name_frStringTeam short name in French, usually the city. Null on the league row.
playedInt64Games played (a count in both modes). On the league row: team-games (twice the games).
winsInt64Wins (a count in both modes).
win_percentageFloat64Wins / games played, 0-1 with 3 decimals ('0.625'). A string.
lossesInt64Losses (a count in both modes).
pointsFloat64Points 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').
points_againstFloat64Points allowed. 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').
point_differenceFloat64Points scored minus points allowed. 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_madeFloat64Field 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_attemptedFloat64Field 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_percentageFloat64Field-goal percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
three_points_madeFloat64Three-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_attemptedFloat64Three-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_percentageFloat64Three-point percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
free_throws_madeFloat64Free 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_attemptedFloat64Free 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_percentageFloat64Free-throw percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
offensive_reboundsFloat64Offensive 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_reboundsFloat64Defensive 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').
reboundsFloat64Total 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').
assistsFloat64Assists. 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_oversFloat64Turnovers. 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').
stealsFloat64Steals. 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').
blocksFloat64Shots 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').
foulsFloat64Personal 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').
fouls_drawnFloat64Fouls drawn (committed by opponents). 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').
efficiencyFloat64Efficiency rating (EFF); CEBL does not publish its formula (unverified: the usual Genius / FIBA EFF is PTS + REB + AST + STL + BLK - missed FG - missed FT - TO). 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').
logo_urlStringTeam logo URL (icon with the team name) on Google Cloud Storage. Null on the league row.
icon_urlStringTeam icon URL (without the team name) on Google Cloud Storage. Null on the league row.
stats_url_enStringThe team's stats page on cebl.ca (https://cebl.ca/stats/{slug}). Null on the league row.
stats_url_frStringThe team's stats page on the French cebl.ca (https://cebl.ca/fr-ca/stats/{slug}). Null on the league row.

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_team_stats(competition='REGULAR', mode='TOTALS', season=2025)

cebl_games​

Schedule and results of one season (regular season and finals), with the Genius match id that joins play-by-play and shots; optionally one team's games.

Endpoint URL: GET https://api.data.cebl.ca/games/{season}/

Valid URL: https://api.data.cebl.ca/games/2025/

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYRequired. Season: the calendar year it is played in (May to August) = the sdv END year (2025 = the 2025 season). The CEBL's first season is 2019. A season with no data answers NoDataError.
team_idteam_idYCEBL team id (team_id in cebl_teams): limits the rows to that team; the rows echo it.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season of the game: the year of start_time_utc (the calendar year = the sdv END year).
game_idInt64CEBL game id (its own key space: 568 in 2019, 8 digits from 2025, e.g. 14708701). No route is keyed by it; the Genius match id is in stats_url_en.
genius_match_idInt64Genius LiveStats match id parsed from the stats URL (the join to the genius family, organisation CEBL, where play-by-play and shots live). Derived from the URL, not fetched; null when the URL is absent.
start_time_utcStringScheduled tip-off, ISO 8601 in UTC ('2025-05-11T22:00:00Z').
competitionStringREGULAR (regular season) or FINALS (playoffs).
statusStringGame status. Observed: COMPLETE (final) and CANELLED (sic: cancelled; 1 game in 2025, 2 in 2026). The Stats Hub also knows SCHEDULED, IN_PROGRESS, DELAYED and FINISHED.
periodInt64Last period played when the API sets it (seen only on a cancelled game, which carried period 3); null on a finished game.
venue_nameStringArena name ('Edmonton EXPO Centre').
home_team_idInt64CEBL 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 home team.
home_team_nameStringHome team full English name.
home_team_scoreInt64Home team final score. On the 3 cancelled games: null, 0 or a partial score; before tip-off unobserved.
away_team_idInt64CEBL 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 away team.
away_team_nameStringAway team full English name.
away_team_scoreInt64Away team final score. On the 3 cancelled games: null, 0 or a partial score; before tip-off unobserved.
home_team_logo_urlStringURL of the home team's logo image as the games feed lists it (a team-level asset, the same on every game of that team in the season).
home_team_stats_url_enStringHome team's cebl.ca stats page (English).
home_team_stats_url_frStringHome team's cebl.ca stats page (French).
away_team_logo_urlStringURL of the away team's logo image as the games feed lists it (a team-level asset, the same on every game of that team in the season).
away_team_stats_url_enStringAway team's cebl.ca stats page (English).
away_team_stats_url_frStringAway team's cebl.ca stats page (French).
stats_url_enStringGenius LiveStats box-score page, https://fibalivestats.dcd.shared.geniussports.com/u/CEBL/{matchId}/. The segment after /u/CEBL/ is the Genius match id: the join to genius-livestats/ (org CEBL), whose data/{matchId}/data.json holds the box score, play-by-play and shot chart. Only match 2600563 is banked there; the others are derived, and cancelled (CANELLED) games carry a filled-in URL whose data.json is unverified.
stats_url_frStringThe same Genius LiveStats page in French (.../u/CEBL/{matchId}/index_fr_FR.html).
cebl_stats_url_enStringThe game page on cebl.ca, https://www.cebl.ca/game?id={matchId}: id is the Genius match id, not this row's id.
cebl_stats_url_frStringThe French cebl.ca game page (https://www.cebl.ca/fr-ca/game?id={matchId}).
tickets_url_enStringTicket-sales page for the game (English).
tickets_url_frStringTicket-sales page for the game (French).
broadcast_partner_logo_urlsStringLogo URLs of the game's broadcasters (TSN+, CEBL+, ...); 2 to 7 per game.

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_games(season=2025)

cebl_player_stats​

Player statistic table (totals or per game) for a season or all-time; filter by competition, segment or team.

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

Valid URL: https://api.data.cebl.ca/players/statistics/aggregated/?mode=PER_GAME&season=2025

API ParameterPythonPatternRequiredNullableDescription
modemodeYTOTALS (sums over the selected games) or PER_GAME (per-game averages); the API requires one.
seasonseasonYSeason: the calendar year (May to August) = the sdv END year. None = every season combined (the Stats Hub's All-Time). An unknown year answers NoDataError.
competitioncompetitionYREGULAR (regular season) or FINALS (the playoffs). None = both.
segmentsegmentYGame subset: HOME, AWAY, L7D (last 7 days), L5G (last 5 games), L10G (last 10 games), MAY, JUNE, JULY or AUGUST. None = all games. Values from the CEBL Stats Hub bundle.
team_idteam_idYCEBL team id (team_id in cebl_teams): limits the rows to that team; the rows echo it.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season: the calendar year it is played in (May to August) = the sdv END year (2025). Taken from the request (the body does not echo it); null for the all-time table and for a bare body.
modeStringTable mode of the request: TOTALS (sums over the selected games) or PER_GAME (per-game averages); the body does not echo it.
competitionStringCompetition filter of the request: REGULAR or FINALS; null when both were asked. The body does not echo it.
segmentStringGame-subset filter of the request (HOME, AWAY, L5G, MAY ...); null for all games. The body does not echo it.
player_idInt64CEBL player id (its own key space). 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).
full_nameStringPlayer's full name.
nationalityStringNationality: an upper-case English country name ('CANADA', 'UNITED STATES', 'SOUTH SUDAN'); null when unknown.
team_idInt64CEBL 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).
team_name_enStringFull English name of the player's team.
team_short_name_enStringShort English name (city) of the player's team.
team_name_frStringFull French name of the player's team.
team_short_name_frStringShort French name (city) of the player's team.
team_logo_urlStringLogo URL (icon with the name) of the player's team.
playedInt64Games played (a count in both modes).
startedInt64Games started (a count in both modes).
minutesFloat64Minutes played, decimal minutes (not mm:ss). TOTALS: the sum ('1281.7'); PER_GAME: the per-game average ('29.5'). A string.
pointsFloat64Points 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_madeFloat64Field 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_attemptedFloat64Field 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_percentageFloat64Field-goal percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
three_points_madeFloat64Three-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_attemptedFloat64Three-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_percentageFloat64Three-point percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
free_throws_madeFloat64Free 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_attemptedFloat64Free 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_percentageFloat64Free-throw percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
offensive_reboundsFloat64Offensive 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_reboundsFloat64Defensive 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').
reboundsFloat64Total 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').
assistsFloat64Assists. 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_oversFloat64Turnovers. 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').
stealsFloat64Steals. 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').
blocksFloat64Shots 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').
foulsFloat64Personal 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_doublesFloat64Double-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_doublesFloat64Triple-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_scoresFloat64Target-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').

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_player_stats(mode='PER_GAME', season=2025)

cebl_player_leaders​

Top five players per requested statistic (long frame, one row per statistic and leader).

Endpoint URL: GET https://api.data.cebl.ca/players/statistics/leaders/

Valid URL: https://api.data.cebl.ca/players/statistics/leaders/?statistics=POINTS%2CASSISTS&mode=PER_GAME&season=2025

API ParameterPythonPatternRequiredNullableDescription
statisticsstatisticsYComma-separated statistic names; the frame has one block per name. Names the Stats Hub sends: POINTS, REBOUNDS, ASSISTS, BLOCKS, STEALS, TARGET_SCORES, FIELD_GOAL_PERCENTAGE, THREE_POINTS_MADE, THREE_POINT_PERCENTAGE, FREE_THROW_PERCENTAGE, FOULS, TURNOVERS, MINUTES.
modemodeYTOTALS (sums over the selected games) or PER_GAME (per-game averages); the API requires one.
seasonseasonYSeason: the calendar year (May to August) = the sdv END year. None = every season combined (the Stats Hub's All-Time). An unknown year answers NoDataError.
competitioncompetitionYREGULAR (regular season) or FINALS (the playoffs). None = both.
team_idteam_idYCEBL team id (team_id in cebl_teams): limits the rows to that team; the rows echo it.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
statisticStringStatistic this leader row ranks, the body's key for the list: POINTS, REBOUNDS, ASSISTS, TARGET_SCORES and the other names the request asked for.
rankingInt64Rank in this statistic, 1 = best; ties share a rank and skip the next (1, 1, 1, 4). The list is the top 5 rows, no more.
seasonInt64Season: the calendar year it is played in (May to August) = the sdv END year (2025). Taken from the request (the body does not echo it); null for the all-time table and for a bare body.
modeStringTable mode of the request: TOTALS (sums over the selected games) or PER_GAME (per-game averages); the body does not echo it.
competitionStringCompetition filter of the request: REGULAR or FINALS; null when both were asked. The body does not echo it.
player_idInt64CEBL player id (its own key space). 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).
full_nameStringPlayer's full name.
team_idInt64CEBL 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).
team_name_enStringFull English name of the player's team.
team_short_name_enStringShort English name (city) of the player's team.
team_name_frStringFull French name of the player's team.
team_short_name_frStringShort French name (city) of the player's team.
team_abbreviated_nameStringThree-letter code of the player's team ('OTT', 'VAN').
team_logo_urlStringLogo URL (icon with the name) of the player's team.
valueFloat64The player's figure for the statistic this list is keyed by, in the requested mode (TOTALS sum or PER_GAME average; percentages 0-100). A decimal string ('25.9').
photo_urlStringPlayer headshot URL on the Genius Sports image CDN (images.statsengine.playbyplay.api.geniussports.com).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_player_leaders(mode='PER_GAME', season=2025, statistics='POINTS,ASSISTS')

cebl_player_seasons​

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

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

Valid URL: https://api.data.cebl.ca/players/570965/statistics/?mode=PER_GAME&career_only=False

API ParameterPythonPatternRequiredNullableDescription
player_idplayer_idYRequired. CEBL player id (global across seasons and teams), e.g. 570965 (Javonte Smart); player_id in cebl_player_stats.
modemodeYTOTALS (sums over the selected games) or PER_GAME (per-game averages); the API requires one.
career_onlycareer_onlyYTrue returns the career row alone; False the per-season rows and the career row.
competitioncompetitionYREGULAR (regular season) or FINALS (the playoffs). None = both.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
modeStringTable mode of the request: TOTALS (sums over the selected games) or PER_GAME (per-game averages); the body does not echo it.
competitionStringCompetition filter of the request: REGULAR or FINALS; null when both were asked. The body does not echo it.
player_idInt64CEBL 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).
seasonInt64Season (calendar year = sdv END year); null on the career row.
is_careerBooleanTrue on the career row (null season): the sum or average over every season and team; false on a per-season row.
team_idInt64CEBL 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_enStringFull English name of the player's team.
team_short_name_enStringShort English name (city) of the player's team.
team_name_frStringFull French name of the player's team.
team_short_name_frStringShort French name (city) of the player's team.
team_logo_urlStringLogo URL (icon with the name) of the player's team.
playedInt64Games played (a count in both modes).
startedInt64Games started (a count in both modes).
minutesFloat64Minutes played, decimal minutes (not mm:ss). TOTALS: the sum ('1281.7'); PER_GAME: the per-game average ('29.5'). A string.
pointsFloat64Points 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_madeFloat64Field 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_attemptedFloat64Field 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_percentageFloat64Field-goal percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
three_points_madeFloat64Three-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_attemptedFloat64Three-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_percentageFloat64Three-point percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
free_throws_madeFloat64Free 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_attemptedFloat64Free 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_percentageFloat64Free-throw percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the selected games (the same in both modes). A string.
offensive_reboundsFloat64Offensive 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_reboundsFloat64Defensive 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').
reboundsFloat64Total 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').
assistsFloat64Assists. 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_oversFloat64Turnovers. 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').
stealsFloat64Steals. 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').
blocksFloat64Shots 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').
foulsFloat64Personal 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_doublesFloat64Double-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_doublesFloat64Triple-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_scoresFloat64Target-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').

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

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

cebl_player​

One player's profile and current team: name, nationality, birth date, position, jersey.

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

Valid URL: https://api.data.cebl.ca/players/570965/

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

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
player_idInt64CEBL player id (its own key space). 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).
full_nameStringPlayer's full name.
nationalityStringNationality: an upper-case English country name ('CANADA', 'UNITED STATES', 'SOUTH SUDAN'); null when unknown.
birth_dateStringDate of birth, YYYY-MM-DD (players' public bio field); null when unknown.
ageInt64Age in whole years on the day of the request (computed by the API); null when the birth date is unknown.
positionStringPlaying position: G (guard), F (forward), C (center), or a combination such as 'C/F'; null when unknown.
jersey_numberStringJersey number, as a string of up to 2 characters ('0', '00' and '1' are distinct); null when unknown.
team_idInt64CEBL 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 latest team.
team_name_enStringFull English name of the player's team.
team_short_name_enStringShort English name (city) of the player's team.
team_name_frStringFull French name of the player's team.
team_short_name_frStringShort French name (city) of the player's team.
team_icon_urlStringIcon URL (without the name) of the player's team.
team_stats_url_enStringcebl.ca stats page of the player's team (English).
team_stats_url_frStringcebl.ca stats page of the player's team (French).
photo_urlStringPlayer headshot URL on the Genius Sports image CDN (images.statsengine.playbyplay.api.geniussports.com).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_player(player_id=570965)

cebl_player_gamelog​

One player's game log: one row per game played, with the Genius match id of the game.

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

Valid URL: https://api.data.cebl.ca/players/570965/gamelog/?season=2025

API ParameterPythonPatternRequiredNullableDescription
player_idplayer_idYRequired. CEBL player id (global across seasons and teams), e.g. 570965 (Javonte Smart); player_id in cebl_player_stats.
seasonseasonYSeason: the calendar year (May to August) = the sdv END year. None = every season combined (the Stats Hub's All-Time). An unknown year answers NoDataError.
competitioncompetitionYREGULAR (regular season) or FINALS (the playoffs). None = both.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
player_idInt64CEBL player id of the log asked for (from the request; the body does not echo it).
seasonInt64Season of the game: the year of game_date (the calendar year = the sdv END year).
game_dateStringTip-off of the game, ISO 8601 in UTC (same as the game's start_time_utc).
genius_match_idInt64Genius LiveStats match id parsed from the stats URL (the join to the genius family, organisation CEBL, where play-by-play and shots live). Derived from the URL, not fetched; null when the URL is absent.
team_abbreviated_nameStringThree-letter code of the player's team in that game ('OTT').
matchupString'{TEAM} {team score} {vs or @} {opponent score} {OPP}': the player's team code and score first; vs = a home game, @ = an away game ('OTT 91 @ 95 BHB').
minutesFloat64Minutes played as decimal minutes (26.4), not mm:ss; the API sends a string.
pointsInt64Points scored in the game. An integer.
field_goals_madeInt64Field goals made (2- and 3-pointers) in the game. An integer.
field_goals_attemptedInt64Field goals attempted (2- and 3-pointers) in the game. An integer.
field_goal_percentageFloat64Field-goal percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the game. A string.
three_points_madeInt64Three-pointers made in the game. An integer.
three_points_attemptedInt64Three-pointers attempted in the game. An integer.
three_point_percentageFloat64Three-point percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the game. A string.
free_throws_madeInt64Free throws made in the game. An integer.
free_throws_attemptedInt64Free throws attempted in the game. An integer.
free_throw_percentageFloat64Free-throw percentage, 0-100 with 1 decimal ('44.7'): made / attempted over the game. A string.
offensive_reboundsInt64Offensive rebounds in the game. An integer.
defensive_reboundsInt64Defensive rebounds in the game. An integer.
reboundsInt64Total rebounds in the game; the API sends it as a string ('5'), cast to Int64.
assistsInt64Assists in the game. An integer.
turn_oversInt64Turnovers in the game. An integer.
stealsInt64Steals in the game. An integer.
blocksInt64Shots blocked in the game. An integer.
foulsInt64Personal fouls committed in the game. An integer.
is_target_scorerBooleanTrue when the player made the basket that reached the Elam Ending target score and ended the game.
game_stats_url_enStringcebl.ca game page, https://www.cebl.ca/game?id={matchId}: id is the Genius match id (the join to genius-livestats/).
game_stats_url_frStringFrench cebl.ca game page (https://www.cebl.ca/fr-ca/game?id={matchId}).
team_stats_url_enStringcebl.ca stats page of the player's team in that game (English).
team_stats_url_frStringcebl.ca stats page of the player's team in that game (French).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_player_gamelog(player_id=570965, season=2025)

cebl_news​

News articles in one language. The API answered an empty list on every probe, so this raises NoDataError.

Endpoint URL: GET https://api.data.cebl.ca/news/articles/{language}/

Valid URL: https://api.data.cebl.ca/news/articles/en/

API ParameterPythonPatternRequiredNullableDescription
languagelanguageYRequired. Language code, e.g. en; every language tried answered an empty list.
team_source_idteam_source_idYCEBL team id: only that team's articles.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
news_idInt64CEBL news article id; null when the API gives none. Unobserved: the route answered an empty list on every probe.
languageStringLanguage code of the request ('en'); the body does not echo it.
titleStringArticle headline (upstream schema; unobserved, the route answered an empty list on every probe).
published_at_utcStringPublication time in UTC (upstream schema; unobserved, no article was ever served).
image_urlStringArticle image URL (upstream schema; unobserved, no article was ever served).
html_contentStringArticle body as HTML (upstream schema; unobserved, no article was ever served).

return_parsed=False — the raw record (dict): {'rows': <API body>, '_request': {...}} with the request (kind, season, mode, competition, segment, ids) stamped under _request.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API has nothing for the request (an unknown season, team or player answers an empty list, an all-null profile; an empty news feed).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a rejected key after a re-read, a non-2xx, a non-JSON body, an error envelope, a body for another season, team or player).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A mode, competition, segment or conference outside its set, a season that is not a 4-digit year, an id that is not an integer, or HTTP 400 / 422 (a missing required query parameter).

Example​

cebl_news(language='en')