Skip to contents

One player's career: season totals by tournament.

Usage

liiga_player_career(player_id)

Arguments

player_id

Player id (player_id in liiga_players_info or a lineup; equals fihaId), e.g. 21870028.

Value

A fastRhockey_data tibble (39 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).
seasonintegerSeason END year (2026 = 2025-26).
gamesintegerGames (player, that season and tournament).
played_gamesintegerPlayed games (player, that season and tournament).
goalsintegerGoals (player, that season and tournament).
assistsintegerAssists (player, that season and tournament).
pointsintegerPoints (player, that season and tournament).
penalty_minutesintegerPenalty minutes (player, that season and tournament).
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.
power_play_goalsintegerPower play goals (player, that season and tournament).
short_handed_goalsintegerShort handed goals (player, that season and tournament).
winning_goalsintegerWinning goals (player, that season and tournament).
shotsintegerShots (player, that season and tournament).
shots_into_goalintegerShots into goal (player, that season and tournament).
shot_percentagenumericShot percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
shot_into_goal_percentagenumericShot into goal percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
tournamentcharacterTournament of the career row, uppercase: RUNKOSARJA (regular season), PLAYOFFS, PRACTICE (preseason), ...
league_namecharacterName of the league of that career row, e.g. Liiga.
team_namecharacterTeam's display name, e.g. HPK or Tappara.
end_timecharacterISO 8601 UTC timestamp, not game seconds: the end of that season-tournament for finished seasons (2026-03-17T23:59:59Z for the 2025-26 regular season) and the request time for the season in progress. Looks like the end of the stats window; meaning unverified.
team_short_namecharacterTeam abbreviation.
time_on_iceintegerTime on ice (player, that season and tournament). Seconds.
save_percentagenumericSave percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
goals_against_averagenumericGoals against per game (goalkeeper), that season and tournament; sent as a string.
win_percentagenumericWin percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
shut_outcharacterShutouts (goalkeeper), that season and tournament; sent as a string (e.g. "0").
faceoffs_wonintegerFaceoffs won (player, that season and tournament).
faceoffs_percentagenumericFaceoffs percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
winsintegerWins (player, that season and tournament).
lossesintegerLosses (player, that season and tournament).
tiesintegerTies (player, that season and tournament).
gk_winsintegerGoalkeeper wins (player, that season and tournament).
gk_lossesintegerGoalkeeper losses (player, that season and tournament).
gk_tiesintegerGoalkeeper ties (player, that season and tournament).
savesintegerSaves (player, that season and tournament).
goals_againstintegerGoals against (player, that season and tournament).
faceoff_totalintegerFaceoff total (player, that season and tournament).

Details

Endpoint: GET https://liiga.fi/api/v2/players/info/{player_id}

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.

Examples

# \donttest{
  try(liiga_player_career(player_id = 21870028))
#> ── Liiga player career Information from liiga.fi ───── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:55:26 UTC
#> # A tibble: 29 × 39
#>    player_id season games played_games goals assists points penalty_minutes
#>        <int>  <int> <int>        <int> <int>   <int>  <int>           <int>
#>  1  21870028   2027    12           12     0       4      4               2
#>  2  21870028   2026    60           60    12      14     26               6
#>  3  21870028   2025    57           57     5      10     15              18
#>  4  21870028   2024    36           36     3       8     11              10
#>  5  21870028   2023    60           60    10       6     16               6
#>  6  21870028   2022    50           50     8       8     16               6
#>  7  21870028   2021    56           56     7       9     16              18
#>  8  21870028   2019     8            8     2       2      4              18
#>  9  21870028   2019    37           37     2       2      4               4
#> 10  21870028   2018    34           34     2       3      5               6
#> # ℹ 19 more rows
#> # ℹ 31 more variables: plus <int>, minus <int>, plus_minus <int>,
#> #   power_play_goals <int>, short_handed_goals <int>, winning_goals <int>,
#> #   shots <int>, shots_into_goal <int>, shot_percentage <dbl>,
#> #   shot_into_goal_percentage <dbl>, tournament <chr>, league_name <chr>,
#> #   team_name <chr>, end_time <chr>, team_short_name <chr>, time_on_ice <int>,
#> #   save_percentage <dbl>, goals_against_average <dbl>, win_percentage <dbl>, …
# }