nhlscraper0.4.0 package

Scraper for National Hockey League Data

attendance

Access the attendance by season and game type

award_winners

Access all the award winners/finalists

awards

Access all the awards

boxscore

Access the boxscore for a game, team, and position

bracket

Access the playoff bracket for a season

calculate_angle

Calculate the Euclidean angle from the attacking net for all the event...

calculate_distance

Calculate the Euclidean distance from the attacking net for all the ev...

calculate_expected_goals_v1

Calculate version 1 of the expected goals for all the events (plays) i...

calculate_expected_goals_v2

Calculate version 2 of the expected goals for all the events (plays) i...

calculate_expected_goals_v3

Calculate version 3 of the expected goals for all the events (plays) i...

coach_career_statistics

Access the career statistics for all the coaches

coach_franchise_statistics

Access the statistics for all the coaches by franchise and game type

coaches

Access all the coaches

combine_reports

Access the draft combine reports

count_goals_shots

Count the as-of-event goal, shots on goal, Fenwick, and Corsi attempts...

countries

Access all the countries

draft_picks

Access all the draft picks

draft_prospects

Access all the draft prospects

draft_rankings

Access the draft rankings for a class and category

draft_tracker

Access the real-time draft tracker

drafts

Access all the drafts

draw_NHL_rink

Draw a full NHL rink

draw_rink_arc

Draw an arc on the rink

draw_rink_circle

Draw a circle on the rink

espn_api

Call the ESPN API with 429 (rate limit) error-handling

espn_futures

Access the ESPN futures for a season

espn_game_odds

Access the ESPN odds for a game

espn_game_summary

Access the ESPN summary for a game

espn_games

Access the ESPN games for a season

espn_injuries

Access the real-time ESPN injury reports

espn_play_by_play

Access the ESPN play-by-play for a game

espn_player_summary

Access the ESPN summary for a player

espn_players

Access all the ESPN players

espn_team_summary

Access the ESPN summary for a team

espn_teams

Access all the ESPN teams

espn_transactions

Access the ESPN transactions for a season

expansion_draft_picks

Access all the expansion draft picks

expansion_drafts

Access all the expansion drafts

flag_is_home

