Category: Fantasy Football

  • I Put My NFL Data API Inside ChatGPT and Claude: A Hands-On Guide

    I Put My NFL Data API Inside ChatGPT and Claude: A Hands-On Guide

    Quick break from the weekly recaps. If you’ve been following along, you know I run my fantasy team off a data set I’ve been building at GridIron Data. What you might not know is that you don’t need any code to use it. You can just ask an AI assistant.

    GridIron Data has a hosted MCP server, which means ChatGPT, Claude, Cursor and a bunch of other assistants can call the API for you. You sign in with OAuth (or pass an API key) and every call runs on your own key and plan. In Claude Code it’s one line:

    claude mcp add --transport http gridiron-data -s user https://api.gridirondata.com/mcp

    In ChatGPT or Claude on the web you add the same URL as a connector. Then “who are the top PPR receivers this week?” is a question, not a script.

    Here’s how a week of questions might go. Early in the week, ask who got ruled out or downgraded since yesterday. Injury statuses are checked every two minutes from 8am to 1am ET. Then “who’s next man up at RB for Detroit?” (go Lions!), which hits the depth chart tool. Then which defenses have given up the most points to tight ends lately. Those three run on the Pro plan. This week’s projections are on the free key, so anyone can start there.

    A few things I learned building it:

    • Tool descriptions are the new docs. The assistant reads them to decide what to call. Vague descriptions meant wrong calls, so I rewrote every one.
    • Errors should help. When a free key hits a Pro tool, the error names the plan it needs, and the assistant just passes that along.
    • Say your scoring format. PPR is the default. If your league is half or standard, say so or the rankings won’t match.

    One heads-up: the free plan is 250 requests a month, and an assistant might make two or three calls to answer one question. It adds up faster than you’d think.

    My favorite trick? When an answer looks off, ask the assistant which tool it called and with what inputs. Most of the time the fix is a better question, not a bug.

    Try it before Sunday! A free key (no card) covers player lookups, this week’s projections and last week’s box scores. If you hook it up to your assistant, shoot me a message and let me know what you ask it. That’s where most of my ideas for this come from.

  • What I’ve added to GridIron Data in the last month

    What I’ve added to GridIron Data in the last month

    If you’ve been following my fantasy football posts, you know I run my team off a data set I’ve been building at gridirondata.com. Over the last month or so it went from “an API I use for my own team” to something I’d actually put up against the paid services. My team is 6-3 and in second place overall, though I’m on a two-week losing streak, so the data isn’t magic. I’ve been actively building and adding new features (and users!).

    It works inside your AI assistant now

    This is the big one. GridIron Data now has a hosted MCP server, so you can connect it to ChatGPT, Claude, Cursor, VS Code, Gemini CLI and a few others. You sign in with your GridIron account and then just ask questions:

    • “What are the top 10 RB projections for week 11 in half-PPR?”
    • “Any injury news on this player?”
    • “Who are the Bears’ starting wide receivers?”

    The assistant pulls the answer from live data instead of guessing. There’s a setup guide with a page for each assistant (ChatGPT, Claude, Cursor, Gemini CLI, GitHub Copilot), and it’s listed in the official MCP Registry. I’ve also submitted it to the Claude and Perplexity directories, and the ChatGPT plugin is in review.

    This fixed the exact problem I wrote about in week 7, when my AI agent didn’t know Trevor Lawrence and Josh Allen were on bye. It can look that up now.

    My own weekly projections

    Until now the projections came from outside sources. GridIron now makes its own. They start from public play-by-play data and weather, then blend in sportsbook player prop lines, snap share and a bias correction. On game day they refresh as inactives come out, and they freeze at kickoff.

    Every Tuesday a report card grades last week’s projections against what actually happened. If they’re off, you’ll see it.

    Injuries within minutes

    Injury statuses now update within a couple of minutes of a change, with a daily cross-check against a second source. Pro accounts can get those changes pushed to them by webhook, so you don’t have to keep asking.

    Injury and news history is kept for about three years now, which is what made my in-game injury backtest possible.

    Betting and prop data

    A note first: I don’t condone or support gambling. This section is for people who build their own models and like the numbers, and nothing here is betting advice.

    For the people who build their own prop models:

    • Player-prop probabilities: give it a stat line and it returns the chance of going over or under, plus fair no-vig odds. It’s a model estimate.
    • Per-stat projections, odds on the schedule and defense vs position.
    • A usage endpoint with target share and carry share, and box score lines on the stats.
    • A Friday post with the week’s usage data for prop modelers, and a guide for pricing props yourself.

    More of the data you need on game day

    • Depth charts for all 32 teams, with the real starter at every position on offense and defense.
    • Official game-day inactives.
    • Offensive line injury data, because a missing left tackle matters more than people think.
    • Rest-of-season projections, the schedule and bye weeks.
    • Lookups by ESPN or NFL player id, so it’s easier to match against other data sets.
    • The news desk now follows the top 300 players instead of 150.

    Easier to start, easier to pay for

    • Sign in with Google or GitHub.
    • A free plan that covers player lookups and this week’s projections.
    • Yearly billing: Basic is $45 a year and Pro is $249 a year.
    • A Pro + Commercial plan ($49 a month or $490 a year) for anyone building a product on the data, with a commercial license.
    • An off-season pause, so you’re not paying in March. It picks back up August 1.
    • An affiliate program that pays out through Stripe.

    Guides and videos

    Most of the guides now have a short narrated video walkthrough: start/sit, streaming by matchup history, backtesting projections, pricing props, the trade analyzer and connecting an AI assistant. They’re all on the guides page. There’s also a Python client and a published OpenAPI spec if you’d rather skip straight to code.

    You can also follow along on X at @gridirondata_ai. It posts the Friday prop notes and the Wednesday projection grades automatically.

    What’s next

    Next up is getting ready for the off-season: rookies, the draft and dynasty data, so there’s something useful between February and August.

    If you play fantasy football or tinker with sports data, a free account is at gridirondata.com. If you connect it to your AI assistant, let me know what you ask it. That’s where most of my ideas for this have come from.

  • Fantasy Football and AI – Week 6 results and a look at week 7

    Fantasy Football and AI – Week 6 results and a look at week 7

    Week 6 came and went. It was fairly uneventful from our teams perspective. We streamed a new defense as the Vikings were on BYE. The Chiefs turned up big against the lack luster Chargers. We took down another team and are now 5-1 on the season and currently in first place!

    As I looked into planning week 7’s starting lineup the AI agent was failing to see that Trevor Lawrence and Josh Allen were on BYE.

    Here are some changes that the AI has suggested and we implemented for week 7.

    So, a pretty decent shake up this week. I’m hoping we can get the hot hand of Trevor Lawrence back in week 8 but we shall see who claims who!

  • Can we predict in-game injuries? I tested it and week 4 results

    Can we predict in-game injuries? I tested it and week 4 results

    Last week I asked a question: can we predict in-game injuries? If we were starting Sam Darnold in week 1, was there any way to see his injury coming? I said the first step was a backtest to see if the signal is real. I ran it. Here is what I found.

    Step 1: Can we even label an injury?

    There is no clean dataset of “player left the game hurt.” So the idea was to find them in the snap counts: a player who normally plays most of the snaps suddenly plays less than half of his usual share, and then misses the next game or shows up on the injury report.

    I ended up using nflverse instead of only the GridIron Data history, because it is free, public and goes back further. Snap counts there start in 2013, so the test covers 2013 through 2025. That gave me about 980 confirmed in-game exits, roughly 75 a season, out of 2,662 big snap drops.

    Then I checked whether those labels were actually injuries. The play-by-play data often says “was injured during the play,” which is completely separate from the snap counts and the injury reports, so it makes a decent referee.

    • My original rule was about 79% accurate. I wanted 85% before trusting it.
    • A stricter rule, where the player was listed Out or Doubtful for the next game or simply missed it, came in around 87%. That is the version I kept.
    • Practice reports on their own were close to a coin flip. A “limited” practice the next week is not the same thing as an injury.

    So the signal exists. Now the harder question: can you see it coming before kickoff?

    Step 2: The model

    I gave the model ten things you would know before the game starts:

    • Injury status going into the game (Questionable, etc.)
    • Practice participation that week
    • Prior in-game exits
    • Age
    • Position
    • Touches over the last four games
    • Days of rest
    • Short week
    • Turf or grass
    • Special teams snaps

    The one rule that matters most here: no peeking. Every input had to be public before kickoff. I wrote a test that deliberately scrambles everything from the future and fails if the model’s inputs change. It caught both of the mistakes I planted to check it.

    I trained on 2013 through 2022, tuned on 2023 and 2024, and kept 2025 locked away until the very end so I could only score it once.

    Step 3: The results

    2025 (never seen by the model)
    Better than just guessing each position’s average1.3%
    Injury rate in the top 10% riskiest players2.3x the average
    Beat the average at every positionNo (QBs failed)

    The top 10% list is the interesting part. The players the model flagged as riskiest really did leave games about twice as often as everyone else. But overall it was only about 1% better than simply knowing that, say, running backs get hurt more than quarterbacks. Quarterbacks were the one position where it lost to the simple average, and 2025 was a strange year for them: QBs left games at more than double their usual rate, on only 11 events.

    When I looked at what the model was actually leaning on, it was mostly the injury report, practice participation and past injuries. That is information you already have if you read the injury report on Friday. The fancier inputs like workload and turf barely moved anything.

    So, could we have seen Darnold coming?

    Honestly, no. In-game injuries are rare, about 1.6% of the player-games I looked at, which works out to roughly 58 usable events a season. That is not much to learn from. A simple model and a heavily tuned one finished within a hair of each other, which tells me the limit is the data, not the math.

    A risk tier that is 1 to 2% better than the base rate is not something I would put in front of people as a feature, and it is definitely not something worth paying for. So I am parking it. The model and the test are saved, and if I come back to it the next steps are more events (adding defensive players, looser thresholds) and a human review of a sample of the labels.

    What I’m doing instead

    The more useful idea from last week’s post was the real-time one: watch the news during games for “questionable to return” and push it out the moment it happens. That does not depend on predicting anything. It just needs to be fast. That is what I am building next for GridIron Data, and I will test it during live games over the next few weeks.

    I also made sure GridIron Data now keeps its news and injury history for about three years instead of 90 days, so the next time I try this there will be a lot more of our own data to work with.

    Not every experiment turns into a feature. This one turned into a better idea.

    Week 4 and 5 Results

    The real reason you all come here is to see how the team is doing. So I purposefully buried the content into the bottom so you have to read about player injuries and data sets!

    Week 4 was BAD. Our team under performed and we ultimately lost by nearly 40 points. I checked out bench to see if we could have just picked the wrong players and it wouldn’t have mattered.

    Week 4 Reults

    Trevor Lawrence just didn’t even come close to his projections. The Seahawks don’t kick field goals so we just got 5 extra points. Trey McBride was fighting with the referees… Kyren Williams and Zay Flowers though, amazing players. We love them.

    Here is the line up for week 5

    Week 5 lineup

    Hopefully we get back on our win streak!

    Follow along and never miss an update by subscribing to the mailing list.

    Don’t miss an update

  • Weeks 3 and 4 and an injury discussion

    Weeks 3 and 4 and an injury discussion

    If you’ve been following along, I manage my Fantasy Football team with a custom NFL data set that I’ve been compiling over at https://gridirondata.com. As it stands we are 3-0 on the season! Our week 3 matchup was very close and we won by maybe 1 point. Unfortunately I feel as though it might be on the back of player injury.

    Week 3 Results

    Overall most of our players did well. Josh Allen was not anywhere near his projection but other players helped him out. We are going to continue the streaming defense strategy for the season as it seems to work pretty well. We also claimed a few waivers so some new faces for week 4.

    Week 4 lineup

    Vikings defense for week 4 against Miami. There are some bench players not pictured here to cover for injuries if we have any later in the week.

    Injuries in the NFL have been running rampant this year. It’s only week 4 and we have starting quarterbacks out for the year. This starts to ask the question about how can we predict the possibility of injury in game. For example, if we were starting Sam Darnold in week 1, was it possible to determine that he was going to go out with injury?

    GridIron Data doesn’t ship an “in-game injury” field, but it turns out the data to build one is already there. In-game injuries leave a clear mark in snap share: a receiver who usually plays 85% of snaps logs 22% and then sits the next week. By flagging those sudden drops and confirming them with the next week’s game log, injury status, or injury-tagged news, I can generate thousands of labeled player-games from 2020 through 2026 without a dedicated injury dataset.

    From there, the features mostly come for free: workload and special-teams snaps, the player’s injury status heading into the game (a Questionable tag is probably the strongest signal), prior missed games, and recent jumps in usage. Adding nflverse’s historical injury reports, schedules, and birthdates would bring in practice participation, short weeks, turf, and age, which should sharpen things considerably.

    The goal isn’t a crystal ball. In-game injuries are rare, so the right output is a well-calibrated risk tier (“this RB is about 2–3x baseline this week”) that can feed into projections as an expected-value adjustment, rather than a yes/no prediction. Scoring would run as a weekly Lambda job alongside the existing injury refresh, exposed through a new risk endpoint.

    The bigger opportunity may be real-time: tightening the news pipeline during live games to catch “questionable to return” headlines and push them through the injury changes feed, so Pro users know about an injury before their league does. First step is a backtest of the snap-share labeling to see whether the signal is real. I’ll share what I find.

    Follow along and never miss an update by subscribing to the mailing list.

    Don’t miss an update