onice is an independent, unofficial NHL stats site with one aim: to give you more than a table to look at. Every table is also an API, so you can take the deep numbers into your own app, bot or notebook, and you can check how good they are.
Why onice
- An open NHL stats API. Every table is also JSON, with an OpenAPI description, the version of the metrics in every answer and a free key for the newest two seasons. A Python package (
pip install onice) and a connection for AI assistants (uvx onice-mcp) come with it. On the four other sites compared below we did not find an open API or an AI assistant connection (as read on 25 November 2026). - WAR and RAPM for free. In the Skaters table: even strength, power play, penalty kill, finishing and penalties, with no subscription and no account needed to read the tables.
- Free CSV files. Every season of the skater, goalie, team, pair and line tables, free for non-commercial use.
- Shift performance by the second. See how a player's team does at second 5 and at second 45 of his shift, next to his teammates and the league.
- Numbers you can check. The method of every number is written down, the tests of the xG model are published and counted every day, and the totals are compared with the NHL box score.
- Tools, not only tables. Lines with and without any group of up to five players, a chart builder with Copy image and Embed buttons, player comparison and fantasy tools with off-nights in the calendar.
Build with the onice API
Most hockey stats sites are made to be read. onice is made to be built on too: what you see in a table is one request away as JSON.
curl -H "X-API-Key: YOUR_KEY" "https://onice.dev/api/v1/tables/skaters?seasons=20262027&sit=5v5&limit=20"
Or in Python, after pip install onice:
import onice
client = onice.Client("YOUR_KEY")
client.find_player("mcdavid")
page = client.skaters(seasons="20262027", sit="5v5", sort="xgf_pct", limit=20)
page.data[0]
What you can ask for
- Skater, goalie and team tables by season, situation and score state, with expected goals, RAPM, GAR and WAR.
- Lines, defensive pairs and with or without numbers for any group of players.
- Games, player and team profiles, the schedule with off-nights, and fantasy lists.
- Shot by shot data, shifts and NHL EDGE on the Pro plan.
What it is good for: a fantasy or Discord bot, a dashboard, a model of your own, a newsletter that updates its own tables, or an AI assistant that answers with real numbers (uvx onice-mcp).
How it works
- A free key comes with an account and covers the newest two seasons. Paid plans open every season and commercial use.
- Requests are counted in credits by the rows you get, and every answer says what it cost and what is left.
- Every answer carries the version of the metrics, so you know when a calculation changed.
Get a free key, read the documentation or compare the plans.
What WAR is made of
Wins above replacement (WAR) on onice is a sum you can open: even strength, power play, penalty kill, finishing and penalties, on top of the gap between an average and a replacement player.
1. Every number says how it is made
The Methodology page has the whole chain: where the NHL data comes from, how shifts become stints, how every expected goals (xG) value is calculated, how the score and venue adjustment follows the method of Micah McCurdy, how RAPM, GAR and WAR are built, and what each model does not know.
- xG is gradient boosting on 152,692 unblocked attempts from the newest seasons (2025-26 and 2026-27), with 50 inputs, and every input is listed on the page: the place and the kind of the shot, rebounds and rushes, the strength on the ice, the play before the shot and how long the players on the ice had been in their shifts. Every finished season has a level of its own, so its xG adds up to its goals.
- WAR includes the special teams. A second RAPM is fitted on the 5-on-4 stints, so a player has his own power-play offense (PPO) and penalty-kill defense (SHD) next to even-strength offense and defense, finishing and penalties. GAR and WAR explained.
- Limits are written on the same page. What the model does not see (the shooter, the goalie, the pass, the screen) is in plain words.
2. The checks are public
We do not only say that the numbers are right. We show how we test them. The figures about the data and the xG model are counted from the database every day (last count: 27 November 2026).
Against the NHL. The personal totals of each game are compared with the official box score, and season totals with the season reports of the NHL. This check was made in the autumn of 2026 and is repeated after big changes of the data:
| Number | Result |
|---|---|
| Goals, hits, blocks, giveaways, takeaways | 100% of players exactly equal |
| Shots on goal | 98.6% and 96.9% of players exactly equal (2023-24, 2025-26) |
| Penalty minutes | 98.4% and 99.6% of players exactly equal |
| 5-on-5 shot attempts for (on ice) | median error 0.77% |
The xG model on games it never saw. We train a copy without the newest season that has enough games and test it on that season. On 2026-27, so far, that is 33,335 attempts and 2,514 goals, and the copy expected 2,492. The AUC is 0.784, and the log loss is 0.2262, 15.4% better than guessing the average rate (0.2674).
Calibration by ten equal groups of shots, from the least to the most dangerous (predicted against actual share of goals):
| Group | Predicted | Actual |
|---|---|---|
| 1 | 0.5% | 0.3% |
| 2 | 1.1% | 1.1% |
| 3 | 1.8% | 1.9% |
| 4 | 2.7% | 3.1% |
| 5 | 3.9% | 4.2% |
| 6 | 5.6% | 5.5% |
| 7 | 7.6% | 7.7% |
| 8 | 10.2% | 10.4% |
| 9 | 14.2% | 14.5% |
| 10 | 27.3% | 26.6% |
Season by season. The first row below is the season being played. For every finished season the xG adds up to the goals scored: the ratio of xG to goals is 1.00 in each of them. This is how the model is fitted, so it shows that the totals are honest, and the test above shows how well it predicts.
| Season | Attempts | Goals | xG | xG / goals | Model learned from it |
|---|---|---|---|---|---|
| 2026-27 | 45,500 | 2,514 | 2,443 | 0.97 | yes |
| 2025-26 | 163,021 | 8,572 | 8,572 | 1.00 | yes |
| 2024-25 | 167,050 | 8,435 | 8,435 | 1.00 | no |
| 2023-24 | 170,649 | 8,590 | 8,590 | 1.00 | no |
| 2022-23 | 163,771 | 8,801 | 8,801 | 1.00 | no |
| 2021-22 | 159,827 | 8,712 | 8,712 | 1.00 | no |
| 2020-21 | 103,868 | 5,491 | 5,491 | 1.00 | no |
| 2019-20 | 138,568 | 7,157 | 7,157 | 1.00 | no |
| 2018-19 | 156,835 | 8,059 | 8,059 | 1.00 | no |
| 2017-18 | 159,941 | 7,943 | 7,943 | 1.00 | no |
| 2016-17 | 148,944 | 7,150 | 7,150 | 1.00 | no |
| 2015-16 | 147,449 | 7,043 | 7,043 | 1.00 | no |
| 2014-15 | 148,210 | 6,996 | 6,996 | 1.00 | no |
| 2013-14 | 148,535 | 7,090 | 7,090 | 1.00 | no |
| 2012-13 | 89,434 | 4,251 | 4,251 | 1.00 | no |
| 2011-12 | 146,253 | 6,961 | 6,961 | 1.00 | no |
| 2010-11 | 149,404 | 7,220 | 7,220 | 1.00 | no |
The three small models. The same inputs feed models for rebounds, freezes and misses. Their tests are published too, and they are weaker than the xG model, so the page says to read those columns as rough: rebound AUC 0.645, freeze 0.628, miss 0.610.
3. The xG models side by side
There is no single "expected goals". Each site makes its own model, and the differences matter when you compare numbers. This is how the models are described by the sites themselves (sources below the table). Each site tests on different games, so their quality figures are not compared here.
| Site | Kind of model | Shots counted | What is published about the quality | How to get the numbers |
|---|---|---|---|---|
| onice | Gradient boosting, 50 inputs, every input listed | Unblocked attempts | AUC, log loss and calibration by ten groups on a held-out season and the season totals, counted every day, and a check against the NHL | Tables, charts, free CSV files, a free API, a Python package and an AI assistant connection |
| MoneyPuck | Gradient boosting, rebuilt for 2026-27 | Unblocked attempts (blocked ones count as 0 xG) | AUC by season | Tables and free data files for non-commercial use |
| HockeyStats.com | Gradient boosting (XGBoost), four models by strength state | Unblocked attempts | AUC by strength state, calibration target | Tables, part of them by subscription |
| HockeyViz | "Magnus 9" (xG, shooting and goaltending models) | Shots with the setup of the shot | The model write-up | Charts and tables, part of them by subscription |
| Evolving-Hockey | XGBoost | Unblocked attempts (Fenwick) | A public paper | Tables by subscription |
Where onice stands out is what surrounds the model: it is written down input by input, its tests are published, and the same numbers come as a table, a chart, a file and an API.
Sources: the About and Data pages of MoneyPuck (moneypuck.com/about.htm, moneypuck.com/data.htm), the methodology pages of HockeyStats (hockeystats.com/methodology/expected-goals), the model pages of HockeyViz (hockeyviz.com/txt/xg9) and the glossary of Evolving-Hockey, read on 25 November 2026.
4. Take the numbers with you
- Files. The Data page has every season of the skater, goalie, team, pair and line tables as CSV, with a data dictionary, free for non-commercial use with a credit to onice.dev.
- Charts. The charts of the site, such as the chart builder and rolling averages, have Copy image and Embed buttons, so a blogger or a newsletter can use them with a credit.
5. See it on real data
Four things onice does, with real numbers from the site (regular season 2025-26, taken on 27 November 2026).
With and without: how much does a pair really matter?
In the Lines tool you pick a team and up to five of its players and see how the team does with all of them on the ice, with each one without the others, and with none of them. Edmonton at 5-on-5:
| On the ice | Minutes | Expected goals share (xGF%) | Goals for - against |
|---|---|---|---|
| McDavid and Draisaitl together | 318 | 64.1% | 18 - 16 |
| McDavid without Draisaitl | 1,070 | 54.4% | 58 - 52 |
| Draisaitl without McDavid | 723 | 51.4% | 43 - 34 |
| Neither of them | 1,982 | 45.6% | 55 - 86 |
Together they created far better chances than the opponent, McDavid alone still had the better of it, and the team was outplayed when neither was on the ice. The first row also has the smallest sample (318 minutes), and its goals (18 for, 16 against) are much closer to even than its expected goals (22.1 for, 12.4 against). That gap is why the page shows both.
Luck and regression: who ran hot or cold?
Goals tell you what happened. Expected goals tell you what the chances were worth. The luck page lists the difference for shooters, teams and goalies. Morgan Geekie scored 39 goals from chances worth 24.1, Anders Lee 19 from chances worth 28.5.
A large gap is a reason to look closer, not a promise about next season. Some shooters finish better than the model expects year after year.
Shift performance: how does a shift go, second by second?
The tool shows a player's team by the second of his shift: expected goals for and against per 60 minutes, next to his teammates at the same position and the league. Here is Connor McDavid.
Power play and penalty kill in WAR
The Skaters table breaks GAR into its parts. Connor McDavid had 25.5 GAR (about 4.1 wins), 5.4 of it from the power play. Miro Heiskanen added value on both special teams: 1.7 goals on the power play and 1.0 on the penalty kill, next to 3.5 from even-strength defense.
And more: NHL EDGE (skating speed, shot speed, zone time) next to the on-ice numbers, RAPM, QoT and QoC, GAR and WAR with the method written down, Compare players, and fantasy tools (off-nights in the calendar, risers and fallers, buy and sell lists tested on past seasons, a trade check).
Try it
Start with the team tables, open a player, download the data, or read the Glossary for what each column means. If you find a number that looks wrong, write to us: the checks above get better with every pair of eyes.