Skip to contents

Team stat table of a season range, by data_type.

Usage

liiga_team_stats(
  data_type,
  season_from = NULL,
  season_to = NULL,
  tournament = "runkosarja"
)

Arguments

data_type

Stat table: shots, passes, faceoffs, penalties, powerplay, penalty_kill, even_strength.

season_from

First season (END year) of the range.

season_to

Last season (END year) of the range.

tournament

Tournament: runkosarja (regular season), playoffs, playout, qualifications, valmistavat_ottelut (preseason) or chl (Champions Hockey League). Required by the API; defaults to runkosarja.

Value

A fastRhockey_data tibble (67 columns; zero rows when a valid payload has none).

col_nametypedescription
sort_desclogicalDefault sort is descending.
team_idintegerTeam id, the number of Liiga's <num>:<slug> team key (sent as that string, a bare integer or a digit string depending on the route).
team_namecharacterTeam's display name, e.g. HPK or Tappara.
team_short_namecharacterTeam abbreviation.
team_logos_dark_bgcharacterLogo image URL for dark backgrounds.
team_logos_light_bgcharacterLogo image URL for light backgrounds.
team_logos_dark_bg_originalcharacterOriginal-file logo URL for dark backgrounds; null in every capture.
team_logos_light_bg_originalcharacterOriginal-file logo URL for light backgrounds; null in every capture.
gamesintegerGames (team, over the season range).
rankingintegerTable position.
previous_game_day_rankingintegerTable position after the previous game day.
shotsintegerShots (team, over the season range).
shots_savedintegerShots saved (team, over the season range).
shots_even_strengthintegerShots at even strength (team, over the season range).
shots_powerplayintegerShots on the power play (team, over the season range).
shots_penalty_killintegerShots on the penalty kill (team, over the season range).
shots_againstintegerShots against (team, over the season range).
goalsintegerGoals (team, over the season range).
goals_againstintegerGoals against (team, over the season range).
shots_against_even_strengthintegerShots against at even strength (team, over the season range).
shots_against_powerplayintegerShots against on the power play (team, over the season range).
shots_against_penalty_killintegerShots against on the penalty kill (team, over the season range).
non_blocked_shotsintegerNon blocked shots (team, over the season range).
non_blocked_shots_even_strengthintegerNon blocked shots at even strength (team, over the season range).
non_blocked_shots_powerplayintegerNon blocked shots on the power play (team, over the season range).
non_blocked_shots_penalty_killintegerNon blocked shots on the penalty kill (team, over the season range).
non_blocked_shots_againstintegerNon blocked shots against (team, over the season range).
non_blocked_shots_against_even_strengthintegerNon blocked shots against at even strength (team, over the season range).
non_blocked_shots_against_powerplayintegerNon blocked shots against on the power play (team, over the season range).
non_blocked_shots_against_penalty_killintegerNon blocked shots against on the penalty kill (team, over the season range).
powerplay_goalsintegerPowerplay goals (team, over the season range).
powerplay_goals_againstintegerPowerplay goals against (team, over the season range).
penalty_kill_goalsintegerPenalty kill goals (team, over the season range).
penalty_kill_goals_againstintegerPenalty kill goals against (team, over the season range).
even_strength_goalsintegerEven strength goals (team, over the season range).
even_strength_goals_againstintegerEven strength goals against (team, over the season range).
previous_game_day_goalsintegerGoals as of the previous game day (team, over the season range).
previous_game_day_shotsintegerShots as of the previous game day (team, over the season range).
previous_game_day_shots_percentagenumericShots percentage as of the previous game day (team, over the season range). Percent, 0-100.
shots_percentage_even_strengthnumericShots percentage at even strength (team, over the season range). Percent, 0-100.
shots_percentage_powerplaynumericShots percentage on the power play (team, over the season range). Percent, 0-100.
shots_percentage_penalty_killnumericShots percentage on the penalty kill (team, over the season range). Percent, 0-100.
shots_difference_even_strengthintegerShots difference at even strength (team, over the season range).
shots_difference_powerplayintegerShots difference on the power play (team, over the season range).
shots_difference_penalty_killintegerShots difference on the penalty kill (team, over the season range).
shots_for_shots_against_percentagenumericShots for shots against percentage (team, over the season range). Percent, 0-100.
non_blocked_shots_differenceintegerNon blocked shots difference (team, over the season range).
save_percentage_even_strengthnumericSave percentage at even strength (team, over the season range). Percent, 0-100.
save_percentage_powerplaynumericSave percentage on the power play (team, over the season range). Percent, 0-100.
save_percentage_penalty_killnumericSave percentage on the penalty kill (team, over the season range). Percent, 0-100.
shots_differenceintegerShots difference (team, over the season range).
pdo_penalty_killnumericPDO (on-ice shooting % + save %) on the penalty kill (team, over the season range). Percent, 0-100.
pdo_even_strengthnumericPDO (on-ice shooting % + save %) at even strength (team, over the season range). Percent, 0-100.
pdo_powerplaynumericPDO (on-ice shooting % + save %) on the power play (team, over the season range). Percent, 0-100.
shots_percentagenumericShots percentage (team, over the season range). Percent, 0-100.
non_blocked_shots_for_shots_against_percentage_even_strengthnumericNon blocked shots for shots against percentage at even strength (team, over the season range). Percent, 0-100.
non_blocked_shots_for_shots_against_percentage_powerplaynumericNon blocked shots for shots against percentage on the power play (team, over the season range). Percent, 0-100.
non_blocked_shots_for_shots_against_percentage_penalty_killnumericNon blocked shots for shots against percentage on the penalty kill (team, over the season range). Percent, 0-100.
shots_for_shots_against_percentage_even_strengthnumericShots for shots against percentage at even strength (team, over the season range). Percent, 0-100.
shots_for_shots_against_percentage_powerplaynumericShots for shots against percentage on the power play (team, over the season range). Percent, 0-100.
shots_for_shots_against_percentage_penalty_killnumericShots for shots against percentage on the penalty kill (team, over the season range). Percent, 0-100.
non_blocked_shots_difference_powerplayintegerNon blocked shots difference on the power play (team, over the season range).
non_blocked_shots_difference_penalty_killintegerNon blocked shots difference on the penalty kill (team, over the season range).
non_blocked_shots_for_shots_against_percentagenumericNon blocked shots for shots against percentage (team, over the season range). Percent, 0-100.
pdonumericPDO (on-ice shooting % + save %) (team, over the season range). Percent, 0-100.
non_blocked_shots_difference_even_strengthintegerNon blocked shots difference at even strength (team, over the season range).
save_percentagenumericSave percentage (team, over the season range). Percent, 0-100.

