Skip to contents

Professional Women’s Hockey League

Game Data

Functions for accessing PWHL game-level data

pwhl_schedule()
PWHL Schedule
pwhl_scorebar()
PWHL Scorebar
pwhl_game_info()
PWHL Game Information
pwhl_game_summary()
PWHL Game Summary
pwhl_pbp()
PWHL Play-by-play
pwhl_player_box()
PWHL Player Game Box Scores

Team Data

Functions for accessing PWHL team-level data

pwhl_teams()
PWHL Teams
pwhl_team_roster()
PWHL Rosters
pwhl_standings()
PWHL Standings

Player Data

Functions for accessing PWHL player-level data

pwhl_player_info()
PWHL Player Info
pwhl_player_stats()
PWHL Player Season Stats
pwhl_player_game_log()
PWHL Player Game Log
pwhl_player_search()
PWHL Player Search
pwhl_stats()
PWHL Stats
pwhl_leaders()
PWHL League Leaders
pwhl_streaks()
PWHL Player Streaks

League Data

Functions for accessing PWHL league-level data

pwhl_season_id()
PWHL Season IDs
pwhl_transactions()
PWHL Transactions
pwhl_playoff_bracket()
PWHL Playoff Bracket

PWHL Data Loaders

Full Seasons of PWHL Data

Functions that load full seasons of pre-scraped PWHL data from the sportsdataverse-data releases

load_pwhl_pbp()
Load fastRhockey PWHL play-by-play
load_pwhl_player_box()
Load fastRhockey PWHL player box scores
load_pwhl_skater_box()
Load fastRhockey PWHL skater box scores
load_pwhl_goalie_box()
Load fastRhockey PWHL goalie box scores
load_pwhl_team_box()
Load fastRhockey PWHL team box scores
load_pwhl_schedule()
Load fastRhockey PWHL schedules
load_pwhl_rosters()
Load fastRhockey PWHL team rosters
load_pwhl_game_rosters()
Load fastRhockey PWHL per-game rosters
load_pwhl_game_info()
Load fastRhockey PWHL game info
load_pwhl_scoring_summary()
Load fastRhockey PWHL scoring summaries
load_pwhl_penalty_summary()
Load fastRhockey PWHL penalty summaries
load_pwhl_three_stars()
Load fastRhockey PWHL three stars
load_pwhl_officials()
Load fastRhockey PWHL officials
load_pwhl_shots_by_period()
Load fastRhockey PWHL shots-by-period
load_pwhl_shootout()
Load fastRhockey PWHL shootout summaries

Update or Create PWHL Database

Functions that update and create a database of fastRhockey PWHL play-by-play data

update_pwhl_db()
Update or create a fastRhockey PWHL play-by-play database

NHL Data

Game Data

Functions exported by fastRhockey sourced from the game endpoint of the NHL API

nhl_game_boxscore()
NHL Game Boxscore
nhl_game_feed()
NHL Game Feed
nhl_game_pbp()
NHL Game Play-by-Play
nhl_game_shifts()
NHL Game Shifts
nhl_game_story()
NHL Game Story
nhl_game_content()
NHL Game Content
nhl_gamecenter_landing()
NHL Gamecenter Landing
nhl_gamecenter_right_rail()
NHL Gamecenter Right Rail

Teams Data

Functions exported by fastRhockey sourced from the teams endpoint of the NHL API

nhl_teams()
NHL Teams
nhl_teams_info()
NHL Teams Info
nhl_teams_roster()
NHL Team Roster
nhl_teams_stats()
NHL Teams Stats
nhl_team_prospects()
NHL Team Prospects
nhl_team_scoreboard()
NHL Team Scoreboard
espn_nhl_teams()
Get ESPN NHL team names and IDs

Club Data

Functions exported by fastRhockey for NHL club-level schedule and stats

nhl_club_schedule()
NHL Club Schedule
nhl_club_stats_season()
NHL Club Stats Season

Players Data

Functions exported by fastRhockey sourced from the players endpoint of the NHL API

nhl_player_info()
NHL Player Info
nhl_player_game_log()
NHL Player Game Log
nhl_player_spotlight()
NHL Player Spotlight
nhl_player_stats()
NHL Player Stats

Roster Data

Functions exported by fastRhockey for NHL roster information

nhl_roster_season()
NHL Roster Season

Schedule Data

Functions exported by fastRhockey sourced from the schedule endpoint of the NHL API

nhl_schedule()
NHL Schedule
nhl_schedule_calendar()
NHL Schedule Calendar

Draft Data

