Skip to contents

A team-season's totals, or per-game averages with is_averages=True.

Endpoint: GET https://basket.co.il/ws/ws.asmx/TeamStatsById

Usage

ibba_team_stats(team_id, season, is_averages = FALSE, is_playoff = FALSE)

Arguments

team_id

(integer required): Team-season id (new every season; Maccabi = 1109 in 2025-26): team_id in ibba_teams, ibba_games home_team_id / away_team_id or ibba_box_score.

season

(integer required): Season END year (2026 = 2025-26); sent to the host as cYear unchanged.

is_averages

(logical, default FALSE): True returns per-game averages (decimals); False (default) the season totals.

is_playoff

(logical, default FALSE): True returns the playoff games only; False (default) the regular season.

Value

A hoopR_data tibble with these columns:

col_nametypedescription
seasonintegerSeason END year as an integer (2026 = 2025-26): the host's own cYear, no mapping.
team_idintegerTeam-season id (key space: IBBA team registrations; a NEW id every season for the same club, e.g. Maccabi Tel Aviv = 1109 in 2025-26 and 2111 in 2026-27). Joins ibba_teams, ibba_players, ibba_coaches, ibba_box_score and the games' home / away ids.
gamesintegerGames played (in the standings or in the season stats).
minutesdoubleMinutes played, whole minutes; a TOTAL line holds the team's player-minutes (200 plus 25 per overtime). Season total, or the per-game average when is_averages is true.
ptsdoublePoints scored by the player or team (free throws included). Season total, or the per-game average when is_averages is true.
fg2mdoubleTwo-point field goals made. Season total, or the per-game average when is_averages is true.
fg2adoubleTwo-point field goals attempted (verified equal to Segev made + missed). Season total, or the per-game average when is_averages is true.
fg2_pctdoubleTwo-point field-goal percentage, 0-100. Season total, or the per-game average when is_averages is true.
fg3mdoubleThree-point field goals made. Season total, or the per-game average when is_averages is true.
fg3adoubleThree-point field goals attempted. Season total, or the per-game average when is_averages is true.
fg3_pctdoubleThree-point field-goal percentage, 0-100. Season total, or the per-game average when is_averages is true.
ftmdoubleFree throws made. Season total, or the per-game average when is_averages is true.
ftadoubleFree throws attempted. Season total, or the per-game average when is_averages is true.
ft_pctdoubleFree-throw percentage, 0-100. Season total, or the per-game average when is_averages is true.
drebdoubleDefensive rebounds. Season total, or the per-game average when is_averages is true.
orebdoubleOffensive rebounds. Season total, or the per-game average when is_averages is true.
rebdoubleTotal rebounds. Season total, or the per-game average when is_averages is true.
fouls_drawndoubleFouls DRAWN: fouls opponents committed against the player or team (the wire's fouls_against; verified equal to Segev f_drawn). Season total, or the per-game average when is_averages is true.
foulsdoubleFouls COMMITTED by the player or team (the wire's fouls_for; verified equal to Segev f). Season total, or the per-game average when is_averages is true.
stealsdoubleSteals made by the player or team. Season total, or the per-game average when is_averages is true.
turnoversdoubleTurnovers (the wire's misspelt tournovers). Season total, or the per-game average when is_averages is true.
assistsdoubleAssists credited to the player or team. Season total, or the per-game average when is_averages is true.
blocksdoubleShots the player or team blocked. Season total, or the per-game average when is_averages is true.
blocks_againstdoubleOwn shots that were blocked. Season total, or the per-game average when is_averages is true.
valdoubleEfficiency rating (valuation; verified equal to Segev rate); -1 on 2004-05 team-credited lines. Season total, or the per-game average when is_averages is true.
plus_minusdoublePlus-minus; 0 on every line of the 2004-05 sample (not recorded then, inferred). Season total, or the per-game average when is_averages is true.
dunksdoubleDunks made by the player or team. Season total, or the per-game average when is_averages is true.

Details

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

Examples

# \donttest{
  try(ibba_team_stats(season = 2026, team_id = 1109))
#> ── IBBA team stats ────────────────────────────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:30:52 UTC
#> # A tibble: 1 × 27
#>   season team_id games minutes   pts  fg2m  fg2a fg2_pct  fg3m  fg3a fg3_pct
#>    <int>   <int> <int>   <dbl> <dbl> <dbl> <dbl>   <dbl> <dbl> <dbl>   <dbl>
#> 1   2026    1109    26    5225  2585   550   986      NA   348   851      NA
#> # ℹ 16 more variables: ftm <dbl>, fta <dbl>, ft_pct <dbl>, dreb <dbl>,
#> #   oreb <dbl>, reb <dbl>, fouls_drawn <dbl>, fouls <dbl>, steals <dbl>,
#> #   turnovers <dbl>, assists <dbl>, blocks <dbl>, blocks_against <dbl>,
#> #   val <dbl>, plus_minus <dbl>, dunks <dbl>
# }