Skip to main content

NFL — PFF Premium Stats -- LEGACY (premium.pff.com, cookie auth; use the PFF Developer API) — Other

pff_leagues​

LEGACY (premium.pff.com cookie auth; prefer the pff_api_* Developer API wrappers). Leagues + seasons + week groups (bootstrap)

Endpoint URL: GET https://premium.pff.com/api/v1/leagues

Valid URL: https://premium.pff.com/api/v1/leagues

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
abbreviationcharacterMetric abbreviation.
default_seasonnumericSeason the source API currently treats as the default for this league.
default_weeknumericWeek number the source API currently treats as the default for this league.
default_week_groupcharacterIdentifier of the week grouping (e.g., regular season or postseason phase) currently set as the league default.
idnumericID of the player in the 'name' column.
namecharacterName, as reported by MFL but reordered into FirstName LastName instead of Last, First
seasonslistNBA seasons played.
slugcharacterURL slug for the team.
week_groupslistNested list of week-group objects (phase label and week span) defined for the league.
weekslistNested list of week objects available for the league.

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

Example​

pff_leagues()

Last validated n/a.

pff_teams​

LEGACY (premium.pff.com cookie auth; prefer the pff_api_* Developer API wrappers). Teams / franchise groups + games for a league-season

Endpoint URL: GET https://premium.pff.com/api/v1/teams

Valid URL: https://premium.pff.com/api/v1/teams

API ParameterPythonPatternRequiredNullableDescription
leagueleagueYLeague slug (nfl/ncaa/aaf/ufl); pre-bound by the per-league shim modules.
seasonseasonYSeason (starting year).

Returns​

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

col_nametypedescription
heirarchylistNested hierarchy of franchise groupings as returned by the PFF API; the field name's spelling follows the source.
idnumericPFF id of the conference, division or tier group (e.g. 1 = AFC, 2 = AFC East).
namecharacterGroup name (e.g. "AFC", "AFC East"; NCAA groups such as "FBS" or "The American").
slugcharacterURL-style slug of the group (e.g. "afc-east").

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

Example​

pff_teams()

Last validated n/a.

pff_teams_overview​

LEGACY (premium.pff.com cookie auth; prefer the pff_api_* Developer API wrappers). Team overview table (By Team landing)

Endpoint URL: GET https://premium.pff.com/api/v1/teams/overview

Valid URL: https://premium.pff.com/api/v1/teams/overview

API ParameterPythonPatternRequiredNullableDescription
leagueleagueYLeague slug (nfl/ncaa/aaf/ufl); pre-bound by the per-league shim modules.
seasonseasonYSeason (starting year).
weekweekYWeek or week-group key (e.g. 'REG', a week number, or a range).

Returns​

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

col_nametypedescription
abbreviationcharacterTeam abbreviation.
franchise_idnumericPFF franchise (team) id (integer join key).
grades_coverage_defensenumericPFF team coverage grade (0-100).
grades_defensenumericPFF team defense grade (0-100).
grades_misc_stnumericTeam-level PFF miscellaneous special-teams grade, 0-100.
grades_offensenumericPFF team offense grade (0-100).
grades_overallnumericTeam-level PFF overall grade, 0-100.
grades_passnumericTeam-level PFF passing grade, 0-100.
grades_pass_blocknumericTeam-level PFF pass-blocking grade, 0-100.
grades_pass_routenumericTeam-level PFF receiving (route-running) grade, 0-100.
grades_pass_rush_defensenumericTeam-level PFF pass-rush grade, 0-100.
grades_runnumericTeam-level PFF rushing grade, 0-100.
grades_run_blocknumericTeam-level PFF run-blocking grade, 0-100.
grades_run_defensenumericTeam-level PFF run-defense grade, 0-100.
grades_tacklenumericTeam-level PFF tackling grade, 0-100.
lossesnumericGames the team lost over the covered span.
namecharacterFull team name (e.g. "Arizona Cardinals").
points_allowednumericTotal points allowed by the team over the covered span.
points_scorednumericTotal points scored by the team over the covered span.
tiesnumericGames the team tied over the covered span.
winsnumericGames the team won over the covered span.

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

Example​

pff_teams_overview()

Last validated n/a.

pff_games​

LEGACY (premium.pff.com cookie auth; prefer the pff_api_* Developer API wrappers). Games list for league-season(-week)

Endpoint URL: GET https://premium.pff.com/api/v1/games

Valid URL: https://premium.pff.com/api/v1/games

API ParameterPythonPatternRequiredNullableDescription
leagueleagueYLeague slug (nfl/ncaa/aaf/ufl); pre-bound by the per-league shim modules.
seasonseasonYSeason (starting year).
weekweekYSingle week number.

Returns​

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

col_nametypedescription
away_franchise_idnumericPFF franchise id of the away team.
away_teamlistAway team object (JSON-stringified in the tidy frame).
has_statslogicalWhether PFF has published stats for the game.
home_franchise_idnumericPFF franchise id of the home team.
home_teamlistHome team object (JSON-stringified in the tidy frame).
idnumericPFF game id (integer join key).
leaguelistLeague slug.
league_idnumericPFF league id (integer).
lock_statuscharacterData lock/publish status for the game.
scorelistFinal score string.
seasonnumericSeason (starting year) of the game.
stadium_idnumericPFF stadium identifier for the game venue.
startcharacterKickoff timestamp (ISO 8601 string).
weeknumericWeek number of the game.

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

Example​

pff_games()

Last validated n/a.