Functions exported by fastRhockey sourced from the draft endpoint of the NHL API

nhl_draft()
NHL Draft
nhl_draft_year()
NHL Draft by Year
nhl_draft_prospects()
NHL Draft Prospects
nhl_draft_prospects_info()
NHL Draft Prospects Info
nhl_draft_rankings()
NHL Draft Rankings

Standings Data

Functions exported by fastRhockey sourced from the standings endpoint of the NHL API

nhl_standings()
NHL Standings
nhl_standings_season()
NHL Standings Season List

Scoreboard and Scores

Functions exported by fastRhockey for NHL scoreboard and scores data

nhl_scoreboard()
NHL Scoreboard
nhl_scores()
NHL Scores

Playoffs Data

Functions exported by fastRhockey for NHL playoff data

nhl_playoff_bracket()
NHL Playoff Bracket
nhl_playoff_carousel()
NHL Playoff Carousel
nhl_playoff_schedule()
NHL Playoff Schedule

Season and Stats Data

Functions exported by fastRhockey for NHL season metadata and aggregated stats

nhl_seasons()
NHL Seasons
nhl_stats_skaters()
NHL Stats API — Skater Stats
nhl_stats_goalies()
NHL Stats API — Goalie Stats
nhl_stats_teams()
NHL Stats API — Team Stats
nhl_stats_draft()
NHL Stats API — Draft Summaries
nhl_stats_seasons()
NHL Stats API — Seasons List
nhl_stats_misc()
NHL Stats API — Miscellaneous Endpoints
nhl_skater_stats_leaders()
NHL Skater Stats Leaders
nhl_goalie_stats_leaders()
NHL Goalie Stats Leaders

Stats REST Dedicated Wrappers

Dedicated wrappers for the NHL Stats REST API that were previously only reachable via nhl_stats_misc()

nhl_stats_franchise()
NHL Stats API — Franchise Listing
nhl_stats_players()
NHL Stats API — Players Listing
nhl_stats_glossary()
NHL Stats API — Glossary
nhl_stats_country()
NHL Stats API — Country Lookup
nhl_stats_config()
NHL Stats API — Config
nhl_stats_ping()
NHL Stats API — Ping
nhl_stats_skater_leaders()
NHL Stats API — Skater Leaders
nhl_stats_goalie_leaders()
NHL Stats API — Goalie Leaders
nhl_stats_skater_milestones()
NHL Stats API — Skater Milestones
nhl_stats_goalie_milestones()
NHL Stats API — Goalie Milestones
nhl_stats_team_listing()
NHL Stats API — Team Listing
nhl_stats_game_listing()
NHL Stats API — Game Listing
nhl_stats_content_module()
NHL Stats API — Content Module

NHL Edge Analytics - Skater

Skater advanced metrics from NHL Edge (api-web.nhle.com/v1/edge/skater-*)

nhl_edge_skater_detail()
NHL Edge Skater Detail
nhl_edge_skater_landing()
NHL Edge Skater Landing
nhl_edge_skater_comparison()
NHL Edge Skater Comparison
nhl_edge_skater_shot_location_detail()
NHL Edge Skater Shot Location Detail
nhl_edge_skater_shot_location_top_10()
NHL Edge Skater Shot Location Top 10
nhl_edge_skater_shot_speed_detail()
NHL Edge Skater Shot Speed Detail
nhl_edge_skater_shot_speed_top_10()
NHL Edge Skater Shot Speed Top 10
nhl_edge_skater_skating_speed_detail()
NHL Edge Skater Skating Speed Detail
nhl_edge_skater_speed_top_10()
NHL Edge Skater Speed Top 10
nhl_edge_skater_skating_distance_detail()
NHL Edge Skater Skating Distance Detail
nhl_edge_skater_distance_top_10()
NHL Edge Skater Distance Top 10
nhl_edge_skater_zone_time()
NHL Edge Skater Zone Time
nhl_edge_skater_zone_time_top_10()
NHL Edge Skater Zone Time Top 10
nhl_cat_edge_skater_detail()
NHL CAT Edge Skater Detail

NHL Edge Analytics - Goalie

Goalie advanced metrics from NHL Edge (api-web.nhle.com/v1/edge/goalie-*)

