Skip to main content
Version: 0.2.0

Liiga — Liiga API v2 (liiga.fi/api/v2, Finland) — Player

liiga_players_info​

Roster and bio of every player in a season range.

Endpoint URL: GET https://liiga.fi/api/v2/players/info

Valid URL: https://liiga.fi/api/v2/players/info?fromSeason=2026&toSeason=2026&tournament=runkosarja

API ParameterPythonPatternRequiredNullableDescription
fromSeasonseason_fromYFirst season (END year) of the range.
toSeasonseason_toYLast season (END year) of the range.
tournamenttournamentYTournament: runkosarja (regular season), playoffs, playout, qualifications, valmistavat_ottelut (preseason) or chl (Champions Hockey League). Required by the API; defaults to runkosarja.

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_idInt64Player id; the same number in lineups, rosters, stat tables and the profile (fihaId).
team_idInt64Team 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_slugStringTeam slug, the part of Liiga's <num>:<slug> team key after the colon (e.g. hpk).
team_nameStringTeam's display name, e.g. HPK or Tappara.
country_of_birthStringCountry of birth, 3-letter code.
place_of_birthStringPlayer's place of birth (town or city).
date_of_birthStringDate of birth, YYYY-MM-DD.
nationalityStringNationality, 3-letter code.
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
roleStringPosition: CENTER, LEFT_WING, RIGHT_WING, LEFT_DEFENSEMAN, RIGHT_DEFENSEMAN, SEVENTH_DEFENSEMAN, GOALIE.
role_codeStringPosition code, Finnish: KH = centre, VL/OL = left/right wing, VP/OP = left/right defence, 7. P = seventh defenceman, MV = goalkeeper.
handednessStringShoots LEFT or RIGHT.
heightInt64Player's height in centimetres.
weightInt64Player's weight in kilograms.
rookieBooleanTrue when Liiga flags the player as a rookie.
jerseyInt64Jersey (sweater) number the player wore.
injuredBooleanTrue when the player is listed as injured.
suspendedBooleanTrue when the player is listed as suspended.
removedBooleanRemoved from the roster.
captainBooleanTrue when the player is the team captain (C).
alternate_captainBooleanTrue when the player is an alternate captain (A).
picture_urlStringURL of the player's photo.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Liiga has nothing for the request (an unknown game, a tournament not played that season, a shot map before 2016).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

liiga_players_info(season_from=2026, season_to=2026)

liiga_player​

One player's bio, teams by season and active seasons.

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

Valid URL: https://liiga.fi/api/v2/players/info/21870028

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

Returns​

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

col_nametypedescription
active_seasonsStringSeasons (END year) the player appears in.
team_seasonsStringMap team id -> seasons (END year) with that team.
team_listStringMap team name -> team as <num>:<slug>.
birth_locality_country_codeStringPlayer's birth country, 3-letter code (e.g. FIN).
birth_locality_country_nameStringPlayer's birth country name, in Finnish (e.g. Suomi).
birth_locality_nameStringPlayer's birth place (town or city).
date_of_birthStringDate of birth, YYYY-MM-DD.
player_idInt64Player id; the same number in lineups, rosters, stat tables and the profile (fihaId).
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
handednessStringShoots LEFT or RIGHT.
heightInt64Player's height in centimetres.
is_suspendedBooleanTrue when the player is listed as suspended.
is_removedBooleanRemoved from the roster.
nationality_codeStringPlayer's nationality, 3-letter country code (e.g. FIN).
nationality_nameStringPlayer's nationality as a country name, in Finnish (e.g. Suomi).
weightInt64Player's weight in kilograms.
teamsStringMap keyed by an id -> one of the player's team seasons (season, jersey, teamId, slug).

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Liiga has nothing for the request (an unknown game, a tournament not played that season, a shot map before 2016).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

liiga_player(player_id=21870028)

liiga_player_career​

One player's career: season totals by tournament.

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

