Dataset
NFL play-by-play in Parquet, with EPA and win probability
Short answer: the NFL History package is every game since 1999 and about 1.3 million plays, with EPA, win probability, CPOE and the players on each play, as CSV and Parquet for $149. It is a one-time download. The API serves the same plays when you need one game or this week.
What is in NFL History
The package (id nfl-history, $149 one time) has three tables that all join on game_id:
- games: 30 columns, one row per game. Season, week, game type, kickoff, score, plus roof, surface, temperature, wind, rest days, the starting quarterbacks, both head coaches and the referee.
- plays: 155 columns, one row per play. Down, distance, field position, clock, play type, yards, penalties, drive and series results, the score before and after, and the players involved.
- player_game_stats: 39 columns, one row per player per game. Passing, rushing and receiving lines, target and air-yard shares, defensive counts, kicking and fantasy points.
Large tables come as one file per season in both CSV and Parquet. A README, a manifest with row counts and a checksum file are in the download. Unknown values are blank, never 0. The README also carries the credit lines the licence requires, so keep it with the files.
Higher tiers add market history without changing the tables above. NFL History + Odds ($449) adds moneyline, spread and total by sportsbook: closing lines from 2014, and opening, closing and snapshots between from 2020. It also adds a consensus closing line for every game and market win probability on every play. NFL Complete ($799) adds graded player props from 2023 (3.3M rows, 7 books), alternate lines, and a full intraday line history from 2020 (9.4M pre-game rows). Odds here are market records: what each book posted and when.
Coverage and updates
Games and plays start in 1999 and run through the current season. Seasons are one year, the year the regular season starts (2025 is the 2025-26 season). Game ids look like 2025_21_LA_SEA: season, week, away team, home team.
Every package includes finished seasons plus the current season as of the latest monthly update when you buy. With an API plan of Pro or higher, the current season's files refresh every month at no charge. Without a plan, an end-of-season update costs a quarter of the package price. Fixes to past seasons are free for a year. You can re-download what you bought for 365 days, and a corrupt or materially incomplete file is replaced free for 90 days.
Schema
A selection of the real plays columns from the free sample, grouped. The API returns a subset of these under the same names.
| Group | Columns |
|---|---|
| Keys and context | game_id, play_id, season, week, season_type, game_date, home_team, away_team, posteam, defteam |
| Situation | qtr, down, ydstogo, yardline_100, goal_to_go, time, quarter_seconds_remaining, game_seconds_remaining, score_differential |
| Play | play_type, play_type_nfl, desc, yards_gained, shotgun, no_huddle, pass_length, pass_location, air_yards, yards_after_catch, run_location, run_gap |
| Outcome | touchdown, interception, fumble_lost, sack, first_down, penalty, penalty_type, complete_pass, success |
| Model values | ep, epa, qb_epa, air_epa, yac_epa, wp, wpa, cp, cpoe, xpass, pass_oe |
| Players | passer_player_id, passer_player_name, rusher_player_id, receiver_player_id, kicker_player_id, and tackle and fumble ids |
| Drive | drive, drive_play_count, drive_first_downs, drive_start_yard_line, drive_end_transition, drive_result |
In the API the same fields come back for each play, with a summary block that gives the play count, total EPA, EPA per play and success rate over every play your filter matches, not only the page you fetched.
A real sample
Five third-down plays for Kansas City in the 2024 season, from the live API on December 6, 2026. The filter matched 282 plays with an EPA per play of 0.141 and a success rate of 0.50.
| game_id | play_id | qtr | down | ydstogo | play_type | yards_gained | epa | wp | success |
|---|---|---|---|---|---|---|---|---|---|
| 2024_01_BAL_KC | 539 | 1 | 3 | 6 | pass | 16 | 2.347 | 0.400 | 1 |
| 2024_01_BAL_KC | 863 | 1 | 3 | 8 | pass | -10 | -1.506 | 0.597 | 0 |
| 2024_01_BAL_KC | 1041 | 2 | 3 | 9 | pass | 0 | -1.068 | 0.674 | 0 |
| 2024_01_BAL_KC | 1349 | 2 | 3 | 7 | no_play | 0 | -0.479 | 0.720 | 0 |
| 2024_01_BAL_KC | 1373 | 2 | 3 | 12 | pass | 23 | 2.192 | 0.697 | 1 |
Notice the no_play row. Penalties that erase a play stay in the table, with their own EPA. Filter on play_type if you want only snaps that counted.
Load the Parquet files
DuckDB, from the folder you unzipped into. This is third-down EPA per play by offense for one season:
import duckdb
duckdb.sql("""
SELECT posteam,
count(*) AS plays,
round(avg(epa), 3) AS epa_per_play,
round(avg(success), 3) AS success_rate
FROM read_parquet('plays_2024.parquet')
WHERE down = 3 AND play_type IN ('pass', 'run')
GROUP BY posteam
ORDER BY epa_per_play DESC
""").show()Polars, scanning every season at once and joining to the games table:
import polars as pl
plays = pl.scan_parquet("plays_*.parquet")
games = pl.scan_parquet("games.parquet").select("game_id", "roof", "surface")
dome_vs_open = (
plays.filter(pl.col("play_type") == "pass")
.join(games, on="game_id")
.group_by("roof")
.agg(pl.len().alias("passes"), pl.col("epa").mean().alias("epa_per_pass"))
.collect()
)
print(dome_vs_open)Same plays through the API
Set SDHQ_API_KEY from your account. The API needs a game_id, or a season with at least one filter such as week, offense, defense or a player.
import json
import os
import urllib.request
payload = {"season": 2024, "posteam": "KC", "third_down": True, "limit": 5}
req = urllib.request.Request(
"https://api.sportsdatahq.com/v1/nfl/get_plays",
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json", "x-api-key": os.environ["SDHQ_API_KEY"]},
)
with urllib.request.urlopen(req, timeout=30) as resp:
print("HTTP", resp.status)
body = json.load(resp)["data"]
print(body["summary"])
for p in body["plays"]:
print(p["game_id"], p["down"], p["ydstogo"], p["play_type"], p["epa"])curl -s -X POST https://api.sportsdatahq.com/v1/nfl/get_plays \
-H "Content-Type: application/json" -H "x-api-key: $SDHQ_API_KEY" \
-d '{"season": 2024, "posteam": "KC", "third_down": true, "limit": 5}'A call costs 10 credits and pages with offset. The hub plan includes 1,000 free credits a month. EndzoneAPI, the football brand, has its own docs and 500 free credits.
Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.