Skip to content

NFL

NFL scores, standings, box scores, play-by-play, and player statistics as SQL

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/nfl/index.md to help me query NFL with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

season_2025_week_1_scores

Example output · captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
WHERE game_id = '401772510';
Result
away_score home_score winner_abbreviation
20 24 PHI

Quick start

Choose where to run NFL, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'nfl' AS nfl (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nfl'
);

3. Run a query

query.sql
SELECT away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
WHERE game_id = '401772510';
More example queries →
Technical details
Verified connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'nfl' AS nfl (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nfl'
);

Overview

Read-only NFL scores, standings, box scores, play-by-play, and statistics from ESPN, nflverse (CC-BY 4.0), and Sleeper

Catalog

Everything nfl exposes once attached — read straight from the worker's released build.

nfl 1 schema
main 6 tables · 29 functions

NFL scores, standings, game detail, play-by-play, and statistics

Schema examples (6)
Examples (6)

Division tables in rank order.

SELECT division, division_rank, team_name, wins, losses, ties, games_back
FROM nfl.main.current_standings
ORDER BY division, division_rank;

Current playoff field by conference seed.

SELECT conference, playoff_seed, team_name, wins, losses
FROM nfl.main.current_standings
WHERE playoff_seed <= 7
ORDER BY conference, playoff_seed;

Each ball carrier's and receiver's yards from scrimmage in the 2025 season opener as a share of his team's total offense, joining the player box score to the team box score.

SELECT p.team_abbreviation, p.athlete_name,
  coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0) AS scrimmage_yards,
  t.total_yards AS team_total_yards,
  round(100.0 * (coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0)) / t.total_yards, 1) AS pct_of_team_offense
FROM nfl.main.box_score_player('401772510') p
JOIN nfl.main.box_score_team('401772510') t USING (team_id)
WHERE p.rush_attempts > 0 OR p.receptions > 0
ORDER BY pct_of_team_offense DESC, p.athlete_name;

2025 regular-season scoring leaders: points per game from the schedule's final scores beside each team's passing and rushing EPA and giveaways from team_stats.

WITH games AS (SELECT home_team, away_team, home_score, away_score FROM nfl.main.schedule(season := 2025) WHERE game_type = 'REG' AND home_score IS NOT NULL), points AS (SELECT team, count(*) AS games, avg(points) AS points_per_game FROM (SELECT home_team AS team, home_score AS points FROM games UNION ALL SELECT away_team, away_score FROM games) GROUP BY team) SELECT t.team, points.games, round(points.points_per_game, 1) AS points_per_game, round(t.passing_epa, 1) AS passing_epa, round(t.rushing_epa, 1) AS rushing_epa, t.interceptions + t.fumbles_lost AS giveaways
FROM nfl.main.team_stats(season := 2025) t
JOIN points USING (team)
ORDER BY points_per_game DESC, t.team
LIMIT 10;
2 more examples

First-round wide receivers drafted 2015-2020 who ran the combine 40-yard dash, fastest first, with career receiving yards and Pro Bowls, joining draft to combine on the Pro Football Reference id.

SELECT d.season, d.pick, d.player_name, d.team, c.forty, d.rec_yards,
  d.pro_bowls
FROM nfl.main.draft() d
JOIN nfl.main.combine() c ON c.pfr_id = d.pfr_player_id
WHERE d.position = 'WR' AND d.draft_round = 1 AND d.season BETWEEN 2015 AND 2020 AND c.forty IS NOT NULL
ORDER BY c.forty, d.pick;

2025 rookies with the most yards from scrimmage and where each was drafted, joining season stats to the players directory on the GSIS id (undrafted rookies show NULL draft columns).

SELECT s.player_display_name, s.position, s.recent_team, p.draft_round,
  p.draft_pick,
  coalesce(s.rushing_yards, 0) + coalesce(s.receiving_yards, 0) AS scrimmage_yards
FROM nfl.main.player_stats_season(season := 2025) s
JOIN nfl.main.players p ON p.gsis_id = s.player_id
WHERE p.rookie_season = 2025
ORDER BY scrimmage_yards DESC, s.player_display_name
LIMIT 10;
Tables
current_injuries 1 example17 cols

League-wide NFL injury report, one row per report entry

Columns
injury_idnot null VARCHAR
ESPN injury report entry identifier.
team_id INTEGER
ESPN team identifier (integer code) of the player's club.
team_abbreviation VARCHAR
ESPN code of the player's club.
team_name VARCHAR
Display name of the player's club.
athlete_id INTEGER
ESPN athlete identifier (integer code); joins roster and players.espn_id.
athlete_name VARCHAR
Player name.
position VARCHAR
Position abbreviation.
status VARCHAR
Report status, for example Questionable, Out or Injured Reserve.
status_abbreviation VARCHAR
Short status code such as Q, D, O or IR.
injury_type VARCHAR
Injured body part or reason, for example Knee.
injury_location VARCHAR
Broader body location, for example Leg.
injury_detail VARCHAR
Injury detail such as Sprain, when reported.
injury_side VARCHAR
Side of the body, when reported.
return_date DATE
ESPN's estimated return date, when reported.
short_comment VARCHAR
Short news blurb.
long_comment VARCHAR
Longer news blurb.
reported_at TIMESTAMP WITH TIME ZONE
Time the entry was last updated, in UTC.
ConstraintsPRIMARY KEY (injury_id)
Example

Players ruled out or on injured reserve for Kansas City.

SELECT athlete_name, position, status, injury_type, return_date
FROM nfl.main.current_injuries
WHERE team_abbreviation = 'KC' AND status IN ('Out', 'Injured Reserve')
ORDER BY status, athlete_name;
Link
current_scoreboard 1 example30 cols

This week's NFL games with live or final scores, one row per game

Columns
game_idnot null VARCHAR
ESPN event identifier; pass it to game_summary() and box scores.
season INTEGER
NFL season year (the year the season starts).
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason.
week INTEGER
Ordinal week number (1-18 regular season) within the season type.
game_time TIMESTAMP WITH TIME ZONE
Scheduled kickoff time in UTC.
name VARCHAR
Matchup name, for example Dallas Cowboys at Philadelphia Eagles.
short_name VARCHAR
Short matchup name, for example DAL @ PHI.
status VARCHAR
ESPN status code, for example STATUS_SCHEDULED or STATUS_FINAL.
status_state VARCHAR
Game state: pre, in, or post.
status_detail VARCHAR
Human-readable status, for example Final/OT or 2nd 4:12.
completed BOOLEAN
Whether the game is complete.
period INTEGER
Quarter number, current or final; 5 or more means overtime.
clock VARCHAR
Game clock display for live games.
home_team_id INTEGER
ESPN team identifier (integer code) of the home club.
home_team_abbreviation VARCHAR
ESPN code of the home club, for example PHI.
home_team_name VARCHAR
Display name of the home club.
home_score INTEGER
Home club's score, in points; NULL before kickoff.
home_record VARCHAR
Home team's overall record after this game, as ESPN reports it.
away_team_id INTEGER
ESPN team identifier (integer code) of the away club.
away_team_abbreviation VARCHAR
ESPN code of the visiting club, for example DAL.
away_team_name VARCHAR
Display name of the visiting club.
away_score INTEGER
Visiting club's score, in points; NULL before kickoff.
away_record VARCHAR
Away team's overall record after this game, as ESPN reports it.
winner_abbreviation VARCHAR
Winning team abbreviation; NULL until decided or for a tie.
venue VARCHAR
Stadium name.
venue_city VARCHAR
Stadium city.
venue_state VARCHAR
Stadium state or province, when applicable.
neutral_site BOOLEAN
Whether the game is played at a neutral site.
attendance INTEGER
Reported crowd, in people; NULL or 0 before the game.
broadcast VARCHAR
National broadcast network(s), when listed.
ConstraintsPRIMARY KEY (game_id)
Example

This week's games with live or final scores.

SELECT short_name, status_detail, away_score, home_score
FROM nfl.main.current_scoreboard
ORDER BY game_time;
Link
current_standings 2 examples25 cols

Current NFL regular-season standings, one row per team

Columns
season INTEGER
NFL season year (the year the season starts).
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason.
conference VARCHAR
Conference abbreviation, AFC or NFC.
conference_name VARCHAR
Full conference name.
division VARCHAR
Division name, for example AFC East.
division_rank INTEGER
Position number 1-4 within the division (1 = leader), from ESPN's tiebreak seed order.
playoff_seed INTEGER
Conference seed 1-16 in ESPN's tiebreak order; 1-7 qualify.
team_idnot null INTEGER
Stable ESPN team identifier (integer code, not a count); joins teams.team_id.
team_abbreviation VARCHAR
ESPN code for the club, for example KC or WSH.
team_name VARCHAR
Club display name, for example Kansas City Chiefs.
wins INTEGER
Count of games won this season.
losses INTEGER
Count of games lost this season.
ties INTEGER
Count of games tied after overtime this season.
win_percentage DECIMAL(4,3)
Fraction of games won (0-1), ties counted as half a win.
games_back DECIMAL(4,1)
Games behind the division leader, in games; the leader is 0.0.
points_for INTEGER
Count of points scored this season.
points_against INTEGER
Count of points allowed this season.
point_differential INTEGER
Points scored minus points allowed, in points.
streak VARCHAR
Current streak label, for example W3 or L1.
streak_length INTEGER
Signed streak length in games: positive for wins, negative for losses.
home_record VARCHAR
Home record as W-L or W-L-T.
road_record VARCHAR
Road record as W-L or W-L-T.
division_record VARCHAR
Record against division opponents.
conference_record VARCHAR
Record against conference opponents.
clincher VARCHAR
ESPN clinch marker: * top seed and bye, z division, y wild card, x playoff berth, e eliminated.
ConstraintsPRIMARY KEY (team_id)
Examples (2)