Details

Endpoint: GET https://liiga.fi/api/v2/teams/stats

Seasons are END years (2026 = 2025-26), the same key as sdv-py. Requests to liiga.fi are spaced at least one second apart. A request Liiga answers with nothing (an unknown game, a tournament not played that season, a shot map before 2016) raises fastRhockey_no_data; a failed fetch or an error-shaped answer raises fastRhockey_asset_fetch; a bad argument raises fastRhockey_bad_request.

The columns below are those of the default data_type; the other tables carry their own stat columns next to team_id / player_id.

Examples

# \donttest{
  try(liiga_team_stats(data_type = "shots", season_from = 2026, season_to = 2026))
#> ── Liiga team stat tables Information from liiga.fi ── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:55:36 UTC
#> # A tibble: 16 × 67
#>    sort_desc    team_id team_name team_short_name team_logos_dark_bg            
#>    <lgl>          <int> <chr>     <chr>           <chr>                         
#>  1 FALSE      626537494 Sport     SPO             https://cdn.builder.io/api/v1…
#>  2 FALSE      651304385 TPS       TPS             https://cdn.builder.io/api/v1…
#>  3 FALSE      168761288 HIFK      IFK             https://cdn.builder.io/api/v1…
#>  4 FALSE       55786244 HPK       HPK             https://cdn.builder.io/api/v1…
#>  5 FALSE     1368624751 K-Espoo   KES             https://cdn.builder.io/api/v1…
#>  6 FALSE      875886777 Pelicans  PEL             https://cdn.builder.io/api/v1…
#>  7 FALSE      951626834 Ilves     ILV             https://cdn.builder.io/api/v1…
#>  8 FALSE      624554857 Lukko     LUK             https://cdn.builder.io/api/v1…
#>  9 FALSE      292293444 Jukurit   JUK             https://cdn.builder.io/api/v1…
#> 10 FALSE      679171680 Ässät     ÄSS             https://cdn.builder.io/api/v1…
#> 11 FALSE      495643563 Kärpät    KÄR             https://cdn.builder.io/api/v1…
#> 12 FALSE      933686567 SaiPa     SAI             https://cdn.builder.io/api/v1…
#> 13 FALSE      219244634 JYP       JYP             https://cdn.builder.io/api/v1…
#> 14 FALSE      461765763 KooKoo    KOO             https://cdn.builder.io/api/v1…
#> 15 FALSE      362185137 Tappara   TAP             https://cdn.builder.io/api/v1…
#> 16 FALSE      859884935 KalPa     KAL             https://cdn.builder.io/api/v1…
#> # ℹ 62 more variables: team_logos_light_bg <chr>,
#> #   team_logos_dark_bg_original <chr>, team_logos_light_bg_original <chr>,
#> #   games <int>, ranking <int>, previous_game_day_ranking <int>, shots <int>,
#> #   shots_saved <int>, shots_even_strength <int>, shots_powerplay <int>,
#> #   shots_penalty_kill <int>, shots_against <int>, goals <int>,
#> #   goals_against <int>, shots_against_even_strength <int>,
#> #   shots_against_powerplay <int>, shots_against_penalty_kill <int>, …
# }