Skip to main content

NFL — NFL Pro API (pro.nfl.com, NFL+ Premium account) — Team

nfl_pro_team_offense_overview_season​

GET /api/secured/stats/team-offense/overview/season — one row per team for the season — team offensive overview incl. EPA per play, pass and rush splits.

Endpoint URL: GET https://pro.nfl.com/api/secured/stats/team-offense/overview/season

Valid URL: https://pro.nfl.com/api/secured/stats/team-offense/overview/season?season=2024&seasonType=REG&limit=500

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason, as the STARTING year (2024 = the 2024-25 NFL season).
seasonTypeseason_typeYSeason type code (string): PRE, REG, or POST -- not ESPN's numeric 1/2/3.
limitlimitYPage size. Responses truncate silently at this many rows; the getter pages on offset until it has them all.
offsetoffsetYZero-based row offset. The getter pages on this automatically; set it only to fetch a specific slice.
sortKeysort_keyYField name to sort by, e.g. epa.
sortValuesort_valueYSort direction: ASC or DESC.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_idStringNFL team id as a zero-padded string (e.g. '0200'); casting it to a number drops the leading zero.
gpInt64Games played in the season (and season type); the denominator of every per-game column.
totalInt64Offensive plays, season total (pass + run).
passInt64Pass plays, season total.
runInt64Run plays, season total.
pass_pctFloat64Share of plays that were passes (pass / total).
ppgFloat64Points per game.
ydsInt64Yards from scrimmage, season total (pass_yds + rush_yds).
ypgFloat64Yards per game (yds / gp).
yppFloat64Yards per play (yds / total).
tdInt64Touchdowns, season total.
epaFloat64Total expected points added over all plays (epa_pass + epa_rush).
epa_ppFloat64Expected points added per play (epa / total).
pass_ydsInt64Net passing yards, season total.
pass_ypgFloat64Passing yards per game (pass_yds / gp).
pass_yppFloat64Passing yards per pass play (pass_yds / pass).
sacked_ydsInt64Yards lost to sacks, season total.
sacked_ypgFloat64Sack yards lost per game (sacked_yds / gp).
epa_passFloat64Total expected points added on pass plays.
epa_pass_ppFloat64Expected points added per pass play (epa_pass / pass).
rush_ydsInt64Rushing yards, season total.
rush_ypgFloat64Rushing yards per game (rush_yds / gp).
rush_yppFloat64Rushing yards per run play (rush_yds / run).
epa_rushFloat64Total expected points added on run plays.
epa_rush_ppFloat64Expected points added per run play (epa_rush / run).
ryoeFloat64Rushing yards over expected, season total, per Next Gen Stats.
tttFloat64Average time to throw in seconds on pass plays, per Next Gen Stats.
qbpInt64Quarterback pressures on pass plays, season total.
qbp_pctFloat64Pressure rate: share of pass plays with a quarterback pressure.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NFLProAuthErrorNo user-bound NFL Pro token could be resolved (pass token= or email=/password=, or set NFLPRO_TOKEN, or NFLPRO_EMAIL/NFLPRO_PW), or the resolved token carries no active NFL_PLUS_* plan, or pro.nfl.com answered 401 / 403 (an AssetFetchError).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. Pro.nfl.com answered 400 / 422, or ignored offset.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other non-2xx or a connection failure after retries, or a 2xx whose body is not a JSON object or array -- including the HTTP 200 with an empty body that is how pro.nfl.com rejects unsupported query params.
NoDataErrorThe host answered 404 -- the requested resource does not exist.

Example​

nfl_pro_team_offense_overview_season(season=2024, season_type='REG')

nfl_pro_team_offense_overview_week​

GET /api/secured/stats/team-offense/overview/week — one row per team per week — team offensive overview incl. EPA per play, pass and rush splits.

Endpoint URL: GET https://pro.nfl.com/api/secured/stats/team-offense/overview/week