Division tables in rank order.

SELECT division, division_rank, team_name, wins, losses, ties, games_back
FROM nfl.main.current_standings
ORDER BY division, division_rank;

Current playoff field by conference seed.

SELECT conference, playoff_seed, team_name, wins, losses
FROM nfl.main.current_standings
WHERE playoff_seed <= 7
ORDER BY conference, playoff_seed;
Link
current_week 1 example6 cols

The current NFL season, phase, and week

Columns
seasonnot null INTEGER
Current NFL season year according to Sleeper.
phase VARCHAR
Sleeper season phase: pre, regular, post, or off.
week INTEGER
Ordinal current week, which advances early in the week.
display_week INTEGER
Ordinal week Sleeper displays, normally the last week played.
previous_season INTEGER
Previous NFL season year.
season_start_date DATE
Date the regular season starts.
ConstraintsPRIMARY KEY (season)
Example

The current season and week.

SELECT season, phase, week, display_week FROM nfl.main.current_week;
Link
players 1 example26 cols

Every NFL player in nflverse's directory with cross-source ids

Columns
gsis_idnot null VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables.
display_name VARCHAR
Full player name.
first_name VARCHAR
Legal first name.
last_name VARCHAR
Family name.
position VARCHAR
Primary position code, for example QB or CB.
position_group VARCHAR
Position group, for example QB, WR, OL, or DB.
birth_date DATE
Date of birth.
height_inches INTEGER
Height in inches.
weight_lbs INTEGER
Weight in pounds.
college VARCHAR
School attended before the NFL.
jersey_number VARCHAR
Most recent uniform number.
rookie_season INTEGER
Year of the first NFL season played.
last_season INTEGER
Year of the most recent NFL season played.
latest_team VARCHAR
Most recent team (nflverse abbreviation).
status VARCHAR
Roster status, for example ACT, RES, CUT, or RET.
years_of_experience INTEGER
Count of accrued NFL seasons.
draft_year INTEGER
Draft year; NULL if undrafted.
draft_round INTEGER
Ordinal round (1-7) the player was selected in.
draft_pick INTEGER
Ordinal overall selection number in the draft.
draft_team VARCHAR
Drafting team.
espn_id INTEGER
ESPN athlete id (integer code); joins athlete_id, feeds player_game_log().
pfr_id VARCHAR
Pro Football Reference id.
pff_id VARCHAR
Pro Football Focus player identifier.
nfl_id VARCHAR
NFL.com id.
esb_id VARCHAR
NFL Elias (ESB) id.
otc_id VARCHAR
OverTheCap id.
ConstraintsPRIMARY KEY (gsis_id)
Example

Look up Patrick Mahomes's identifiers.

SELECT gsis_id, espn_id, pfr_id, position, latest_team
FROM nfl.main.players
WHERE display_name = 'Patrick Mahomes';
Link
teams 1 example10 cols

The 32 NFL franchises with ESPN ids and abbreviations

Columns
team_idnot null INTEGER
Stable ESPN team identifier (integer code, not a count); joins teams.team_id.
team_abbreviation VARCHAR
ESPN team abbreviation, for example KC or WSH.
team_name VARCHAR
Full team name, for example Kansas City Chiefs.
short_name VARCHAR
Short display name, normally the nickname.
location VARCHAR
Team location or city name.
nickname VARCHAR
Team nickname.
slug VARCHAR
ESPN URL slug for the team.
color VARCHAR
Primary team color as a hex RGB string without '#'.
alternate_color VARCHAR
Alternate team color as a hex RGB string without '#'.
is_active BOOLEAN
Whether ESPN marks the franchise as active.
ConstraintsPRIMARY KEY (team_id)
Example

Every franchise and its ESPN abbreviation.

SELECT team_abbreviation, team_name FROM nfl.main.teams ORDER BY team_name;
Link
Table functions
all_current_injuries () 1 example

League-wide NFL injury report (scan behind current_injuries)

No arguments
Returns columns
injury_id VARCHAR
ESPN injury report entry identifier
team_id INTEGER
ESPN team identifier (integer code) of the player's club
team_abbreviation VARCHAR
ESPN code of the player's club
team_name VARCHAR
Display name of the player's club
athlete_id INTEGER
ESPN athlete identifier (integer code); joins roster and players.espn_id
athlete_name VARCHAR
Player name
position VARCHAR
Position abbreviation
status VARCHAR
Report status, for example Questionable, Out or Injured Reserve
status_abbreviation VARCHAR
Short status code such as Q, D, O or IR
injury_type VARCHAR
Injured body part or reason, for example Knee
injury_location VARCHAR
Broader body location, for example Leg
injury_detail VARCHAR
Injury detail such as Sprain, when reported
injury_side VARCHAR
Side of the body, when reported
return_date DATE
ESPN's estimated return date, when reported
short_comment VARCHAR
Short news blurb
long_comment VARCHAR
Longer news blurb
reported_at TIMESTAMP WITH TIME ZONE
Time the entry was last updated, in UTC
Example

Players ruled out through the backing scan.

SELECT team_abbreviation, athlete_name, injury_type
FROM nfl.main.all_current_injuries()
WHERE status = 'Out'
ORDER BY team_abbreviation;
Link
all_current_scoreboard () 1 example

This week's NFL games and live scores (scan behind current_scoreboard)

No arguments
Returns columns
game_id VARCHAR
ESPN event identifier; pass it to game_summary() and box scores
season INTEGER
NFL season year (the year the season starts)
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason
week INTEGER
Ordinal week number (1-18 regular season) within the season type
game_time TIMESTAMP WITH TIME ZONE
Scheduled kickoff time in UTC
name VARCHAR
Matchup name, for example Dallas Cowboys at Philadelphia Eagles
short_name VARCHAR
Short matchup name, for example DAL @ PHI
status VARCHAR
ESPN status code, for example STATUS_SCHEDULED or STATUS_FINAL
status_state VARCHAR
Game state: pre, in, or post
status_detail VARCHAR
Human-readable status, for example Final/OT or 2nd 4:12
completed BOOLEAN
Whether the game is complete
period INTEGER
Quarter number, current or final; 5 or more means overtime
clock VARCHAR
Game clock display for live games
home_team_id INTEGER
ESPN team identifier (integer code) of the home club
home_team_abbreviation VARCHAR
ESPN code of the home club, for example PHI
home_team_name VARCHAR
Display name of the home club
home_score INTEGER
Home club's score, in points; NULL before kickoff
home_record VARCHAR
Home team's overall record after this game, as ESPN reports it
away_team_id INTEGER
ESPN team identifier (integer code) of the away club
away_team_abbreviation VARCHAR
ESPN code of the visiting club, for example DAL
away_team_name VARCHAR
Display name of the visiting club
away_score INTEGER
Visiting club's score, in points; NULL before kickoff
away_record VARCHAR
Away team's overall record after this game, as ESPN reports it
winner_abbreviation VARCHAR
Winning team abbreviation; NULL until decided or for a tie
venue VARCHAR
Stadium name
venue_city VARCHAR
Stadium city
venue_state VARCHAR
Stadium state or province, when applicable
neutral_site BOOLEAN
Whether the game is played at a neutral site
attendance INTEGER
Reported crowd, in people; NULL or 0 before the game
broadcast VARCHAR
National broadcast network(s), when listed
Example

Read this week's games through the backing scan.

SELECT short_name, status_detail, away_score, home_score
FROM nfl.main.all_current_scoreboard()
ORDER BY game_time;
Link
all_current_standings () 1 example

Current NFL division standings (scan behind current_standings)

No arguments
Returns columns
season INTEGER
NFL season year (the year the season starts)
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason
conference VARCHAR
Conference abbreviation, AFC or NFC
conference_name VARCHAR
Full conference name
division VARCHAR
Division name, for example AFC East
division_rank INTEGER
Position number 1-4 within the division (1 = leader), from ESPN's tiebreak seed order
playoff_seed INTEGER
Conference seed 1-16 in ESPN's tiebreak order; 1-7 qualify
team_id INTEGER
Stable ESPN team identifier (integer code, not a count); joins teams.team_id
team_abbreviation VARCHAR
ESPN code for the club, for example KC or WSH
team_name VARCHAR
Club display name, for example Kansas City Chiefs
wins INTEGER
Count of games won this season
losses INTEGER
Count of games lost this season
ties INTEGER
Count of games tied after overtime this season
win_percentage DECIMAL(4,3)
Fraction of games won (0-1), ties counted as half a win
games_back DECIMAL(4,1)
Games behind the division leader, in games; the leader is 0.0
points_for INTEGER
Count of points scored this season
points_against INTEGER
Count of points allowed this season
point_differential INTEGER
Points scored minus points allowed, in points
streak VARCHAR
Current streak label, for example W3 or L1
streak_length INTEGER
Signed streak length in games: positive for wins, negative for losses
home_record VARCHAR
Home record as W-L or W-L-T
road_record VARCHAR
Road record as W-L or W-L-T
division_record VARCHAR
Record against division opponents
conference_record VARCHAR
Record against conference opponents
clincher VARCHAR
ESPN clinch marker: * top seed and bye, z division, y wild card, x playoff berth, e eliminated
Example

