Skip to main content

ACB — ACB API (api2.acb.com, Spain) — Player

acb_player_box​

Per-player box score of a game, per period (quarter 0 = the whole game).

Endpoint URL: GET https://api2.acb.com/api/matchdata/Result/boxscores

Valid URL: https://api2.acb.com/api/matchdata/Result/boxscores?matchId=105401

API ParameterPythonPatternRequiredNullableDescription
matchIdmatch_idYRequired. ACB match id (integer), one global sequence for every competition: legacy ids (seasons up to 2019-20) sit below about 20000 (12559 = the 2005-06 final); ids from 2020-21 start around 100000 (105401 = Barca 89-86 Valencia Basket, Liga 2026-27 round 3).

Returns​

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

col_nametypedescription
match_idInt64ACB match id (one global sequence for every competition; legacy ids are below about 20000 up to 2019-20, ids from 2020-21 start around 100000). Taken from the request when the body does not name the game.
edition_idInt64Season id (editionId) = season START year - 1935 (91 = 2026-27). The wrappers take the END year, season.
seasonInt64Season END year (2027 = 2026-27) = edition_id + 1936: the key the wrappers take.
team_sideStringSide of the game the team played: home or away (the feed lists the home team first).
team_idInt64Season-team entry id: one club in one competition edition, NEW every season (Barca = 4467 in Liga 2026-27). Not the club: use club_id to follow a club across seasons.
club_idInt64Stable ACB club id (2 = Barca, 9 = Real Madrid, 13 = Valencia Basket): the same across seasons and sponsor names, and the club_id request argument.
teamStringTeam name as registered for that season (sponsor names change; the club id does not).
team_abbrStringThree-letter team abbreviation (BAR, RMB, VBC).
quarterInt64Period of the row: 0 = the whole game, 1-4 quarters, 5+ overtimes.
player_idInt64ACB 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_nameStringDisplay (sporting) name ('Edy Tavares')
first_nameStringLegal first name(s)
last_nameStringLegal last name(s)
shirt_numberStringShirt number, a string ('' or null when unknown)
game_roleStringPosition 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
on_courtBooleanTrue while the player is on court (false once the game is over).
play_timeStringTime on court as 'mm:ss' in the row's period.
seconds_playedInt64Time on court in whole seconds (play_time parsed).
is_starterBooleanTrue when the player started the game (the API's isStarted).
pointsInt64Points (player box-score row)
free_throws_madeInt64Free throws the player made in the row's period (a count; quarter 0 is the whole game).
free_throws_attemptedInt64Free throws the player attempted in the row's period (a count; quarter 0 is the whole game).
two_pointers_madeInt64Two-point field goals made
two_pointers_attemptedInt64Two-point field goals attempted
three_pointers_madeInt64Three-point field goals made
three_pointers_attemptedInt64Three-point field goals attempted
assistsInt64Assists (player box-score row)
off_reboundsInt64Offensive rebounds
def_reboundsInt64Defensive rebounds
total_reboundsInt64Total rebounds (player box-score row)
stealsInt64Steals (player box-score row)
turnoversInt64Turnovers (player box-score row)
blocksInt64Shots blocked (by this player or team)
received_blocksInt64Own shots blocked by an opponent
dunksInt64Dunks (player box-score row)
personal_foulsInt64Fouls committed
fouls_drawnInt64Fouls received (player box-score row)
plus_minusInt64Point differential while on court (+/-)
ratingInt64Valoracion: ACB's efficiency rating (PIR) = points + rebounds + assists + steals + blocks + fouls received - missed field goals - missed free throws - turnovers - shots blocked by an opponent - fouls committed

return_parsed=False — the raw body (dict): the route's JSON plus _request (the ids asked for, in snake_case, with season the END year).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The ACB has nothing for the request (an unknown id, play-by-play or shots before 2016-17, a club with no games that season); a game outside a playoff series is zero rows.
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, an error envelope or stub, a body for another season, round, club or player, a game that is not finished).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A missing or non-integer id, or a season before 1984 (raised before any request), or the API's HTTP 400 / 422.

Example​

acb_player_box(match_id=105401)

acb_player_advanced_stats​

