Skip to main content

NFL — NFL.com API — Live

nfl_live_team_statistics​

GET /football/v2/stats/live/team-statistics/{game_id} — one row per side (away, home): the live team box score.

Endpoint URL: GET https://api.nfl.com/football/v2/stats/live/team-statistics/{game_id}

Valid URL: https://api.nfl.com/football/v2/stats/live/team-statistics/a9a890ed-4feb-11f1-abca-2c54536568a9

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYShield uuid game id -- the id column of the week games and weekly game details listings.

Returns​

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

col_nametypedescription
game_idStringNFL.com Shield GUID for the game.
offsetInt64Live-feed sequence position the statistics reflect; advances as the game is played.
sideStringWhich side of the game the row belongs to: away or home.
team_idStringNFL.com Shield GUID of the team.
defensive_fumbles_forcedInt64Defense: fumbles forced.
defensive_fumbles_recoveredInt64Defense: fumbles recovered.
defensive_interceptionsInt64Defense: interceptions.
defensive_passes_defendedInt64Defense: passes defended.
defensive_quarterback_hitsInt64Defense: quarterback hits.
defensive_sacksInt64Defense: sacks.
defensive_safetiesInt64Defense: safeties.
defensive_tackles_combinedFloat64Defense: tackles combined.
defensive_tackles_for_lossFloat64Defense: tackles for loss.
defensive_touchdownsInt64Defense: touchdowns.
extra_point_kick_attemptsInt64Extra points: kick attempts.
extra_point_kick_blockedInt64Extra points: kick blocked.
extra_point_kick_madeInt64Extra points: kick made.
field_goals_attemptsInt64Field goals: attempts.
field_goals_blockedInt64Field goals: blocked.
field_goals_longest_madeInt64Field goals: longest made.
field_goals_madeInt64Field goals: made.
first_downs_passingInt64First downs: passing.
first_downs_penaltyInt64First downs: penalty.
first_downs_rushingInt64First downs: rushing.
first_downs_totalInt64First downs: total.
fourth_down_attemptsInt64Fourth down: attempts.
fourth_down_conversionsInt64Fourth down: conversions.
fumbles_lostInt64Fumbles: lost.
fumbles_madeInt64Fumbles: made.
fumbles_own_recoveriesInt64Fumbles: own recoveries.
fumbles_returned_touchdownsInt64Fumbles: returned touchdowns.
goal_to_go_attemptsInt64Goal-to-go: attempts.
goal_to_go_successesInt64Goal-to-go: successes.
interceptions_longest_touchdownInt64Interceptions: longest touchdown.
interceptions_madeInt64Interceptions made by the defense.
interceptions_returnedInt64Interceptions: returned.
interceptions_returned_touchdownsInt64Interceptions: returned touchdowns.
interceptions_returned_yardsInt64Interceptions: returned yards.
kick_returns_longestInt64Kickoff returns: longest.
kick_returns_yards_averageFloat64Kickoff returns: yards average.
kickoffs_in_end_zoneInt64Kickoffs: in end zone.
kickoffs_madeInt64Kickoffs: made.
kickoffs_returnedInt64Kickoffs: returned.
kickoffs_returned_touchdownsInt64Kickoffs: returned touchdowns.
kickoffs_returned_yardsInt64Kickoffs: returned yards.
kickoffs_touchbacksInt64Kickoffs: touchbacks.
passing_attemptsInt64Passing: attempts.
passing_completionsInt64Passing: completions.
passing_completion_percentFloat64Passing: completion percent.
passing_interceptionsInt64Passing: interceptions.
passing_ratingFloat64Passing: rating.
passing_sacksInt64Passing: sacks.
passing_sack_yards_lostFloat64Passing: sack yards lost.
passing_touchdownsInt64Passing: touchdowns.
passing_yardsInt64Passing: yards.
passing_yards_averageFloat64Passing: yards average.
passing_yards_per_attemptFloat64Passing: yards per attempt.
penalties_madeInt64Penalties: made.
penalties_yardsInt64Penalties: yards.
punt_returns_longestInt64Punt returns: longest.
punt_returns_yards_averageFloat64Punt returns: yards average.
punts_attemptsInt64Punting: attempts.
punts_blockedInt64Punting: blocked.
punts_inside20Int64Punting: inside the 20.
punts_longestInt64Punting: longest.
punts_returnedInt64Punting: returned.
punts_returned_touchdownsInt64Punting: returned touchdowns.
punts_returned_yardsInt64Punting: returned yards.
punts_touchbacksInt64Punting: touchbacks.
punts_yardsInt64Punting: yards.
punts_yards_average_grossFloat64Gross punting average (yards per punt).
punts_yards_average_netFloat64Net punting average (yards per punt, after returns and touchbacks).
receptionsInt64Receptions.
receptions_longInt64Receiving: longest.
receptions_pass_targetInt64Pass targets.
receptions_touchdownsInt64Receiving: touchdowns.
receptions_yardsInt64Receiving: yards.
receptions_yards_after_catchInt64Receiving yards after the catch.
red_zone_attemptsInt64Red zone: attempts.
red_zone_successesInt64Red zone: successes.
rushing_longInt64Rushing: longest.
rushing_playsInt64Rushing: plays.
rushing_tackles_for_lossInt64Rushing: tackles for loss.
rushing_tackles_for_loss_yardsInt64Rushing: tackles for loss yards.
rushing_touchdownsInt64Rushing: touchdowns.
rushing_yardsInt64Rushing: yards.
rushing_yards_averageFloat64Rushing: yards average.
safeties_one_pointInt64Safeties: one point.
safeties_two_pointInt64Safeties: two point.
score_q1Int64Points scored in the 1st quarter.
score_q2Int64Points scored in the 2nd quarter.
score_q3Int64Points scored in the 3rd quarter.
score_q4Int64Points scored in the 4th quarter.
score_otInt64Points scored in overtime.
score_totalInt64Total points scored.
third_down_attemptsInt64Third down: attempts.
third_down_conversionsInt64Third down: conversions.
time_of_possessionStringTime of possession (MM:SS).
timeouts_remainingInt64Timeouts: remaining.
timeouts_usedInt64Timeouts: used.
total_playsInt64Totals: plays.
total_yardsInt64Totals: yards.
touchdowns_all_otherInt64Touchdowns: all other.
turnoversInt64Total turnovers.
two_point_conversions_defensive_returnsInt64Two-point conversions: defensive returns.
two_point_conversions_passing_attemptsInt64Two-point conversions: passing attempts.
two_point_conversions_passing_successesInt64Two-point conversions: passing successes.
two_point_conversions_rushing_attemptsInt64Two-point conversions: rushing attempts.
two_point_conversions_rushing_successesInt64Two-point conversions: rushing successes.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