Division leaders through the backing scan.

SELECT division, team_name, wins, losses
FROM nfl.main.all_current_standings()
WHERE division_rank = 1
ORDER BY division;
Link
all_current_week () 1 example

Current NFL season, phase, and week from Sleeper (scan behind current_week)

No arguments
Returns columns
season INTEGER
Current NFL season year according to Sleeper
phase VARCHAR
Sleeper season phase: pre, regular, post, or off
week INTEGER
Ordinal current week, which advances early in the week
display_week INTEGER
Ordinal week Sleeper displays, normally the last week played
previous_season INTEGER
Previous NFL season year
season_start_date DATE
Date the regular season starts
Example

Current season and week through the backing scan.

SELECT season, phase, week FROM nfl.main.all_current_week();
Link
all_players () 1 example

Every NFL player nflverse knows with cross-ids (scan behind players)

No arguments
Returns columns
gsis_id VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables
display_name VARCHAR
Full player name
first_name VARCHAR
Legal first name
last_name VARCHAR
Family name
position VARCHAR
Primary position code, for example QB or CB
position_group VARCHAR
Position group, for example QB, WR, OL, or DB
birth_date DATE
Date of birth
height_inches INTEGER
Height in inches
weight_lbs INTEGER
Weight in pounds
college VARCHAR
School attended before the NFL
jersey_number VARCHAR
Most recent uniform number
rookie_season INTEGER
Year of the first NFL season played
last_season INTEGER
Year of the most recent NFL season played
latest_team VARCHAR
Most recent team (nflverse abbreviation)
status VARCHAR
Roster status, for example ACT, RES, CUT, or RET
years_of_experience INTEGER
Count of accrued NFL seasons
draft_year INTEGER
Draft year; NULL if undrafted
draft_round INTEGER
Ordinal round (1-7) the player was selected in
draft_pick INTEGER
Ordinal overall selection number in the draft
draft_team VARCHAR
Drafting team
espn_id INTEGER
ESPN athlete id (integer code); joins athlete_id, feeds player_game_log()
pfr_id VARCHAR
Pro Football Reference id
pff_id VARCHAR
Pro Football Focus player identifier
nfl_id VARCHAR
NFL.com id
esb_id VARCHAR
NFL Elias (ESB) id
otc_id VARCHAR
OverTheCap id
Example

Find a player's ids through the backing scan.

SELECT gsis_id, espn_id, display_name
FROM nfl.main.all_players()
WHERE display_name = 'Patrick Mahomes';
Link
all_teams () 1 example

The 32 NFL franchises with ESPN ids and abbreviations (scan behind teams)

No arguments
Returns columns
team_id INTEGER
Stable ESPN team identifier (integer code, not a count); joins teams.team_id
team_abbreviation VARCHAR
ESPN team abbreviation, for example KC or WSH
team_name VARCHAR
Full team name, for example Kansas City Chiefs
short_name VARCHAR
Short display name, normally the nickname
location VARCHAR
Team location or city name
nickname VARCHAR
Team nickname
slug VARCHAR
ESPN URL slug for the team
color VARCHAR
Primary team color as a hex RGB string without '#'
alternate_color VARCHAR
Alternate team color as a hex RGB string without '#'
is_active BOOLEAN
Whether ESPN marks the franchise as active
Example

Team ids through the backing scan.

SELECT team_id, team_abbreviation, team_name
FROM nfl.main.all_teams()
ORDER BY team_name;
Link
box_score_player (game_id VARCHAR) 2 examples

Player box score for one NFL game, one row per player (ESPN)

Arguments
game_id VARCHAR
ESPN event id as text, for example '401772510' (see scoreboard() or schedule().espn_game_id).
Returns columns
game_id VARCHAR
ESPN event id
team_id INTEGER
ESPN team id
team_abbreviation VARCHAR
Team abbreviation
athlete_id INTEGER
ESPN athlete id
athlete_name VARCHAR
Player name
jersey VARCHAR
Uniform number
pass_completions INTEGER
Completions
pass_attempts INTEGER
Pass attempts
pass_yards INTEGER
Passing yards
pass_touchdowns INTEGER
Passing TDs
interceptions_thrown INTEGER
Interceptions thrown
sacks_taken INTEGER
Times sacked
sack_yards_lost INTEGER
Sack yards lost
passer_rating DECIMAL(6,1)
NFL passer rating
qbr DECIMAL(6,1)
ESPN adjusted QBR
rush_attempts INTEGER
Carries
rush_yards INTEGER
Rushing yards
rush_touchdowns INTEGER
Rushing TDs
rush_long INTEGER
Longest rush
receptions INTEGER
Receptions
targets INTEGER
Targets
receiving_yards INTEGER
Receiving yards
receiving_touchdowns INTEGER
Receiving TDs
receiving_long INTEGER
Longest reception
fumbles INTEGER
Fumbles
fumbles_lost INTEGER
Fumbles lost
tackles INTEGER
Total tackles
solo_tackles INTEGER
Solo tackles
sacks DECIMAL(6,1)
Sacks; half sacks allowed
tackles_for_loss INTEGER
Tackles for loss
passes_defended INTEGER
Passes defended
qb_hits INTEGER
QB hits
defensive_touchdowns INTEGER
Defensive TDs
interceptions INTEGER
Interceptions made
interception_yards INTEGER
Interception return yards
kick_returns INTEGER
Kick returns
kick_return_yards INTEGER
Kick return yards
kick_return_touchdowns INTEGER
Kick return TDs
punt_returns INTEGER
Punt returns
punt_return_yards INTEGER
Punt return yards
punt_return_touchdowns INTEGER
Punt return TDs
field_goals_made INTEGER
Field goals made
field_goals_attempted INTEGER
Field goals attempted
field_goal_long INTEGER
Longest field goal
extra_points_made INTEGER
Extra points made
extra_points_attempted INTEGER
Extra points attempted
kicking_points INTEGER
Kicking points
punts INTEGER
Punts
punt_yards INTEGER
Gross punt yards
punts_inside_20 INTEGER
Punts inside the 20
Examples (2)

Leading rushers in the 2025 season opener.

SELECT athlete_name, team_abbreviation, rush_attempts, rush_yards,
  rush_touchdowns
FROM nfl.main.box_score_player('401772510')
WHERE rush_attempts > 0
ORDER BY rush_yards DESC;

Each ball carrier's and receiver's yards from scrimmage in the 2025 season opener as a share of his team's total offense, joining the player box score to the team box score.

SELECT p.team_abbreviation, p.athlete_name,
  coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0) AS scrimmage_yards,
  t.total_yards AS team_total_yards,
  round(100.0 * (coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0)) / t.total_yards, 1) AS pct_of_team_offense
FROM nfl.main.box_score_player('401772510') p
JOIN nfl.main.box_score_team('401772510') t USING (team_id)
WHERE p.rush_attempts > 0 OR p.receptions > 0
ORDER BY pct_of_team_offense DESC, p.athlete_name;
Link
box_score_team (game_id VARCHAR) 1 example

Team box score for one NFL game: yards, downs, turnovers, possession (ESPN)

Arguments
game_id VARCHAR
ESPN event id as text, for example '401772510' (see scoreboard() or schedule().espn_game_id).
Returns columns
game_id VARCHAR
ESPN event identifier
team_id INTEGER
ESPN team identifier
team_abbreviation VARCHAR
Team abbreviation
team_name VARCHAR
Team name
home_away VARCHAR
home or away
first_downs INTEGER
First downs
first_downs_passing INTEGER
First downs by pass
first_downs_rushing INTEGER
First downs by rush
first_downs_penalty INTEGER
First downs by penalty
third_down_conversions INTEGER
Third downs converted
third_down_attempts INTEGER
Third downs attempted
fourth_down_conversions INTEGER
Fourth downs converted
fourth_down_attempts INTEGER
Fourth downs attempted
total_plays INTEGER
Offensive plays
total_yards INTEGER
Total net yards
yards_per_play DECIMAL(6,1)
Net yards per offensive play
total_drives INTEGER
Offensive drives
passing_yards INTEGER
Net passing yards (after sack yardage)
pass_completions INTEGER
Completed passes
pass_attempts INTEGER
Pass attempts
yards_per_pass DECIMAL(6,1)
Net yards per pass play
interceptions_thrown INTEGER
Interceptions thrown
sacks_allowed INTEGER
Times sacked
sack_yards_lost INTEGER
Yards lost to sacks
rushing_yards INTEGER
Rushing yards
rushing_attempts INTEGER
Rushing attempts
yards_per_rush DECIMAL(6,1)
Yards per rushing attempt
red_zone_conversions INTEGER
Red-zone trips ending in a touchdown
red_zone_attempts INTEGER
Red-zone trips
penalties INTEGER
Accepted penalties
penalty_yards INTEGER
Penalty yards
turnovers INTEGER
Turnovers committed
fumbles_lost INTEGER
Fumbles lost
defensive_touchdowns INTEGER
Defensive and return touchdowns
possession_seconds INTEGER
Time of possession in seconds
Example

Team totals from the 2025 season opener.

SELECT team_abbreviation, total_yards, passing_yards, rushing_yards,
  turnovers, possession_seconds
FROM nfl.main.box_score_team('401772510');
Link
combine (season := INTEGER) 1 example

NFL Scouting Combine measurements and drills since 2000 (nflverse)

