Guides
Hockey data, one question at a time
Working Python, JavaScript and cURL for common hockey data questions, each run against the live API with the real response shown.
How do I get an NHL goalie's save percentage by game in Python?
A goalie's game log for a season with shots against, saves, goals against and the decision, ready for a rolling save percentage.
get_player_game_log · 5 credits
How do I rank NHL goalies by goals saved above expected?
A goalie leaderboard for a season sorted by goals saved above expected, with save percentage, GAA, high-danger save percentage and a recent-form trend.
get_goalie_stats · 5 credits
How do I get NHL play-by-play data in Python?
Every event in a game in order, with rink coordinates, strength state, zone and the players involved, loaded into pandas.
get_plays · 10 credits
How do I get NHL shot locations for a shot map in Python?
Every shot attempt in a game with rink x and y, shot type, strength, shooter and goalie, and a distance to the net computed in pandas.
get_shot_map · 10 credits
How do I get NHL opening and closing odds by sportsbook in Python?
Every sportsbook's opening and closing moneyline and puck line for a game, so you can measure how far the price moved.
get_odds · 10 credits