Valid URL: https://liiga.fi/api/v2/players/info/21870028

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

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_idInt64Player id; the same number in lineups, rosters, stat tables and the profile (fihaId).
seasonInt64Season END year (2026 = 2025-26).
gamesInt64Games (player, that season and tournament).
played_gamesInt64Played games (player, that season and tournament).
goalsInt64Goals (player, that season and tournament).
assistsInt64Assists (player, that season and tournament).
pointsInt64Points (player, that season and tournament).
penalty_minutesInt64Penalty minutes (player, that season and tournament).
plusInt64On ice for goals for (the + of plus/minus).
minusInt64On ice for goals against (the - of plus/minus).
plus_minusInt64Plus/minus: on-ice goals for minus on-ice goals against.
power_play_goalsInt64Power play goals (player, that season and tournament).
short_handed_goalsInt64Short handed goals (player, that season and tournament).
winning_goalsInt64Winning goals (player, that season and tournament).
shotsInt64Shots (player, that season and tournament).
shots_into_goalInt64Shots into goal (player, that season and tournament).
shot_percentageFloat64Shot percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
shot_into_goal_percentageFloat64Shot into goal percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
tournamentStringTournament of the career row, uppercase: RUNKOSARJA (regular season), PLAYOFFS, PRACTICE (preseason), ...
league_nameStringName of the league of that career row, e.g. Liiga.
team_nameStringTeam's display name, e.g. HPK or Tappara.
end_timeStringISO 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_nameStringTeam abbreviation.
time_on_iceInt64Time on ice (player, that season and tournament). Seconds.
save_percentageFloat64Save percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
goals_against_averageFloat64Goals against per game (goalkeeper), that season and tournament; sent as a string.
win_percentageFloat64(wins + 0.5 x ties) / games x 10,000, NOT 0-100 (sent as "4,583.33", comma = thousands separator): divide by 10,000 for the standings 0-1 scale. Practice rows can show 0.00 despite wins; unreliable there.
shut_outStringShutouts (goalkeeper), that season and tournament; sent as a string (e.g. "0").
faceoffs_wonInt64Faceoffs won (player, that season and tournament).
faceoffs_percentageFloat64Faceoffs percentage (player, that season and tournament). Percent, 0-100, sent as a STRING.
winsInt64Wins (player, that season and tournament).
lossesInt64Losses (player, that season and tournament).
tiesInt64Ties (player, that season and tournament).
gk_winsInt64Goalkeeper wins (player, that season and tournament).
gk_lossesInt64Goalkeeper losses (player, that season and tournament).
gk_tiesInt64Goalkeeper ties (player, that season and tournament).
savesInt64Saves (player, that season and tournament).
goals_againstInt64Goals against (player, that season and tournament).
faceoff_totalInt64Faceoff total (player, that season and tournament).

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Liiga has nothing for the request (an unknown game, a tournament not played that season, a shot map before 2016).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

liiga_player_career(player_id=21870028)

liiga_player_game_log​

One player's game log for a season, every tournament.

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

Valid URL: https://liiga.fi/api/v2/players/info/21870028/games/2026