One player's advanced statistics in a game against his season and win/loss splits.

Endpoint URL: GET https://api2.acb.com/api/matchdata/AdvancedStats/player-advanced-stats

Valid URL: https://api2.acb.com/api/matchdata/AdvancedStats/player-advanced-stats?matchId=105401&playerLicense=20212243

API ParameterPythonPatternRequiredNullableDescription
matchIdmatch_idYRequired. ACB match id (integer), one global sequence for every competition: legacy ids (seasons up to 2019-20) sit below about 20000 (12559 = the 2005-06 final); ids from 2020-21 start around 100000 (105401 = Barca 89-86 Valencia Basket, Liga 2026-27 round 3).
playerLicenseplayer_idYRequired. ACB licence number (integer): the person id everywhere (box score, play-by-play, shots, rosters). 20209407 = Edy Tavares, 20212243 = Olek Balcerowski.

Returns​

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

col_nametypedescription
match_idInt64ACB match id (one global sequence for every competition; legacy ids are below about 20000 up to 2019-20, ids from 2020-21 start around 100000). Taken from the request when the body does not name the game.
player_idInt64ACB licence number: the person id everywhere (box score, play-by-play, shots, rosters, the player routes). Taken from the request when the body does not name the player.
groupStringStatistic group in snake_case (four_factors, game_rhythm, ball_handling, shooting, points, ratings, rebounds).
statStringStatistic in snake_case (efg_pct, ts_pct, ast_pct, usage-style ratios, pace ...).
match_valueFloat64The statistic in this game (the API's partido).
season_valueFloat64The player's value over the season (temporada).
win_valueFloat64The player's value in his team's wins.
loss_valueFloat64The player's value in his team's losses.
season_diffFloat64Game value minus season value (temporadaDiff).
win_diffFloat64Game value minus the wins value (winDiff).
loss_diffFloat64Game value minus the losses value (lossDiff).

return_parsed=False — the raw body (dict): the route's JSON plus _request (the ids asked for, in snake_case, with season the END year).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The ACB has nothing for the request (an unknown id, play-by-play or shots before 2016-17, a club with no games that season); a game outside a playoff series is zero rows.
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, an error envelope or stub, a body for another season, round, club or player, a game that is not finished).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A missing or non-integer id, or a season before 1984 (raised before any request), or the API's HTTP 400 / 422.

Example​

acb_player_advanced_stats(match_id=105401, player_id=20212243)

acb_player_data​

Player biography: birth, nationality, height, current team and social links.

Endpoint URL: GET https://api2.acb.com/api/seasondata/PlayerProfile/player-data

Valid URL: https://api2.acb.com/api/seasondata/PlayerProfile/player-data?playerLicenceId=20209407

API ParameterPythonPatternRequiredNullableDescription
playerLicenceIdplayer_idYRequired. ACB licence number (integer): the person id everywhere (box score, play-by-play, shots, rosters). 20209407 = Edy Tavares, 20212243 = Olek Balcerowski.

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_idInt64ACB licence number of the player.
player_nameStringDisplay (sporting) name ('Edy Tavares')
first_nameStringLegal first name(s)
last_nameStringLegal last name(s)
shirt_numberStringShirt number, a string ('' or null when unknown)
game_roleStringPosition 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
is_license_activeBooleanTrue when the licence is active in the current season.
licensingStringLicence code (for example EUR, JFL); meaning unverified.
birth_dateStringBirth date (the API sends DD-MM-YYYY).
birth_placeStringBirth place (town or city) as sent.
birth_countryStringBirth country as sent, a Spanish name.
birth_country_isoStringISO 3166-1 alpha-2 code of the birth country; null for an unseen name.
nationalityStringNationality as sent, a Spanish country name.
nationality_isoStringISO 3166-1 alpha-2 code of nationality; null for an unseen name.
height_mFloat64Height in metres (the API sends '2,20', a decimal comma).
player_numberInt64Current shirt number (integer).
team_idInt64Current team's season-team entry id.
club_idInt64Current team's stable club id.
teamStringCurrent team name for the edition.
team_abbrStringCurrent team abbreviation.
edition_idInt64Season id the player record was read for (START year - 1935).
seasonInt64Season END year (2027 = 2026-27) = edition_id + 1936: the key the wrappers take.
instagramStringInstagram handle; null when none.
twitterStringX / Twitter handle; null when none.
facebookStringFacebook handle; null when none.
youtubeStringYouTube handle; null when none.
tiktokStringTikTok handle; null when none.
pronunciation_urlStringURL of an audio clip of the name; null when none.

