Developers and writers

Track record API and embed

StatWarrior grades its own projections and pre-lock lineups against official box scores every morning. The results are public as JSON, free to read without a key, and available as a small embed you can paste into a post.

Read the API Get the embed

The API

One request returns the last 30 days of grading. There is no key, no account and no rate tier. Answers are cached for five minutes and the data changes once a day, after the morning grading run.

GET https://statwarrior.com/api/track-record
curl -s https://statwarrior.com/api/track-record
const t = await fetch("https://statwarrior.com/api/track-record").then(r => r.json());
for (const g of t.groups) console.log(g.sport, g.site, g.slates, g.projMae);

Browser requests from any site are allowed (Access-Control-Allow-Origin: *). The response is read-only and holds no account or customer data.

Fields

The top level has updated (ISO time of the last grading run), since (first day in the window), method (a plain-language description of the grading), groups, days and calibration.

groups: one row per sport and site

FieldMeaning
sport, siteSport code (nba, nfl, nhl, mlb and others) and site (dk DraftKings, fd FanDuel).
slates, daysSlates graded in the window, and the number of days they span.
projMae, projCorrAverage absolute projection error in fantasy points, and the correlation between projected and actual points.
projByPosError and bias per position, for positions with at least 20 graded players.
aboveCeil, belowFloorShare of players who beat their P90 or fell under their P10. The ranges are right when both sit near 0.10.
builtSlates with graded pre-lock WarriorSim lineups.
warriorSimBest, warriorSimAvgAverage real points of the best pre-lock lineup, and of all pre-lock lineups.
plainPointsAverage real points of the plain max-projection lineup, for comparison.
perfectPoints, pctOfPerfectThe perfect-hindsight lineup's points, and the best pre-lock lineup as a share of it.
top1Rate, cashRateShare of pre-lock lineups finishing in the top 1% and top 20% of the modeled field.
bestFinishPct, plainFinishPctAverage finish of the best pre-lock lineup and of the max-projection lineup, as a share of the field (0.03 is the top 3%).

days: the latest graded days, slate by slate

Each entry has sport, date, games, complete and a slates list. Each slate carries site, name, mae, corr and, where lineups were built before lock, a prelock object with lineups, best, avg, plain, perfect, pctOfPerfect, bestRank, entries, top1 and cash.

How the grading is done, step by step, is on the track record page.

Other sports

Sports graded on outcomes instead of fantasy points have their own summaries, in the same open format. Each answer includes a method field describing its grading.

EndpointWhat it grades
/api/track-record/golfCut, top-5 and win probabilities against the official PGA Tour leaderboard.
/api/track-record/mmaWin and finish probabilities against official fight results.
/api/track-record/soccerExpected goals, clean-sheet and win probabilities against final scores.
/api/track-record/tennisWin probability and expected games against official ATP and WTA results.

The embed

Paste this where you want the table to appear. It draws the last 30 days for the sport and site you choose, sets no cookies and loads nothing else.

<div data-statwarrior="track-record" data-sport="nba" data-site="dk">
  <a href="https://statwarrior.com/track-record">WarriorSim track record by StatWarrior</a>
</div>
<script async src="https://statwarrior.com/assets/js/embed/track-record.js"></script>
  • data-sport: nba, nfl, nhl, mlb or any sport code in the API. Leave it out to show every graded sport.
  • data-site: dk or fd. Leave it out to show both.
  • data-theme: dark (default) or light.

This is the embed running on this page, for every sport:

WarriorSim track record by StatWarrior

Terms of use

  • Free to use in articles, newsletters, research, dashboards and apps, commercial or not.
  • Credit StatWarrior with a link to statwarrior.com/track-record wherever the numbers appear.
  • Say what it is. Lineup finishes come from a modeled 1,000-entry field scored with real points, not from a real contest. Please keep that wording when you quote them.
  • Don't present it as a promise. These are past results of a model. They are not guarantees of future results, and they are not betting or financial advice.
  • Be reasonable with requests. The data changes once a day, so one request every few minutes is plenty.

Questions, or a field you need that isn't here: contact us.

Model estimates and past results are not guarantees of future results. StatWarrior is a research tool, not a sportsbook or a DFS operator. Must be 18+ (21+ where required by law).