Valid URL: https://pro.nfl.com/api/secured/stats/team-offense/overview/week?season=2024&seasonType=REG&limit=500

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason, as the STARTING year (2024 = the 2024-25 NFL season).
seasonTypeseason_typeYSeason type code (string): PRE, REG, or POST -- not ESPN's numeric 1/2/3.
limitlimitYPage size. Responses truncate silently at this many rows; the getter pages on offset until it has them all.
offsetoffsetYZero-based row offset. The getter pages on this automatically; set it only to fetch a specific slice.
sortKeysort_keyYField name to sort by, e.g. epa.
sortValuesort_valueYSort direction: ASC or DESC.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_idStringNFL team id as a zero-padded string (e.g. '0200'); casting it to a number drops the leading zero.
gpInt64Games played in the season (and season type); the denominator of every per-game column.
totalInt64Offensive plays in the game (pass + run).
passInt64Pass plays in the game.
runInt64Run plays in the game.
pass_pctFloat64Share of plays that were passes (pass / total).
ppgInt64Points per game.
ydsInt64Yards from scrimmage in the game (pass_yds + rush_yds).
ypgInt64Yards per game (yds / gp).
yppFloat64Yards per play (yds / total).
tdInt64Touchdowns in the game.
epaFloat64Total expected points added over all plays (epa_pass + epa_rush).
epa_ppFloat64Expected points added per play (epa / total).
pass_ydsInt64Net passing yards in the game.
pass_ypgInt64Passing yards per game (pass_yds / gp).
pass_yppFloat64Passing yards per pass play (pass_yds / pass).
sacked_ydsInt64Yards lost to sacks in the game.
sacked_ypgInt64Sack yards lost per game (sacked_yds / gp).
epa_passFloat64Total expected points added on pass plays.
epa_pass_ppFloat64Expected points added per pass play (epa_pass / pass).
rush_ydsInt64Rushing yards in the game.
rush_ypgInt64Rushing yards per game (rush_yds / gp).
rush_yppFloat64Rushing yards per run play (rush_yds / run).
epa_rushFloat64Total expected points added on run plays.
epa_rush_ppFloat64Expected points added per run play (epa_rush / run).
ryoeFloat64Rushing yards over expected in the game, per Next Gen Stats.
tttFloat64Average time to throw in seconds on pass plays, per Next Gen Stats.
qbpInt64Quarterback pressures on pass plays in the game.
qbp_pctFloat64Pressure rate: share of pass plays with a quarterback pressure.
week_slugStringWeek slug of the game (e.g. 'WEEK_1', 'WEEK_18'); the week scope of the row.
opponent_team_idStringOpponent's NFL team id as a zero-padded string.
game_resultStringResult from the player's team's side: 'W', 'L' or 'T'.
final_scoreStringFinal score as 'own-opponent' (e.g. '19-32' for a 32-19 loss).
is_homeBooleanWhether the player's team was the home team in the game.
game_idInt64NFL game id as an integer (e.g. 2024090900, the date followed by a two-digit sequence).
fapi_game_idStringNFL Football API (FAPI) UUID of the game, the id api.nfl.com uses for the same game.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NFLProAuthErrorNo user-bound NFL Pro token could be resolved (pass token= or email=/password=, or set NFLPRO_TOKEN, or NFLPRO_EMAIL/NFLPRO_PW), or the resolved token carries no active NFL_PLUS_* plan, or pro.nfl.com answered 401 / 403 (an AssetFetchError).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. Pro.nfl.com answered 400 / 422, or ignored offset.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other non-2xx or a connection failure after retries, or a 2xx whose body is not a JSON object or array -- including the HTTP 200 with an empty body that is how pro.nfl.com rejects unsupported query params.
NoDataErrorThe host answered 404 -- the requested resource does not exist.

Example​

nfl_pro_team_offense_overview_week(season=2024, season_type='REG')

nfl_pro_team_defense_overview_season​

GET /api/secured/stats/team-defense/overview/season — one row per team for the season — team defensive overview incl. EPA allowed per play and takeaways.

Endpoint URL: GET https://pro.nfl.com/api/secured/stats/team-defense/overview/season