return_parsed=False — the raw body (dict): the route's JSON plus _request (the ids asked for, in snake_case, with season the END year).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The ACB has nothing for the request (an unknown id, play-by-play or shots before 2016-17, a club with no games that season); a game outside a playoff series is zero rows.
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, an error envelope or stub, a body for another season, round, club or player, a game that is not finished).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A missing or non-integer id, or a season before 1984 (raised before any request), or the API's HTTP 400 / 422.

Example​

acb_player_data(player_id=20209407)

acb_player_stats​

A player's season statistics, one row per team and edition.

Endpoint URL: GET https://api2.acb.com/api/seasondata/PlayerProfile/player-stats

Valid URL: https://api2.acb.com/api/seasondata/PlayerProfile/player-stats?playerLicenceId=20209407

API ParameterPythonPatternRequiredNullableDescription
playerLicenceIdplayer_idYRequired. ACB licence number (integer): the person id everywhere (box score, play-by-play, shots, rosters). 20209407 = Edy Tavares, 20212243 = Olek Balcerowski.
competitionIdcompetition_idYCompetition id: 1 Liga Endesa, 2 Copa del Rey, 3 Supercopa Endesa, 10 Minicopa Endesa (youth). Omitted = the API's default competition.
seasonseasonYSeason END year used as an UPPER bound: the rows keep the seasons up to this one (2026 drops the 2026-27 row). Omitted = all seasons.

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_idInt64ACB licence number asked for (the body names the player only in the totals block).
team_idInt64Season-team entry the row covers (the API's teamEditionId).
competition_idInt64Competition of the row.
edition_idInt64Season id of the row (START year - 1935).
seasonInt64Season END year (2027 = 2026-27) = edition_id + 1936: the key the wrappers take.
edition_yearStringSeason label as sent ('2026-2027').
club_idInt64Stable club id of the team.
teamStringTeam name that season.
team_abbrStringTeam abbreviation that season.
total_num_gamesInt64Season total of games played.
total_time_playedInt64Season total of time on court in seconds.
total_starterInt64Season total of games started.
total_pointsInt64Season total of points.
total_max_pointsInt64Season total of most points in a single game.
total_three_pointers_madeInt64Season total of three-point field goals made.
total_three_pointers_attemptedInt64Season total of three-point field goals attempted.
total_three_pointers_percentageFloat64Season total of three-point percentage (0-100).
total_two_pointers_madeInt64Season total of two-point field goals made.
total_two_pointers_attemptedInt64Season total of two-point field goals attempted.
total_two_pointers_percentageFloat64Season total of two-point percentage (0-100).
total_free_throws_madeInt64Season total of free throws made.
total_free_throws_attemptedInt64Season total of free throws attempted.
total_free_throws_percentageFloat64Season total of free-throw percentage (0-100).
total_reboundsInt64Season total of total rebounds.
total_offensive_reboundsInt64Season total of offensive rebounds.
total_defensive_reboundsInt64Season total of defensive rebounds.
total_assistsInt64Season total of assists.
total_stealsInt64Season total of steals.
total_turnoversInt64Season total of turnovers.
total_blocksInt64Season total of blocks made.
total_shots_rejectedInt64Season total of own shots blocked.
total_dunksInt64Season total of dunks.
total_personal_foulsInt64Season total of personal fouls committed.
total_fouls_receivedInt64Season total of fouls drawn.
total_ratingInt64Season total of ACB rating (valoracion).
total_plus_minusInt64Season total of plus/minus.
total_winsInt64Season total of team wins in the counted games (meaning unverified).
total_lossesInt64Season total of team losses in the counted games (meaning unverified).
avg_num_gamesFloat64Per-game average of games played.
avg_time_playedFloat64Per-game average of time on court in seconds.
avg_starterFloat64Per-game average of games started.
avg_pointsFloat64Per-game average of points.
avg_max_pointsFloat64Per-game average of most points in a single game.
avg_three_pointers_madeFloat64Per-game average of three-point field goals made.
avg_three_pointers_attemptedFloat64Per-game average of three-point field goals attempted.
avg_three_pointers_percentageFloat64Per-game average of three-point percentage (0-100).
avg_two_pointers_madeFloat64Per-game average of two-point field goals made.
avg_two_pointers_attemptedFloat64Per-game average of two-point field goals attempted.
avg_two_pointers_percentageFloat64Per-game average of two-point percentage (0-100).
avg_free_throws_madeFloat64Per-game average of free throws made.
avg_free_throws_attemptedFloat64Per-game average of free throws attempted.
avg_free_throws_percentageFloat64Per-game average of free-throw percentage (0-100).
avg_reboundsFloat64Per-game average of total rebounds.
avg_offensive_reboundsFloat64Per-game average of offensive rebounds.
avg_defensive_reboundsFloat64Per-game average of defensive rebounds.
avg_assistsFloat64Per-game average of assists.
avg_stealsFloat64Per-game average of steals.
avg_turnoversFloat64Per-game average of turnovers.
avg_blocksFloat64Per-game average of blocks made.
avg_shots_rejectedFloat64Per-game average of own shots blocked.
avg_dunksFloat64Per-game average of dunks.
avg_personal_foulsFloat64Per-game average of personal fouls committed.
avg_fouls_receivedFloat64Per-game average of fouls drawn.
avg_ratingFloat64Per-game average of ACB rating (valoracion).
avg_plus_minusFloat64Per-game average of plus/minus.
avg_winsFloat64Per-game average of team wins in the counted games (meaning unverified).
avg_lossesFloat64Per-game average of team losses in the counted games (meaning unverified).
per40_num_gamesFloat64Per-40-minute rate of games played.
per40_time_playedFloat64Always null: the per-40 block carries no time played.
per40_starterFloat64Per-40-minute rate of games started.
per40_pointsFloat64Per-40-minute rate of points.
per40_max_pointsFloat64Per-40-minute rate of most points in a single game.
per40_three_pointers_madeFloat64Per-40-minute rate of three-point field goals made.
per40_three_pointers_attemptedFloat64Per-40-minute rate of three-point field goals attempted.
per40_three_pointers_percentageFloat64Per-40-minute rate of three-point percentage (0-100).
per40_two_pointers_madeFloat64Per-40-minute rate of two-point field goals made.
per40_two_pointers_attemptedFloat64Per-40-minute rate of two-point field goals attempted.
per40_two_pointers_percentageFloat64Per-40-minute rate of two-point percentage (0-100).
per40_free_throws_madeFloat64Per-40-minute rate of free throws made.
per40_free_throws_attemptedFloat64Per-40-minute rate of free throws attempted.
per40_free_throws_percentageFloat64Per-40-minute rate of free-throw percentage (0-100).
per40_reboundsFloat64Per-40-minute rate of total rebounds.
per40_offensive_reboundsFloat64Per-40-minute rate of offensive rebounds.
per40_defensive_reboundsFloat64Per-40-minute rate of defensive rebounds.
per40_assistsFloat64Per-40-minute rate of assists.
per40_stealsFloat64Per-40-minute rate of steals.
per40_turnoversFloat64Per-40-minute rate of turnovers.
per40_blocksFloat64Per-40-minute rate of blocks made.
per40_shots_rejectedFloat64Per-40-minute rate of own shots blocked.
per40_dunksFloat64Per-40-minute rate of dunks.
per40_personal_foulsFloat64Per-40-minute rate of personal fouls committed.
per40_fouls_receivedFloat64Per-40-minute rate of fouls drawn.
per40_ratingFloat64Per-40-minute rate of ACB rating (valoracion).
per40_plus_minusFloat64Per-40-minute rate of plus/minus.
per40_winsFloat64Per-40-minute rate of team wins in the counted games (meaning unverified).
per40_lossesFloat64Per-40-minute rate of team losses in the counted games (meaning unverified).

return_parsed=False — the raw body (dict): the route's JSON plus _request (the ids asked for, in snake_case, with season the END year).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The ACB has nothing for the request (an unknown id, play-by-play or shots before 2016-17, a club with no games that season); a game outside a playoff series is zero rows.
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, an error envelope or stub, a body for another season, round, club or player, a game that is not finished).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A missing or non-integer id, or a season before 1984 (raised before any request), or the API's HTTP 400 / 422.

