Analyzing NFL 4th-Down Decisions, Red-Zone Efficiency, and Drive Outcomes via API
Measure NFL 4th-down go-for-it EPA, red-zone touchdown conversion rates, and drive outcomes from /v1/games/{id}/plays and /v1/games/{id}/drives.
Why 4th downs and red-zone trips decide playoff games
Modern NFL coaching hinges on two high-leverage situations: whether to keep the offense on the field on 4th down, and whether drives that reach the opponent's 20-yard line finish with 7 points instead of 3 or 0. Total yardage masks both.
Compare two real 2025 postseason games in OpenPigskin's archive. In the NFC Championship (game_nfl_2025_21_LA_SEA, Seattle 31–27 Los Angeles), the Rams drove 79 yards on 14 plays on Drive 18 in Q4 — converting a 4th-and-1 at the Seattle 26 on a 3-yard Matthew Stafford scramble (play_id 3590, +1.434 EPA, +0.0915 WPA) — before stalling on 4th-and-4 from the Seattle 6 (play_id 3753, Stafford pass incomplete defended by Devon Witherspoon, -2.147 EPA, -0.1813 WPA) for a game-deciding Turnover on downs.
In the AFC Championship (game_nfl_2025_21_NE_DEN, New England 10–7 Denver), both teams went for it on 4th-and-1 inside the red zone: Denver failed at the 14-yard line in Q2 (play_id 1163, Jarrett Stidham pass incomplete, -3.171 EPA, -0.0714 WPA, ending Drive 7 on downs), whereas New England converted 4th-and-1 from the 8-yard line in Q3 (play_id 2491, Drake Maye 1-yard run, +1.311 EPA, +0.0578 WPA) to set up the eventual go-ahead field goal on Drive 15.
Isolate 4th-down go-for-it decisions and red-zone snaps from /plays
GET /v1/games/{id}/plays (Developer plan and above) includes down (1–4), yards_to_go, yardline_100 (yards remaining to the opponent's end zone, so yardline_100 <= 20 is the exact red zone), play_type (pass, run, punt, field_goal, etc.), yards_gained, epa, wpa, touchdown and drive.
To classify every 4th-down decision cleanly, filter snaps where down === 4 and group by play_type: pass or run indicates a go-for-it call, field_goal indicates a kick attempt, and punt indicates a punt. In Super Bowl LX (game_nfl_2025_22_SEA_NE), teams faced 20 fourth-down snaps and went for it zero times (0 scrimmage plays, 15 punts and 5 field goals across 28 drives), whereas Super Bowl LIX (game_nfl_2024_22_KC_PHI) featured two unsuccessful 4th-down attempts — play_id 2834 (KC 4th-and-4 at yardline_100: 53, -2.056 EPA) and play_id 4093 (PHI 4th-and-6 at yardline_100: 50, -1.657 EPA).
curl "https://openpigskinapi.com/v1/games/game_nfl_2025_21_LA_SEA/plays?quarter=4" \
-H "Authorization: Bearer op_live_YOUR_KEY"
curl "https://openpigskinapi.com/v1/games/game_nfl_2025_21_LA_SEA/drives" \
-H "Authorization: Bearer op_live_YOUR_KEY"Compute red-zone trip TD% by joining /plays with /drives
Counting red-zone plays alone tells you play-level EPA, but coaches evaluate red-zone efficiency per trip (percentage of possessions reaching yardline_100 <= 20 that finish with a Touchdown). Joining /v1/games/{id}/plays and /v1/games/{id}/drives on the shared drive integer computes exact trip conversion rates in milliseconds.
Running that join on our four showcase playoff games reveals sharp differences: in the NFC Championship (game_nfl_2025_21_LA_SEA), 8 possessions reached the red zone and 6 ended in Touchdowns (75.0%), with only 1 Field goal and 1 Turnover on downs; in Super Bowl LIX (game_nfl_2024_22_KC_PHI), 5 of 6 red-zone trips ended in Touchdowns (83.3%); in Super Bowl LX (game_nfl_2025_22_SEA_NE), Seattle converted just 1 of 4 red-zone trips into a Touchdown (Drive 20, +3.516 EPA) while kicking 3 field goals (Drives 1, 7 and 24), and New England converted its lone red-zone trip on Drive 26 (9 plays, 75 yards, +4.107 EPA).
type Play = {
play_id: number;
drive: number | null;
quarter: number;
clock: string | null;
posteam: string | null;
down: number | null;
yards_to_go: number | null;
yardline_100: number | null;
play_type: string | null;
yards_gained: number;
epa: number | null;
wpa: number | null;
touchdown: boolean;
description: string;
};
type Drive = {
drive: number;
team: string;
plays: number;
yards: number;
epa: number;
result: string | null;
scoring: boolean;
};
export function analyzeLeverage(plays: Play[], drives: Drive[]) {
const fourthGo = plays.filter(
(p) => p.down === 4 && (p.play_type === "pass" || p.play_type === "run"),
);
const rzDriveIds = new Set(
plays
.filter(
(p) =>
p.drive !== null &&
p.yardline_100 !== null &&
p.yardline_100 <= 20 &&
(p.play_type === "pass" || p.play_type === "run"),
)
.map((p) => p.drive as number),
);
const rzByTeam = new Map<string, { trips: number; tds: number; fgs: number; epa: number }>();
for (const d of drives) {
if (!rzDriveIds.has(d.drive)) continue;
const row = rzByTeam.get(d.team) ?? { trips: 0, tds: 0, fgs: 0, epa: 0 };
row.trips += 1;
if (d.result === "Touchdown") row.tds += 1;
if (d.result === "Field goal") row.fgs += 1;
row.epa = Number((row.epa + d.epa).toFixed(3));
rzByTeam.set(d.team, row);
}
return {
fourthDownAttempts: fourthGo.map((p) => ({
play_id: p.play_id,
team: p.posteam,
situation: `Q${p.quarter} ${p.clock ?? ""} | 4th & ${p.yards_to_go} @ ${p.yardline_100}`,
converted: p.yards_to_go !== null ? p.yards_gained >= p.yards_to_go : false,
epa: p.epa,
wpa: p.wpa,
})),
redZoneByTeam: Object.fromEntries(
[...rzByTeam.entries()].map(([team, s]) => [
team,
{ ...s, tdRate: Number((s.tds / s.trips).toFixed(3)) },
]),
),
};
}Profile drive outcomes and field-position value across a season
Every record returned by GET /v1/games/{id}/drives includes start_yardline_100, end_yardline_100, plays, yards, epa, result (such as Touchdown, Field goal, Punt, Turnover, Turnover on downs, Missed field goal, Opp touchdown or End of half) and scoring.
Aggregating drive results across a team's full season reveals offensive sustainability much faster than points per game: a team living on short fields (start_yardline_100 < 50) or opponent turnovers will regress faster than a team consistently stacking +2.0 EPA multi-play drives from its own 25.
from collections import defaultdict
def summarize_drive_outcomes(drives: list[dict]) -> dict[str, dict]:
buckets = defaultdict(lambda: {"count": 0, "total_epa": 0.0, "total_yards": 0})
for d in drives:
label = d.get("result") or "Unknown"
buckets[label]["count"] += 1
buckets[label]["total_epa"] += d.get("epa") or 0.0
buckets[label]["total_yards"] += d.get("yards") or 0
return {
result: {
"drives": stats["count"],
"avg_epa": round(stats["total_epa"] / stats["count"], 3),
"avg_yards": round(stats["total_yards"] / stats["count"], 1),
}
for result, stats in sorted(buckets.items(), key=lambda kv: -kv[1]["count"])
}Monitor live red-zone alerts during Sunday games
For real-time Sunday dashboards, you do not have to wait for postgame nflverse play-by-play ingestion to detect red-zone drives. GET /v1/live?state=in (source: ESPN, licence: null) exposes situation.is_red_zone, situation.possession_abbr and situation.down_distance on every in-progress game, refreshed roughly every 20 seconds.
Use /v1/live for real-time red-zone notifications and 4th-down alerts while games are underway, then transition to /v1/games/{id}/plays and /v1/games/{id}/drives once the game enters the finalized nflverse archive.