Engineering · 2026-11-26 · 7 min read

NFL Division Standings, Tiebreakers, and Strength-of-Schedule Pipelines with OpenPigskin

Build NFL division standings, conference tiebreakers, and Strength-of-Schedule pipelines using /v1/seasons/{id}/standings and /v1/games JSON.

What /v1/seasons/{id}/standings gives you out of the box

GET /v1/seasons/{id}/standings (available on the free Starter plan for recent seasons and back to 1999 on Developer and above) returns all 32 teams for a regular season, optionally filtered by ?conference=AFC|NFC or ?division=NFC%20West.

Every team row includes team_id, abbr, name, conference, division, wins, losses, ties, games, win_pct (computed as (wins + 0.5 * ties) / games rounded to 3 decimals), points_for, points_against, point_diff, division_wins, division_losses, conference_wins and conference_losses.

Look at the real 2025 NFC East and NFC West standings from the archive: Dallas finished 7–9–1 with win_pct: 0.441 ((7 + 0.5) / 17), while Seattle won the NFC West at 14–3 (0.824, 483 PF, 292 PA, +191 point_diff, 4–2 division, 9–3 conference) ahead of both the Rams (12–5, 0.706, +172, 4–2 division, 7–5 conference) and the 49ers (12–5, 0.706, +66, 4–2 division, 9–3 conference).

bash
# Filter to one division
curl "https://openpigskinapi.com/v1/seasons/2025/standings?division=NFC%20West" \
  -H "Authorization: Bearer op_live_YOUR_KEY"

# Filter to an entire conference
curl "https://openpigskinapi.com/v1/seasons/2025/standings?conference=AFC" \
  -H "Authorization: Bearer op_live_YOUR_KEY"

Why real NFL playoff tiebreakers need the /v1/games schedule ledger

OpenPigskin's /standings endpoint sorts teams deterministically by (conference, division, -win_pct, -point_diff). That makes clean, predictable division tables, but official NFL playoff seeding does not stop at point differential.

Two real examples from the 2025 regular season show why you must join /standings with the 272-game regular-season ledger from GET /v1/games?season=2025&game_type=REG&limit=100. First, in the NFC West, the Rams and 49ers both finished 12–5 (0.706) with identical 4–2 division records — /standings lists LA ahead on +172 vs. +66 point differential, while SF held the better conference record (9–3 vs. 7–5). Second, at the top of the AFC, both New England (AFC East, 14–3, 490 PF, 320 PA, +170) and Denver (AFC West, 14–3, 401 PF, 311 PA, +90) finished with identical 14–3 overall records, 5–1 division records and 9–3 conference records — meaning seeding depends on head-to-head, common games, Strength of Victory (SOV) and Strength of Schedule (SOS).

Mid-season races show the exact same pattern: through 2026-11-25 in OpenPigskin's 2026 snapshot, both the AFC West (KC and DEN tied at 8–2, +108 vs. +26 point diff) and the NFC North (DET and CHI tied at 8–2, +68 vs. +65 point diff) sit locked at the top, while the NFC East carries live tie records (NYG 6–3–1, WAS 4–5–1).

json
{
  "data": {
    "season": 2025,
    "teams": [
      {
        "team_id": "team_nfl_sea", "abbr": "SEA", "name": "Seattle Seahawks",
        "conference": "NFC", "division": "NFC West",
        "wins": 14, "losses": 3, "ties": 0, "games": 17, "win_pct": 0.824,
        "points_for": 483, "points_against": 292, "point_diff": 191,
        "division_wins": 4, "division_losses": 2, "conference_wins": 9, "conference_losses": 3
      },
      {
        "team_id": "team_nfl_la", "abbr": "LA", "name": "Los Angeles Rams",
        "conference": "NFC", "division": "NFC West",
        "wins": 12, "losses": 5, "ties": 0, "games": 17, "win_pct": 0.706,
        "points_for": 518, "points_against": 346, "point_diff": 172,
        "division_wins": 4, "division_losses": 2, "conference_wins": 7, "conference_losses": 5
      },
      {
        "team_id": "team_nfl_sf", "abbr": "SF", "name": "San Francisco 49ers",
        "conference": "NFC", "division": "NFC West",
        "wins": 12, "losses": 5, "ties": 0, "games": 17, "win_pct": 0.706,
        "points_for": 437, "points_against": 371, "point_diff": 66,
        "division_wins": 4, "division_losses": 2, "conference_wins": 9, "conference_losses": 3
      }
    ]
  },
  "meta": { "count": 4, "source": "nflverse", "licence": "CC BY 4.0" }
}