Valid URL: https://pro.nfl.com/api/secured/stats/team-defense/overview/season?season=2024&seasonType=REG&limit=500

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason, as the STARTING year (2024 = the 2024-25 NFL season).
seasonTypeseason_typeYSeason type code (string): PRE, REG, or POST -- not ESPN's numeric 1/2/3.
limitlimitYPage size. Responses truncate silently at this many rows; the getter pages on offset until it has them all.
offsetoffsetYZero-based row offset. The getter pages on this automatically; set it only to fetch a specific slice.
sortKeysort_keyYField name to sort by, e.g. epa.
sortValuesort_valueYSort direction: ASC or DESC.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_idStringNFL team id as a zero-padded string (e.g. '0200'); casting it to a number drops the leading zero.
gpInt64Games played in the season (and season type); the denominator of every per-game column.
totalInt64Defensive plays faced, season total (pass + run).
passInt64Pass plays, season total, from the defense's side (allowed / faced).
runInt64Run plays, season total, from the defense's side (allowed / faced).
pass_pctFloat64Share of plays that were passes (pass / total), from the defense's side (allowed / faced).
ppgFloat64Points per game, from the defense's side (allowed / faced).
ydsInt64Yards from scrimmage, season total (pass_yds + rush_yds), from the defense's side (allowed / faced).
ypgFloat64Yards per game (yds / gp), from the defense's side (allowed / faced).
yppFloat64Yards per play (yds / total), from the defense's side (allowed / faced).
tdInt64Touchdowns, season total, from the defense's side (allowed / faced).
pass_tdInt64Passing touchdowns allowed, season total.
rush_tdInt64Rushing touchdowns allowed, season total.
epaFloat64Total expected points added over all plays (epa_pass + epa_rush), from the defense's side (allowed / faced).
epa_ppFloat64Expected points added per play (epa / total), from the defense's side (allowed / faced).
pass_ydsInt64Net passing yards, season total, from the defense's side (allowed / faced).
pass_ypgFloat64Passing yards per game (pass_yds / gp), from the defense's side (allowed / faced).
pass_yppFloat64Passing yards per pass play (pass_yds / pass), from the defense's side (allowed / faced).
sacked_ydsInt64Yards lost to sacks, season total, from the defense's side (allowed / faced).
sacked_ypgFloat64Sack yards lost per game (sacked_yds / gp), from the defense's side (allowed / faced).
epa_passFloat64Total expected points added on pass plays, from the defense's side (allowed / faced).
epa_pass_ppFloat64Expected points added per pass play (epa_pass / pass), from the defense's side (allowed / faced).
rush_ydsInt64Rushing yards, season total, from the defense's side (allowed / faced).
rush_ypgFloat64Rushing yards per game (rush_yds / gp), from the defense's side (allowed / faced).
rush_yppFloat64Rushing yards per run play (rush_yds / run), from the defense's side (allowed / faced).
epa_rushFloat64Total expected points added on run plays, from the defense's side (allowed / faced).
epa_rush_ppFloat64Expected points added per run play (epa_rush / run), from the defense's side (allowed / faced).
ryoeFloat64Rushing yards over expected, season total, per Next Gen Stats, from the defense's side (allowed / faced).
tttFloat64Average time to throw in seconds on pass plays, per Next Gen Stats, from the defense's side (allowed / faced).
qbpInt64Quarterback pressures on pass plays, season total, from the defense's side (allowed / faced).
qbp_pctFloat64Pressure rate: share of pass plays with a quarterback pressure, from the defense's side (allowed / faced).
interceptionInt64Interceptions made, season total.
forced_fumbleInt64Fumbles forced, season total.
fumble_recoveredInt64Opponent fumbles recovered, season total.
defensive_touchdownInt64Defensive touchdowns scored, season total.
total_takeawaysInt64Takeaways, season total (interception + fumble_recovered).

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NFLProAuthErrorNo user-bound NFL Pro token could be resolved (pass token= or email=/password=, or set NFLPRO_TOKEN, or NFLPRO_EMAIL/NFLPRO_PW), or the resolved token carries no active NFL_PLUS_* plan, or pro.nfl.com answered 401 / 403 (an AssetFetchError).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. Pro.nfl.com answered 400 / 422, or ignored offset.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other non-2xx or a connection failure after retries, or a 2xx whose body is not a JSON object or array -- including the HTTP 200 with an empty body that is how pro.nfl.com rejects unsupported query params.
NoDataErrorThe host answered 404 -- the requested resource does not exist.

Example​

nfl_pro_team_defense_overview_season(season=2024, season_type='REG')

nfl_pro_team_defense_overview_week​

GET /api/secured/stats/team-defense/overview/week — one row per team per week — team defensive overview incl. EPA allowed per play and takeaways.

Endpoint URL: GET https://pro.nfl.com/api/secured/stats/team-defense/overview/week