API ParameterPythonPatternRequiredNullableDescription
player_idplayer_idYPlayer id (player_id in liiga_players_info or a lineup; equals fihaId), e.g. 21870028.
seasonseasonYSeason END year (2026 = 2025-26).

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_idInt64Player id; the same number in lineups, rosters, stat tables and the profile (fihaId).
seasonInt64Season END year (2026 = 2025-26).
tournamentStringTournament of the game (the body's list key): regular, playoffs, practice, qualifications, playout, chl or pitsiturnaus.
game_strStringMatchup label, e.g. HPK - LUK.
game_idInt64Game id, unique only within a season: key a game as (season, game_id).
dateStringGame start, ISO 8601 UTC.
assistsInt64Assists (player, this game).
blocked_or_saved_shotsInt64Blocked or saved shots (player, this game).
faceoffs_totalInt64Faceoffs total (player, this game).
faceoffs_wonInt64Faceoffs won (player, this game).
faceoffs_percentageFloat64Faceoffs percentage (player, this game). Percent, 0-100, sent as a STRING.
goalsInt64Goals (player, this game).
minusInt64On ice for goals against (the - of plus/minus).
total_pointsInt64Total points (player, this game).
home_team_nameStringDisplay name of the home team of the game, e.g. HPK.
away_team_nameStringDisplay name of the away team of the game, e.g. Lukko.
penalty_minutesInt64Penalty minutes (player, this game).
penaltykill_assistsInt64Penaltykill assists (player, this game).
penaltykill_goalsInt64Penaltykill goals (player, this game).
penaltykill_pointsInt64Penaltykill points (player, this game).
plusInt64On ice for goals for (the + of plus/minus).
plus_minusInt64Plus/minus: on-ice goals for minus on-ice goals against.
powerplay_assistsInt64Powerplay assists (player, this game).
powerplay_goalsInt64Powerplay goals (player, this game).
powerplay_secondsInt64Powerplay seconds (player, this game). Seconds.
time_on_iceInt64Time on ice (player, this game). Seconds.
savesInt64Saves (player, this game).
save_percentageFloat64Save percentage (player, this game). Percent, 0-100, sent as a STRING.
block_or_saved_shots_percentageFloat64Block or saved shots percentage (player, this game). Percent, 0-100, sent as a STRING.
shotsInt64Shots (player, this game).
shots_into_goalInt64Shots into goal (player, this game).
shut_outInt641 for a goalkeeper's shutout in this game, else 0.
shots_savedInt64Shots saved (player, this game).
shots_saved_by_skaterInt64Shots saved by skater (player, this game).
shot_percentageFloat64Shot percentage (player, this game). Percent, 0-100, sent as a STRING.
shot_into_goal_percentageFloat64Shot into goal percentage (player, this game). Percent, 0-100, sent as a STRING.
goals_againstInt64Goals against (player, this game).
goalkeeperBooleanTrue when the player is a goalkeeper.
winning_goalsInt64Winning goals (player, this game).
wonInt641 when the player's team won the game, else 0.
tiedInt641 when Liiga counts the game as a tie for the player's team, else 0 (overtime handling unverified).
lostInt641 when the player's team lost the game, else 0.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Liiga has nothing for the request (an unknown game, a tournament not played that season, a shot map before 2016).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

liiga_player_game_log(player_id=21870028, season=2026)

liiga_player_stats​

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

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

Valid URL: https://liiga.fi/api/v2/players/stats/summed/2026/2026/runkosarja/true?dataType=basicStats

API ParameterPythonPatternRequiredNullableDescription
season_fromseason_fromYFirst season (END year) of the range, e.g. 2026.
season_toseason_toYLast season (END year) of the range, e.g. 2026.
tournamenttournamentYTournament: runkosarja (regular season), playoffs, playout, qualifications, valmistavat_ottelut (preseason) or chl (Champions Hockey League).
dataTypedata_typeYStat table: basicStats, basicStatsGk, advancedStats, goalStats, shotStats, skatingStats, faceOffStats, penaltyStats, powerplayPenaltykillStats, passes, winningShotComp, winningShotCompGk, gameTime.

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_idInt64Player id; the same number in lineups, rosters, stat tables and the profile (fihaId).
team_idInt64Team 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_nameStringTeam's display name, e.g. HPK or Tappara.
team_short_nameStringTeam abbreviation.
roleStringPosition: CENTER, LEFT_WING, RIGHT_WING, LEFT_DEFENSEMAN, RIGHT_DEFENSEMAN, SEVENTH_DEFENSEMAN, GOALIE.
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
nationalityStringNationality, 3-letter code.
tournamentStringTournament of the summed row as Liiga labels it, e.g. regular.
picture_urlStringURL of the player's photo.
previous_teams_for_tournamentStringEarlier teams of a player traded during the tournament.
injuredBooleanTrue when the player is listed as injured.
jerseyInt64Jersey (sweater) number the player wore.
last_seasonInt64Last season (END year) of the range in which the player appears.
goalkeeperBooleanTrue when the player is a goalkeeper.
gamesInt64Games (player, summed over the season range).
played_gamesInt64Played games (player, summed over the season range).
rookieBooleanTrue when Liiga flags the player as a rookie.
suspendedBooleanTrue when the player is listed as suspended.
removedBooleanRemoved from the roster.
time_on_iceInt64Time on ice (player, summed over the season range). Seconds.
currentBooleanPlayer is on the team now.
is_u20BooleanTrue when Liiga flags the player as under 20 (U20).
golden_helmetsInt64Golden helmets (Liiga's team points-leader helmet; reading unverified), summed over the season range.
alumni_pointsInt64Alumni points (meaning undocumented by Liiga), summed over the season range.
goalsInt64Goals (player, summed over the season range).
assistsInt64Assists (player, summed over the season range).
pointsInt64Points (player, summed over the season range).
plusInt64On ice for goals for (the + of plus/minus).
minusInt64On ice for goals against (the - of plus/minus).
plus_minusInt64Plus/minus: on-ice goals for minus on-ice goals against.
penalty_minutesInt64Penalty minutes (player, summed over the season range).
powerplay_goalsInt64Powerplay goals (player, summed over the season range).
penaltykill_goalsInt64Penaltykill goals (player, summed over the season range).
winning_goalsInt64Winning goals (player, summed over the season range).
shotsInt64Shots (player, summed over the season range).
shots_into_goalInt64Shots into goal (player, summed over the season range).
expected_goalsFloat64Expected goals (xG) of the player's shots summed over the season range, from Liiga's undocumented model.
contest_wonInt64Contests (puck battles; definition unverified) the player won, summed over the season range.
contest_lostInt64Contests (puck battles; definition unverified) the player lost, summed over the season range.
goals_to_empty_goalInt64Goals to empty goal (player, summed over the season range).
time_on_ice_avgFloat64Time on ice (player, summed over the season range). Seconds per game.
contest_won_percentageFloat64Share of contests won, 0-100, over the season range (definition unverified).
xgeFloat64Goals minus expectedGoals over the season range (4 goals on 5.0956 xG = -1.0956).
shot_percentageFloat64Shot percentage (player, summed over the season range). Percent, 0-100.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Liiga has nothing for the request (an unknown game, a tournament not played that season, a shot map before 2016).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

liiga_player_stats(season_from=2026, season_to=2026, tournament='runkosarja')