Named arguments
season := INTEGER
Combine year. NULL returns every combine since 2000. · default null
Returns columns
season INTEGER
Combine year
player_name VARCHAR
Player name
position VARCHAR
Position
school VARCHAR
College
height VARCHAR
Height as feet-inches, for example 6-3
weight_lbs INTEGER
Weight in pounds
forty DOUBLE
40-yard dash in seconds
bench INTEGER
225-lb bench press repetitions
vertical DOUBLE
Vertical jump in inches
broad_jump INTEGER
Broad jump in inches
cone DOUBLE
3-cone drill in seconds
shuttle DOUBLE
20-yard shuttle in seconds
draft_year INTEGER
Draft year, if drafted
draft_team VARCHAR
Drafting team, if drafted
draft_round INTEGER
Draft round, if drafted
draft_pick INTEGER
Overall pick, if drafted
pfr_id VARCHAR
Pro Football Reference player id
cfb_id VARCHAR
Sports Reference college football id
Example

Fastest 40-yard dashes at the 2025 combine.

SELECT player_name, position, school, forty
FROM nfl.main.combine(season := 2025)
WHERE forty IS NOT NULL
ORDER BY forty
LIMIT 10;
Link
depth_chart (team VARCHAR) 1 example

One NFL team's current depth chart by formation and slot (ESPN)

Arguments
team VARCHAR
Team abbreviation such as KC, PHI, or WSH (nflverse LA and WAS are accepted).
Returns columns
team_id INTEGER
ESPN team identifier
team_abbreviation VARCHAR
Team abbreviation
season INTEGER
Season of the depth chart
formation VARCHAR
Formation name, for example 3WR 1TE, Base 4-3 D, or Special Teams
position_key VARCHAR
ESPN depth-chart slot key, for example qb, lt, or lcb
position VARCHAR
Position abbreviation for the slot
position_name VARCHAR
Position name for the slot
depth INTEGER
Depth order within the slot: 1 is the starter
athlete_id INTEGER
ESPN athlete identifier
athlete_name VARCHAR
Player name from the current team roster; NULL if not listed
jersey VARCHAR
Uniform number from the current team roster
Example

Kansas City's offensive starters.

SELECT position, athlete_name
FROM nfl.main.depth_chart('KC')
WHERE depth = 1 AND formation NOT IN ('Special Teams')
ORDER BY formation, position;
Link
draft (season := INTEGER, team := VARCHAR) 2 examples

NFL draft picks since 1980 with career value and honors (nflverse)

Named arguments
season := INTEGER
Draft year. NULL returns every draft since 1980. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
Returns columns
season INTEGER
Draft year
draft_round INTEGER
Round
pick INTEGER
Overall pick number
team VARCHAR
Drafting team (nflverse abbreviation; older picks keep era codes like OAK)
gsis_id VARCHAR
GSIS id once the player reached the NFL
pfr_player_id VARCHAR
Pro Football Reference player id
player_name VARCHAR
Player name
position VARCHAR
Position
category VARCHAR
Position category, for example OL or DB
side VARCHAR
O, D, or S (special teams)
college VARCHAR
College
age INTEGER
Age at the draft
last_season INTEGER
Last season played
hall_of_fame BOOLEAN
Hall of Fame inductee
all_pro INTEGER
First-team All-Pro selections
pro_bowls INTEGER
Pro Bowl selections
seasons_started INTEGER
Seasons as a primary starter
weighted_av INTEGER
PFR weighted career approximate value
drafting_team_av INTEGER
Approximate value for the drafting team
games INTEGER
Career games
pass_yards INTEGER
Career passing yards
pass_tds INTEGER
Career passing TDs
rush_yards INTEGER
Career rushing yards
rush_tds INTEGER
Career rushing TDs
receptions INTEGER
Career receptions
rec_yards INTEGER
Career receiving yards
rec_tds INTEGER
Career receiving TDs
def_solo_tackles INTEGER
Career solo tackles
def_ints INTEGER
Career interceptions
def_sacks DOUBLE
Career sacks
Examples (2)

First round of the 2025 draft.

SELECT pick, team, player_name, position, college
FROM nfl.main.draft(season := 2025)
WHERE draft_round = 1
ORDER BY pick;

First-round wide receivers drafted 2015-2020 who ran the combine 40-yard dash, fastest first, with career receiving yards and Pro Bowls, joining draft to combine on the Pro Football Reference id.

SELECT d.season, d.pick, d.player_name, d.team, c.forty, d.rec_yards,
  d.pro_bowls
FROM nfl.main.draft() d
JOIN nfl.main.combine() c ON c.pfr_id = d.pfr_player_id
WHERE d.position = 'WR' AND d.draft_round = 1 AND d.season BETWEEN 2015 AND 2020 AND c.forty IS NOT NULL
ORDER BY c.forty, d.pick;
Link
drives (game_id VARCHAR) 1 example

Drive chart for one NFL game: start, end, plays, yards, result (ESPN)

Arguments
game_id VARCHAR
ESPN event id as text, for example '401772510' (see scoreboard() or schedule().espn_game_id).
Returns columns
game_id VARCHAR
ESPN event identifier
drive_number INTEGER
Drive order within the game, starting at 1
drive_id VARCHAR
ESPN drive identifier
team_id INTEGER
ESPN identifier of the offense
team_abbreviation VARCHAR
Abbreviation of the offense
start_period INTEGER
Quarter the drive started in
start_clock VARCHAR
Game clock when the drive started
start_field_position VARCHAR
Starting field position, for example DAL 25
end_period INTEGER
Quarter the drive ended in
end_clock VARCHAR
Game clock when the drive ended
end_field_position VARCHAR
Ending field position
plays INTEGER
Offensive plays in the drive
yards INTEGER
Net yards gained
duration_seconds INTEGER
Time of possession for the drive in seconds
result VARCHAR
Drive result, for example Touchdown, Punt, or Field Goal
is_score BOOLEAN
Whether the drive produced points
description VARCHAR
ESPN summary, for example 6 plays, 53 yards, 3:11
Example

Scoring drives in the 2025 season opener.

SELECT drive_number, team_abbreviation, plays, yards, result
FROM nfl.main.drives('401772510')
WHERE is_score
ORDER BY drive_number;
Link
game_summary (game_id VARCHAR) 1 example

One NFL game's status, score by quarter, venue, and referee (ESPN)

Arguments
game_id VARCHAR
ESPN event id as text, for example '401772510' (see scoreboard() or schedule().espn_game_id).
Returns columns
game_id VARCHAR
ESPN event identifier; pass it to game_summary() and box scores
season INTEGER
NFL season year (the year the season starts)
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason
week INTEGER
Ordinal week number (1-18 regular season) within the season type
game_time TIMESTAMP WITH TIME ZONE
Scheduled kickoff time in UTC
name VARCHAR
Matchup name, for example Dallas Cowboys at Philadelphia Eagles
short_name VARCHAR
Short matchup name, for example DAL @ PHI
status VARCHAR
ESPN status code, for example STATUS_SCHEDULED or STATUS_FINAL
status_state VARCHAR
Game state: pre, in, or post
status_detail VARCHAR
Human-readable status, for example Final/OT or 2nd 4:12
completed BOOLEAN
Whether the game is complete
period INTEGER
Quarter number, current or final; 5 or more means overtime
clock VARCHAR
Game clock display for live games
home_team_id INTEGER
ESPN team identifier (integer code) of the home club
home_team_abbreviation VARCHAR
ESPN code of the home club, for example PHI
home_team_name VARCHAR
Display name of the home club
home_score INTEGER
Home club's score, in points; NULL before kickoff
away_team_id INTEGER
ESPN team identifier (integer code) of the away club
away_team_abbreviation VARCHAR
ESPN code of the visiting club, for example DAL
away_team_name VARCHAR
Display name of the visiting club
away_score INTEGER
Visiting club's score, in points; NULL before kickoff
winner_abbreviation VARCHAR
Winning team abbreviation; NULL until decided or for a tie
venue VARCHAR
Stadium name
venue_city VARCHAR
Stadium city
venue_state VARCHAR
Stadium state or province, when applicable
neutral_site BOOLEAN
Whether the game is played at a neutral site
attendance INTEGER
Reported crowd, in people; NULL or 0 before the game
home_q1 INTEGER
Home points in the first quarter
home_q2 INTEGER
Home points in the second quarter
home_q3 INTEGER
Home points in the third quarter
home_q4 INTEGER
Home points in the fourth quarter
home_ot INTEGER
Home points in overtime; NULL when the game had no overtime
away_q1 INTEGER
Away points in the first quarter
away_q2 INTEGER
Away points in the second quarter
away_q3 INTEGER
Away points in the third quarter
away_q4 INTEGER
Away points in the fourth quarter
away_ot INTEGER
Away points in overtime; NULL when the game had no overtime
grass BOOLEAN
Whether ESPN lists a natural-grass surface
referee VARCHAR
Name of the referee (crew chief)
Example

Score by quarter of the 2025 season opener.

SELECT away_team_abbreviation, away_q1, away_q2, away_q3, away_q4,
  away_score, home_team_abbreviation, home_q1, home_q2, home_q3, home_q4,
  home_score
FROM nfl.main.game_summary('401772510');
Link
ngs_passing (season := INTEGER, team := VARCHAR, week := INTEGER) 1 example

NFL Next Gen Stats passing metrics by week and season since 2016 (nflverse)