Example​

acb_player_stats(player_id=20209407)

acb_player_totals​

A player's career totals, averages and per-40 values.

Endpoint URL: GET https://api2.acb.com/api/seasondata/PlayerProfile/player-stats

Valid URL: https://api2.acb.com/api/seasondata/PlayerProfile/player-stats?playerLicenceId=20209407

API ParameterPythonPatternRequiredNullableDescription
playerLicenceIdplayer_idYRequired. ACB licence number (integer): the person id everywhere (box score, play-by-play, shots, rosters). 20209407 = Edy Tavares, 20212243 = Olek Balcerowski.
competitionIdcompetition_idYCompetition id: 1 Liga Endesa, 2 Copa del Rey, 3 Supercopa Endesa, 10 Minicopa Endesa (youth). Omitted = the API's default competition.
seasonseasonYSeason END year used as an UPPER bound for the career rows. Omitted = all seasons.

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_idInt64ACB licence number of the player.
player_nameStringDisplay (sporting) name ('Edy Tavares')
first_nameStringLegal first name(s)
last_nameStringLegal last name(s)
shirt_numberStringShirt number, a string ('' or null when unknown)
game_roleStringPosition 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
total_num_gamesInt64Season total of games played.
total_time_playedInt64Season total of time on court in seconds.
total_starterInt64Season total of games started.
total_pointsInt64Season total of points.
total_max_pointsInt64Season total of most points in a single game.
total_three_pointers_madeInt64Season total of three-point field goals made.
total_three_pointers_attemptedInt64Season total of three-point field goals attempted.
total_three_pointers_percentageFloat64Season total of three-point percentage (0-100).
total_two_pointers_madeInt64Season total of two-point field goals made.
total_two_pointers_attemptedInt64Season total of two-point field goals attempted.
total_two_pointers_percentageFloat64Season total of two-point percentage (0-100).
total_free_throws_madeInt64Season total of free throws made.
total_free_throws_attemptedInt64Season total of free throws attempted.
total_free_throws_percentageFloat64Season total of free-throw percentage (0-100).
total_reboundsInt64Season total of total rebounds.
total_offensive_reboundsInt64Season total of offensive rebounds.
total_defensive_reboundsInt64Season total of defensive rebounds.
total_assistsInt64Season total of assists.
total_stealsInt64Season total of steals.
total_turnoversInt64Season total of turnovers.
total_blocksInt64Season total of blocks made.
total_shots_rejectedInt64Season total of own shots blocked.
total_dunksInt64Season total of dunks.
total_personal_foulsInt64Season total of personal fouls committed.
total_fouls_receivedInt64Season total of fouls drawn.
total_ratingInt64Season total of ACB rating (valoracion).
total_plus_minusInt64Season total of plus/minus.
total_winsInt64Season total of team wins in the counted games (meaning unverified).
total_lossesInt64Season total of team losses in the counted games (meaning unverified).
avg_num_gamesFloat64Per-game average of games played.
avg_time_playedFloat64Per-game average of time on court in seconds.
avg_starterFloat64Per-game average of games started.
avg_pointsFloat64Per-game average of points.
avg_max_pointsFloat64Per-game average of most points in a single game.
avg_three_pointers_madeFloat64Per-game average of three-point field goals made.
avg_three_pointers_attemptedFloat64Per-game average of three-point field goals attempted.
avg_three_pointers_percentageFloat64Per-game average of three-point percentage (0-100).
avg_two_pointers_madeFloat64Per-game average of two-point field goals made.
avg_two_pointers_attemptedFloat64Per-game average of two-point field goals attempted.
avg_two_pointers_percentageFloat64Per-game average of two-point percentage (0-100).
avg_free_throws_madeFloat64Per-game average of free throws made.
avg_free_throws_attemptedFloat64Per-game average of free throws attempted.
avg_free_throws_percentageFloat64Per-game average of free-throw percentage (0-100).
avg_reboundsFloat64Per-game average of total rebounds.
avg_offensive_reboundsFloat64Per-game average of offensive rebounds.
avg_defensive_reboundsFloat64Per-game average of defensive rebounds.
avg_assistsFloat64Per-game average of assists.
avg_stealsFloat64Per-game average of steals.
avg_turnoversFloat64Per-game average of turnovers.
avg_blocksFloat64Per-game average of blocks made.
avg_shots_rejectedFloat64Per-game average of own shots blocked.
avg_dunksFloat64Per-game average of dunks.
avg_personal_foulsFloat64Per-game average of personal fouls committed.
avg_fouls_receivedFloat64Per-game average of fouls drawn.
avg_ratingFloat64Per-game average of ACB rating (valoracion).
avg_plus_minusFloat64Per-game average of plus/minus.
avg_winsFloat64Per-game average of team wins in the counted games (meaning unverified).
avg_lossesFloat64Per-game average of team losses in the counted games (meaning unverified).
per40_num_gamesFloat64Per-40-minute rate of games played.
per40_time_playedFloat64Always null: the per-40 block carries no time played.
per40_starterFloat64Per-40-minute rate of games started.
per40_pointsFloat64Per-40-minute rate of points.
per40_max_pointsFloat64Per-40-minute rate of most points in a single game.
per40_three_pointers_madeFloat64Per-40-minute rate of three-point field goals made.
per40_three_pointers_attemptedFloat64Per-40-minute rate of three-point field goals attempted.
per40_three_pointers_percentageFloat64Per-40-minute rate of three-point percentage (0-100).
per40_two_pointers_madeFloat64Per-40-minute rate of two-point field goals made.
per40_two_pointers_attemptedFloat64Per-40-minute rate of two-point field goals attempted.
per40_two_pointers_percentageFloat64Per-40-minute rate of two-point percentage (0-100).
per40_free_throws_madeFloat64Per-40-minute rate of free throws made.
per40_free_throws_attemptedFloat64Per-40-minute rate of free throws attempted.
per40_free_throws_percentageFloat64Per-40-minute rate of free-throw percentage (0-100).
per40_reboundsFloat64Per-40-minute rate of total rebounds.
per40_offensive_reboundsFloat64Per-40-minute rate of offensive rebounds.
per40_defensive_reboundsFloat64Per-40-minute rate of defensive rebounds.
per40_assistsFloat64Per-40-minute rate of assists.
per40_stealsFloat64Per-40-minute rate of steals.
per40_turnoversFloat64Per-40-minute rate of turnovers.
per40_blocksFloat64Per-40-minute rate of blocks made.
per40_shots_rejectedFloat64Per-40-minute rate of own shots blocked.
per40_dunksFloat64Per-40-minute rate of dunks.
per40_personal_foulsFloat64Per-40-minute rate of personal fouls committed.
per40_fouls_receivedFloat64Per-40-minute rate of fouls drawn.
per40_ratingFloat64Per-40-minute rate of ACB rating (valoracion).
per40_plus_minusFloat64Per-40-minute rate of plus/minus.
per40_winsFloat64Per-40-minute rate of team wins in the counted games (meaning unverified).
per40_lossesFloat64Per-40-minute rate of team losses in the counted games (meaning unverified).