nhl_edge_goalie_detail()
NHL Edge Goalie Detail
nhl_edge_goalie_landing()
NHL Edge Goalie Landing
nhl_edge_goalie_comparison()
NHL Edge Goalie Comparison
nhl_edge_goalie_5v5_detail()
NHL Edge Goalie 5v5 Detail
nhl_edge_goalie_5v5_top_10()
NHL Edge Goalie 5v5 Top 10
nhl_edge_goalie_save_percentage_detail()
NHL Edge Goalie Save Percentage Detail
nhl_edge_goalie_edge_save_pctg_top_10()
NHL Edge Goalie Edge Save Percentage Top 10
nhl_edge_goalie_shot_location_detail()
NHL Edge Goalie Shot Location Detail
nhl_edge_goalie_shot_location_top_10()
NHL Edge Goalie Shot Location Top 10
nhl_cat_edge_goalie_detail()
NHL CAT Edge Goalie Detail

NHL Edge Analytics - Team

Team advanced metrics from NHL Edge (api-web.nhle.com/v1/edge/team-*)

nhl_edge_team_detail()
NHL Edge Team Detail
nhl_edge_team_landing()
NHL Edge Team Landing
nhl_edge_team_shot_location_detail()
NHL Edge Team Shot Location Detail
nhl_edge_team_shot_location_top_10()
NHL Edge Team Shot Location Top 10
nhl_edge_team_shot_speed_detail()
NHL Edge Team Shot Speed Detail
nhl_edge_team_skating_speed_detail()
NHL Edge Team Skating Speed Detail
nhl_edge_team_skating_speed_top_10()
NHL Edge Team Skating Speed Top 10
nhl_edge_team_skating_distance_detail()
NHL Edge Team Skating Distance Detail
nhl_edge_team_skating_distance_top_10()
NHL Edge Team Skating Distance Top 10
nhl_edge_team_zone_time_details()
NHL Edge Team Zone Time Details
nhl_edge_team_zone_time_top_10()
NHL Edge Team Zone Time Top 10

NHL Records API

Historical records from records.nhl.com/site/api/

nhl_records_franchise()
NHL Records - Franchise Listing
nhl_records_franchise_detail()
NHL Records - Franchise Detail
nhl_records_franchise_totals()
NHL Records - Franchise Totals
nhl_records_franchise_team_totals()
NHL Records - Franchise Team Totals
nhl_records_franchise_season_results()
NHL Records - Franchise Season Results
nhl_records_franchise_playoff_appearances()
NHL Records - Franchise Playoff Appearances
nhl_records_player()
NHL Records - Player Listing
nhl_records_player_byteam()
NHL Records - Players by Team
nhl_records_player_stats()
NHL Records - Player Career Stats
nhl_records_skater_real_time_stats_season()
NHL Records - Skater Real-Time Stats by Season
nhl_records_skater_real_time_stats_career()
NHL Records - Skater Real-Time Stats Career
nhl_records_goalie_career_stats()
NHL Records - Goalie Career Stats
nhl_records_goalie_season_stats()
NHL Records - Goalie Season Stats
nhl_records_goalie_shutout_streak()
NHL Records - Goalie Shutout Streaks
nhl_records_draft()
NHL Records - Draft Listing
nhl_records_draft_lottery_odds()
NHL Records - Draft Lottery Odds
nhl_records_draft_lottery_picks()
NHL Records - Draft Lottery Picks
nhl_records_draft_prospect()
NHL Records - Draft Prospect Listing
nhl_records_trophy()
NHL Records - Trophy Listing
nhl_records_award_details()
NHL Records - Award Details
nhl_records_hof_players()
NHL Records - Hall of Fame Players
nhl_records_officials()
NHL Records - On-Ice Officials
nhl_records_attendance()
NHL Records - Season Attendance
nhl_records_venue()
NHL Records - Venue Listing
nhl_records_combine()
NHL Records - Draft Combine Measurements

NHL Helper Aggregators

Convenience functions that combine multiple NHL endpoint calls into a single tidy frame

nhl_game_ids_by_season()
NHL Game IDs by Season
nhl_all_players_by_season()
NHL All Players by Season
nhl_player_career_stats()
NHL Player Career Stats
nhl_team_summary_range()
NHL Team Summary (Season Range)
nhl_skater_summary_range()
NHL Skater Summary (Season Range)
nhl_goalie_summary_range()
NHL Goalie Summary (Season Range)

Broadcast and Odds

Functions exported by fastRhockey for broadcast availability and odds

nhl_where_to_watch()
NHL Where to Watch
nhl_partner_game_odds()
NHL Partner Game Odds
nhl_tv_schedule()
NHL TV Schedule

Conference and Division Data

Functions exported by fastRhockey sourced from the conferences and divisions endpoints of the NHL API

nhl_conferences()
NHL Conferences
nhl_conferences_info()
NHL Conference Info
nhl_divisions()
NHL Divisions
nhl_divisions_info()
NHL Divisions Info