Valid URL: https://pro.nfl.com/api/secured/stats/team-defense/overview/week?season=2024&seasonType=REG&limit=500

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason, as the STARTING year (2024 = the 2024-25 NFL season).
seasonTypeseason_typeYSeason type code (string): PRE, REG, or POST -- not ESPN's numeric 1/2/3.
limitlimitYPage size. Responses truncate silently at this many rows; the getter pages on offset until it has them all.
offsetoffsetYZero-based row offset. The getter pages on this automatically; set it only to fetch a specific slice.
sortKeysort_keyYField name to sort by, e.g. epa.
sortValuesort_valueYSort direction: ASC or DESC.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_idStringNFL team id as a zero-padded string (e.g. '0200'); casting it to a number drops the leading zero.
gpInt64Games played in the season (and season type); the denominator of every per-game column.
totalInt64Defensive plays faced in the game (pass + run).
passInt64Pass plays in the game, from the defense's side (allowed / faced).
runInt64Run plays in the game, from the defense's side (allowed / faced).
pass_pctFloat64Share of plays that were passes (pass / total), from the defense's side (allowed / faced).
ppgInt64Points per game, from the defense's side (allowed / faced).
ydsInt64Yards from scrimmage in the game (pass_yds + rush_yds), from the defense's side (allowed / faced).
ypgInt64Yards per game (yds / gp), from the defense's side (allowed / faced).
yppFloat64Yards per play (yds / total), from the defense's side (allowed / faced).
tdInt64Touchdowns in the game, from the defense's side (allowed / faced).
pass_tdInt64Passing touchdowns allowed in the game.
rush_tdInt64Rushing touchdowns allowed in the game.
epaFloat64Total expected points added over all plays (epa_pass + epa_rush), from the defense's side (allowed / faced).
epa_ppFloat64Expected points added per play (epa / total), from the defense's side (allowed / faced).
pass_ydsInt64Net passing yards in the game, from the defense's side (allowed / faced).
pass_ypgInt64Passing yards per game (pass_yds / gp), from the defense's side (allowed / faced).
pass_yppFloat64Passing yards per pass play (pass_yds / pass), from the defense's side (allowed / faced).
sacked_ydsInt64Yards lost to sacks in the game, from the defense's side (allowed / faced).
sacked_ypgInt64Sack yards lost per game (sacked_yds / gp), from the defense's side (allowed / faced).
epa_passFloat64Total expected points added on pass plays, from the defense's side (allowed / faced).
epa_pass_ppFloat64Expected points added per pass play (epa_pass / pass), from the defense's side (allowed / faced).
rush_ydsInt64Rushing yards in the game, from the defense's side (allowed / faced).
rush_ypgInt64Rushing yards per game (rush_yds / gp), from the defense's side (allowed / faced).
rush_yppFloat64Rushing yards per run play (rush_yds / run), from the defense's side (allowed / faced).
epa_rushFloat64Total expected points added on run plays, from the defense's side (allowed / faced).
epa_rush_ppFloat64Expected points added per run play (epa_rush / run), from the defense's side (allowed / faced).
ryoeFloat64Rushing yards over expected in the game, per Next Gen Stats, from the defense's side (allowed / faced).
tttFloat64Average time to throw in seconds on pass plays, per Next Gen Stats, from the defense's side (allowed / faced).
qbpInt64Quarterback pressures on pass plays in the game, from the defense's side (allowed / faced).
qbp_pctFloat64Pressure rate: share of pass plays with a quarterback pressure, from the defense's side (allowed / faced).
interceptionInt64Interceptions made in the game.
forced_fumbleInt64Fumbles forced in the game.
fumble_recoveredInt64Opponent fumbles recovered in the game.
defensive_touchdownInt64Defensive touchdowns scored in the game.
total_takeawaysInt64Takeaways in the game (interception + fumble_recovered).
week_slugStringWeek slug of the game (e.g. 'WEEK_1', 'WEEK_18'); the week scope of the row.
opponent_team_idStringOpponent's NFL team id as a zero-padded string.
game_resultStringResult from the player's team's side: 'W', 'L' or 'T'.
final_scoreStringFinal score as 'own-opponent' (e.g. '19-32' for a 32-19 loss).
is_homeBooleanWhether the player's team was the home team in the game.
game_idInt64NFL game id as an integer (e.g. 2024090900, the date followed by a two-digit sequence).
fapi_game_idStringNFL Football API (FAPI) UUID of the game, the id api.nfl.com uses for the same game.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NFLProAuthErrorNo user-bound NFL Pro token could be resolved (pass token= or email=/password=, or set NFLPRO_TOKEN, or NFLPRO_EMAIL/NFLPRO_PW), or the resolved token carries no active NFL_PLUS_* plan, or pro.nfl.com answered 401 / 403 (an AssetFetchError).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. Pro.nfl.com answered 400 / 422, or ignored offset.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other non-2xx or a connection failure after retries, or a 2xx whose body is not a JSON object or array -- including the HTTP 200 with an empty body that is how pro.nfl.com rejects unsupported query params.
NoDataErrorThe host answered 404 -- the requested resource does not exist.

Example​

nfl_pro_team_defense_overview_week(season=2024, season_type='REG')