Skip to contents

Player stat table summed over a season range, by data_type (the whole league, unfiltered).

Usage

liiga_player_stats(
  season_from,
  season_to,
  tournament,
  data_type = "basicStats"
)

Arguments

season_from

First season (END year) of the range, e.g. 2026.

season_to

Last season (END year) of the range, e.g. 2026.

tournament

Tournament: runkosarja (regular season), playoffs, playout, qualifications, valmistavat_ottelut (preseason) or chl (Champions Hockey League).

data_type

Stat table: basicStats, basicStatsGk, advancedStats, goalStats, shotStats, skatingStats, faceOffStats, penaltyStats, powerplayPenaltykillStats, passes, winningShotComp, winningShotCompGk, gameTime.

Value

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

col_nametypedescription
player_idintegerPlayer id; the same number in lineups, rosters, stat tables and the profile (fihaId).
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.
rolecharacterPosition: CENTER, LEFT_WING, RIGHT_WING, LEFT_DEFENSEMAN, RIGHT_DEFENSEMAN, SEVENTH_DEFENSEMAN, GOALIE.
first_namecharacterPlayer's first name.
last_namecharacterPlayer's last name.
nationalitycharacterNationality, 3-letter code.
tournamentcharacterTournament of the summed row as Liiga labels it, e.g. regular.
picture_urlcharacterURL of the player's photo.
previous_teams_for_tournamentcharacterEarlier teams of a player traded during the tournament.
injuredlogicalTrue when the player is listed as injured.
jerseyintegerJersey (sweater) number the player wore.
last_seasonintegerLast season (END year) of the range in which the player appears.
goalkeeperlogicalTrue when the player is a goalkeeper.
gamesintegerGames (player, summed over the season range).
played_gamesintegerPlayed games (player, summed over the season range).
rookielogicalTrue when Liiga flags the player as a rookie.
suspendedlogicalTrue when the player is listed as suspended.
removedlogicalRemoved from the roster.
time_on_iceintegerTime on ice (player, summed over the season range). Seconds.
currentlogicalPlayer is on the team now.
is_u20logicalTrue when Liiga flags the player as under 20 (U20).
golden_helmetsintegerGolden helmets (Liiga's team points-leader helmet; reading unverified), summed over the season range.
alumni_pointsintegerAlumni points (meaning undocumented by Liiga), summed over the season range.
goalsintegerGoals (player, summed over the season range).
assistsintegerAssists (player, summed over the season range).
pointsintegerPoints (player, summed over the season range).
plusintegerOn ice for goals for (the + of plus/minus).
minusintegerOn ice for goals against (the - of plus/minus).
plus_minusintegerPlus/minus: on-ice goals for minus on-ice goals against.
penalty_minutesintegerPenalty minutes (player, summed over the season range).
powerplay_goalsintegerPowerplay goals (player, summed over the season range).
penaltykill_goalsintegerPenaltykill goals (player, summed over the season range).
winning_goalsintegerWinning goals (player, summed over the season range).
shotsintegerShots (player, summed over the season range).
shots_into_goalintegerShots into goal (player, summed over the season range).
expected_goalsnumericExpected goals (xG) of the player's shots summed over the season range, from Liiga's undocumented model.
contest_wonintegerContests (puck battles; definition unverified) the player won, summed over the season range.
contest_lostintegerContests (puck battles; definition unverified) the player lost, summed over the season range.
goals_to_empty_goalintegerGoals to empty goal (player, summed over the season range).
time_on_ice_avgnumericTime on ice (player, summed over the season range). Seconds per game.
contest_won_percentagenumericShare of contests won, 0-100, over the season range (definition unverified).
xgenumericGoals minus expectedGoals over the season range (4 goals on 5.0956 xG = -1.0956).
shot_percentagenumericShot percentage (player, summed over the season range). Percent, 0-100.

Details

Endpoint: GET https://liiga.fi/api/v2/players/stats/summed/{season_from}/{season_to}/{tournament}/true

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_player_stats(season_from = 2026, season_to = 2026, tournament = "runkosarja"))
#> ── Liiga player stat tables Information from liiga.fi ──────────────────────────
#> ℹ Data updated: 2026-10-13 01:55:29 UTC
#> # A tibble: 531 × 45
#>    player_id    team_id team_name team_short_name role  first_name last_name    
#>        <int>      <int> <chr>     <chr>           <chr> <chr>      <chr>        
#>  1  23017821 1368624751 K-Espoo   KES             OL    Joonas     Rask         
#>  2  60667806  624554857 Lukko     LUK             OL    Petr       Vechet       
#>  3  60665758  495643563 Kärpät    KÄR             VL    Samuel     Jung         
#>  4  40078944  679171680 Ässät     ÄSS             KH    Eeli       Äijälä       
#>  5  28471734  933686567 SaiPa     SAI             OP    Samuli     Niinisaari   
#>  6  60954533  859884935 KalPa     KAL             OL    Cade       Borchardt    
#>  7  60900264  859884935 KalPa     KAL             VL    Tim        Söderlund Le…
#>  8  31296980 1368624751 K-Espoo   KES             VL    Jere       Väisänen     
#>  9  24509817  875886777 Pelicans  PEL             VP    Casimir    Jürgens      
#> 10  40077933  292293444 Jukurit   JUK             VP    Joonas     Eronen       
#> # ℹ 521 more rows
#> # ℹ 38 more variables: nationality <chr>, tournament <chr>, picture_url <chr>,
#> #   previous_teams_for_tournament <chr>, injured <lgl>, jersey <int>,
#> #   last_season <int>, goalkeeper <lgl>, games <int>, played_games <int>,
#> #   rookie <lgl>, suspended <lgl>, removed <lgl>, time_on_ice <int>,
#> #   current <lgl>, is_u20 <lgl>, golden_helmets <int>, alumni_points <int>,
#> #   goals <int>, assists <int>, points <int>, plus <int>, minus <int>, …
# }