Page through all 272 regular-season games to compute SOS and SOV

Because GET /v1/games accepts limit=100, pulling an entire 272-game NFL regular season takes just 3 paginated requests. From those game records you can compute every opponent list, head-to-head matrix, common-opponent records, Strength of Schedule (combined win percentage of all opponents faced) and Strength of Victory (combined win percentage of all defeated opponents) with zero external dependencies.

typescript
type GameSummary = {
  id: string;
  away: { id: string; abbr: string; score: number };
  home: { id: string; abbr: string; score: number };
  winner_id: string | null;
};

type StandingsRow = {
  team_id: string;
  abbr: string;
  conference: string;
  division: string;
  wins: number;
  losses: number;
  ties: number;
  win_pct: number;
  division_wins: number;
  division_losses: number;
  conference_wins: number;
  conference_losses: number;
  point_diff: number;
};

async function fetchRegularSeasonGames(season: number, apiKey: string): Promise<GameSummary[]> {
  const games: GameSummary[] = [];
  let cursor: string | null = null;
  do {
    const url = new URL("https://openpigskinapi.com/v1/games");
    url.searchParams.set("season", String(season));
    url.searchParams.set("game_type", "REG");
    url.searchParams.set("limit", "100");
    if (cursor) url.searchParams.set("cursor", cursor);

    const res = await fetch(url, { headers: { Authorization: `Bearer ${apiKey}` } });
    if (!res.ok) throw new Error(`HTTP ${res.status}`);
    const json = (await res.json()) as { data: GameSummary[]; meta: { next_cursor: string | null } };
    games.push(...json.data);
    cursor = json.meta.next_cursor;
  } while (cursor);
  return games;
}

export async function computeScheduleStrength(season: number, apiKey: string) {
  const [stRes, games] = await Promise.all([
    fetch(`https://openpigskinapi.com/v1/seasons/${season}/standings`, {
      headers: { Authorization: `Bearer ${apiKey}` },
    }).then((r) => r.json() as Promise<{ data: { teams: StandingsRow[] } }>),
    fetchRegularSeasonGames(season, apiKey),
  ]);

  const byTeam = new Map(stRes.data.teams.map((t) => [t.abbr, t]));
  const opps = new Map<string, string[]>();
  const beaten = new Map<string, string[]>();

  for (const g of games) {
    const a = g.away.abbr;
    const h = g.home.abbr;
    opps.set(a, [...(opps.get(a) ?? []), h]);
    opps.set(h, [...(opps.get(h) ?? []), a]);
    if (g.away.score > g.home.score) beaten.set(a, [...(beaten.get(a) ?? []), h]);
    if (g.home.score > g.away.score) beaten.set(h, [...(beaten.get(h) ?? []), a]);
  }

  const combinedWinPct = (list: string[]) => {
    let w = 0;
    let l = 0;
    let t = 0;
    for (const abbr of list) {
      const row = byTeam.get(abbr);
      if (!row) continue;
      w += row.wins;
      l += row.losses;
      t += row.ties;
    }
    const gp = w + l + t;
    return gp ? Number(((w + 0.5 * t) / gp).toFixed(3)) : 0;
  };

  return stRes.data.teams.map((team) => ({
    ...team,
    sos: combinedWinPct(opps.get(team.abbr) ?? []),
    sov: combinedWinPct(beaten.get(team.abbr) ?? []),
  }));
}

Apply head-to-head and conference tiebreakers cleanly

Once you have each team's opponent list, beaten-opponent list, division_wins/division_losses, conference_wins/conference_losses, SOS and SOV, implementing a two-team NFL tiebreaker comparator is straightforward: compare head-to-head win percentage from the games array first, then division win percentage (for intra-division ties), then common games (minimum 4), then conference win percentage, then SOV, then SOS.

Notice that for combined SOS and SOV, the NFL sums total wins, losses and half-ties across every opponent game rather than taking a simple average of opponent win percentages — keeping the exact denominator accurate during mid-season weeks when some opponents have already had their bye week.

Combine /v1/seasons, /v1/teams and /v1/schedule for forward-looking SOS

For multi-year franchise trend tables, pair /v1/seasons/{id}/standings with GET /v1/teams (which exposes all 32 canonical franchises, divisions, brand colors and archive records from 1999–2026) and GET /v1/teams/{id} (which returns each franchise's last 10 regular seasons and 10 most recent games in one call).

During the active season, layer upcoming matchups from GET /v1/schedule (up to 14 days ahead, source: ESPN) onto your standings table to calculate remaining Strength of Schedule for playoff-picture widgets and weekly newsletter previews.

Get a free API key →← All guides