Queries the NHL Stats REST API for goalie statistics.
Usage
nhl_stats_goalies(
report_type = "summary",
season = NULL,
game_type = 2,
limit = 50,
start = 0,
sort = NULL,
direction = "DESC",
lang = "en"
)Arguments
- report_type
Character report type. Default "summary". Common types: "summary", "bios", "advanced", "daysrest", "penaltyShots", "savesByStrength", "shootout", "startedVsRelieved"
- season
Character season in "YYYYYYYY" format (e.g., "20242025"). If NULL, uses current season.
- game_type
Integer game type: 2 = regular season (default), 3 = playoffs
- limit
Integer maximum number of results. Default 50.
- start
Integer start index for pagination. Default 0.
- sort
Character sort column. Default varies by report.
- direction
Character sort direction: "DESC" or "ASC". Default "DESC".
- lang
Character language code. Default "en".
Examples
# \donttest{
try(nhl_stats_goalies())
#> 2026-04-08 07:40:23.447532: No goalie stats data
#> NULL
# }