Named arguments
season := INTEGER
Season year. NULL returns every season since 2016. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter; week 0 rows are full-season aggregates. · default null
Returns columns
season INTEGER
Season
season_type VARCHAR
REG or POST
week INTEGER
Week; 0 is the full-season aggregate row
player_gsis_id VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables
player_display_name VARCHAR
Player name
player_position VARCHAR
Position
team VARCHAR
nflverse team abbreviation (NGS's LAR is normalized to LA)
attempts INTEGER
Pass attempts
completions INTEGER
Completions
pass_yards INTEGER
Passing yards
pass_touchdowns INTEGER
Passing TDs
interceptions INTEGER
Interceptions
passer_rating DOUBLE
Passer rating
completion_percentage DOUBLE
Completion %
expected_completion_percentage DOUBLE
Expected completion %
completion_percentage_above_expectation DOUBLE
CPOE
avg_time_to_throw DOUBLE
Average seconds from snap to throw
avg_completed_air_yards DOUBLE
Average air yards on completions
avg_intended_air_yards DOUBLE
Average air yards on attempts
avg_air_yards_differential DOUBLE
Completed minus intended air yards
avg_air_yards_to_sticks DOUBLE
Average air yards past the first-down marker
aggressiveness DOUBLE
% of attempts into tight coverage
max_completed_air_distance DOUBLE
Longest completed air distance
Example

2025 season leaders in completion percentage above expectation.

SELECT player_display_name, team, attempts,
  completion_percentage_above_expectation
FROM nfl.main.ngs_passing(season := 2025, week := 0)
WHERE season_type = 'REG'
ORDER BY completion_percentage_above_expectation DESC
LIMIT 10;
Link
ngs_receiving (season := INTEGER, team := VARCHAR, week := INTEGER) 1 example

NFL Next Gen Stats receiving metrics by week and season since 2016 (nflverse)

Named arguments
season := INTEGER
Season year. NULL returns every season since 2016. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter; week 0 rows are full-season aggregates. · default null
Returns columns
season INTEGER
Season
season_type VARCHAR
REG or POST
week INTEGER
Week; 0 is the full-season aggregate row
player_gsis_id VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables
player_display_name VARCHAR
Player name
player_position VARCHAR
Position
team VARCHAR
nflverse team abbreviation (NGS's LAR is normalized to LA)
targets INTEGER
Targets
receptions INTEGER
Receptions
yards INTEGER
Receiving yards
rec_touchdowns INTEGER
Receiving TDs
catch_percentage DOUBLE
Catch %
avg_cushion DOUBLE
Average yards of cushion at the snap
avg_separation DOUBLE
Average yards of separation at the catch or incompletion
avg_intended_air_yards DOUBLE
Average air yards per target
percent_share_of_intended_air_yards DOUBLE
% share of team intended air yards
avg_yac DOUBLE
Average yards after catch
avg_expected_yac DOUBLE
Average expected yards after catch
avg_yac_above_expectation DOUBLE
YAC over expected per reception
Example

2025 receivers with the most average separation.

SELECT player_display_name, team, targets, avg_separation
FROM nfl.main.ngs_receiving(season := 2025, week := 0)
WHERE season_type = 'REG'
ORDER BY avg_separation DESC
LIMIT 10;
Link
ngs_rushing (season := INTEGER, team := VARCHAR, week := INTEGER) 1 example

NFL Next Gen Stats rushing metrics by week and season since 2016 (nflverse)

Named arguments
season := INTEGER
Season year. NULL returns every season since 2016. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter; week 0 rows are full-season aggregates. · default null
Returns columns
season INTEGER
Season
season_type VARCHAR
REG or POST
week INTEGER
Week; 0 is the full-season aggregate row
player_gsis_id VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables
player_display_name VARCHAR
Player name
player_position VARCHAR
Position
team VARCHAR
nflverse team abbreviation (NGS's LAR is normalized to LA)
rush_attempts INTEGER
Rush attempts
rush_yards INTEGER
Rushing yards
rush_touchdowns INTEGER
Rushing TDs
avg_rush_yards DOUBLE
Yards per carry
efficiency DOUBLE
Distance travelled per rushing yard gained
percent_attempts_gte_eight_defenders DOUBLE
% of carries against 8+ box defenders
avg_time_to_los DOUBLE
Average seconds behind the line of scrimmage
expected_rush_yards DOUBLE
Expected rushing yards
rush_yards_over_expected DOUBLE
Rushing yards over expected
rush_yards_over_expected_per_att DOUBLE
RYOE per carry
rush_pct_over_expected DOUBLE
% of carries beating expectation
Example

2025 rush yards over expected per carry leaders.

SELECT player_display_name, team, rush_attempts,
  rush_yards_over_expected_per_att
FROM nfl.main.ngs_rushing(season := 2025, week := 0)
WHERE season_type = 'REG'
ORDER BY rush_yards_over_expected_per_att DESC
LIMIT 10;
Link
play_by_play (season := INTEGER, team := VARCHAR, week := INTEGER) 2 examples

Season play-by-play with EPA, win probability, and player ids (nflverse)

Named arguments
season := INTEGER
Season year (the year the season starts). NULL selects the most recent season. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter. · default null
Returns columns
game_id VARCHAR
nflverse game id
play_id BIGINT
Play id, unique within a game
season INTEGER
Season
week INTEGER
Week
season_type VARCHAR
REG or POST
game_date DATE
Game date
home_team VARCHAR
Home team
away_team VARCHAR
Away team
posteam VARCHAR
Offense (team in possession)
defteam VARCHAR
Defense
quarter INTEGER
Quarter; 5 is overtime
down INTEGER
Down; NULL on kicks
yards_to_go INTEGER
Yards to a first down
yardline_100 INTEGER
Yards from the opponent's end zone
game_seconds_remaining INTEGER
Seconds left in regulation
drive INTEGER
Drive number
play_type VARCHAR
run, pass, punt, field_goal, kickoff, extra_point, no_play, ..
description VARCHAR
Play text
yards_gained INTEGER
Yards gained
shotgun BOOLEAN
Shotgun formation
no_huddle BOOLEAN
No-huddle
qb_dropback BOOLEAN
QB dropped back
qb_scramble BOOLEAN
QB scrambled
pass_length VARCHAR
short or deep
pass_location VARCHAR
left, middle, or right
air_yards INTEGER
Air yards of the pass
yards_after_catch INTEGER
Yards after catch
run_location VARCHAR
left, middle, or right
run_gap VARCHAR
end, tackle, or guard
passer_player_id VARCHAR
Passer GSIS id
passer_player_name VARCHAR
Passer
receiver_player_id VARCHAR
Targeted receiver GSIS id
receiver_player_name VARCHAR
Targeted receiver
rusher_player_id VARCHAR
Rusher GSIS id
rusher_player_name VARCHAR
Rusher
complete_pass BOOLEAN
Completed pass
interception BOOLEAN
Interception
sack BOOLEAN
Sack
touchdown BOOLEAN
Touchdown scored
first_down BOOLEAN
First down gained
penalty BOOLEAN
Penalty on the play
fumble_lost BOOLEAN
Fumble lost
field_goal_result VARCHAR
made, missed, or blocked
kick_distance INTEGER
Kick distance
ep DOUBLE
Expected points before the play
epa DOUBLE
Expected points added
wp DOUBLE
Offense win probability before the play
wpa DOUBLE
Win probability added
cpoe DOUBLE
Completion % over expected
success BOOLEAN
EPA > 0
home_score INTEGER
Home score after the play
away_score INTEGER
Away score after the play
Examples (2)

Passing EPA per dropback leaders for 2025 week 1.

SELECT passer_player_name, count(*) AS dropbacks,
  round(avg(epa), 3) AS epa_per_play
FROM nfl.main.play_by_play(season := 2025, week := 1)
WHERE qb_dropback AND passer_player_name IS NOT NULL
GROUP BY passer_player_name
HAVING count(*) >= 20
ORDER BY epa_per_play DESC;

Fourth-down attempts by Philadelphia in 2025.

SELECT week, quarter, yards_to_go, play_type, first_down
FROM nfl.main.play_by_play(season := 2025, team := 'PHI')
WHERE down = 4 AND posteam = 'PHI' AND play_type IN ('run', 'pass')
ORDER BY week;
Link
play_by_play_game (game_id VARCHAR) 1 example

Play-by-play for one NFL game, live or final (ESPN)

Arguments
game_id VARCHAR
ESPN event id as text, for example '401772510' (see scoreboard() or schedule().espn_game_id).
Returns columns
game_id VARCHAR
ESPN event identifier
play_id VARCHAR
ESPN play identifier
sequence BIGINT
ESPN sequence number; orders plays within the game
drive_number INTEGER
Drive order within the game, starting at 1
offense_team_id INTEGER
ESPN team id of the offense at the snap
offense_abbreviation VARCHAR
Abbreviation of the offense at the snap
period INTEGER
Quarter; 5 or more is overtime
clock VARCHAR
Game clock at the snap
play_type VARCHAR
Play type, for example Rush, Pass Reception, or Punt
description VARCHAR
Play-by-play text
down INTEGER
Down before the play; NULL or 0 on kicks
distance INTEGER
Yards to go before the play
yards_to_endzone INTEGER
Yards from the line of scrimmage to the opponent's end zone
down_distance_text VARCHAR
Situation text, for example 3rd & 4 at KC 31
yards INTEGER
Yards gained on the play as ESPN credits it
scoring_play BOOLEAN
Whether the play scored
penalty BOOLEAN
Whether a penalty was called on the play
turnover BOOLEAN
Whether the play was a turnover
away_score INTEGER
Away team score after the play
home_score INTEGER
Home team score after the play
wallclock TIMESTAMP WITH TIME ZONE
Real-world UTC time of the play, when recorded
Example

Fourth-quarter plays of the 2025 season opener.

SELECT clock, offense_abbreviation, down_distance_text, play_type, yards
FROM nfl.main.play_by_play_game('401772510')
WHERE period = 4
ORDER BY sequence;
Link
player_game_log (athlete_id INTEGER, season := INTEGER) 1 example

One NFL player's per-game statistics for a season, one row per game and stat (ESPN)

Positional arguments
athlete_id INTEGER
ESPN athlete id (roster().athlete_id or players.espn_id), for example 3139477.
Named arguments
season := INTEGER
Season year. NULL asks ESPN for the athlete's current season. · default null
Returns columns
athlete_id INTEGER
ESPN athlete identifier
season INTEGER
Season of the game log
season_label VARCHAR
ESPN season label, for example 2025 Regular Season
game_id VARCHAR
ESPN event identifier
game_time TIMESTAMP WITH TIME ZONE
Kickoff time in UTC
week INTEGER
Week number
team_abbreviation VARCHAR
The player's team in this game
opponent_abbreviation VARCHAR
Opponent abbreviation
home_away VARCHAR
home or away from the player's perspective
result VARCHAR
W, L, or T from the player's perspective
score VARCHAR
Final score display, winner first, for example 23-20 OT
category VARCHAR
Stat category, for example passing, rushing, or receiving
stat VARCHAR
ESPN stat key, for example passingYards
label VARCHAR
Short stat label, for example YDS
value DECIMAL(12,3)
Numeric value of the stat; NULL when ESPN shows a marker
display_value VARCHAR
ESPN's original display value
Example

Patrick Mahomes's 2025 passing yards by week.

SELECT week, opponent_abbreviation, result, value AS passing_yards
FROM nfl.main.player_game_log(3139477, season := 2025)
WHERE stat = 'passingYards'
ORDER BY week;
Link
player_stats_season (season := INTEGER, season_type := VARCHAR, team := VARCHAR) 3 examples

Season player totals: passing, rushing, receiving, defense, kicking, EPA (nflverse)

Named arguments
season := INTEGER
Season year (the year the season starts). NULL selects the most recent season. · default null
season_type := VARCHAR
REG regular season, POST postseason, or REGPOST combined. · default "REG"
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
Returns columns
player_id VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables
player_name VARCHAR
Short player name, for example P.Mahomes
player_display_name VARCHAR
Full player name
position VARCHAR
Position
position_group VARCHAR
Position group
season INTEGER
Season
season_type VARCHAR
REG, POST, or REG+POST
recent_team VARCHAR
Most recent team in the season
games INTEGER
Games played
completions INTEGER
Completions
attempts INTEGER
Pass attempts
passing_yards INTEGER
Passing yards
passing_tds INTEGER
Passing TDs
interceptions INTEGER
Interceptions thrown
sacks_suffered INTEGER
Times sacked
sack_yards_lost INTEGER
Sack yards lost
passing_air_yards INTEGER
Air yards on attempts
passing_epa DOUBLE
EPA on dropbacks
passing_cpoe DOUBLE
Completion % over expected
carries INTEGER
Carries
rushing_yards INTEGER
Rushing yards
rushing_tds INTEGER
Rushing TDs
rushing_epa DOUBLE
EPA on carries
receptions INTEGER
Receptions
targets INTEGER
Targets
receiving_yards INTEGER
Receiving yards
receiving_tds INTEGER
Receiving TDs
receiving_air_yards INTEGER
Air yards on targets
receiving_yards_after_catch INTEGER
Yards after catch
receiving_epa DOUBLE
EPA on targets
target_share DOUBLE
Share of team targets
air_yards_share DOUBLE
Share of team air yards
wopr DOUBLE
Weighted opportunity rating
fumbles_lost INTEGER
Fumbles lost
tackles_solo INTEGER
Solo tackles
tackle_assists INTEGER
Tackle assists
tackles_for_loss INTEGER
Tackles for loss
def_sacks DOUBLE
Sacks (half sacks allowed)
def_qb_hits INTEGER
QB hits
def_interceptions INTEGER
Interceptions made
def_pass_defended INTEGER
Passes defended
def_tds INTEGER
Defensive TDs
fg_made INTEGER
Field goals made
fg_att INTEGER
Field goals attempted
fg_long INTEGER
Longest field goal
pat_made INTEGER
Extra points made
pat_att INTEGER
Extra points attempted
fantasy_points DOUBLE
Standard fantasy points
fantasy_points_ppr DOUBLE
PPR fantasy points
Examples (3)

2025 regular-season passing yards leaders.

SELECT player_display_name, recent_team, passing_yards, passing_tds,
  interceptions
FROM nfl.main.player_stats_season(season := 2025)
ORDER BY passing_yards DESC
LIMIT 10;

2025 sack leaders.

SELECT player_display_name, recent_team, def_sacks
FROM nfl.main.player_stats_season(season := 2025)
ORDER BY def_sacks DESC NULLS LAST
LIMIT 10;

2025 rookies with the most yards from scrimmage and where each was drafted, joining season stats to the players directory on the GSIS id (undrafted rookies show NULL draft columns).

SELECT s.player_display_name, s.position, s.recent_team, p.draft_round,
  p.draft_pick,
  coalesce(s.rushing_yards, 0) + coalesce(s.receiving_yards, 0) AS scrimmage_yards
FROM nfl.main.player_stats_season(season := 2025) s
JOIN nfl.main.players p ON p.gsis_id = s.player_id
WHERE p.rookie_season = 2025
ORDER BY scrimmage_yards DESC, s.player_display_name
LIMIT 10;
Link
player_stats_week (season := INTEGER, team := VARCHAR, week := INTEGER) 1 example

Per-game player passing, rushing, receiving, defense, kicking, and EPA (nflverse)

Named arguments
season := INTEGER
Season year (the year the season starts). NULL selects the most recent season. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter. · default null
Returns columns
player_id VARCHAR
NFL GSIS player id, for example 00-0033873; joins nflverse tables
player_name VARCHAR
Short player name, for example P.Mahomes
player_display_name VARCHAR
Full player name
position VARCHAR
Position
position_group VARCHAR
Position group
season INTEGER
Season
season_type VARCHAR
REG, POST, or REG+POST
week INTEGER
Week
game_id VARCHAR
nflverse game id
team VARCHAR
Player's team
opponent_team VARCHAR
Opponent
completions INTEGER
Completions
attempts INTEGER
Pass attempts
passing_yards INTEGER
Passing yards
passing_tds INTEGER
Passing TDs
interceptions INTEGER
Interceptions thrown
sacks_suffered INTEGER
Times sacked
sack_yards_lost INTEGER
Sack yards lost
passing_air_yards INTEGER
Air yards on attempts
passing_epa DOUBLE
EPA on dropbacks
passing_cpoe DOUBLE
Completion % over expected
carries INTEGER
Carries
rushing_yards INTEGER
Rushing yards
rushing_tds INTEGER
Rushing TDs
rushing_epa DOUBLE
EPA on carries
receptions INTEGER
Receptions
targets INTEGER
Targets
receiving_yards INTEGER
Receiving yards
receiving_tds INTEGER
Receiving TDs
receiving_air_yards INTEGER
Air yards on targets
receiving_yards_after_catch INTEGER
Yards after catch
receiving_epa DOUBLE
EPA on targets
target_share DOUBLE
Share of team targets
air_yards_share DOUBLE
Share of team air yards
wopr DOUBLE
Weighted opportunity rating
fumbles_lost INTEGER
Fumbles lost
tackles_solo INTEGER
Solo tackles
tackle_assists INTEGER
Tackle assists
tackles_for_loss INTEGER
Tackles for loss
def_sacks DOUBLE
Sacks (half sacks allowed)
def_qb_hits INTEGER
QB hits
def_interceptions INTEGER
Interceptions made
def_pass_defended INTEGER
Passes defended
def_tds INTEGER
Defensive TDs
fg_made INTEGER
Field goals made
fg_att INTEGER
Field goals attempted
fg_long INTEGER
Longest field goal
pat_made INTEGER
Extra points made
pat_att INTEGER
Extra points attempted
fantasy_points DOUBLE
Standard fantasy points
fantasy_points_ppr DOUBLE
PPR fantasy points
Example

Top rushing games of 2025 week 1.

SELECT player_display_name, team, opponent_team, carries, rushing_yards,
  rushing_tds
FROM nfl.main.player_stats_week(season := 2025, week := 1)
ORDER BY rushing_yards DESC
LIMIT 10;
Link
roster (team VARCHAR) 1 example

One NFL team's current roster with positions, bio, and status (ESPN)

Arguments
team VARCHAR
Team abbreviation such as KC, PHI, or WSH (nflverse LA and WAS are accepted).
Returns columns
team_id INTEGER
ESPN team identifier
team_abbreviation VARCHAR
Team abbreviation
season INTEGER
Season the roster belongs to
roster_group VARCHAR
ESPN group: offense, defense, specialTeam, injuredReserveOrOut, suspended, or practiceSquad
athlete_id INTEGER
ESPN athlete identifier
athlete_name VARCHAR
Player's full name
first_name VARCHAR
First name
last_name VARCHAR
Last name
jersey VARCHAR
Uniform number
position VARCHAR
Position abbreviation, for example QB or WR
position_name VARCHAR
Position name
age INTEGER
Age in years
birth_date DATE
Date of birth
height_inches INTEGER
Height in inches
weight_lbs INTEGER
Weight in pounds
experience_years INTEGER
Completed NFL seasons; 0 for rookies
college VARCHAR
College attended
birth_place VARCHAR
Birthplace as city, state or country
status VARCHAR
ESPN player status, for example Active
Example

Kansas City's quarterbacks.

SELECT athlete_name, jersey, age, experience_years
FROM nfl.main.roster('KC')
WHERE position = 'QB';
Link
schedule (season := INTEGER, team := VARCHAR, week := INTEGER) 2 examples

NFL schedule and results since 1999 with lines, roof, surface, weather (nflverse)

Named arguments
season := INTEGER
Season year. NULL returns every season since 1999. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter. · default null
Returns columns
game_id VARCHAR
nflverse game id, for example 2025_01_DAL_PHI
season INTEGER
NFL season year
game_type VARCHAR
nflverse game type: REG, WC, DIV, CON, or SB
week INTEGER
Week number; postseason weeks continue after the regular season
game_date DATE
Local game date
weekday VARCHAR
Day of the week
kickoff_et VARCHAR
Scheduled kickoff in US Eastern time as HH:MM
away_team VARCHAR
Away team nflverse abbreviation
away_score INTEGER
Away points; NULL until played
home_team VARCHAR
Home team nflverse abbreviation
home_score INTEGER
Home points; NULL until played
location VARCHAR
Home or Neutral
result INTEGER
Home score minus away score
total INTEGER
Combined points
overtime BOOLEAN
Whether the game went to overtime
espn_game_id VARCHAR
ESPN event id; pass it to game_summary()
away_rest INTEGER
Away team's days of rest
home_rest INTEGER
Home team's days of rest
spread_line DOUBLE
Closing point spread from the home team's view (positive = favored)
total_line DOUBLE
Closing over/under total
division_game BOOLEAN
Whether both teams share a division
roof VARCHAR
Roof type: outdoors, dome, closed, or open
surface VARCHAR
Playing surface, for example grass or fieldturf
temperature_f INTEGER
Kickoff temperature in Fahrenheit for outdoor games
wind_mph INTEGER
Wind speed in mph for outdoor games
away_qb_id VARCHAR
Away starting QB GSIS id
away_qb_name VARCHAR
Away starting quarterback
home_qb_id VARCHAR
Home starting QB GSIS id
home_qb_name VARCHAR
Home starting quarterback
away_coach VARCHAR
Away head coach
home_coach VARCHAR
Home head coach
referee VARCHAR
Referee
stadium VARCHAR
Stadium name
Examples (2)

Kansas City's 2025 results with the closing spread.

SELECT week, away_team, away_score, home_team, home_score, spread_line
FROM nfl.main.schedule(season := 2025, team := 'KC')
ORDER BY week;

Super Bowl results since 2015.

SELECT season, away_team, away_score, home_team, home_score, stadium
FROM nfl.main.schedule()
WHERE game_type = 'SB' AND season >= 2015
ORDER BY season;
Link
scoreboard (season INTEGER, week INTEGER, season_type := VARCHAR) 2 examples

NFL games and scores for a season, week, and season type (ESPN)

Positional arguments
season INTEGER
Season year.
week INTEGER
Week within the season type; postseason weeks are 1 wild card through 5 Super Bowl.
Named arguments
season_type := VARCHAR
preseason, regular, or postseason. · default "regular"
Returns columns
game_id VARCHAR
ESPN event identifier; pass it to game_summary() and box scores
season INTEGER
NFL season year (the year the season starts)
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason
week INTEGER
Ordinal week number (1-18 regular season) within the season type
game_time TIMESTAMP WITH TIME ZONE
Scheduled kickoff time in UTC
name VARCHAR
Matchup name, for example Dallas Cowboys at Philadelphia Eagles
short_name VARCHAR
Short matchup name, for example DAL @ PHI
status VARCHAR
ESPN status code, for example STATUS_SCHEDULED or STATUS_FINAL
status_state VARCHAR
Game state: pre, in, or post
status_detail VARCHAR
Human-readable status, for example Final/OT or 2nd 4:12
completed BOOLEAN
Whether the game is complete
period INTEGER
Quarter number, current or final; 5 or more means overtime
clock VARCHAR
Game clock display for live games
home_team_id INTEGER
ESPN team identifier (integer code) of the home club
home_team_abbreviation VARCHAR
ESPN code of the home club, for example PHI
home_team_name VARCHAR
Display name of the home club
home_score INTEGER
Home club's score, in points; NULL before kickoff
home_record VARCHAR
Home team's overall record after this game, as ESPN reports it
away_team_id INTEGER
ESPN team identifier (integer code) of the away club
away_team_abbreviation VARCHAR
ESPN code of the visiting club, for example DAL
away_team_name VARCHAR
Display name of the visiting club
away_score INTEGER
Visiting club's score, in points; NULL before kickoff
away_record VARCHAR
Away team's overall record after this game, as ESPN reports it
winner_abbreviation VARCHAR
Winning team abbreviation; NULL until decided or for a tie
venue VARCHAR
Stadium name
venue_city VARCHAR
Stadium city
venue_state VARCHAR
Stadium state or province, when applicable
neutral_site BOOLEAN
Whether the game is played at a neutral site
attendance INTEGER
Reported crowd, in people; NULL or 0 before the game
broadcast VARCHAR
National broadcast network(s), when listed
Examples (2)

2025 week 1 results.

SELECT short_name, away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
ORDER BY game_time;

The Super Bowl that ended the 2025 season.

SELECT name, away_score, home_score, venue
FROM nfl.main.scoreboard(2025, 5, season_type := 'postseason');
Link
scoring_plays (game_id VARCHAR) 1 example

Scoring summary for one NFL game with the running score (ESPN)

Arguments
game_id VARCHAR
ESPN event id as text, for example '401772510' (see scoreboard() or schedule().espn_game_id).
Returns columns
game_id VARCHAR
ESPN event identifier
play_id VARCHAR
ESPN play identifier
period INTEGER
Quarter of the score; 5 or more is overtime
clock VARCHAR
Game clock at the score
team_id INTEGER
ESPN identifier of the scoring team
team_abbreviation VARCHAR
Abbreviation of the scoring team
scoring_type VARCHAR
Scoring type, for example Touchdown, Field Goal, or Safety
play_type VARCHAR
Play type, for example Passing Touchdown
description VARCHAR
Play description including the try
away_score INTEGER
Away team score after the play
home_score INTEGER
Home team score after the play
Example

Scoring summary of the 2025 season opener.

SELECT period, clock, team_abbreviation, description, away_score, home_score
FROM nfl.main.scoring_plays('401772510');
Link
snap_counts (season := INTEGER, team := VARCHAR, week := INTEGER) 1 example

Per-game player snap counts and snap shares since 2012 (nflverse)

Named arguments
season := INTEGER
Season year (the year the season starts). NULL selects the most recent season. · default null
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
week := INTEGER
Optional week filter. · default null
Returns columns
game_id VARCHAR
nflverse game id
season INTEGER
Season
game_type VARCHAR
nflverse game type: REG, WC, DIV, CON, or SB
week INTEGER
Week
player VARCHAR
Player name
pfr_player_id VARCHAR
Pro Football Reference player id
position VARCHAR
Position
team VARCHAR
Team
opponent VARCHAR
Opponent
offense_snaps INTEGER
Offensive snaps played
offense_pct DOUBLE
Share of team offensive snaps (0-1)
defense_snaps INTEGER
Defensive snaps played
defense_pct DOUBLE
Share of team defensive snaps (0-1)
st_snaps INTEGER
Special-teams snaps played
st_pct DOUBLE
Share of team special-teams snaps (0-1)
Example

Kansas City's offensive snap shares in 2025 week 1.

SELECT player, position, offense_snaps, offense_pct
FROM nfl.main.snap_counts(season := 2025, week := 1, team := 'KC')
WHERE offense_snaps > 0
ORDER BY offense_snaps DESC;
Link
standings (season := INTEGER) 1 example

NFL division standings for a season with seeds, streaks, and splits (ESPN)

Named arguments
season := INTEGER
Season year. NULL asks ESPN for the current season. · default null
Returns columns
season INTEGER
NFL season year (the year the season starts)
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason
conference VARCHAR
Conference abbreviation, AFC or NFC
conference_name VARCHAR
Full conference name
division VARCHAR
Division name, for example AFC East
division_rank INTEGER
Position number 1-4 within the division (1 = leader), from ESPN's tiebreak seed order
playoff_seed INTEGER
Conference seed 1-16 in ESPN's tiebreak order; 1-7 qualify
team_id INTEGER
Stable ESPN team identifier (integer code, not a count); joins teams.team_id
team_abbreviation VARCHAR
ESPN code for the club, for example KC or WSH
team_name VARCHAR
Club display name, for example Kansas City Chiefs
wins INTEGER
Count of games won this season
losses INTEGER
Count of games lost this season
ties INTEGER
Count of games tied after overtime this season
win_percentage DECIMAL(4,3)
Fraction of games won (0-1), ties counted as half a win
games_back DECIMAL(4,1)
Games behind the division leader, in games; the leader is 0.0
points_for INTEGER
Count of points scored this season
points_against INTEGER
Count of points allowed this season
point_differential INTEGER
Points scored minus points allowed, in points
streak VARCHAR
Current streak label, for example W3 or L1
streak_length INTEGER
Signed streak length in games: positive for wins, negative for losses
home_record VARCHAR
Home record as W-L or W-L-T
road_record VARCHAR
Road record as W-L or W-L-T
division_record VARCHAR
Record against division opponents
conference_record VARCHAR
Record against conference opponents
clincher VARCHAR
ESPN clinch marker: * top seed and bye, z division, y wild card, x playoff berth, e eliminated
Example

Final 2025 AFC standings by seed.

SELECT playoff_seed, team_name, wins, losses, ties, clincher
FROM nfl.main.standings(season := 2025)
WHERE conference = 'AFC'
ORDER BY playoff_seed;
Link
team_schedule (team VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

One NFL team's games and results for a season and season type (ESPN)

Positional arguments
team VARCHAR
Team abbreviation such as KC, PHI, or WSH (nflverse LA and WAS are accepted).
Named arguments
season := INTEGER
Season year. NULL asks ESPN for the current season. · default null
season_type := VARCHAR
preseason, regular, or postseason. · default "regular"
Returns columns
game_id VARCHAR
ESPN event identifier; pass it to game_summary() and box scores
season INTEGER
NFL season year (the year the season starts)
season_type INTEGER
ESPN season-type code (not a count): 1 preseason, 2 regular season, 3 postseason
week INTEGER
Ordinal week number (1-18 regular season) within the season type
game_time TIMESTAMP WITH TIME ZONE
Scheduled kickoff time in UTC
name VARCHAR
Matchup name, for example Dallas Cowboys at Philadelphia Eagles
short_name VARCHAR
Short matchup name, for example DAL @ PHI
status VARCHAR
ESPN status code, for example STATUS_SCHEDULED or STATUS_FINAL
status_state VARCHAR
Game state: pre, in, or post
status_detail VARCHAR
Human-readable status, for example Final/OT or 2nd 4:12
completed BOOLEAN
Whether the game is complete
period INTEGER
Quarter number, current or final; 5 or more means overtime
clock VARCHAR
Game clock display for live games
home_team_id INTEGER
ESPN team identifier (integer code) of the home club
home_team_abbreviation VARCHAR
ESPN code of the home club, for example PHI
home_team_name VARCHAR
Display name of the home club
home_score INTEGER
Home club's score, in points; NULL before kickoff
home_record VARCHAR
Home team's overall record after this game, as ESPN reports it
away_team_id INTEGER
ESPN team identifier (integer code) of the away club
away_team_abbreviation VARCHAR
ESPN code of the visiting club, for example DAL
away_team_name VARCHAR
Display name of the visiting club
away_score INTEGER
Visiting club's score, in points; NULL before kickoff
away_record VARCHAR
Away team's overall record after this game, as ESPN reports it
winner_abbreviation VARCHAR
Winning team abbreviation; NULL until decided or for a tie
venue VARCHAR
Stadium name
venue_city VARCHAR
Stadium city
venue_state VARCHAR
Stadium state or province, when applicable
neutral_site BOOLEAN
Whether the game is played at a neutral site
attendance INTEGER
Reported crowd, in people; NULL or 0 before the game
broadcast VARCHAR
National broadcast network(s), when listed
Example

Kansas City's 2025 regular season.

SELECT week, short_name, away_score, home_score, winner_abbreviation
FROM nfl.main.team_schedule('KC', season := 2025)
ORDER BY week;
Link
team_stats (season := INTEGER, season_type := VARCHAR, team := VARCHAR) 2 examples

Season team offense, defense, special teams, and EPA totals (nflverse)

Named arguments
season := INTEGER
Season year (the year the season starts). NULL selects the most recent season. · default null
season_type := VARCHAR
REG regular season, POST postseason, or REGPOST combined. · default "REG"
team := VARCHAR
Optional nflverse team abbreviation filter, for example KC, LA, or WAS (case-insensitive). · default null
Returns columns
season INTEGER
Season
team VARCHAR
nflverse team abbreviation
season_type VARCHAR
REG, POST, or REG+POST
games INTEGER
Games played
completions INTEGER
Completions
attempts INTEGER
Pass attempts
passing_yards INTEGER
Gross passing yards
passing_tds INTEGER
Passing TDs
interceptions INTEGER
Interceptions thrown
sacks_suffered INTEGER
Times sacked
sack_yards_lost INTEGER
Sack yards lost
passing_epa DOUBLE
Total EPA on dropbacks
passing_cpoe DOUBLE
Completion % over expected
carries INTEGER
Carries
rushing_yards INTEGER
Rushing yards
rushing_tds INTEGER
Rushing TDs
rushing_epa DOUBLE
Total EPA on carries
receiving_yards_after_catch INTEGER
Yards after catch
passing_first_downs INTEGER
First downs by pass
rushing_first_downs INTEGER
First downs by rush
fumbles_lost INTEGER
Fumbles lost
penalties INTEGER
Penalties
penalty_yards INTEGER
Penalty yards
def_tackles_for_loss INTEGER
Defensive tackles for loss
def_sacks DOUBLE
Defensive sacks
def_qb_hits INTEGER
Defensive QB hits
def_interceptions INTEGER
Defensive interceptions
def_pass_defended INTEGER
Passes defended
def_fumbles_forced INTEGER
Fumbles forced
def_tds INTEGER
Defensive TDs
def_safeties INTEGER
Safeties
special_teams_tds INTEGER
Special-teams TDs
fg_made INTEGER
Field goals made
fg_att INTEGER
Field goals attempted
pat_made INTEGER
Extra points made
pat_att INTEGER
Extra points attempted
punts INTEGER
Punts
punt_net_yards INTEGER
Net punt yards
Examples (2)

2025 teams by rushing yards.

SELECT team, carries, rushing_yards, rushing_tds
FROM nfl.main.team_stats(season := 2025)
ORDER BY rushing_yards DESC;

2025 regular-season scoring leaders: points per game from the schedule's final scores beside each team's passing and rushing EPA and giveaways from team_stats.

WITH games AS (SELECT home_team, away_team, home_score, away_score FROM nfl.main.schedule(season := 2025) WHERE game_type = 'REG' AND home_score IS NOT NULL), points AS (SELECT team, count(*) AS games, avg(points) AS points_per_game FROM (SELECT home_team AS team, home_score AS points FROM games UNION ALL SELECT away_team, away_score FROM games) GROUP BY team) SELECT t.team, points.games, round(points.points_per_game, 1) AS points_per_game, round(t.passing_epa, 1) AS passing_epa, round(t.rushing_epa, 1) AS rushing_epa, t.interceptions + t.fumbles_lost AS giveaways
FROM nfl.main.team_stats(season := 2025) t
JOIN points USING (team)
ORDER BY points_per_game DESC, t.team
LIMIT 10;
Link

Try these queries

thirty_two_teams — ESPN lists all 32 NFL franchises.

SELECT count(*) AS teams FROM nfl.main.teams;

Uses teams

current_standings_cover_every_team — Current standings contain one row for each of the 32 teams in 8 divisions.

SELECT count(*) = 32 AND count(DISTINCT division) = 8 AS complete
FROM nfl.main.current_standings;

Uses current_standings

schedule_has_espn_crosswalk — nflverse's schedule links the 2025 opener to its ESPN game id.

SELECT espn_game_id
FROM nfl.main.schedule(season := 2025, week := 1)
WHERE home_team = 'PHI';

Uses schedule

opener_top_scrimmage_share — CeeDee Lamb's 110 scrimmage yards were the largest share (35.8%) of either team's offense in the 2025 opener.

SELECT athlete_name, scrimmage_yards, pct_of_team_offense
FROM (SELECT p.team_abbreviation, p.athlete_name, coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0) AS scrimmage_yards, t.total_yards AS team_total_yards, round(100.0 * (coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0)) / t.total_yards, 1) AS pct_of_team_offense FROM nfl.main.box_score_player('401772510') p JOIN nfl.main.box_score_team('401772510') t USING (team_id) WHERE p.rush_attempts > 0 OR p.receptions > 0 ORDER BY pct_of_team_offense DESC, p.athlete_name)
ORDER BY pct_of_team_offense DESC
LIMIT 1;

Uses box_score_playerbox_score_team

current_week_is_one_row — Sleeper reports exactly one current NFL state.

SELECT count(*) AS rows FROM nfl.main.current_week;

Uses current_week

First-round wide receivers drafted 2015-2020 who ran the combine 40-yard dash, fastest first, with career receiving yards and Pro Bowls, joining draft to combine on the Pro Football Reference id.

SELECT d.season, d.pick, d.player_name, d.team, c.forty, d.rec_yards,
  d.pro_bowls
FROM nfl.main.draft() d
JOIN nfl.main.combine() c ON c.pfr_id = d.pfr_player_id
WHERE d.position = 'WR' AND d.draft_round = 1 AND d.season BETWEEN 2015 AND 2020 AND c.forty IS NOT NULL
ORDER BY c.forty, d.pick

Uses draftcombine

43 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • What NFL season and week is it right now, and which teams are not playing this week?
  • Which team currently leads each NFL division, and what was each one's 2025 record?
  • List the Kansas City Chiefs' current depth-chart starters with jersey numbers and ages, and flag any who appear on the injury report.
  • For the 2025 season opener (ESPN game 401772510, Dallas at Philadelphia), show each team's points, total yards, turnovers, and leading rusher.
  • In ESPN game 401772510, how many scoring drives did each team have, how many yards did those drives cover, and how many plays did each offense run?
  • For every week 1 game of the 2025 NFL season, show the final score, the closing spread, and whether the home team covered.

NFL is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.