A minimum-dependency R interface to the NHL API.

CRAN Checks Remote API Tests Coverage


You can install nhlapi from CRAN.


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



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


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.