Team-versus-team comparison bars of a game per period.
One row per period and statistic. quarter 0 is the whole game. home_value / away_value parse the bar's
display value (Spanish decimal comma, '79,17%' becomes 79.17; a count stays a count); for the shooting
statistics *_made / *_attempted parse the '19/24' subtitle. *_is_highlighted marks the side the site
highlights.
Endpoint: GET https://api2.acb.com/api/matchdata/Overview/match-team-comparison
Arguments
- match_id
(required) 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). 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_comparison):
| col_name | type | description |
| match_id | integer | ACB 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. |
| quarter | integer | Period of the bar: 0 = the whole game, 1-4 quarters. |
| stat | character | Compared statistic (free_throws, two_pointers, three_pointers, field_goals, rebounds, assists, steals, turnovers, personal_fouls, time_outs, points_off_turnover, paint_points, second_chance_points, fast_break_points, bench_points ...). |
| home_value | double | Home value of the bar: a percentage 0-100 for the shooting statistics (the API's '79,17%' decimal comma parsed), a count otherwise. |
| away_value | double | Away value of the bar, same units as home_value. |
| home_made | integer | Home shots made, from the 'made/attempted' subtitle; null for the non-shooting statistics. |
| home_attempted | integer | Home shots attempted, from the subtitle; null for the non-shooting statistics. |
| away_made | integer | Away shots made, from the subtitle; null for the non-shooting statistics. |
| away_attempted | integer | Away shots attempted, from the subtitle; null for the non-shooting statistics. |
| home_is_highlighted | logical | True when the site highlights the home bar as the better value. |
| away_is_highlighted | logical | True when the site highlights the away bar as the better value. |
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_comparison(match_id = 105401)See also
Other ACB Functions:
acb_box_info(),
acb_bracket(),
acb_bracket_games(),
acb_calendar(),
acb_career_stints(),
acb_career_trophies(),
acb_club_data(),
acb_competition_current(),
acb_competition_editions(),
acb_competition_rounds(),
acb_competition_weeks(),
acb_current_roster(),
acb_lead_stats(),
acb_lead_tracker(),
acb_league_zones(),
acb_lineup(),
acb_match_advanced_stats(),
acb_match_header(),
acb_match_leaders(),
acb_matchlist(),
acb_next_matches(),
acb_pbp(),
acb_period_scores(),
acb_player_advanced_stats(),
acb_player_box(),
acb_player_data(),
acb_player_matches(),
acb_player_stats(),
acb_player_totals(),
acb_quickfacts(),
acb_round_matches(),
acb_search(),
acb_season_leaders(),
acb_serie(),
acb_shots(),
acb_standings(),
acb_standings_rounds(),
acb_team_box(),
acb_team_leaders(),
acb_team_matches(),
acb_team_records(),
acb_team_stats(),
acb_team_totals(),
acb_teams()
