nhlscraper: Scraper for National Hockey League Data

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.

Version: 0.7.0
Depends: R (≥ 4.1.0)
Imports: httr2 (≥ 1.2.0), jsonlite (≥ 2.0.0), xml2 (≥ 1.5.0), arrow (≥ 23.0.0), xgboost (≥ 3.2.0)
Suggests: testthat (≥ 3.0.0), knitr (≥ 1.50.0), rmarkdown (≥ 2.29.0)
Published: 2026-06-28
DOI: 10.32614/CRAN.package.nhlscraper
Author: Rento Saijo ORCID iD [aut, cre, cph], Lars Skytte [ctb], Jack Pallotta ORCID iD [ctb]
Maintainer: Rento Saijo <rentosaijo0527 at gmail.com>
BugReports: https://github.com/RentoSaijo/nhlscraper/issues
License: GPL (≥ 3)
Copyright: NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams.
URL: https://rentosaijo.github.io/nhlscraper/, https://github.com/RentoSaijo/nhlscraper
NeedsCompilation: yes
Materials: README, NEWS
In views: SportsAnalytics
CRAN checks: nhlscraper results

Documentation:

Reference manual: nhlscraper.html , nhlscraper.pdf
Vignettes: How Much Do Back-to-Backs Cost? (source, R code)
When Did NHL Teams Draft the Biggest Skaters? (source, R code)
How nhlscraper Scores Expected Goals (source, R code)
What Separated Florida and Edmonton in Game 7? (source, R code)
How the Play-By-Play Pipeline Works (source, R code)
Do Bigger Skaters Translate Better in the Playoffs? (source, R code)
Do Elite Teams Build Offense the Same Way? (source, R code)

Downloads:

Package source: nhlscraper_0.7.0.tar.gz
Windows binaries: r-devel: nhlscraper_0.7.0.zip, r-release: nhlscraper_0.6.1.zip, r-oldrel: nhlscraper_0.7.0.zip
macOS binaries: r-release (arm64): nhlscraper_0.7.0.tgz, r-oldrel (arm64): nhlscraper_0.7.0.tgz, r-release (x86_64): nhlscraper_0.7.0.tgz, r-oldrel (x86_64): nhlscraper_0.7.0.tgz
Old sources: nhlscraper archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nhlscraper to link to this page.