nfl_live_team_statistics(game_id='a9a890ed-4feb-11f1-abca-2c54536568a9')

nfl_live_player_statistics​

GET /football/v2/stats/live/player-statistics/{game_id} — one row per player per side: the live player box score.

Endpoint URL: GET https://api.nfl.com/football/v2/stats/live/player-statistics/{game_id}

Valid URL: https://api.nfl.com/football/v2/stats/live/player-statistics/a9a890ed-4feb-11f1-abca-2c54536568a9

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYShield uuid game id -- the id column of the week games and weekly game details listings.

Returns​

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

col_nametypedescription
game_idStringNFL.com Shield GUID for the game.
offsetInt64Live-feed sequence position the statistics reflect; advances as the game is played.
sideStringWhich side of the game the row belongs to: away or home.
team_idStringNFL.com Shield GUID of the team.
gsis_player_idStringNFL GSIS player id (00-00xxxxx), the key nflverse data joins on.
gsis_player_jersey_numberStringPlayer's jersey number as recorded in GSIS.
gsis_player_nameStringPlayer name as recorded in GSIS (e.g. P.Mahomes).
person_idStringNFL.com Shield GUID of the player (person).
defensive_fumbles_forcedInt64Defense: fumbles forced.
defensive_fumbles_recoveredInt64Defense: fumbles recovered.
defensive_interceptionsInt64Defense: interceptions.
defensive_miscellaneous_fumbles_forcedInt64Defense (miscellaneous): fumbles forced.
defensive_miscellaneous_fumbles_recoveredInt64Defense (miscellaneous): fumbles recovered.
defensive_miscellaneous_tacklesFloat64Defense (miscellaneous): tackles.
defensive_miscellaneous_tackles_assistsInt64Defense (miscellaneous): tackles assists.
defensive_passes_defendedInt64Defense: passes defended.
defensive_quarterback_hitsInt64Defense: quarterback hits.
defensive_sacksFloat64Defense: sacks.
defensive_sack_yardsFloat64Defense: sack yards.
defensive_safetiesInt64Defense: safeties.
defensive_special_teams_fumbles_forcedInt64Defense: special teams fumbles forced.
defensive_special_teams_fumbles_recoveredInt64Defense: special teams fumbles recovered.
defensive_special_teams_tacklesFloat64Defense: special teams tackles.
defensive_special_teams_tackles_assistsInt64Defense: special teams tackles assists.
defensive_special_teams_blocksInt64Defense: special teams blocks.
defensive_tacklesFloat64Defense: tackles.
defensive_tackles_assistsInt64Defense: tackles assists.
defensive_tackles_combinedFloat64Defense: tackles combined.
defensive_tackles_for_lossFloat64Defense: tackles for loss.
defensive_tackles_for_loss_yardsFloat64Defense: tackles for loss yards.
extra_points_attemptedInt64Extra points: attempted.
extra_points_madeInt64Extra points: made.
extra_points_missedInt64Extra points: missed.
extra_points_blockedInt64Extra points: blocked.
field_goals_attemptedInt64Field goals: attempted.
field_goals_average_lengthFloat64Field goals: average length.
field_goals_blockedInt64Field goals: blocked.
field_goals_longest_madeInt64Field goals: longest made.
field_goals_madeInt64Field goals: made.
field_goals_missedInt64Field goals: missed.
field_goals_total_yardsInt64Field goals: total yards.
fumblesInt64Fumbles.
fumbles_forcedInt64Fumbles: forced.
fumbles_lostInt64Fumbles: lost.
fumbles_recovered_in_end_zone_for_touchdownInt64Fumbles: recovered in end zone for touchdown.
fumbles_opponent_recoveriesInt64Fumbles: opponent recoveries.
fumbles_opponent_recovery_touchdownsInt64Fumbles: opponent recovery touchdowns.
fumbles_opponent_recovery_yardsInt64Fumbles: opponent recovery yards.
fumbles_out_of_boundsInt64Fumbles: out of bounds.
fumbles_own_recoveriesInt64Fumbles: own recoveries.
fumbles_own_recovery_touchdownsInt64Fumbles: own recovery touchdowns.
fumbles_own_recovery_yardsInt64Fumbles: own recovery yards.
interceptionsInt64Interceptions thrown.
interceptions_longInt64Interceptions: longest.
interceptions_longest_touchdownInt64Interceptions: longest touchdown.
interceptions_touchdownsInt64Interceptions: touchdowns.
interceptions_yardsInt64Interceptions: yards.
kickoffsInt64Kickoffs.
kickoffs_inside20Int64Kickoffs: inside the 20.
kickoffs_out_of_boundsInt64Kickoffs: out of bounds.
kickoffs_return_yardsInt64Kickoffs: return yards.
kickoffs_to_end_zoneInt64Kickoffs: to end zone.
kickoffs_touchbacksInt64Kickoffs: touchbacks.
kickoffs_yardsInt64Kickoffs: yards.
kick_returnsInt64Kickoff returns.
kick_returns_fair_catchesInt64Kickoff returns: fair catches.
kick_returns_longestInt64Kickoff returns: longest.
kick_returns_longest_touchdownInt64Kickoff returns: longest touchdown.
kick_returns_touchdownsInt64Kickoff returns: touchdowns.
kick_returns_yardsInt64Kickoff returns: yards.
kick_returns_yards_averageFloat64Kickoff returns: yards average.
passing_attemptsInt64Passing: attempts.
passing_completionsInt64Passing: completions.
passing_completion_percentFloat64Passing: completion percent.
passing_interceptionsInt64Passing: interceptions.
passing_longInt64Passing: longest.
passing_longest_touchdown_passInt64Passing: longest touchdown pass.
passing_ratingFloat64Passing: rating.
passing_sack_yards_lostFloat64Passing: sack yards lost.
passing_times_sackedInt64Passing: times sacked.
passing_touchdownsInt64Passing: touchdowns.
passing_yardsInt64Passing: yards.
passing_yards_averageFloat64Passing: yards average.
passing_yards_per_attemptFloat64Passing: yards per attempt.
puntsInt64Punts.
punts_blockedInt64Punting: blocked.
punts_inside20Int64Punting: inside the 20.
punts_longestInt64Punting: longest.
punts_return_yardsInt64Punt return yards allowed on this player's punts.
punts_touchbacksInt64Punting: touchbacks.
punts_yardsInt64Punting: yards.
punts_yards_average_grossFloat64Gross punting average (yards per punt).
punts_yards_average_netFloat64Net punting average (yards per punt, after returns and touchbacks).
punt_returnsInt64Punt returns.
punt_returns_fair_catchesInt64Punt returns: fair catches.
punt_returns_longestInt64Punt returns: longest.
punt_returns_longest_touchdownInt64Punt returns: longest touchdown.
punt_returns_touchdownsInt64Punt returns: touchdowns.
punt_returns_yardsInt64Punt returns: yards.
punt_returns_yards_averageFloat64Punt returns: yards average.
receptionsInt64Receptions.
receptions_averageFloat64Receiving: average.
receptions_longInt64Receiving: longest.
receptions_longest_touchdownInt64Receiving: longest touchdown.
receptions_pass_targetInt64Pass targets.
receptions_touchdownsInt64Receiving: touchdowns.
receptions_yardsInt64Receiving: yards.
receptions_yards_after_catchInt64Receiving yards after the catch.
rushing_attemptsInt64Rushing: attempts.
rushing_averageFloat64Rushing: average.
rushing_longInt64Rushing: longest.
rushing_longest_touchdownInt64Rushing: longest touchdown.
rushing_touchdownsInt64Rushing: touchdowns.
rushing_yardsInt64Rushing: yards.
two_point_defensive_attemptsInt64Two-point conversions: defensive attempts.
two_point_defensive_successesInt64Two-point conversions: defensive successes.
two_point_passing_attemptsInt64Two-point conversions: passing attempts.
two_point_passing_successesInt64Two-point conversions: passing successes.
two_point_reception_attemptsInt64Two-point conversions: reception attempts.
two_point_reception_successesInt64Two-point conversions: reception successes.
two_point_rushing_attemptsInt64Two-point conversions: rushing attempts.
two_point_rushing_successesInt64Two-point conversions: rushing successes.

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
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.

Example​

nfl_live_player_statistics(game_id='a9a890ed-4feb-11f1-abca-2c54536568a9')