4 tutorials

Hockey

The NHL's public API needs no key. Pull standings and play-by-play, then plot shots on a rink you draw yourself.

Level:
One team's shot attempts plotted on a drawn rink from real play-by-play.
Hockey Intermediate

Build a Shot-Location Plot for an NHL Team

Pull a game's play-by-play from the NHL API, draw a rink in matplotlib, and plot one team's shot attempts in rink coordinates to see where they attack from.

~8 min
A team's game-by-game form as a rolling goal differential line.
Hockey Intermediate

Track a Team's Form: Rolling Goal Differential

Pull a team's full NHL schedule with scores, compute a rolling goal differential, and chart the peaks and slumps of a season - reading momentum straight from the data.

~9 min
A clean leaderboard of the season's top goal scorers.
Hockey Intermediate

Build an NHL Goal-Scoring Leaders Chart

Use the NHL's stats-leaders endpoint to pull the top goal scorers, shape the nested JSON into a tidy table, and build a leaderboard chart with each player's team.

~8 min