Skip to contents

Wraps GET https://www.shl.se/api/statistics-v2/stats-info/{module} of the SHL site API (www.shl.se). Unofficial use of a public source; seasons are END years (2026 = 2025/26) and are mapped to the site's ssgt uuids through /statistics-v2/layout-info.

Usage

shl_stats_info(module, season, game_type = "regular", return_parsed = TRUE)

Arguments

module

Stats module: _

. Every name under layout-info [].filters..modules.
season

Required. Season END year (2026 = 2025/26). Mapped to the provider's ssgt through /statistics-v2/layout-info (SHL 1975/76 on); a season it does not list raises NoDataError.

game_type

Game type: regular (Grundserie), playoff (Slutspel), qualdown (relegation qualification) or playin (2023/24 on).

return_parsed

Parse the payload into a tibble (default TRUE); FALSE returns the raw decoded JSON as a list.

Value

A fastRhockey_data tibble (the raw JSON list when return_parsed = FALSE) with the following columns:

col_nametypedescription
rankintegerRank in the table.
gpnumericNumber of games played.
wnumericWins. Team modules (teams_result): total wins, regulation + overtime + shootout; goalkeeper modules: wins credited to the goalie; standings_standings: regulation wins only.
lnumericLosses. Team modules (teams_result): total losses, regulation + overtime + shootout; goalkeeper modules: losses charged to the goalie; standings_standings: regulation losses only.
leadingnumericTimes leading: how often the team was ahead (exact definition unverified).
trailingnumericTimes trailing.
gnumericNumber of goals scored.
ganumericNumber of goals conceded (goals against).
gfgnumericFirst goal of the game.
otwnumericOvertime wins, shootouts excluded (see SOW).
otlnumericOvertime losses, shootouts excluded (see SOL).
sownumericNumber of shootout wins.
solnumericShootout losses.
p_gp_formatnumericPoints per game (formatted). Numeric value sent as a string.
gpgnumericGoals per game. Numeric value sent as a string.
gapgnumericGoals against per game. Numeric value sent as a string.
pointsnumericStandings points (3 per regulation win, 2 per OT/SO win, 1 per OT/SO loss).
info_typecharacterRecord type of the row's subject: team in team modules, athlete in player and goalie modules.
info_idcharacterTeam code (e.g. SAIK) in team and standings modules; null in player, goalie and games modules (use info.uuid).
info_uuidcharacterAthlete uuid (platform key space) in player and goalie modules, team uuid in team modules; joins to the athlete routes or /sports-v2/teams/{team_uuid}.
info_created_atcharacterRecord creation time (ISO 8601; often null).
info_created_bycharacterRecord creator (site instance id; often null).
info_deletedlogicalSoft-delete flag of the record (false in every sample).
info_gendercharacterSex of the athlete or team (male / female).
info_graphics_librarycharacterGraphics asset key.
info_last_modifiedcharacterRecord last-modified time (ISO 8601).
info_nationalitycharacterNationality (ISO country code).
info_owner_instance_idcharacterClub site instance id (e.g. fhc1_fhc); also names the logo at sportality.cdn.s8y.se/team-logos/{id}.svg.
info_ownersitecharacterOwning site code.
info_team_codecharacterTeam code of the player's team (e.g. FHC).
info_seriescharacterSeries with their uuids (SHL, CHL).
info_sportcharacterSport records the club belongs to (ice hockey).
info_team_mediacharacterMedia URL or string.
info_team_names_codecharacterDisplay abbreviation; differs from the team code for some clubs (SKE vs SAIK, ÖRE vs OHK).
info_team_names_shortcharacterShort club name ('Herr' = men's team).
info_team_names_longcharacterLong club name ('Herr' = men's team).
info_team_names_fullcharacterFull club name ('Herr' = men's team).
info_team_names_code_sitecharacterDisplay abbreviation on the site; 'Herr' = men's team (e.g. 'DIF Herr').
info_team_names_short_sitecharacterShort club name as shown on the site ('Herr' = men's team).
info_team_names_full_sitecharacterFull club name as shown on the site ('Herr' = men's team).
info_team_names_long_sitecharacterLong club name as shown on the site ('Herr' = men's team).
info_club_name_codecharacterDisplay abbreviation; differs from the team code for some clubs (SKE vs SAIK, ÖRE vs OHK).
info_club_name_shortcharacterShort club name ('Herr' = men's team).
info_club_name_longcharacterLong club name ('Herr' = men's team).
info_club_name_fullcharacterFull club name ('Herr' = men's team).
info_team_info_foundedcharacterClub founding year (text). Numeric value sent as a string.
info_team_info_goldscharacterClub's championships (text).
info_team_info_finalscharacterClub's final appearances (text).
info_team_info_addresscharacterClub postal address.
info_team_info_phonecharacterTelephone number of the club.
info_team_info_faxcharacterFax number of the club.
info_team_info_emailcharacterContact email address of the club.
info_team_info_chairmancharacterName of the club chairman.
info_team_info_managercharacterClub general manager.
info_team_info_accreditationcharacterPress-accreditation contact, free Swedish text (e.g. 'Senast dagen före match till …' = 'no later than the day before the game, to …').
info_team_info_facebookcharacterClub Facebook URL.
info_team_info_instagramcharacterClub Instagram URL.
info_team_info_twittercharacterClub X/Twitter URL.
info_team_ext_idscharacterExternal ids of the team.
info_ext_idscharacterExternal ids of the record.
info_logocharacterURL of the team logo image.
info_social_mediacharacterClub social links.
info_display_namecharacterTeam display-name override; unused. Empty string in every sample (placeholder).
info_codecharacterTeam code (e.g. SAIK) in team and standings modules; absent for players.
info_site_display_namecharacterClub name as shown on its own site (e.g. Frölunda HC).
info_team_info_retired_numberscharacterRetired jersey numbers (text).
info_team_info_contactcharacterClub contact text.
info_club_namecharacterClub names by length.
player_idintegerisa (StatNet) player id, integer. Play-by-play sends it as a string, every other route as an integer; it is cast here so the frames join.
svsnumericNumber of saves made by the goalie.
svs_percnumericSave %. Numeric value sent as a string.
gpinumericGames played with ice time.
gaanumericGoals against average (per 60 minutes). Numeric value sent as a string.
tnumericGoalie ties (goalkeeper modules only); 0 in every sampled row, as overtime and shootouts now decide every game.
sonumericNumber of shutouts (games without a goal against).
mipcharacterMinutes played (mm:ss). Clock/duration as an mm:ss string.
valid_rankinglogicalWhether the row qualifies for the ranking (minimum games / minutes).
info_full_namecharacterGiven name and surname.
info_first_namecharacterGiven (first) name of the player.
info_last_namecharacterSurname (family name) of the player.
info_birth_datecharacterDate of birth (YYYY-MM-DD).
info_numberintegerJersey (shirt) number of the player.
info_positioncharacterPosition code (CE = centre, LW, RW, D, GK, F); N/A in the athlete game logs.
info_shootscharacterShooting side (L / R; Left / Right).
info_weight_valueintegerWeight of the player in kilograms.
info_weight_formatcharacterUnit of value: kg.
info_height_valueintegerHeight of the player in centimetres.
info_height_formatcharacterUnit of value: cm.
info_player_media_idintegerMedia-library id of the portrait (joins to /api/media; not a player id).
info_player_media_media_stringcharacterMedia reference (type/source/id).
info_player_media_typecharacterImage kind (portrait).
info_player_media_sort_orderintegerOrdering index for display.
info_team_uuidcharacterTeam uuid (platform key space, e.g. 087a-087aTQv9u); joins to /sports-v2/teams/{team_uuid} and schedule homeTeamInfo/awayTeamInfo.uuid. Not the team code.
info_team_namecharacterTeam name (e.g. Frölunda HC); empty in some rows.
info_team_owner_instance_idcharacterClub site instance id (e.g. fhc1_fhc); also names the logo at sportality.cdn.s8y.se/team-logos/{id}.svg.
info_team_site_display_namecharacterClub name as shown on its own site (e.g. Frölunda HC).
info_team_idcharacterTeam code (e.g. FHC) in gameday and standings payloads; not the team uuid.
tpnumericPoints (goals + assists).
anumericNumber of assists credited.
pimnumericPenalty minutes.
gwgnumericGame-winning goals.
ppgnumericPower-play goals.
sognumericNumber of shots on goal.
hitsnumericBody checks delivered.
bk_snumericNumber of blocked shots.
plusnumericGoals for while on ice.
minusnumericGoals against while on ice.
plus_minusnumericGoals for minus goals against while on ice (+/-).
toi_gpcharacterTime on ice per game (mm:ss). Clock/duration as an mm:ss string.
tppgnumericPoints per game. Numeric value sent as a string.
a_firstsnumericPrimary assists.
a_secondsnumericSecondary assists.
ppanumericPower-play assists.
pptpnumericPower-play points.
eqgnumericEven-strength goals.
eqanumericEven-strength assists.
eqtpnumericEven-strength points.
shgnumericShorthanded goals.
shanumericShorthanded assists.
shtpnumericShorthanded points.
trailing2numericGames trailing after period 2 (unverified).
trailing1numericGames trailing after period 1 (unverified).
tiedgnumericTimes tied (unverified).
leading1numericGames leading after period 1 (unverified).
leading2numericGames leading after period 2 (unverified).
engnumericEmpty-net goals.
toicharacterTime on ice (mm:ss). Duration as an hh:mm:ss string.
pptoi_gpcharacterPower-play time on ice per game (mm:ss). Clock/duration as an mm:ss string.
shtoi_gpcharacterShorthanded time on ice per game (mm:ss). Clock/duration as an mm:ss string.
pptoi_percnumericShare of time on ice on the power play (unverified). Numeric value sent as a string.
shtoi_percnumericShare of time on ice shorthanded (unverified). Numeric value sent as a string.
pptoi_pp_pluscharacterPower-play time on ice per power-play goal for (unverified). Clock/duration as an mm:ss string.
ppsognumericPower-play shots on goal.
ppswnumericPower-play shots wide.
ppsg_percnumericPower-play shooting % (unverified). Numeric value sent as a string.
pp_plusnumericGoals for while on ice on the power play.
pp_minusnumericGoals against while on ice on the power play.
pp_plus_minusnumericPower-play plus/minus.
shsognumericShorthanded shots on goal.
shswnumericShorthanded shots wide.
sh_plusnumericGoals for while on ice shorthanded.
sh_minusnumericGoals against while on ice shorthanded.
sh_plus_minusnumericShorthanded plus/minus.
shtoi_sh_minuscharacterShorthanded time on ice per shorthanded goal against (unverified). Clock/duration as an mm:ss string.
esgnumericEven-strength goals.
esanumericEven-strength assists.
estpnumericEven-strength points.
essognumericEven-strength shots on goal.
esswnumericEven-strength shots wide.
es_plusnumericEven-strength goals for while on ice.
es_minusnumericEven-strength goals against while on ice.
es_plus_minusnumericEven-strength plus/minus.
estoi_gpcharacterEven-strength time on ice per game (mm:ss). Clock/duration as an mm:ss string.
eff_pimnumericEffective penalty minutes (served).
pers_pimnumericPersonal penalty minutes.
off_pimnumericOffensive penalty minutes.
minornumericMinor penalties.
majornumericMajor penalties.
miscnumericMisconduct penalties.
gmnumericGame misconducts.
mpnumericMatch penalties.
fo_percnumericFace-off win %. Numeric value sent as a string.
fonumericFace-offs taken.
fownumericNumber of face-offs won.
folnumericFace-offs lost.
ofo_percnumericOffensive-zone face-offs won %. Numeric value sent as a string.
ofonumericOffensive-zone face-offs.
ofownumericOffensive-zone face-offs won.
ofolnumericOffensive-zone face-offs lost.
dfo_percnumericDefensive-zone face-offs won %. Numeric value sent as a string.
dfonumericDefensive-zone face-offs.
dfownumericDefensive-zone face-offs won.
dfolnumericDefensive-zone face-offs lost.
fo_violation_percnumericFace-off violation %. Numeric value sent as a string.
fo_violationsnumericFace-off violations.
sg_percnumericShooting %. Numeric value sent as a string.
msnumericMissed shots (wide + blocked).
sog_percnumericShots on goal % of attempts. Numeric value sent as a string.
psnumericNumber of penalty shots.
psgnumericPenalty-shot goals.
ps_percnumericPenalty-shot conversion %. Numeric value sent as a string.
so_psnumericShootout shots.
so_psgnumericShootout goals.
so_ps_percnumericShootout shooting %. Numeric value sent as a string.
cfnumericCorsi for (shot attempts for).
canumericCorsi against (shot attempts against).
cf_percnumericCorsi for percentage. Numeric value sent as a string.
close_cf_percnumericCorsi for percentage in close-score situations. Numeric, but sent as a string in some rows and as a number in others.
ffnumericFenwick for (unblocked shot attempts for).
fanumericFenwick against (unblocked shot attempts against).
ff_percnumericFenwick for percentage. Numeric, but sent as a string in some rows and as a number in others.
close_ff_percnumericFenwick for percentage in close-score situations. Numeric, but sent as a string in some rows and as a number in others.
on_ice_goal_percnumericOn-ice shooting % (unverified).
on_ice_svs_percnumericOn-ice save % (unverified). Numeric, but sent as a string in some rows and as a number in others.
pdonumericPDO (on-ice shooting % + on-ice save %). Numeric, but sent as a string in some rows and as a number in others.
info_player_mediacharacterPortrait image reference (mediaString, type).
shganumericShorthanded goals against (conceded while on the power play).
ppganumericPower-play goals against (conceded while shorthanded).
enganumericEmpty-net goals against.
pp_oppnumericPower-play opportunities.
pp_percnumericPower-play %. Numeric value sent as a string.
pp_timecharacterTime on the power play (hh:mm:ss). Duration as an hh:mm:ss string.
st_percnumericSpecial-teams % (power-play % + penalty-kill %). Numeric value sent as a string.
pk_oppnumericTimes shorthanded.
pk_percnumericPenalty-kill %. Numeric value sent as a string.
ppsoganumericPower-play shots on goal against.
pk_timecharacterTime shorthanded (hh:mm:ss). Duration as an hh:mm:ss string.
gp_homenumericHome games played.
att_avg_homenumericAverage home attendance per game.
att_total_homenumericTotal home attendance.
att_avg_overallnumericAverage attendance per game.
att_total_overallnumericTotal attendance.
gp_roadnumericAway games played.
att_avg_roadnumericAverage away attendance per game.
att_total_roadnumericTotal away attendance.
team_pennumericTeam (bench) penalties.
s_effnumericShooting %. Numeric value sent as a string.
pps_effnumericPower-play shooting %. Numeric value sent as a string.
swnumericNumber of shots that missed the net.
sibnumericShots blocked (blocked attempts).
ssnumericScoring-chance shots (site label; unverified).
soganumericShots on goal against.
msanumericMissed shots against (wide + blocked).
swanumericShots wide against.
sfanumericShots on goal against (unverified).
ssanumericScoring-chance shots against (site label; unverified).
fo_violations_percnumericFace-off violation %.
psanumericPenalty-shot attempts.
pssvsnumericPenalty shots saved.
so_psanumericShootout attempts against.
so_pssvsnumericShootout saves.
so_pssvs_percnumericShootout save %. Numeric value sent as a string.
freezesnumericPuck freezes (stoppages caused).
freezes_againstnumericPuck freezes by the opponent.
icingsnumericIcing calls against the team.
icing_againstnumericIcings by the opponent.
offsidesnumericOffside calls against the team.
offsides_againstnumericOffsides by the opponent.
ssganumericScoring-chance goals against (unverified).
ssoganumericScoring-chance shots on goal against (unverified).
sssvs_percnumericSave % on scoring-chance shots. Numeric value sent as a string.
ppsvs_percnumericSave % against the power play (unverified). Numeric value sent as a string.
shsoganumericShorthanded shots on goal against.
shsvs_percnumericShorthanded save % (unverified). Numeric value sent as a string.
esganumericEven-strength goals against.
essoganumericEven-strength shots on goal against.
essvs_percnumericEven-strength save %. Numeric value sent as a string.
psganumericPenalty-shot goals against.
pssvs_percnumericPenalty-shot save %.
so_psganumericShootout goals against.
date_timecharacterGame date and time.
home_teamcharacterHome team code (e.g. BIF).
guest_teamcharacterAway team code (e.g. HV71).
game_score_home_scoreintegerGoals scored by the home team.
game_score_away_scoreintegerGoals scored by the away team.
game_score_decided_incharacterFilter values for how a game was decided.
venuecharacterName of the arena the game is played in.
attendancenumericSpectators at the game.
info_game_idintegerStatNet game number (StatNet key space, e.g. 22003); keys stats-info games and equals sports-v2 game-info extId. Not the game uuid.
info_home_team_idcharacterHome team code (e.g. FHC); not a uuid.
info_away_team_idcharacterAway team code (e.g. LHC); not a uuid.
diffnumericGoal difference.

Errors

fastRhockey_no_data: the host answered 404, an empty body (gameday routes before 2023/24), a table with no rows, or the season and game type are not in layout-info. fastRhockey_asset_fetch: any other non-2xx answer or a dead connection after retries, a non-JSON or error-envelope 200, a stats-info page that reaches count or falls short of its totalCount, or a body for another game, team, athlete or ssgt than the one asked for. fastRhockey_bad_request: a 400 / 422, a season that is not a year, or an argument outside its choices.

Examples

# \donttest{
  shl_stats_info(module = "players_summary", season = 2026)
#> ── SHL Stats Info Information from www.shl.se ──────── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:59:31 UTC
#> # A tibble: 473 × 262
#>     rank    gp     w     l leading trailing     g    ga   gfg   otw   otl   sow
#>    <int> <dbl> <dbl> <dbl>   <dbl>    <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#>  1     1    52    NA    NA      NA       NA    30    NA    NA    NA    NA    NA
#>  2     2    52    NA    NA      NA       NA    20    NA    NA    NA    NA    NA
#>  3     3    50    NA    NA      NA       NA    30    NA    NA    NA    NA    NA
#>  4     4    52    NA    NA      NA       NA    15    NA    NA    NA    NA    NA
#>  5     5    51    NA    NA      NA       NA    12    NA    NA    NA    NA    NA
#>  6     6    50    NA    NA      NA       NA    23    NA    NA    NA    NA    NA
#>  7     7    48    NA    NA      NA       NA    16    NA    NA    NA    NA    NA
#>  8     8    52    NA    NA      NA       NA    21    NA    NA    NA    NA    NA
#>  9     9    51    NA    NA      NA       NA    15    NA    NA    NA    NA    NA
#> 10    10    49    NA    NA      NA       NA    12    NA    NA    NA    NA    NA
#> # ℹ 463 more rows
#> # ℹ 250 more variables: sol <dbl>, p_gp_format <dbl>, gpg <dbl>, gapg <dbl>,
#> #   points <dbl>, info_type <chr>, info_id <chr>, info_uuid <chr>,
#> #   info_created_at <chr>, info_created_by <chr>, info_deleted <lgl>,
#> #   info_gender <chr>, info_graphics_library <chr>, info_last_modified <chr>,
#> #   info_nationality <chr>, info_owner_instance_id <chr>, info_ownersite <chr>,
#> #   info_team_code <chr>, info_series <chr>, info_sport <chr>, …
# }