Flag if the event belongs to the home team or not for all the events (...

flag_is_rebound

Flag if the shot attempt is a rebound attempt or not for all the shots...

flag_is_rush

Flag if the shot attempt is a rush attempt or not for all the shots in...

franchise_playoff_situational_results

Access the playoff series results for all the franchises by situation

franchise_season_statistics

Access the statistics for all the franchises by season and game type

franchise_statistics

Access the all-time statistics for all the franchises by game type

franchise_team_statistics

Access the all-time statistics for all the franchises by team and game...

franchise_versus_franchise

Access the all-time statistics versus other franchises for all the fra...

franchises

Access all the franchises

game_odds

Access the real-time game odds for a country by partnered bookmaker

game_rosters

Access the rosters for a game

game_type_now

Access the game type as of now

games

Access all the games

gc_play_by_play

Access the GameCenter (GC) play-by-play for a game

gc_play_by_plays

Access the GameCenter (GC) play-by-plays for a season

gc_summary

Access the GameCenter (GC) summary for a game

general_managers

Access all the general managers

get_attendance

Access the attendance by season and game type

get_award_winners

Access all the award winners/finalists

get_awards

Access all the awards

get_bracket

Access the playoff bracket for a season

get_configuration

Access the configurations for team, skater, and goalie reports

get_countries

Access all the countries

get_draft_picks

Access all the draft picks

get_draft_rankings

Access the draft rankings for a year and player type

get_draft_tracker

Access the real-time draft tracker

get_drafts

Access all the drafts

get_espn_athlete

Access the ESPN summary for an athlete (player) and season

get_espn_athletes

Access all the ESPN athletes (players)

get_espn_coach_career

Access the career ESPN statistics for a coach

get_espn_coach

Access the ESPN statistics for a coach and (multiple) season(s)

get_espn_coaches

Access the ESPN coaches for a season

get_espn_event_odds

Access the ESPN odds for an event (game)

get_espn_event_officials

Access the officials for an ESPN event (game)

get_espn_event_play_by_play

Access the ESPN play-by-play for an event (game)

get_espn_event_stars

Access the three stars for an ESPN event (game)

get_espn_event

Access the ESPN summary for an event (game)

get_espn_events

Access the ESPN events (games) by start and end dates

get_espn_futures

Access the ESPN futures for a season

get_espn_injuries

Access the real-time ESPN injury reports

get_espn_team

Access the ESPN summary for a team and season

get_espn_teams

Access all the ESPN teams for a season

get_espn_transactions

Access the ESPN transactions by start and end dates

get_franchise_season_by_season

Access the statistics for all the franchises by season and game type

get_franchise_team_totals

Access the all-time statistics for all the franchises by team and game...

get_franchise_vs_franchise

Access the all-time statistics versus other franchises for all the fra...

get_franchises

Access all the franchises

get_game_boxscore

Access the boxscore for a game, team, and player type

get_game_landing

Access the GameCenter (GC) summary for a game

get_game_story

Access the World Showcase (WSC) summary for a game

get_games

Access all the games

get_gc_play_by_play

Access the GameCenter (GC) play-by-play for a game

get_glossary

Access the glossary

get_goalie_leaders

Access the goalie statistics leaders for a season, game type, and cate...

get_goalie_milestones

Access the goalies on milestone watch

get_goalie_statistics

Access various reports for all the goalies by season or game

get_goalies

Access all the goalies for a range of seasons

get_officials

Access all the officials

get_partner_odds

Access the real-time game odds for a country by partnered bookmaker

get_player_game_log

Access the game log for a player, season, and game type

get_player_landing

Access the summary for a player

get_players

Access all the players

get_schedule

Access the schedule for a date

get_scoreboards

Access the scoreboards for a date

get_scores

Access the scores for a date

get_season_now

Access the season and game type as of now

get_seasons

Access all the seasons

get_series_schedule

Access the playoff schedule for a season and series

get_series

Access the playoff series for a season and round

get_shift_charts

Access the shift charts for a game

get_skater_leaders

Access the skater statistics leaders for a season, game type, and cate...

get_skater_milestones

Access the skaters on milestone watch

get_skater_statistics

Access various reports for all the skaters by season or game

get_skaters

Access all the skaters for a range of seasons

get_spotlight_players

Access the spotlight players

get_standings_information

Access the standings rules by season

get_standings

Access the standings for a date

get_streams

Access all the streams

get_team_prospects

Access the prospects for a team and position

get_team_roster_statistics

Access the roster statistics for a team, season, game type, and player...

get_team_roster

Access the roster for a team, season, and player type

get_team_schedule

Access the schedule for a team and season

get_team_scoreboard

Access the team scoreboard as of now

get_team_seasons

Access the season(s) and game type(s) in which a team played

get_team_statistics

Access various reports for all the teams by season or game

get_teams

Access all the teams

get_tv_schedule

Access the NHL Network TV schedule for a date

get_venues

Access all the venues

get_wsc_play_by_play

Access the World Showcase (WSC) play-by-play for a game

glossary

Access the glossary

goalie_edge_five_versus_five

Access the EDGE 5 vs. 5 statistics for a goalie, season, game type, an...

goalie_edge_leaders

Access the goalie EDGE statistics leaders for a season and game type

goalie_edge_save_percentage

Access the EDGE save percentage statistics for a goalie, season, game ...

goalie_edge_seasons

Access the season(s) and game type(s) in which there exists goalie EDG...

goalie_edge_shot_location

Access the EDGE shot location statistics for a goalie, season, game ty...

goalie_edge_summary

Access the EDGE summary for a goalie, season, and game type

goalie_game_report

Access various reports for a season, game type, and category for all t...

goalie_game_scoring

Access the scoring statistics for all the goalies by game

goalie_game_statistics

Access the statistics for all the goalies by game

goalie_leaders

Access the goalie statistics leaders for a season, game type, and cate...

goalie_milestones

Access the goalies on milestone watch

goalie_regular_statistics

Access the career regular season statistics for all the goalies

goalie_report_configurations

Access the configurations for goalie reports

goalie_scoring

Access the career scoring statistics for all the goalies

goalie_season_report

Access various reports for a season, game type, and category for all t...

goalie_season_statistics

Access the statistics for all the goalies by season, game type, and te...

goalie_series_statistics

Access the playoff statistics for all the goalies by series

goalie_statistics

Access the career statistics for all the goalies

ig_game_cumulative_expected_goals

Save an Instagram (IG) share-able cumulative expected goals (xG) time-...

ig_game_shot_locations

Save an Instagram (IG) share-able shot-location plot for a game

location

Access the location for a zip code

lottery_odds

Access the draft lottery odds

nhl_api

Call the NHL API with 429 (rate limit) error-handling

normalize_coordinates

Normalize the x and y coordinates for all the events (plays) in a play...

normalize_team_key

Normalize the team key

officials

Access all the officials

penalty_shots

Access all the penalty shots

ping

Ping

player_game_log

Access the game log for a player, season, and game type

player_seasons

Access the season(s) and game type(s) in which a player played

player_summary

Access the summary for a player

players

Access all the players

playoff_season_statistics

Access the playoff statistics by season

replay

Access the replay for an event

roster_statistics

Access the roster statistics for a team, season, game type, and positi...

roster

Access the roster for a team, season, and position

schedule

Access the schedule for a date

scores

Access the scores for a date

season_now

Access the season as of now

seasons

Access all the seasons

series_schedule

Access the playoff schedule for a season and series

series

Access all the playoff series by game

shifts

Access the shift charts for a game

skater_edge_leaders

Access the skater EDGE statistics leaders for a season and game type

skater_edge_seasons

Access the season(s) and game type(s) in which there exists skater EDG...

skater_edge_shot_location

Access the EDGE shot location statistics for a skater, season, game ty...

skater_edge_shot_speed

Access the EDGE shot speed statistics for a skater, season, game type,...

skater_edge_skating_distance

Access the EDGE skating distance statistics for a skater, season, game...

skater_edge_skating_speed

Access the EDGE skating speed statistics for a skater, season, game ty...

skater_edge_summary

Access the EDGE summary for a skater, season, and game type

skater_edge_zone_time

Access the EDGE zone time statistics for a skater, season, game type, ...

skater_game_report

Access various reports for a season, game type, and category for all t...

skater_leaders

Access the skater statistics leaders for a season, game type, and cate...

skater_milestones

Access the skaters on milestone watch

skater_playoff_statistics

Access the career playoff statistics for all the skaters

skater_regular_statistics

Access the career regular season statistics for all the skaters

skater_report_configurations

Access the configurations for skater reports

skater_season_report

Access various reports for a season, game type, and category for all t...

skater_season_statistics

Access the statistics for all the skaters by season, game type, and te...

skater_series_statistics

Access the playoff statistics for all the skaters by series

skater_statistics

Access the career statistics for all the skaters

spotlight_players

Access the spotlight players

standings_rules

Access the standings rules by season

standings

Access the standings for a date

streams

Access all the streams

strip_game_id

Strip the game ID into the season ID, game type ID, and game number fo...

strip_situation_code

Strip the situation code into goalie and skater counts, man differenti...

strip_time_period

Strip the timestamp and period number into the time elapsed in the per...

team_edge_leaders

Access the team EDGE statistics leaders for a season and game type

team_edge_seasons

Access the season(s) and game type(s) in which there exists team EDGE ...

team_edge_shot_location

Access the EDGE shot location statistics for a team, season, game type...

team_edge_shot_speed

Access the EDGE shot speed statistics for a team, season, game type, a...

team_edge_skating_distance

Access the EDGE skating distance statistics for a team, season, game t...

team_edge_skating_speed

Access the EDGE skating speed statistics for a team, season, game type...

team_edge_summary

Access the EDGE summary for a team, season, and game type

team_edge_zone_time

Access the EDGE zone time statistics for a team, season, game type, an...

team_game_report

Access various reports for a season, game type, and category for all t...

team_logos

Access all the team logos

team_month_schedule

Access the schedule for a team and month

team_prospects

Access the prospects for a team and position

team_report_configurations

Access the configurations for team reports

team_season_report

Access various reports for a season, game type, and category for all t...

team_season_schedule

Access the schedule for a team and season

team_season_statistics

Access the statistics for all the teams by season and game type

team_seasons

Access the season(s) and game type(s) in which a team played

team_week_schedule

Access the schedule for a team and week since a date

teams

Access all the teams

to_game_type_id

Convert to the appropriate game type ID

to_team_id

Convert to the appropriate team ID

to_team_tri_code

Convert to the appropriate team three-letter code

tv_schedule

Access the NHL Network TV schedule for a date

venues

Access all the venues

wsc_play_by_play

Access the World Showcase (WSC) play-by-play for a game

wsc_play_by_plays

Access the World Showcase (WSC) play-by-plays for a season

wsc_summary

Access the World Showcase (WSC) summary for a game

x_game_cumulative_expected_goals

Save an X (Twitter) share-able cumulative expected goals (xG) time-ser...

x_game_shot_locations

Save an X (Twitter) share-able shot-location plot for a game

Scrapes and cleans data from the 'NHL' and 'ESPN' APIs into data.frames and lists. Wraps 125+ endpoints documented in <https://github.com/RentoSaijo/nhlscraper/wiki> from high-level multi-season summaries and award winners to low-level decisecond replays and bookmakers' odds, making them more accessible. Features cleaning and visualization tools, primarily for play-by-plays.

  • Maintainer: Rento Saijo
  • License: MIT + file LICENSE
  • Last published: 2025-11-30