Skip to contents

Returns teams belonging to a given division, derived from standings data.

The original NHL Stats API divisions endpoint is no longer available. This function now extracts division information from the standings endpoint at api-web.nhle.com.

Usage

nhl_divisions_info(division_name, date = NULL)

Arguments

division_name

Character. Division name (e.g. "Atlantic", "Metropolitan", "Central", "Pacific").

date

Character date in "YYYY-MM-DD" format. If NULL, returns current division info.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
team_abbrcharacterTeam abbreviation.
team_namecharacterTeam name.
team_common_namecharacterTeam common (nickname) name.
team_logocharacterURL to the team logo image.
conference_namecharacterConference name.
division_abbrevcharacterDivision abbreviation.
division_namecharacterDivision name.
place_namecharacterTeam place (city) name.
conference_sequenceintegerTeam's seeding position within the conference.
division_sequenceintegerTeam's seeding position within the division.
league_sequenceintegerTeam's seeding position within the league.
wildcard_sequenceintegerTeam's wild card seeding position.
games_playedintegerGames played.
winsintegerWins.
lossesintegerLosses.
ot_lossesintegerOvertime losses.
pointsintegerStandings points.
point_pctgnumericPoints percentage.
regulation_winsintegerWins in regulation.
regulation_plus_ot_winsintegerWins in regulation plus overtime.
goals_forintegerGoals scored.
goals_againstintegerGoals against.
goal_differentialintegerGoal differential (goals for minus goals against).
home_winsintegerHome wins.
home_lossesintegerHome losses.
home_ot_lossesintegerHome overtime losses.
road_winsintegerRoad wins.
road_lossesintegerRoad losses.
road_ot_lossesintegerRoad overtime losses.
l10_winsintegerWins in the last ten games.
l10_lossesintegerLosses in the last ten games.
l10_ot_lossesintegerOvertime losses in the last ten games.
streak_codecharacterCurrent streak type code (W/L/OT).
streak_countintegerLength of the current streak.
shootout_winsintegerShootout wins.
shootout_lossesintegerShootout losses.

Examples

# \donttest{
  try(nhl_divisions_info(division_name = "Atlantic"))
#> ── NHL Division Information from NHL.com ────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-06-13 03:24:54 UTC
#> # A tibble: 8 × 36
#>   team_abbr team_name team_common_name team_logo conference_name division_abbrev
#>   <chr>     <chr>     <chr>            <chr>     <chr>           <chr>          
#> 1 BUF       Buffalo … Sabres           https://… Eastern         A              
#> 2 TBL       Tampa Ba… Lightning        https://… Eastern         A              
#> 3 MTL       Montréal… Canadiens        https://… Eastern         A              
#> 4 BOS       Boston B… Bruins           https://… Eastern         A              
#> 5 OTT       Ottawa S… Senators         https://… Eastern         A              
#> 6 DET       Detroit … Red Wings        https://… Eastern         A              
#> 7 FLA       Florida … Panthers         https://… Eastern         A              
#> 8 TOR       Toronto … Maple Leafs      https://… Eastern         A              
#> # ℹ 30 more variables: division_name <chr>, place_name <chr>,
#> #   conference_sequence <int>, division_sequence <int>, league_sequence <int>,
#> #   wildcard_sequence <int>, games_played <int>, wins <int>, losses <int>,
#> #   ot_losses <int>, points <int>, point_pctg <dbl>, regulation_wins <int>,
#> #   regulation_plus_ot_wins <int>, goals_for <int>, goals_against <int>,
#> #   goal_differential <int>, home_wins <int>, home_losses <int>,
#> #   home_ot_losses <int>, road_wins <int>, road_losses <int>, …
# }