Skip to contents

A club's single-game records (best performance per statistic).

One row per statistic (stat): value is the record, with the game (game_id, game_date), the player and both teams of that game. Records go back to 1983-84; game_id is a match id of the legacy sequence.

Endpoint: GET https://api2.acb.com/api/seasondata/TeamProfile/team-records

Usage

acb_team_records(club_id)

Arguments

club_id

(required) ACB club id (integer), stable across seasons and sponsor names (2 = Barca, 9 = Real Madrid, 13 = Valencia Basket). Not the season-team team_id. A whole number; a whole double is accepted.

Value

A hoopR_data tibble, one row per record described above; the columns are always these, in this order (sportsdataverse-py acb_team_records):

col_nametypedescription
club_idintegerStable club id asked for.
statcharacterRecord category in snake_case (rating, points, rebounds, assists, steals, ...).
valuedoubleThe record value (a count; Float64 so every category fits).
game_idintegerMatch id of the record game (legacy sequence for old games).
game_datePOSIXctDate of the record game (UTC midnight).
player_idintegerACB licence number: the person id everywhere. A player's box-score player.id, his play-by-play and shot playerLicenseId and the playerLicenceId / playerLicense request params hold the same number (all 24 players of match 105401 match). 20209407 = Edy Tavares. Older licences start 2020..., recent ones 3000....
player_namecharacterDisplay (sporting) name ('Edy Tavares')
first_namecharacterLegal first name(s)
last_namecharacterLegal last name(s)
shirt_numbercharacterShirt number, a string (” or null when unknown)
game_rolecharacterPosition or staff role, in Spanish: Base (point guard), Escolta (shooting guard), Alero (small forward), Ala-pivot (power forward), Pivot (centre); Entrenador (head coach), Segundo Entrenador / Entrenador Ayudante (assistant coach). Null or ” in many rows
local_team_idintegerHome season-team entry of the record game.
local_club_idintegerHome stable club id of the record game.
local_teamcharacterHome team name in the record game.
local_team_abbrcharacterHome team abbreviation in the record game.
visitor_team_idintegerAway season-team entry of the record game.
visitor_club_idintegerAway stable club id of the record game.
visitor_teamcharacterAway team name in the record game.
visitor_team_abbrcharacterAway team abbreviation in the record game.

Details

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

 acb_team_records(club_id = 2)