Skip to contents

Wraps GET https://www.shl.se/api/sports-v2/teams/{team_uuid} 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_team(team_uuid, return_parsed = TRUE)

Arguments

team_uuid

Team uuid (homeTeamInfo.uuid / awayTeamInfo.uuid in the schedule, or teamList[].uuid).

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
names_codecharacterDisplay abbreviation; differs from the team code for some clubs (SKE vs SAIK, ÖRE vs OHK).
names_shortcharacterShort club name ('Herr' = men's team).
names_longcharacterLong club name ('Herr' = men's team).
names_fullcharacterFull club name ('Herr' = men's team).
names_code_sitecharacterDisplay abbreviation on the site; 'Herr' = men's team (e.g. 'DIF Herr').
names_short_sitecharacterShort club name as shown on the site ('Herr' = men's team).
names_full_sitecharacterFull club name as shown on the site ('Herr' = men's team).
names_long_sitecharacterLong club name as shown on the site ('Herr' = men's team).
info_foundedcharacterClub founding year (text). Numeric value sent as a string.
info_goldscharacterClub's championships (text).
info_finalscharacterClub's final appearances (text).
info_retired_numberscharacterRetired jersey numbers (text).
info_addresscharacterClub postal address.
info_phonecharacterTelephone number of the club.
info_faxcharacterFax number of the club.
info_emailcharacterContact email address of the club.
info_chairmancharacterName of the club chairman.
info_managercharacterClub general manager.
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_facebookcharacterClub Facebook URL.
info_instagramcharacterClub Instagram URL.
info_twittercharacterClub X/Twitter URL.
contactcharacterClub contact text.
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.
nationalitycharacterNationality (ISO country code).
arena_namecharacterName of the arena hosting the game. Empty string in every sample (placeholder).
public_urlcharacterPublic image URL.
iconcharacterURL of the team logo image.
owner_instance_idcharacterClub site instance id (e.g. fhc1_fhc); also names the logo at sportality.cdn.s8y.se/team-logos/{id}.svg.
site_display_namecharacterClub name as shown on its own site (e.g. Frölunda HC).

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_team(team_uuid = "087a-087aTQv9u")
#> ── SHL Team Information from www.shl.se ────────────── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:59:31 UTC
#> # A tibble: 1 × 30
#>   names_code names_short names_long  names_full names_code_site names_short_site
#>   <chr>      <chr>       <chr>       <chr>      <chr>           <chr>           
#> 1 FHC        "Frölunda " Frölunda HC Frölunda … FHC             Frölunda        
#> # ℹ 24 more variables: names_full_site <chr>, names_long_site <chr>,
#> #   info_founded <chr>, info_golds <chr>, info_finals <chr>,
#> #   info_retired_numbers <chr>, info_address <chr>, info_phone <chr>,
#> #   info_fax <chr>, info_email <chr>, info_chairman <chr>, info_manager <chr>,
#> #   info_accreditation <chr>, info_facebook <chr>, info_instagram <chr>,
#> #   info_twitter <chr>, contact <chr>, uuid <chr>, nationality <chr>,
#> #   arena_name <chr>, public_url <chr>, icon <chr>, owner_instance_id <chr>, …
# }