nhlapi

A minimum-dependency R interface to the NHL API.

CRAN Checks Remote API Tests Coverage

Installation

You can install nhlapi from CRAN.

install.packages("nhlapi")

You can also install the latest development version from the master branch on GitHub using the remotes package:

remotes::install_github("jozefhajnala/nhlapi")

Usage

You retrieve the data from the NHL API by calling the functions exported by the nhlapi package. They start with nhl_ so you can easily find them with autocomplete in your favourite editor:

nhlapi Preview

Implemented API endpoints

Major endpoints

Minor endpoints

Metadata endpoints

Acknowledgments

Thanks go to Drew Hynes for documenting this so well in https://gitlab.com/dword4/nhlapi/blob/master/stats-api.md

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. © NHL 2020. All Rights Reserved.