return_parsed=False — the raw body (dict): the route's JSON plus _request (the ids asked for, in snake_case, with season the END year).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The ACB has nothing for the request (an unknown id, play-by-play or shots before 2016-17, a club with no games that season); a game outside a playoff series is zero rows.
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, an error envelope or stub, a body for another season, round, club or player, a game that is not finished).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A missing or non-integer id, or a season before 1984 (raised before any request), or the API's HTTP 400 / 422.

Example​

acb_player_totals(player_id=20209407)

acb_player_matches​

A player's game log for an edition (default: the current one).

Endpoint URL: GET https://api2.acb.com/api/seasondata/PlayerProfile/matches

Valid URL: https://api2.acb.com/api/seasondata/PlayerProfile/matches?playerLicenceId=20209407&season=2027

API ParameterPythonPatternRequiredNullableDescription
playerLicenceIdplayer_idYRequired. ACB licence number (integer): the person id everywhere (box score, play-by-play, shots, rosters). 20209407 = Edy Tavares, 20212243 = Olek Balcerowski.
seasonseasonYSeason END year (2027 = 2026-27; the first ACB season, 1983-84, is 1984). acb_runtime sends the API's editionId = season - 1936. Omitted = the current season.

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_idInt64ACB licence number asked for.
match_idInt64ACB match id of the game.
round_typeStringPhase code of the game (LR regular season, PO playoff).
round_numberInt64Round number within the phase.
dateStringTip-off instant (UTC).
home_team_idInt64Season-team id: one team's entry in one competition edition (4467 = Barça in Liga 2026-27, 4388 = Real Madrid in Liga 2025-26). Changes every season and competition. Joins every homeTeamId / awayTeamId / teamId / teamEditionId. Not the club id.
home_club_idInt64Club id, stable across seasons and sponsor names (2 = Barça, 9 = Real Madrid, 13 = Valencia Basket): the clubId request param and every homeClubId / awayClubId.
home_teamStringTeam name that season (sponsor names change)
home_team_abbrStringThree-letter abbreviation (BAR, RMB)
away_team_idInt64Season-team id: one team's entry in one competition edition (4467 = Barça in Liga 2026-27, 4388 = Real Madrid in Liga 2025-26). Changes every season and competition. Joins every homeTeamId / awayTeamId / teamId / teamEditionId. Not the club id.
away_club_idInt64Club id, stable across seasons and sponsor names (2 = Barça, 9 = Real Madrid, 13 = Valencia Basket): the clubId request param and every homeClubId / awayClubId.
away_teamStringTeam name that season (sponsor names change)
away_team_abbrStringThree-letter abbreviation (BAR, RMB)
edition_idInt64Season id read from the home team entry (START year - 1935).
seasonInt64Season END year (2027 = 2026-27) = edition_id + 1936: the key the wrappers take.
is_selected_localBooleanTrue when the player's team played at home.
has_wonBooleanTrue when the player's team won the game.
play_timeStringTime on court as 'mm:ss'.
seconds_playedInt64Time on court in whole seconds (play_time parsed).
pointsInt64Points (player game-log row)
three_pointers_madeInt64Three-point field goals made
three_pointers_attemptedInt64Three-point field goals attempted
three_pointers_percentageFloat64Three-point percentage, 0-100 with one decimal; 0 when there was no attempt
two_pointers_madeInt64Two-point field goals made
two_pointers_attemptedInt64Two-point field goals attempted
two_pointers_percentageFloat64Two-point percentage, 0-100 with one decimal; 0 when there was no attempt
free_throws_madeInt64Free throws the player made in that match (a count, not a season total).
free_throws_attemptedInt64Free throws the player attempted in that match (a count, not a season total).
free_throws_percentageFloat64Free-throw percentage, 0-100 with one decimal; 0 when there was no attempt
reboundsInt64Total rebounds in the game.
offensive_reboundsInt64Offensive rebounds the player took in that match (a count; part of the total rebounds).
defensive_reboundsInt64Defensive rebounds the player took in that match (a count; part of the total rebounds).
assistsInt64Assists (player game-log row)
stealsInt64Steals (player game-log row)
turnoversInt64Turnovers (player game-log row)
blocksInt64Shots blocked (player game-log row)
shots_rejectedInt64Shots of the player that were blocked.
dunksInt64Dunks (player game-log row)
personal_foulsInt64Fouls committed
fouls_receivedInt64Fouls drawn by the player in the game.
ratingInt64ACB rating (valoracion) of the game.
plus_minusInt64Point differential while on court (+/-)

return_parsed=False — the raw body (dict): the route's JSON plus _request (the ids asked for, in snake_case, with season the END year).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The ACB has nothing for the request (an unknown id, play-by-play or shots before 2016-17, a club with no games that season); a game outside a playoff series is zero rows.
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, an error envelope or stub, a body for another season, round, club or player, a game that is not finished).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. A missing or non-integer id, or a season before 1984 (raised before any request), or the API's HTTP 400 / 422.

Example​

acb_player_matches(player_id=20209407, season=2027)