Metadata and Reference

Functions exported by fastRhockey for NHL metadata, location lookups, replays, and miscellaneous reference data

nhl_meta()
NHL Meta
nhl_location()
NHL Location
nhl_wsc_pbp()
NHL WSC Play-by-Play
nhl_draft_tracker()
NHL Draft Tracker
nhl_ppt_replay()
NHL PPT Replay
nhl_ppt_replay_goal()
NHL PPT Replay (Goal)
nhl_postal_lookup()
NHL Postal Lookup
nhl_smartlinks()
NHL Smart Links

fastRhockey Data

Full Seasons of NHL Data

Functions exported by fastRhockey which load full seasons of fastRhockey NHL data

load_nhl_pbp()
Load fastRhockey NHL play-by-play
load_nhl_pbp_lite()
Load fastRhockey NHL play-by-play (lite)
load_nhl_team_box()
Load fastRhockey NHL team box scores
load_nhl_player_box()
Load fastRhockey NHL player box scores
load_nhl_skater_box()
Load fastRhockey NHL skater box scores
load_nhl_goalie_box()
Load fastRhockey NHL goalie box scores
load_nhl_rosters()
Load fastRhockey NHL team rosters
load_nhl_game_rosters()
Load fastRhockey NHL per-game rosters
load_nhl_schedule()
Load fastRhockey NHL schedules
load_nhl_game_info()
Load fastRhockey NHL game info
load_nhl_scoring()
Load fastRhockey NHL scoring summary
load_nhl_penalties()
Load fastRhockey NHL penalty summary
load_nhl_three_stars()
Load fastRhockey NHL three stars / decisions
load_nhl_scratches()
Load fastRhockey NHL scratches
load_nhl_linescore()
Load fastRhockey NHL linescore
load_nhl_shifts()
Load fastRhockey NHL shifts
load_nhl_officials()
Load fastRhockey NHL officials
load_nhl_shots_by_period()
Load fastRhockey NHL shots by period
load_nhl_shootout()
Load fastRhockey NHL shootout summary

Update or Create NHL Database

Functions exported by fastRhockey which update and create a database of fastRhockey NHL play-by-play data

update_nhl_db()
Update or create a fastRhockey NHL play-by-play database

Included data

Data included within the package

nhl_team_logos phf_team_logos
Data in the package for reference

Helpers

Helper Functions

Functions used internally by fastRhockey which assist in transforming or loading data

csv_from_url()
Load .csv / .csv.gz file from a remote connection
progressively()
Progressively
rds_from_url()
Load .rds file from a remote connection
most_recent_nhl_season()
Most Recent NHL Season
most_recent_nhl_season_api_param()
Most Recent NHL Season for NHL API
most_recent_pwhl_season()
Most Recent PWHL Season
most_recent_phf_season() deprecated
Most Recent PHF Season
helper_nhl_calculate_xg()
Calculate expected goals (xG) for play-by-play data
refresh_xg_models()
Force re-download of xG models

Deprecated PHF Functions

The Premier Hockey Federation (PHF) has ceased operations. These functions are deprecated and will emit warnings when called. Historical data may still be available via the load_phf_* functions.

phf_game_all() deprecated
PHF Game All
phf_pbp() deprecated
phf_pbp
phf_team_box() deprecated
PHF Team Boxscore
phf_player_box() deprecated
PHF Player Boxscore
phf_schedule() deprecated
PHF Schedule
phf_league_info() deprecated
PHF League Information
phf_game_raw() deprecated
PHF Game Raw
phf_game_details() deprecated
PHF Game Details
phf_game_summary() deprecated
PHF Game Summary
phf_leaders() deprecated
PHF Player Leaderboards
phf_player_stats() deprecated
PHF Player Stats
phf_standings() deprecated
PHF Standings
phf_team_roster() deprecated
PHF Team Roster
phf_team_stats() deprecated
PHF Team Stats

Deprecated PHF Data Loaders

Data loaders for the defunct PHF league. Historical data may still be available but is no longer updated.

load_phf_pbp() deprecated
Load fastRhockey PHF play-by-play
load_phf_team_box() deprecated
Load fastRhockey PHF team box scores
load_phf_player_box() deprecated
Load fastRhockey PHF player box scores
load_phf_rosters() deprecated
Load fastRhockey PHF team rosters
load_phf_schedule() deprecated
Load fastRhockey PHF schedules
update_phf_db() deprecated
Update or create a fastRhockey PHF play-by-play database