Skip to contents

Every finished game of a competition team with that team's totals.

Endpoint: GET https://bnxt.sportpress.info/api/v1/competition-team/statistics-by-game/total/{competition_team_id}

Usage

sportpress_team_games(competition_team_id)

Arguments

competition_team_id

(required) Competition-team id (integer): a team in ONE competition, so new every season (e.g. 541 = Antwerp in 2026-27); from sportpress_competition_teams().

Value

A hoopR_data tibble: Every finished game of a competition team with that team's totals. An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py sportpress_team_games):

col_nametypedescription
competition_team_idintegerCompetition-team id the games were asked for (the team the totals belong to).
game_idintegerGame id (key space: sportpress games), unique across seasons: the key of every game route.
game_timePOSIXctTip-off as a naive datetime. The source carries no offset; the league's local time is assumed and unverified. POSIXct in Europe/Brussels (league local time).
statuscharacterGame status: finished, or ready for an upcoming game.
competition_idintegerCompetition id (key space: sportpress competitions): ONE season of the league (24 = 2025-26, 25 = 2026-27). Not the season number. The key of the standings, ranking, slider and box routes.
seasonintegerSeason END year of the game's competition.
phase_idintegerPhase id (key space: sportpress phases), a stage of one competition such as the regular season or the playoffs; new every season.
phase_namecharacterPhase name as entered in the CMS ('Regular season 2026-27').
round_namecharacterRound label as entered in the CMS; often empty.
round_priorityintegerSort order of the round within the phase (provider's priority); meaning of the values is unverified.
period_namecharacterName of the period the game is in or ended in; 'Extra2' means the second overtime.
arenacharacterName of the arena where the game is played.
home_competition_team_idintegerHome side. Competition-team id (key space: sportpress competition teams): a team in ONE competition, so the same club has a new id every season (Antwerp = 3 in 2021-22, 506 in 2025-26, 541 in 2026-27). Joins competitors, rosters, box scores, film and standings. The stable club key across seasons is uu_team_id.
home_teamcharacterHome side. Display name incl. the sponsor. Teams of the playoff phases carry a ' playoff' suffix (2025-26), and standings names vary with X-Localization ('Partena Professional Okapi Aalst Playoff' (en) vs 'Okapi Aalst Playoff' (nl, fr)): never join on it.
home_team_short_namecharacterHome side. Three-letter club code (CHA, OOS, ANT, MON, LIM, ...), stable across seasons in the samples.
home_scoreintegerHome side. Final points of the side, including overtime.
away_competition_team_idintegerAway side. Competition-team id (key space: sportpress competition teams): a team in ONE competition, so the same club has a new id every season (Antwerp = 3 in 2021-22, 506 in 2025-26, 541 in 2026-27). Joins competitors, rosters, box scores, film and standings. The stable club key across seasons is uu_team_id.
away_teamcharacterAway side. Display name incl. the sponsor. Teams of the playoff phases carry a ' playoff' suffix (2025-26), and standings names vary with X-Localization ('Partena Professional Okapi Aalst Playoff' (en) vs 'Okapi Aalst Playoff' (nl, fr)): never join on it.
away_team_short_namecharacterAway side. Three-letter club code (CHA, OOS, ANT, MON, LIM, ...), stable across seasons in the samples.
away_scoreintegerAway side. Final points of the side, including overtime.
minuteintegerThe team's own minutes played; for a team total, the sum over its players (200 + 25 per overtime).
foulintegerThe team's own personal fouls committed.
defensive_foulintegerThe team's own fouls DRAWN (suffered), despite the name: equals the opponent's foul count up to scorer corrections.
dunk_madeintegerThe team's own dunks made (a subset of the two-point field goals).
dunk_allintegerThe team's own dunks attempted.
dunk_percentdoubleThe team's own dunk percentage 0-100; 0 when none were attempted.
two_point_madeintegerThe team's own two-point field goals made.
two_point_allintegerThe team's own two-point field goals attempted.
two_point_percentdoubleThe team's own two-point percentage 0-100.
three_point_madeintegerThe team's own three-point field goals made.
three_point_allintegerThe team's own three-point field goals attempted.
three_point_percentdoubleThe team's own three-point percentage 0-100.
throw_madeintegerThe team's own all field goals made, two- plus three-pointers (the provider calls them 'throw').
throw_allintegerThe team's own all field goals attempted, two- plus three-pointers (the provider calls them 'throw').
throw_percentdoubleThe team's own field-goal percentage 0-100.
free_throw_madeintegerThe team's own free throws made.
free_throw_allintegerThe team's own free throws attempted.
free_throw_percentdoubleThe team's own free-throw percentage 0-100.
offensive_reboundintegerThe team's own offensive rebounds.
defensive_reboundintegerThe team's own defensive rebounds.
total_reboundintegerThe team's own total rebounds (offensive plus defensive).
blockintegerThe team's own shots blocked by the player.
block_againstintegerThe team's own own shots blocked by an opponent.
turnoverintegerThe team's own turnovers committed.
stealintegerThe team's own steals (balls taken from an opponent).
assistintegerThe team's own assists (passes leading directly to a made basket).
pointsintegerThe team's own points scored (2 x two-pointers + 3 x three-pointers + free throws).
valueintegerThe team's own efficiency rating (PIR with fouls drawn): points + rebounds + assists + steals + blocks + fouls drawn - missed field goals - missed free throws - turnovers.
plusminusintegerThe team's own plus/minus: the score margin while the player (or team) was on court; for a team total it is the game margin.

Details

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

 sportpress_team_games(competition_team_id = 541)