{"openapi":"3.1.0","info":{"title":"BBLLM API","description":"Baseball analytics and narrative generation","version":"1.0.0"},"paths":{"/api/user/profile":{"get":{"tags":["user"],"summary":"Get Profile","operationId":"get_profile_api_user_profile_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Profile Api User Profile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["user"],"summary":"Put Profile","operationId":"put_profile_api_user_profile_put","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Profile Api User Profile Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["user"],"summary":"Patch Profile","operationId":"patch_profile_api_user_profile_patch","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Profile Api User Profile Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["user"],"summary":"Remove Profile","operationId":"remove_profile_api_user_profile_delete","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Remove Profile Api User Profile Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/connect":{"post":{"tags":["fantasy"],"summary":"Connect League","description":"Connect a fantasy league. Currently supports ESPN.","operationId":"connect_league_api_fantasy_connect_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectLeagueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Connect League Api Fantasy Connect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/leagues":{"get":{"tags":["fantasy"],"summary":"List Leagues","description":"List all connected fantasy leagues for the current user.","operationId":"list_leagues_api_fantasy_leagues_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Leagues Api Fantasy Leagues Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/roster/{league_id}":{"get":{"tags":["fantasy"],"summary":"Get Roster","description":"Get the stored roster for a connected league.","operationId":"get_roster_api_fantasy_roster__league_id__get","parameters":[{"name":"league_id","in":"path","required":true,"schema":{"type":"string","title":"League Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Roster Api Fantasy Roster  League Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/scoring-edge/{league_id}":{"get":{"tags":["fantasy"],"summary":"Get Scoring Edge","description":"Get scoring edge analysis for a connected league vs platform defaults.","operationId":"get_scoring_edge_api_fantasy_scoring_edge__league_id__get","parameters":[{"name":"league_id","in":"path","required":true,"schema":{"type":"string","title":"League Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Scoring Edge Api Fantasy Scoring Edge  League Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/sync/{league_id}":{"post":{"tags":["fantasy"],"summary":"Sync League","description":"Re-sync a connected league's settings and roster from ESPN.","operationId":"sync_league_api_fantasy_sync__league_id__post","parameters":[{"name":"league_id","in":"path","required":true,"schema":{"type":"string","title":"League Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync League Api Fantasy Sync  League Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/leagues/{league_id}":{"delete":{"tags":["fantasy"],"summary":"Remove League","description":"Disconnect a fantasy league.","operationId":"remove_league_api_fantasy_leagues__league_id__delete","parameters":[{"name":"league_id","in":"path","required":true,"schema":{"type":"string","title":"League Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Remove League Api Fantasy Leagues  League Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/scoring-configs":{"get":{"tags":["fantasy"],"summary":"Get Scoring Configs","description":"List all available preset scoring configurations.","operationId":"get_scoring_configs_api_fantasy_scoring_configs_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Scoring Configs Api Fantasy Scoring Configs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fantasy/waiver-suggestions/{league_id}":{"get":{"tags":["fantasy"],"summary":"Get Waiver Suggestions","description":"Get waiver wire recommendations for a connected league.","operationId":"get_waiver_suggestions_api_fantasy_waiver_suggestions__league_id__get","parameters":[{"name":"league_id","in":"path","required":true,"schema":{"type":"string","title":"League Id"}},{"name":"position","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Waiver Suggestions Api Fantasy Waiver Suggestions  League Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/dfs/{game_date}":{"get":{"tags":["public"],"summary":"Public Dfs","description":"Daily DFS slate page — slate metadata, value plays, top stacks.\n\nThe sport-less route aliases to ``sport=\"mlb\"`` (Phase 17 slice 6); the\narchive read-back gate + live build live in ``_serve_or_archive``. The\nenvelope is byte-identical to the pre-Phase-17 shape (parity-tested) — these\nare indexed money pages.","operationId":"public_dfs_api_public_dfs__game_date__get","parameters":[{"name":"game_date","in":"path","required":true,"schema":{"type":"string","title":"Game Date"}},{"name":"site","in":"query","required":false,"schema":{"type":"string","description":"DFS site: dk or fd","default":"dk","title":"Site"},"description":"DFS site: dk or fd"},{"name":"value_limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Value Limit"}},{"name":"stack_limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":5,"title":"Stack Limit"}},{"name":"narrative","in":"query","required":false,"schema":{"type":"string","description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)","default":"auto","title":"Narrative"},"description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Dfs Api Public Dfs  Game Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/dfs-accuracy":{"get":{"tags":["public"],"summary":"Public Dfs Accuracy","description":"DFS projection-accuracy tracker — how the published value board actually\nperformed over the trailing window.\n\nPowers the public transparency page: overall MAE / bias / hit-rate, plus\nbreakdowns by value-rating (did `smash` plays out-return `value`?) and by\nroster position. Reads the permanent `dfs_projection_results` table; returns\nwell-formed zero-n blocks (never 500/404) before any results accrue.","operationId":"public_dfs_accuracy_api_public_dfs_accuracy_get","parameters":[{"name":"site","in":"query","required":false,"schema":{"type":"string","description":"DFS site: dk or fd","default":"dk","title":"Site"},"description":"DFS site: dk or fd"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":180,"minimum":1,"description":"Trailing window in days","default":30,"title":"Days"},"description":"Trailing window in days"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Dfs Accuracy Api Public Dfs Accuracy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/props/{game_date}":{"get":{"tags":["public"],"summary":"Public Props","description":"Daily player-props board for one market.\n\nReturns the latest market lines for `(date, market)` from the\ngiven book joined to today's model projections and an edge per\nplayer. Mirrors the slice 2a envelope contract — see module\ndocstring.","operationId":"public_props_api_public_props__game_date__get","parameters":[{"name":"game_date","in":"path","required":true,"schema":{"type":"string","title":"Game Date"}},{"name":"market","in":"query","required":false,"schema":{"type":"string","description":"Prop market slug: hr | hits | tb | k","default":"hr","title":"Market"},"description":"Prop market slug: hr | hits | tb | k"},{"name":"bookmaker","in":"query","required":false,"schema":{"type":"string","description":"Sportsbook for the market line. DK by default.","default":"draftkings","title":"Bookmaker"},"description":"Sportsbook for the market line. DK by default."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"narrative","in":"query","required":false,"schema":{"type":"string","description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)","default":"auto","title":"Narrative"},"description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Props Api Public Props  Game Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/lineups/{game_date}":{"get":{"tags":["public"],"summary":"Public Lineups","description":"Daily confirmed-lineups page — batting orders, handedness, season lines.","operationId":"public_lineups_api_public_lineups__game_date__get","parameters":[{"name":"game_date","in":"path","required":true,"schema":{"type":"string","title":"Game Date"}},{"name":"narrative","in":"query","required":false,"schema":{"type":"string","description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)","default":"auto","title":"Narrative"},"description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Lineups Api Public Lineups  Game Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/pitchers/{game_date}":{"get":{"tags":["public"],"summary":"Public Pitchers","description":"Daily starting-pitchers page — projected line, recent form, workload.","operationId":"public_pitchers_api_public_pitchers__game_date__get","parameters":[{"name":"game_date","in":"path","required":true,"schema":{"type":"string","title":"Game Date"}},{"name":"narrative","in":"query","required":false,"schema":{"type":"string","description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)","default":"auto","title":"Narrative"},"description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Pitchers Api Public Pitchers  Game Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/matchups/{game_date}":{"get":{"tags":["public"],"summary":"Public Matchups","description":"Daily matchups page — SP vs lineup, platoon read + H2H color.","operationId":"public_matchups_api_public_matchups__game_date__get","parameters":[{"name":"game_date","in":"path","required":true,"schema":{"type":"string","title":"Game Date"}},{"name":"narrative","in":"query","required":false,"schema":{"type":"string","description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)","default":"auto","title":"Narrative"},"description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Matchups Api Public Matchups  Game Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/dates":{"get":{"tags":["public"],"summary":"Public Dates","description":"Available dates per page kind for the sitemap.\n\nReturns ``{\"kinds\": {\"dfs\": [...], \"props\": [...], ...}, \"generated_at\": \"...\"}``.\nEach date list is sorted newest-first so callers can apply age-based\npriority by index without re-sorting. Empty lists are valid responses\n(fresh install, off-season cold start, etc.).\n\n``?sport=`` (slice 8) selects the sport. The default ``\"mlb\"`` is\n**byte-identical** to the pre-slice-8 response (the five MLB kinds). NFL\n(``?sport=nfl``) returns ``{\"weather\": [<one canonical Sunday per scheduled\nweek>]}`` for the frontend's ``/football`` sitemap section. An unregistered\nsport is a clean 404 (``_validate_sport``), never a 500.","operationId":"public_dates_api_public_dates_get","parameters":[{"name":"sport","in":"query","required":false,"schema":{"type":"string","description":"Sport: 'mlb' (default) or 'nfl'","default":"mlb","title":"Sport"},"description":"Sport: 'mlb' (default) or 'nfl'"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Dates Api Public Dates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/fingerprint/{team}":{"get":{"tags":["public"],"summary":"Public Nfl Fingerprint","description":"Team-season offensive-play alluvial: personnel → formation → run/pass → outcome.\n\nReturns ``{team, season, available_seasons, meta, fingerprint}`` where\n``fingerprint`` carries ``nodes``, ``links`` (each with play count, share,\nmean EPA, success rate), stage ``totals`` and the ``collapsed`` record. An\nunknown team or a season the team has no data for is a 404.","operationId":"public_nfl_fingerprint_api_public_nfl_fingerprint__team__get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (2016-2025); omit for the team's most recent season","title":"Season"},"description":"Season (2016-2025); omit for the team's most recent season"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Fingerprint Api Public Nfl Fingerprint  Team  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/fingerprint/{team}/evolution":{"get":{"tags":["public"],"summary":"Public Nfl Fingerprint Evolution","description":"A team's offensive tendencies across every available season (2016-2025).\n\nReturns ``{team, seasons, series, personnel_codes, ngs_last_season, meta}``\nwhere each ``series`` row carries that season's ``pass_rate``, ``shotgun_rate``,\n``explosive_rate``, ``success_rate`` and ``personnel`` grouping shares — derived\nfrom the frozen fingerprint artifact's ``totals`` (no play-level data). Unknown\nteam → 404. Four path segments, so the generic ``/{sport}/{kind}/{date}``\ncatch-all can't shadow it; kept adjacent to the fingerprint route regardless.","operationId":"public_nfl_fingerprint_evolution_api_public_nfl_fingerprint__team__evolution_get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Fingerprint Evolution Api Public Nfl Fingerprint  Team  Evolution Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/leaderboards/meta":{"get":{"tags":["public"],"summary":"Public Nfl Leaderboards Meta","description":"The leaderboard selector menu, player-label map and validation panel.\n\nReturns ``{meta, index, stats, players, validation}`` — everything the page\nfetches once to build its controls and hydrate player names/headshots (board\nrows carry only the player id). 404 if the artifact hasn't been built.","operationId":"public_nfl_leaderboards_meta_api_public_nfl_leaderboards_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Leaderboards Meta Api Public Nfl Leaderboards Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/leaderboards":{"get":{"tags":["public"],"summary":"Public Nfl Leaderboards","description":"One (stat, season) empirical-Bayes board.\n\nReturns ``{stat, season, available_seasons, pos, groups, validation, rows}``\nwhere each row carries ``{id, team, pos, n, raw, est, lo, hi, w, rank}`` —\n``raw`` the naive rate, ``est`` the shrunk posterior, ``[lo, hi]`` its 90%\ncredible interval, ``w`` the data weight. An unknown stat/season/pos is a 404.","operationId":"public_nfl_leaderboards_api_public_nfl_leaderboards_get","parameters":[{"name":"stat","in":"query","required":true,"schema":{"type":"string","description":"Stat key (see /nfl/leaderboards/meta -> index.stats)","title":"Stat"},"description":"Stat key (see /nfl/leaderboards/meta -> index.stats)"},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (2016-2025); omit for the latest","title":"Season"},"description":"Season (2016-2025); omit for the latest"},{"name":"pos","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one position group, e.g. TE (receiving stats)","title":"Pos"},"description":"Filter to one position group, e.g. TE (receiving stats)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Leaderboards Api Public Nfl Leaderboards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/hindsight/meta":{"get":{"tags":["public"],"summary":"Public Nfl Hindsight Meta","description":"Season, week grid, aggregate divergence, teams ranked by max gap, home field.\n\nReturns ``{meta, smoothed, agg, teams, hfa}`` — what the page fetches once to\nbuild its selector. 404 if the artifact hasn't been built.\n\n``hfa`` is the per-season home-field control, one ``{season, model, raw, n}``\nrow for every season walked (1999-2025): the model's own home-field term\nagainst the actual mean home margin. It is **filter output and therefore\ncausal** — the ``smoothed.causal = false`` stamp describes the per-team\nseries, not this. It is published because it is the surface's positive\ncontrol: ``hfa_season_sd = 0`` pins home field flat by construction, so the\nmiss is a known, measured, closed limitation rather than an open bug.","operationId":"public_nfl_hindsight_meta_api_public_nfl_hindsight_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Hindsight Meta Api Public Nfl Hindsight Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/hindsight":{"get":{"tags":["public"],"summary":"Public Nfl Hindsight","description":"The causal-vs-smoothed series.\n\nWithout ``team``: ``{meta, smoothed, agg, ranked_by_max_gap, teams}`` where each\nteam carries ``{w, c, s, sd, mean_gap, max_gap, final_c, final_s}`` — ``c`` the\ncausal filter (what was knowable that week), ``s`` the smoothed rating (what the\nfinished season says it was), ``sd`` the smoothed standard deviation.\n\nWith ``team``: ``{meta, smoothed, team, series}``. An unknown team is a 404 —\nnever an empty series, which would read as \"this team never diverged\".","operationId":"public_nfl_hindsight_api_public_nfl_hindsight_get","parameters":[{"name":"team","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team code (e.g. SEA); omit for all 32","title":"Team"},"description":"Team code (e.g. SEA); omit for all 32"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Hindsight Api Public Nfl Hindsight Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/meta":{"get":{"tags":["public"],"summary":"Public Nfl Ratings Meta","description":"The season/week grid, franchise directory and rating provenance.\n\nReturns ``{meta, seasons, weeks, latest, teams}`` — what the page fetches once\nto build its selector. Every ``weeks`` entry carries ``rated``, the number of\nteams the board would show. **Every one of the 572 slots is populated**, and\n``rated`` varies 30-32: 1999-2001 are a 31-team league, and a postponed\nopener leaves 30 (1999, 2000, 2001 and 2017 week 1). Never assume 32.\n404 if the artifact hasn't been built.","operationId":"public_nfl_ratings_meta_api_public_nfl_ratings_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Ratings Meta Api Public Nfl Ratings Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/series":{"get":{"tags":["public"],"summary":"Public Nfl Ratings Series","description":"Every rated team's week-by-week path through the requested week.\n\nReturns ``{meta, season, week, weeks, columns, team_count, teams}``. Each\n``teams`` entry carries ``{team_key, team_code, team, conference, division,\npoints}``, and each point carries ``{week, games, elo, elo_rank, srs,\nsrs_rank}``.\n\n**This exists so a trend can be drawn without 22 board calls.** One team's\nseason assembled from ``/nfl/ratings`` costs 22 requests and 278,724 bytes,\nof which 2.63% is the team asked for; a whole season here is one request and\nabout 57 KB (9.6 KB gzipped) covering all 32.\n\n``weeks`` stops AT the requested week and never runs past it, so a chart\ndrawn from this payload cannot show a reader something the board beside it\ndoes not yet know. That is the same through-week guarantee ``/nfl/ratings``\nmakes, extended along the time axis.\n\nThe columns are a deliberate SUBSET of the board's 17 — the two ratings,\ntheir ranks, and the games count. Everything else on the board is a level to\nread, not a line to draw.\n\n``teams`` is ordered by the requested week's ``elo_rank``, ties broken by\n``team_key``, so taking the first or last N gives the leaders or the\nstragglers with no re-sort. Join on ``team_key`` (franchise-folded); display\n``team_code``/``team``, which are era-correct.\n\n**The series are RAGGED and must not be padded.** A team absent from an\nearlier week simply has fewer points: 1999 week 21 has 30 teams with 21\npoints and one with 20, because that league had **31** teams and San Diego\ndrew the week-1 bye. Exactly five sides in the whole artifact start late —\n1999 SD, 2000 CIN and 2001 ARI to the odd team count, plus 2017 Tampa Bay and\nMiami, whose opener Hurricane Irma moved to week 11.\n\nAn **expansion club is not one of them**: Houston's 2002 debut season is 32\nteams with 21 points each and no gap anywhere. A franchise that does not\nexist yet is an absent TEAM in earlier seasons, which is a different shape\nfrom a missing point and needs different handling.\n\nA padded point would be a rating that was never published. Both ranks are\nCOMPETITION ranks: ties share a rank and the next one skips.\n\n``0`` is a real value throughout — an SRS of exactly 0.0 is an average team.\nA season/week outside the ladder is a 404.","operationId":"public_nfl_ratings_series_api_public_nfl_ratings_series_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999-2025); omit for the latest","title":"Season"},"description":"Season (1999-2025); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Cut the series THROUGH this week; omit for the season's last","title":"Week"},"description":"Cut the series THROUGH this week; omit for the season's last"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Ratings Series Api Public Nfl Ratings Series Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings":{"get":{"tags":["public"],"summary":"Public Nfl Ratings","description":"One week's power-rating board — what was knowable after that week.\n\nReturns ``{meta, season, week, week_start, through_date, week_games,\ngames_through, hfa, board_gated, rated_teams, empty_reason, teams,\nconferences, movers}``. Each team row carries ``{season, week, team_key,\ngames, wins, losses, ties, srs, sos, avg_margin, elo, elo_entering,\nelo_change, srs_rank, sos_rank, elo_rank, srs_win_pct_vs_avg, team_code,\nteam, conference, division, ypp_rating, ypp_rank}``.\n\nJoin and filter on ``team_key`` (franchise-folded); display ``team_code`` and\n``team``, which are era-correct — the 1999 Rams are ``team_key=\"LA\"`` and\n``team_code=\"STL\"``, \"St. Louis Rams\". Ranks are competition ranks: ties\nshare a rank and the next one skips.\n\n``ypp_rating`` is the yards-per-play rating (``docs/NFL-YPP-RATING-PLAN.md``):\npoints vs an average team on a neutral field, centred each week, THROUGH the\nweek like every other column; ``ypp_rank`` ranks it over the same rows. Both\nare on EVERY row, never null. It moves on yards per play as well as the score;\nthe market still forecasts margins better than it does.\n\nA board whose ypp columns cannot be served (artifact unreadable, or a row with\nno ypp value) is a DEGRADED read: **503 + ``no-store``**, never a cacheable 200\nwith the column missing.\n\n``board_gated`` reads backwards from its name: it is **true once the week is\nPAST the publication gate** (week >= 4, an ordinary board) and **false for\nweeks 1-3**, which are provisional — still mostly last season's prior carried\nover. It is a label, never a filter; do not gate rendering on it without\ninverting. The ladder is era-specific: 21 weeks through 2020, 22 from 2021.\n\nOmitting ``week`` returns that ``season``'s last rated week, not the latest\nseason's. A season/week outside the ladder is a 404. A slot that exists but\nhas no rated teams returns a real board with ``teams: []`` and\n``empty_reason`` set — \"nobody has qualified\" and \"does not exist\" are\ndifferent answers. That path no longer fires on any real week (it did for\nweeks 1-2 before the publish floor dropped to one game); it is retained for\na season with no data at all.","operationId":"public_nfl_ratings_api_public_nfl_ratings_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999-2025); omit for the latest","title":"Season"},"description":"Season (1999-2025); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Week within the season; omit for that season's last rated week","title":"Week"},"description":"Week within the season; omit for that season's last rated week"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Ratings Api Public Nfl Ratings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/gameweek/meta":{"get":{"tags":["public"],"summary":"Public Nfl Gameweek Meta","description":"The season/week grid for the game-week surface, with provenance.\n\nReturns ``{meta, seasons, weeks, latest}``; each ``weeks`` entry is\n``{season, week, games}``. This grid counts **games**, which is a different\nquantity from the ratings grid's rated-team count even though both now cover\nall 572 slots — week 1 of 2024 is 16 games and 32 rated teams. Week 1 holds\n428 games league-wide, 412 of them forecast by Elo; the other 16 are 1999\nweek 1, the Elo epoch's own first week, and Houston's 2002 expansion debut.\n\n404 when the served artifact carries no ``games`` block at all, which is the\nhonest answer for an overlay written before slice S2.","operationId":"public_nfl_gameweek_meta_api_public_nfl_gameweek_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Gameweek Meta Api Public Nfl Gameweek Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/gameweek":{"get":{"tags":["public"],"summary":"Public Nfl Gameweek","description":"One week's games: the model's forecast, the market's line, the result.\n\nReturns ``{meta, season, week, week_start, through_date, week_games,\nboard_gated, games_count, empty_reason, games}``. Each card carries\n``{game_id, game_date, game_type, neutral_site, home, away, market, model,\nresult, adjustment}``.\n\nEach **side** (``home``/``away``) carries team identity and ``points``, plus\nthree blocks added in slice S7: ``entering``, ``after`` and ``qb``.\n\n``entering`` and ``after`` are the team's state before and after this game —\n``{games, wins, losses, ties, srs, sos, avg_margin, elo, srs_rank, sos_rank,\nelo_rank, srs_win_pct_vs_avg}``. ``entering`` is the PREVIOUS week's\nthrough-row, so it is **null for every week-1 side** (856 of them) and for\nfive in week 2 whose week-1 game never happened — 1999 SD, 2000 CIN, 2001\nARI and the two 2017 Hurricane Irma postponements. ``avg_margin`` is the\naverage **capped** margin (cap 17.0), not the average raw point\ndifferential: 1,696 games exceed the cap, the largest by 42 points.\n\n``qb`` is a **list**, ordered by plays descending, because\n``(season, week, team)`` is not unique — 1,326 of 14,545 team-games had more\nthan one passer. Each entry carries ``{qb, qb_name, game_id, plays,\npass_plays, rush_plays, season_plays, epa_per_play, change, walsh_change}``.\nA ``play`` is a pass play OR a carry — the rating observes both since C3, so\n``plays`` is not a dropback count and the two channels are served split rather\nthan left to be inferred. ``change`` and\n``walsh_change`` are that passer's **whole week's** movement, including\ngames he did not play in — deliberately **not** the part his own game\ncaused — and both are null on his debut week. No weekly rating LEVEL is\npublished: the WALSH scale's zero is a season-end quantity, so only\ndifferences, in which that anchor cancels, are meaningful weekly.\n\n``adjustment`` is what the game did to each side's Elo, and why it was that\nsize: ``{elo_k, margin_credit, home, away}`` with each side carrying\n``{win_prob_entering, surprise, elo_change, elo_entering, elo_after}``.\nElo's update is ``elo_k * margin_credit * surprise``. ``elo_change`` is\n**joined from the ratings history**, the same number ``/nfl/ratings`` sorts\nits risers and fallers on, so the two surfaces cannot disagree; it is not\nrecomputed from the published factors, which round to a different 2dp value\non 14 of 14,518 sides. Null on the same 17 games that have no ``model.elo``.\n\n**SRS has no per-game adjustment and none is published.** It is a full ridge\nrefit plus re-centring every week, not a per-game update: on 3,591 of 3,684\nBYE team-weeks the published SRS still moved. ``entering.srs`` and\n``after.srs`` show that it moved; nothing attributes the move to this game.\n\n**Two sign conventions live in one card and they point opposite ways.**\n``market.home_line`` is BOOK convention — *negative means the home team is\nfavored* — while ``model.<predictor>.predicted_margin`` is MARGIN convention,\npositive meaning the home team is favored. Read ``market.favorite``\n(``\"home\" | \"away\" | \"pick\"``), which is stored rather than derived, instead\nof interpreting a sign. ``market.market_margin`` is the line restated in\nmargin space so it compares directly against the model.\n\n``model.elo`` and ``model.srs`` are independently nullable: **SRS forecasts\nnothing in week 1** (no previous slot, and a team with no games is absent\nfrom the ridge fit) and is null on 433 games in all, and **17** games have no\nElo either — the 15 games of 1999 week 1, which is the fixed 1999 epoch's own\nfirst week, plus 1999 week 2's San Diego and Houston's 2002 expansion debut.\nA null is the model declining to forecast, not a missing value to fill.\n\n``model.hfa`` is **SRS's** home edge ENTERING the week: the HFA fitted through\nthe PREVIOUS week — the ``hfa`` ``/nfl/ratings`` publishes for week - 1, not\nthis week's — one value per week. It is null in week 1 (no fit enters it) and\non a neutral field (both predictors drop their edge there), and carried by\nevery other card. On every card SRS forecast it is the edge that forecast\n**actually applied**, so\n``srs.home_rating - srs.away_rating + (hfa or 0) == srs.predicted_margin``\nholds on each of them; a card SRS declined (a team with no prior SRS entering\nweek 2) still carries it, where no forecast used it. **It is not Elo's**: Elo\nadds its own fixed\n``elo_hfa`` (60 Elo points x ``elo_points_per_elo`` 0.04 = 2.40 points, in\n``meta.params``) and never reads this field, so\n``(elo.home_rating - elo.away_rating + 60) * 0.04 == elo.predicted_margin``\noff a neutral field. Both identities hold to the published precision.\n\n``board_gated`` reads backwards from its name: **true once the week is PAST\nthe publication gate** (week >= 4) and **false for weeks 1-3**, which are\nprovisional. It is a label, never a filter; do not gate rendering on it\nwithout inverting. It is republished here unchanged from the ratings board,\nwhere the caveat shipped inverted once.\n\n``games`` is ordered by kickoff **date** then ``game_id``. The artifact\ncarries no kickoff time, so games sharing a date fall in ``game_id`` order —\nalphabetical by away team, **not** a slate timeline.\n\n``result.ats`` and ``result.favorite_result`` treat an exact push as its own\noutcome and never fold it into a win or a loss; ``result.winner`` is null on a\ntie. ``0`` is a real value throughout — a pick'em is ``home_line: 0.0`` and a\nshutout is ``0`` points — so test for null, never truthiness.\n\nMoneylines are sparse (72.8% of games, none before 2006, 266 of 267 even in\n2017); the spread is complete, so fall back to it rather than dropping games.\n\nOmitting ``week`` returns that ``season``'s last week, not the latest\nseason's. A season/week outside the ladder is a 404.","operationId":"public_nfl_gameweek_api_public_nfl_gameweek_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999-2025); omit for the latest","title":"Season"},"description":"Season (1999-2025); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Week within the season; omit for that season's last week","title":"Week"},"description":"Week within the season; omit for that season's last week"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Gameweek Api Public Nfl Gameweek Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/units":{"get":{"tags":["public"],"summary":"Public Nfl Unit Ratings","description":"One week's offensive, defensive and special-teams ratings.\n\nReturns ``{meta, season, week, season_type, games_fitted, mean_rate,\nconverged, rated_teams, ordered_by, units, teams}``.\n\n**RANK ONLY WHAT IS RANKABLE.** Each ``units`` entry carries ``{unit, label,\nopponent_adjusted, verdict, isolated_gain, display, rated,\nreliability_median, separation, tau, why}`` and ``display`` is the rendering\nrule, computed per week from what the artifact publishes rather than\nhard-coded: ``unmeasured`` when the fit found no between-team spread,\n``rank`` when the column is opponent-adjusted AND its separation\n``sqrt(R/(1-R))`` on the median published reliability is at least 1, and\n``tier`` otherwise. Over the 572 committed weeks that is 413/129/30 for\noffense, 210/322/40 for defense and **0**/465/107 for special teams, which\n``meta.units.st`` explains: its isolated opponent adjustment measured\n-0.00021 [-0.00099, +0.00061] and it must not be called opponent-adjusted.\n\nEach team row carries ``{season, week, team_key, team_code, team,\nconference, division, games, off, def, st}`` and each of the three unit\ncells carries ``{rating, reliability, plays, se, low, high, z, tier, rank,\nrank_best, rank_worst}``. **A unit that is not ranked carries no rank**:\n``rank``/``rank_best``/``rank_worst`` are null on every team unless that\nunit's ``display`` is ``rank``, so the rule is enforced by the absence of\nthe field rather than by a flag a consumer may ignore.\n\nEvery rating is EPA per play credited to the named team and **positive is\ngood for that team, ``def_rating`` included** — it is EPA PREVENTED\n(``meta.orientation``). Ratings are league-centred, so ``0.0`` is exactly\nleague average and is a real value; ``null`` is a measurement, not a gap —\nthe week's fit found the between-team differences smaller than their own\nsampling error, and 5,633 of the artifact's cells are in that state while\nsix are a genuine 0.0.\n\n``tier`` is the team's distance from the league mean in its own standard\nerrors, cut at +-1 and +-2. ``rank`` is a COMPETITION rank: ties share a\nrank and the next one skips. 1999-2001 are a **31**-team league, so a rank\nis out of ``rated``, never out of 32.\n\n**These ratings are fitted THROUGH their week and the backtest scored the\nrating carried INTO a game** (``meta.not_the_backtested_object``). No number\nserved here was scored by that gate; what it validated is the estimator.\n\nA season/week outside the ladder is a 404. A slot that exists but rates\nnobody in any unit returns a real board whose three columns all read\n``unmeasured`` — \"nobody could be told apart\" and \"this week does not exist\"\nare different answers.","operationId":"public_nfl_unit_ratings_api_public_nfl_ratings_units_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999-2025); omit for the latest","title":"Season"},"description":"Season (1999-2025); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Week within the season; omit for that season's last fit","title":"Week"},"description":"Week within the season; omit for that season's last fit"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Unit Ratings Api Public Nfl Ratings Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/units/history":{"get":{"tags":["public"],"summary":"Public Nfl Unit History","description":"Every team-season's units on ONE scale, 1999-2025.\n\nReturns ``{meta, unit, label, direction, prior, span, team_seasons, total,\nlimit, offset, filters, rows}``. Each row carries ``{season, team_key,\nteam_code, team, conference, division, games, rating, se, low, high,\nreliability, plays, rank, not_separated}``.\n\n**This is not the weekly board at a coarser grain, and the two must never be\njoined.** ``/nfl/ratings/units`` estimates each unit's between-team spread\nseparately in each season; a season's published spread is\n``tau*sqrt(mean reliability)``, so a per-season prior re-scales that season's\nratings by its own sampling noise — measured at 0.75x to 2.49x across the\nspan. Here ``tau`` is estimated ONCE over all 27 seasons and held while each\nseason is solved on its own schedule, which is what makes the numbers\ncomparable across eras. ``meta.not_the_week_artifact`` carries the warning.\n\n**Every rank ships beside what it cannot outrank.** ``not_separated`` is how\nmany of the 861 team-seasons have a 95% interval overlapping this row's,\ncounting itself, and no unit produces a 1: the top-ranked offense cannot be\nseparated from **166** others and the top-ranked defense from **610**, whose\ntop three sit inside 0.001 EPA per play. C5's ``G = sqrt(R/(1-R)) >= 1``\nrule does not transfer here and ``meta.interval.c5_rule_does_not_transfer``\nsays why — under a pooled prior it is all-or-nothing per unit (offense\n861/861, defense 861/861, special teams 0/861), so it agrees with C5 about\nspecial teams and calls every offense and every defense rankable. Render the\ninterval, not the ``G``.\n\n``prior`` carries ``{tau, likelihood_ratio, df, lr_scope, support,\nopponent_adjusted, opponent_adjusted_source, converged}``.\n**``opponent_adjusted`` is C2's measured verdict, single-sourced and not\nre-decided here** — C6 fits the same two shapes, so the gate transfers, and\nspecial teams is ``false`` with an isolated adjustment of\n-0.00021 [-0.00099, +0.00061]. A surface must compose any \"adjusted for who\nthey played\" clause FROM this field: the cross-era page shipped that phrase\nover all three units in its masthead, its meta description and its Dataset\nJSON-LD until the slice review rendered it.\n**``lr_scope`` is load-bearing**: offense and defense are\nsolved in one system, so their ratio is a JOINT test on 2 x (seasons - 1)\ndegrees of freedom and is not a test of either alone. ``support`` states in\nwords how well pooling is justified for that unit, and **special teams is\nunderpowered rather than settled** — two tests land at 0.040 and 0.055 and\nthe second falls to 0.077 once 2015 and 2019 are dropped. A surface must not\npresent the three as equally established.\n\nEvery rating is EPA per play credited to the named team and **positive is\ngood for that team, defense included** — it is EPA PREVENTED\n(``meta.orientation``). Ratings are league-centred WITHIN their own season,\nso ``0.0`` is that season's average and the number is comparable across\nseasons. **No rating here is null**: a per-season fit publishes none for\n2015 or 2019 special teams, and a spread estimated over 27 seasons rates all\n64 of those team-seasons.\n\n``team_key`` is a PRESENT-DAY franchise code and never a label — 1999 ``LA``\nis the St. Louis Rams, ``LAC`` is San Diego, ``LV`` is Oakland, 56 rows of\n861 — so ``team_code`` and ``team`` carry that season's own name. Filtering\nby ``season`` or ``team`` never re-ranks; a rank that changed meaning with a\nquery parameter would be two quantities under one label.\n\n``games`` is 15, 16 or 17 and the short seasons are two DIFFERENT states,\nnamed in ``meta.short_seasons``: six team-seasons are missing play-by-play\nfor a game that was played, and 2022 Buffalo and Cincinnati played 16\nbecause a game was cancelled.\n\nAn unknown unit, season or franchise is a 404 rather than an empty table.","operationId":"public_nfl_unit_history_api_public_nfl_ratings_units_history_get","parameters":[{"name":"unit","in":"query","required":false,"schema":{"type":"string","description":"off | def | st — which unit to rank","default":"off","title":"Unit"},"description":"off | def | st — which unit to rank"},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Restrict to one season; ranks stay all-time","title":"Season"},"description":"Restrict to one season; ranks stay all-time"},{"name":"team","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Restrict to one FRANCHISE key (LA, LAC, LV); ranks stay all-time","title":"Team"},"description":"Restrict to one FRANCHISE key (LA, LAC, LV); ranks stay all-time"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Rows to return, from `offset`","default":50,"title":"Limit"},"description":"Rows to return, from `offset`"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Rows to skip","default":0,"title":"Offset"},"description":"Rows to skip"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Unit History Api Public Nfl Ratings Units History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/units/history/meta":{"get":{"tags":["public"],"summary":"Public Nfl Unit History Meta","description":"The cross-era priors, the span and the rules — everything but the table.\n\nReturns ``{grain, anchor, orientation, prior, not_the_week_artifact,\ninterval, seasons, team_seasons, teams, short_seasons,\nteam_is_a_franchise_key_not_a_label, units, built_at}``.\nEach ``units`` entry carries ``{tau, likelihood_ratio, df, lr_scope,\nsupport, opponent_adjusted, opponent_adjusted_source, converged, label,\ndirection}``.\n\nExists so a surface can render the methodology and the freshness stamp\nwithout pulling rows it will not draw.","operationId":"public_nfl_unit_history_meta_api_public_nfl_ratings_units_history_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Unit History Meta Api Public Nfl Ratings Units History Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/efficiency/meta":{"get":{"tags":["public"],"summary":"Public Nfl Team Efficiency Meta","description":"The weeks the team efficiency board can show, without a board.\n\nReturns ``{seasons, weeks, excluded_seasons, built_at}``. ``weeks`` maps a\nseason (as a string) to its regular-season weeks that the split artifact,\nthe unit board AND the ratings board all hold. ``excluded_seasons`` maps a\nseason to why it has no splits (2001 and 2002: win probability is still\nbroken in a repaired game, and the garbage-time filter reads it).\n\n503 + ``no-store`` when the artifact or a joined board cannot be served.","operationId":"public_nfl_team_efficiency_meta_api_public_nfl_ratings_efficiency_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Team Efficiency Meta Api Public Nfl Ratings Efficiency Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/efficiency":{"get":{"tags":["public"],"summary":"Public Nfl Team Efficiency","description":"One regular-season week's team table: rankings and pass/rush splits.\n\nReturns ``{season, week, games_fitted, built_at, orientation, play_universe,\nnot_a_forecast, unit_meta, columns, teams}``.\n\nJoins three published things and computes nothing new: **Overall** is the\nratings board's SRS (points per game) and its rank; **Offense / Defense /\nSpecial teams** are the C5 unit board's cells; **pass and rush, offense and\ndefense** are opponent-adjusted, shrunk EPA per dropback / per designed run\nfrom the T1 split artifact. Every rating is POSITIVE-IS-GOOD for the named\nteam, defense included (EPA prevented).\n\nEach ``columns`` entry carries ``{key, label, metric, side, opponent_adjusted,\nverdict, isolated_gain, display, rated, reliability_median, separation, tau,\nwhy}``. ``display`` is C5's rule applied to every column every week:\n``rank`` when the column is opponent-adjusted and its separation\n``sqrt(R/(1-R))`` on the median reliability is at least 1, else ``tier``,\nelse ``unmeasured``. Over the 430 weeks in the record, pass defense and rush\ndefense are never ranked and rush offense is ranked in 6.\n\nEach team row carries ``{team_key, team_code, team, conference, division,\ngames, play_by_play, overall, off, def, st, pass_off, rush_off, pass_def,\nrush_def}``. ``overall`` carries ``{rating, rank, position, position_best,\nposition_worst}``.\nEach unit cell carries ``{rating, reliability, plays, se, low, high, z,\ntier, rank, rank_best, rank_worst, position, position_best,\nposition_worst}`` (``off``/``def``/``st``).\nEach split cell carries ``{rating, reliability, plays, se, low, high, z,\ntier, rank, rank_best, rank_worst, position, position_best, position_worst,\nraw}``, where ``raw`` is the unadjusted rate. **A column that is not ranked\ncarries no rank**: ``rank``/``rank_best``/``rank_worst`` are null. **Every\nrated cell carries a position**: its place by rating, with the 95% bracket\n``position_best``-``position_worst`` (wide in a ``tier`` column, which is the\npoint). Where a column is ranked, position equals rank. Overall's position\nis the ratings board's ``srs_rank`` verbatim (ranked on unrounded SRS, so two\nequal published ratings can hold different positions, as on that board) and\nits bracket is null (SRS publishes no standard error). ``play_by_play`` is\nfalse only for a team with scores but no play-by-play (1999 weeks 1-2), whose\ncells are all null.\n\nThese describe how a team has played. **They are not a forecast**\n(``not_a_forecast``). A week off the ladder (see ``/meta``) is a 404; a\njoined board that cannot be read is 503 + ``no-store``.","operationId":"public_nfl_team_efficiency_api_public_nfl_ratings_efficiency_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999+, not 2001-2002); omit for the latest","title":"Season"},"description":"Season (1999+, not 2001-2002); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Regular-season week; omit for the season's latest","title":"Week"},"description":"Regular-season week; omit for the season's latest"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Team Efficiency Api Public Nfl Ratings Efficiency Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/coaches":{"get":{"tags":["public"],"summary":"Public Nfl Coach Value","description":"Head coaches' 4th-down decision value, 2014-2025 — shrunk, with intervals, UNRANKED.\n\nReturns ``{built_at, seasons, units, basis, caveat, doc, order, not_a_rank,\nmetrics, coaches}``.\n\nEach 4th down is valued by nfl4th's engine (Ben Baldwin) on our play-by-play;\nthat engine failed our calibration gate and the owner overrode it for\n2014-2025 (``basis``; ``doc`` is the record). Only the metrics that persisted\nfrom one season to the next are served: ``fourth_vs_avg`` (vs the average\ncoach's choice in the same spot) and ``fourth_vs_best`` (vs the model's best\noption). Try (2-pt / PAT) decision values did not persist from one season to the\nnext (K3a G1) and are not served.\n\nEach ``metrics`` entry carries ``{key, label, question, verdict, whose, ranked,\nn_min, reliability_median, careers_above, careers_below}``.\nEach coach carries ``{head_coach, current_team, teams, first_season,\nlast_season, seasons, began_before_window, n, games, qualifies, fourth_vs_avg,\nfourth_vs_best, by_season}``.\nEach ``by_season`` entry carries ``{season, teams, n, games, qualifies,\nfourth_vs_avg, fourth_vs_best}``.\nEach cell carries ``{estimate, low, high, raw, se, reliability, side}``: WP\npoints per 100 fourth downs, centered on that season's league (0 = the\nleague), shrunk toward 0 by its reliability, with a 95% interval; ``side`` is\nwhere that interval sits against 0 (``above`` / ``below`` / ``includes``, or\n``none`` when the unit has fewer than ``n_min`` decisions and every number is\nnull).\n\n**Nothing is ranked** (``not_a_rank``): median reliability is under 0.5 at\nboth grains, so ``coaches`` is in NAME order — current head coaches first —\nand a surface must not re-sort it by value. ``whose`` is \"not separable\": the\nnumber may be the coach's or the team's. Associative only; ``caveat`` applies\nto every number. 503 + ``no-store`` when the artifact cannot be read.","operationId":"public_nfl_coach_value_api_public_nfl_ratings_coaches_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Coach Value Api Public Nfl Ratings Coaches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/coaches/quadrant":{"get":{"tags":["public"],"summary":"Public Nfl Coach Quadrant","description":"Head coaches' 4th-down go rate x call quality, 2014-2025 careers — UNRANKED.\n\nReturns ``{built_at, seasons, basis, caveat, model_note, doc, axes, link,\nlabel_rule, counts, not_shown, order, not_a_rank, coaches}``.\n\nx is how often the coach goes for it against the league in the same situations\n(K1 ``fourth_go``, go-rate points: a habit, not a judgement); y is how close the\ncalls came to the model's best option (K3a ``fourth_vs_best``, WP points per 100\nfourth downs — the coach board's scale). Served only while K4a's gate (G1) finds\nthe two axes a plane, not one line; ``link`` is that correlation over\ncoach-seasons with its 95% interval. ``model_note``: the model favours going for\nit, so part of the positive link is the model's opinion, not evidence that\naggressive coaches decide better. Associative only; ``caveat`` applies to y.\n\nEach ``axes`` entry carries ``{label, question, units, above, below}``.\n``link`` carries ``{r, low, high, coach_seasons, coaches}``.\nEach coach carries ``{head_coach, current_team, teams, first_season,\nlast_season, x, y, quadrant}``.\nEach axis cell carries ``{estimate, low, high, raw, se, n, side}``: shrunk\nestimate with its 95% interval, the unshrunk career value and its standard\nerror; ``side`` is the multiplicity-corrected label (``above`` / ``below`` /\n``average``, ``label_rule``), not the board's interval rule. ``quadrant`` is\nnamed only when both sides are labelled, else null.\n\nQualifying careers only (``not_shown`` counts the rest); NAME order, current\nhead coaches first — a surface must not re-sort by value. 503 + ``no-store``\nwhen the artifact cannot be read or no longer publishes the quadrant.","operationId":"public_nfl_coach_quadrant_api_public_nfl_ratings_coaches_quadrant_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Coach Quadrant Api Public Nfl Ratings Coaches Quadrant Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/coaches/cost":{"get":{"tags":["public"],"summary":"Public Nfl Coach Cost","description":"What the league's 4th-down calls cost, in wins and playoff odds, 2014-2025.\n\nReturns ``{built_at, seasons, question, units, interval, basis, caveat, language,\ndoc, team_seasons, replicates, league, close, trend, playoff_pts_per_win,\nby_season, not_a_rank}``.\n\nThe counterfactual (``question``): each team makes the model's best call on every\none of its own valued 4th downs, opponents unchanged, priced before the season.\nWins are expected regular-season wins, the analytic sum over the season's games\nof each game's shifted win probability; ``playoff_pts`` / ``division_pts`` come\nfrom the playoff-odds season simulation, as probability differences x 100.\nThe league mean and each season's mean carry a 95% range; ``tries_wins``, the\nera means in ``trend``, ``close.share`` and ``playoff_pts_per_win`` are\ndescriptive point values. Every number\nis model-relative (``language``) under ``basis`` (nfl4th's engine, admitted by an\nowner override after its calibration gate failed); ``caveat`` applies throughout.\n\n``league`` carries ``{wins, playoff_pts, division_pts, vs_average_coach_wins,\ntries_wins}``: the mean per team-season, each with a 95% franchise-bootstrap\nrange (``interval``) except ``tries_wins``, a separate number never summed in.\n``close`` carries ``{share, lead, caveat}``: the share of the wins cost on close\ncalls; when ``lead`` a surface leads with ``caveat``. ``trend`` carries ``{early,\nlate, difference}``. ``playoff_pts_per_win`` carries ``{low, mid, high}``:\nmedian playoff points per win of cost by preseason playoff-odds tercile.\nEach ``by_season`` entry carries ``{season, wins, playoff_pts}``.\nEach range carries ``{estimate, low, high}``.\n\nLeague and season grain ONLY: no team, coach or career number, and nothing is\nranked (``not_a_rank``). 503 + ``no-store`` when the artifact cannot be read or\nK4b's gate no longer publishes it.","operationId":"public_nfl_coach_cost_api_public_nfl_ratings_coaches_cost_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Coach Cost Api Public Nfl Ratings Coaches Cost Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/coaches/failure-response":{"get":{"tags":["public"],"summary":"Public Nfl Coach Failure Response","description":"Whether a failed 4th down is followed by less going for it, 2014-2025.\n\nReturns ``{built_at, seasons, question, units, interval, method, basis, language,\ndoc, verdict, caveat, primary, placebo, secondaries, secondaries_note, calibration,\ncounts, not_a_rank}``.\n\nOne league-wide coefficient from K5a's pre-registered record run: the change in a head\ncoach's go-for-it rate in his next game (go-rate points per 4th down, against our\naverage-coach model) per failure beyond what nfl4th's conversion model expected,\ncompared only with the same coach in the same season. Associative (``language``).\n\n``verdict`` carries ``{label, mde}``: the pre-registered verdict and, for \"no\ndetectable change\", the minimum detectable effect. ``caveat`` carries ``{lead, text,\nplacebo_margin}``: when ``lead`` a surface states ``text`` before the headline.\n``primary`` carries ``{estimate, low, high, p}`` (a 95% coach bootstrap range,\npermutation p); ``placebo`` carries ``{estimate, low, high, p}``, the same comparison\nagainst the PREVIOUS game. Each ``secondaries`` entry carries ``{key, label,\nestimate, low, high, survives_holm}``: descriptive, never a verdict\n(``secondaries_note``). Each ``calibration`` entry carries ``{yards, attempts,\nfailed_pct, expected_pct}``. ``counts`` carries ``{fourth_downs, go_attempts,\nexposure_games, pairs, head_coaches}``.\n\nLeague grain ONLY: no coach number, nothing ranked (``not_a_rank``). 503 +\n``no-store`` when the artifact cannot be read, is not the clean record, or its\nverdict is not one a surface can state.","operationId":"public_nfl_coach_failure_response_api_public_nfl_ratings_coaches_failure_response_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Coach Failure Response Api Public Nfl Ratings Coaches Failure Response Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/gameweek/components":{"get":{"tags":["public"],"summary":"Public Nfl Gameweek Components","description":"One week's per-game component lines — a DESCRIPTION, never a rating.\n\nReturns ``{meta, season, week, games, sides, empty_reason}``. Each game\ncarries ``{game_id, neutral, mirrored, sides}`` and each side\ncarries ``{team_key, team_code, team, opponent_key, home, off_plays,\noff_epa, off_epa_per_play, def_plays, def_epa, def_epa_per_play, st_plays,\nst_epa, st_epa_per_play}``.\n\n**A single game's component is never ranked and never coloured good or\nbad**, and ``meta.not_a_rating`` carries the reason with the data: a\nteam-game is ~66 offensive and ~26 special-teams plays, so its per-play mean\ncarries a standard error of 1.8-3.6x (offense), 2.3-7.1x (defense) and\n2.7-15.0x (special teams) the true season-long spread between teams.\nSeason-to-date, opponent-adjusted and shrunk is ``/nfl/ratings/units``.\n\n``mirrored`` is true when the two sides are the same numbers seen from both\nends — within a game a team's ``off_epa`` is exactly its opponent's\n``def_epa`` negated and ``st_epa`` is antisymmetric outright, so six\npublished numbers carry three degrees of freedom. It is true on all 7,273\ngames in the committed artifact; a surface that explains the symmetry must\nread it rather than assume it.\n\n``st_plays`` counts a special-teams play for **both** teams (~26 per\nteam-game, not ~13) because ``posteam`` is the RECEIVING team on a kickoff\nand the PUNTING team on a punt, so a posteam-only number would add a team's\npunt coverage to its kickoff return. ``def_epa`` is EPA PREVENTED: positive\nis good (``meta.orientation``). ``home`` is the NOMINAL home team even at a\nneutral site, so read ``neutral`` separately.\n\n``team_key``/``opponent_key`` are franchise-folded and are what to join on;\n``team_code``/``team`` are era-correct and are what to display. Never parse\na team out of ``game_id``, which carries era-specific codes\n(``2006_01_SD_OAK``) that disagree with the folded key on 1,754 rows.\n\nA season/week outside the ladder is a 404. A week in the ladder with no rows\nreturns ``games: []`` with ``empty_reason`` set, and the reason distinguishes\na week whose games have no play-by-play from a season the artifact does not\ncover at all.\n\nThree games in 1999-2000 have no play-by-play (``1999_01_BAL_STL``,\n``2000_03_SD_KC``, ``2000_06_BUF_MIA``), but **only the 1999 one costs the\nladder anything** — the unit fits are cumulative through the week, so the two\n2000 games leave no gap. That single game is why the component ladder is\nthree team-weeks shorter than the board's: (1999, 1, BAL), (1999, 1, LA) and\n(1999, 2, LA).","operationId":"public_nfl_gameweek_components_api_public_nfl_gameweek_components_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999-2025); omit for the latest","title":"Season"},"description":"Season (1999-2025); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Week within the season; omit for that season's last week","title":"Week"},"description":"Week within the season; omit for that season's last week"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Gameweek Components Api Public Nfl Gameweek Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/season-forecast/meta":{"get":{"tags":["public"],"summary":"Public Cfb Season Forecast Meta","description":"The season/week grid, provenance and every predicate the numbers belong to.\n\nReturns ``{sport, built_at, through, code_digest, seasons, latest,\nlive_season, live_season_has_cells, live_season_note, replicates, seed,\nrows, cells, sampler, sampler_note, grain, win_total_predicate,\np_win_out_means, rank_key, rank_basis, rank_denominator, p_rank1_is_not_championship_odds, p_rank1_means,\ntitle_game_removed, title_game_rule, eligibility, validated_by,\nvalidation_holdout}``.\n\nEach ``cells`` entry carries ``{season, week, forecast_from_week, cutoff,\npreseason, outside_validated_range, teams, conferences, games}`` — the last three being\nrow counts, so a client can size a request before making it.\n\n``latest`` is **one** ``(season, week)`` pair chosen jointly by the builder,\nnever a season default and a week default composed after the fact: composing\nthem independently can name a pair that has no cell.\n\n``live_season_has_cells`` is ``false`` when the current season's schedule has\nnot been published upstream yet — an **absent feed**, which\n``live_season_note`` states in words. That is a different thing from a season\nwith no games played, and the surface must not render one as the other.\n\n404 if no artifact is readable.","operationId":"public_cfb_season_forecast_meta_api_public_cfb_season_forecast_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Season Forecast Meta Api Public Cfb Season Forecast Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/season-forecast":{"get":{"tags":["public"],"summary":"Public Cfb Season Forecast","description":"One freeze week: what the rest of that season looked like entering it.\n\nReturns ``{sport, season, week, forecast_from_week, cutoff, preseason,\noutside_validated_range,\nbuilt_at, through, replicates, max_mc_gap, latest, is_latest, seasons,\nweeks, teams, conferences, games, sampler, sampler_note, grain,\nwin_total_predicate, p_win_out_means, rank_key, rank_basis, rank_denominator,\np_rank1_is_not_championship_odds, p_rank1_means, title_game_removed,\ntitle_game_rule, eligibility, validated_by, validation_holdout}``.\n\nThree columnar blocks, all sliced from ONE joint rating draw.\n\n``teams`` columns are ``{team_id, team, conference, games_banked,\ngames_remaining, wins_banked, proj_wins_mean, proj_wins_sd, proj_wins_p50,\nproj_wins_lo80, proj_wins_hi80, proj_wins_lo95, proj_wins_hi95,\np_win_out}``.\n**A projected win is a regular-season win against an FBS opponent** — banked\nplus simulated — because that is exactly the set the gates scored. An FCS\ngame is excluded rather than priced off a probability nobody measured.\n\n``p_win_out`` is the share of simulated seasons in which the team wins all\n``games_remaining`` of those games — **\"wins every remaining game forecast\nhere\", not \"goes unbeaten\"**: FCS games are outside it, and so is every game\n``title_game_rule`` removes, Army-Navy included. It comes off the same shared draw as the win total, so\nit never contradicts it; a product of per-game probabilities would.\n``p_win_out_means`` states this in words. An artifact built before the\ncolumn existed carries neither, and ``p_win_out_means`` reads null.\n\n``conferences`` columns are ``{team_id, team, conf_games_scheduled,\nconf_games_banked, conf_wins_banked, conf_win_pct_to_date, p_rank1, e_rank,\nrank_lo80, rank_hi80, rank_lo95, rank_hi95, mc_gap, rank_pmf}``, nested\nunder ``blocks`` by conference name, each with its member count as ``size``.\n``rank_pmf`` has length ``size + 1`` and **the index IS the rank**, so\n``rank_pmf[0]`` is always 0.\n\n**The rank is a standard competition rank on conference win percentage.\nTies SHARE the better rank and the ranks below are SKIPPED**, so a\nconference's ranks are not a permutation of ``1..N``: three teams can hold\nrank 1 and nobody hold rank 2. Rows are ordered by ``team_id``, which is\ndeliberately not a rank order.\n\n**``p_rank1`` is not championship odds.** It reads \"finishes at least tied\nfor the best record in its conference\". The conference championship game is\nremoved from the record before ranking — by ``title_game_rule``, uniformly\nacross every conference and season — precisely so the two cannot be\nconfused, so **a championship game never appears on this surface**. The rule\nover-removes: Army-Navy leaves the 2025 American.\n\nThe win-percentage denominator is the **season-final scheduled** conference\nslate, banked plus remaining, which the schedule fixes and which is\ntherefore knowable at every freeze week without leaking. A 0-0 team reads\n``0.000``, not null.\n\n``games`` columns are ``{game_id, game_date, week, home_id, away_id,\nneutral_site, intra_conference, p_home, margin_sd, weeks_ahead}``.\n``p_home`` is the horizon-widened forecast — the clock advanced to the\ngame's own date — and it is what the simulation samples, never re-derived.\n``intra_conference`` comes from the per-season affiliation table, not from\n``cfb_schedules.conference_game``; the two disagree.\n\n**``week`` is the FREEZE week and ``forecast_from_week`` is the week being\nforecast.** The rating state is THROUGH ``week``; every game priced here is\nafter its cutoff, so the two differ by one in the ordinary case. Render\n``forecast_from_week``, never ``week``, in any \"entering week N\" label — and\nnote that freeze week 0 is the preseason state, an ordinal college football\ndoes not have. The cutoff is EXCLUSIVE: the last day in the state is the day\nbefore it.\n\n``outside_validated_range`` is true for a season after 2025, i.e. beyond the\nholdout S1/S2/S3 scored. ``max_mc_gap`` is the cell's worst Monte Carlo\nnoise floor on a rank pmf, conservative by a factor of 2.\n\nA ``(season, week)`` with no cell is a 404. Late-season weeks where every\nconference race is already decided are **not published**: the surface's\nobject is the conference finish distribution and a cell that cannot carry\none is not a standings forecast.","operationId":"public_cfb_season_forecast_api_public_cfb_season_forecast_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (2015-); omit for the latest","title":"Season"},"description":"Season (2015-); omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Freeze week 0-15; omit for that season's last published one","title":"Week"},"description":"Freeze week 0-15; omit for that season's last published one"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Season Forecast Api Public Cfb Season Forecast Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/upcoming/meta":{"get":{"tags":["public"],"summary":"Public Cfb Upcoming Meta","description":"Which week the CFB forward forecast is about, and every predicate it belongs to.\n\nReturns ``{sport, season, week, week_start, week_end, season_types,\nstate_through_week, state_through_date, model_provisional, elo_band, week_games,\ngames_completed, games_unplayed, market_source, lines_as_of, built_at, as_of,\nis_stale, stale_note, grain, grain_note, predictors,\nsrs_is_the_betting_board_line, srs_note, srs_margin_sd, model_footnotes,\nelo_margin_sd, elo_scope, probability_mapping, probability_note,\npublishes_cover_probability, market_line_convention, market_note, eligibility,\nvalidated_by, validation_holdout, market_is_better, state_complete,\nstate_incomplete_games, cancelled_games, cover_probability_note, code_digest,\nseasons_walked, params, sources, rows}``.\n\n``is_stale`` is computed at read time: true once the week's Tue-Mon window has\nclosed by the server's UTC date. 404 if no artifact is readable.","operationId":"public_cfb_upcoming_meta_api_public_cfb_upcoming_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Upcoming Meta Api Public Cfb Upcoming Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/upcoming":{"get":{"tags":["public"],"summary":"Public Cfb Upcoming","description":"The upcoming CFB week's games: SRS and Elo margins and win probabilities.\n\nReturns ``{sport, season, week, week_start, week_end, season_types,\nstate_through_week, state_through_date, model_provisional, elo_band, week_games,\ngames_completed, games_unplayed, market_source, lines_as_of, built_at, as_of,\nis_stale, stale_note, grain, grain_note, predictors,\nsrs_is_the_betting_board_line, srs_note, srs_margin_sd, model_footnotes,\nelo_margin_sd, elo_scope, probability_mapping, probability_note,\npublishes_cover_probability, market_line_convention, market_note, eligibility,\nvalidated_by, validation_holdout, market_is_better, state_complete,\nstate_incomplete_games, cancelled_games, cover_probability_note, games}``.\n\nEach ``games`` card carries ``{game_id, game_date, season_type, status,\nneutral_site, conference_game, home, away, market, models}``; ``models`` is\n``{srs, elo}``. ``srs`` is null when the betting board publishes no line;\n``elo.withheld`` names why Elo is absent. ``market.home_line`` is BOOK\nconvention (negative = home favored) — read ``favorite``. 404 if no artifact.","operationId":"public_cfb_upcoming_api_public_cfb_upcoming_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Upcoming Api Public Cfb Upcoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/ratings/paths/meta":{"get":{"tags":["public"],"summary":"Public Cfb Rank Paths Meta","description":"Which seasons the CFB rating paths cover, and the predicates they carry.\n\nReturns ``{sport, schema_version, built_at, grain, grain_note, rank_note,\nnull_note, publish_rule, seasons, seasons_walked, team_columns, value_columns,\nweek_columns, sources, code_digest, rows, latest_week}``. ``latest_week`` maps\neach season to its last listed week. 404 if no artifact is readable.","operationId":"public_cfb_rank_paths_meta_api_public_cfb_ratings_paths_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Rank Paths Meta Api Public Cfb Ratings Paths Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/ratings/paths":{"get":{"tags":["public"],"summary":"Public Cfb Rank Paths","description":"One season of every FBS team's weekly SRS and Elo, with its board rank.\n\nReturns ``{sport, grain, grain_note, rank_note, null_note, publish_rule,\nbuilt_at, seasons, season, weeks, week_start, week_end, last_game_date,\nteams_rated, fbs_team_count, teams, team_count}``. Each of ``teams`` is\n``{team_id, team, conference, srs, srs_rank, elo, elo_rank}``, the four value\narrays aligned to ``weeks``; a null means the team was not on that week's\nboard yet. Ranks are the ratings board's (FBS only, on published values,\ncompetition ranking), ordered by the last week's SRS rank. Ratings are THROUGH\neach week. Ours, never the AP poll. 404 for a season not covered.","operationId":"public_cfb_rank_paths_api_public_cfb_ratings_paths_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (2002 on); omit for the latest","title":"Season"},"description":"Season (2002 on); omit for the latest"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Rank Paths Api Public Cfb Ratings Paths Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/parity/meta":{"get":{"tags":["public"],"summary":"Public Cfb Parity Meta","description":"Which seasons the CFB parity artifact covers, and the predicates it carries.\n\nReturns ``{sport, schema_version, built_at, scope_note, closeness_note,\nupset_note, ap_note, comparison_note, one_score_max, blowout_min,\nelo_burn_in_seasons, seasons, seasons_walked, week_columns, upset_columns,\nrate_columns, ranked_metrics, sources, code_digest, rows, latest_week}``.\n``latest_week`` maps each season to its last listed week. 404 if no artifact\nis readable.","operationId":"public_cfb_parity_meta_api_public_cfb_parity_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Parity Meta Api Public Cfb Parity Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/parity":{"get":{"tags":["public"],"summary":"Public Cfb Parity","description":"Is this season \"anyone can beat anyone\"? Closeness, upsets vs expected and\nAP-poll losses, against every season since 2002 through the same week.\n\nReturns ``{sport, built_at, scope_note, closeness_note, upset_note, ap_note,\ncomparison_note, one_score_max, blowout_min, elo_burn_in_seasons, seasons,\ncomparison, season, weeks, week_start, week_end, games, one_score, blowouts,\npriced, fav_losses, expected_fav_losses, variance_fav_losses, poll,\nranked_games, ranked_losses, vs_unranked, lost_to_unranked, top10_games,\ntop10_losses, top5_games, top5_losses, upsets}``; every column from\n``week_start`` to ``top5_losses`` is aligned to ``weeks``. ``comparison`` is\n``{season, through_week, through_date, rows, ranks}`` — always the LATEST\nseason, whatever ``season`` asks for: each row one season's totals and rates\nthrough ``through_week``, ``ranks`` the latest season's rank per metric\n(``{rank, of}``, 1 = highest; ``of`` counts the seasons with a value).\nEach of ``upsets`` is ``{game_id, week, game_date, winner_id, winner,\nwinner_points, loser_id, loser, loser_points, winner_win_prob,\nwinner_ap_rank, loser_ap_rank, neutral_site}`` — the season's biggest by Elo,\nlowest winner probability first. Regular-season FBS-vs-FBS games only; AP\nranks are the poll entering each week. 404 for a season not covered.","operationId":"public_cfb_parity_api_public_cfb_parity_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (2002 on) for the weekly block; omit for the latest","title":"Season"},"description":"Season (2002 on) for the weekly block; omit for the latest"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Parity Api Public Cfb Parity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/playoff-odds/meta":{"get":{"tags":["public"],"summary":"Public Cfb Playoff Odds Meta","description":"Which College Football Playoff brackets are covered, and their predicates.\n\nReturns ``{sport, schema_version, built_at, as_of, grain, grain_note,\nmethod_note, model_note, fixed_ratings_note, hindsight_note,\nprobability_mapping, margin_sd, publishes_cover_probability, market_is_better,\nrecord_note, format, rounds, odds_keys, seasons, live_season, live_field_set,\nupcoming_week, record, seasons_walked, sources, code_digest, rows, status}``.\n``live_field_set`` is false between the start of a season and the day its\nfield is entered; ``status`` maps each season to ``upcoming``, ``in_progress``\nor ``complete``. 404 if no artifact is readable.","operationId":"public_cfb_playoff_odds_meta_api_public_cfb_playoff_odds_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Playoff Odds Meta Api Public Cfb Playoff Odds Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/playoff-odds":{"get":{"tags":["public"],"summary":"Public Cfb Playoff Odds","description":"One College Football Playoff bracket: each team's chance to reach every\nround and win the title, and the eleven games with their pregame lines.\n\nReturns ``{sport, built_at, as_of, grain, grain_note, method_note, model_note,\nfixed_ratings_note, hindsight_note, probability_mapping, margin_sd,\npublishes_cover_probability, market_is_better, record_note, format, rounds,\nodds_keys, seasons, live_season, live_field_set, record, season,\nselection_date, status, games_final, games_total, champion_id,\nstate_through_date, entering_state_through_date, teams, games}``.\n\nEach of ``teams`` is ``{seed, team_id, team, conference, bye, rating,\nrating_entering, eliminated_in, champion, odds, odds_entering}``, in seed\norder; ``odds`` and ``odds_entering`` are ``{quarterfinal, semifinal, final,\ntitle}`` — the probability of REACHING that round (``title`` = winning it).\n``odds`` holds every finished game fixed; ``odds_entering`` is the same\ncalculation entering the first round. Each of ``games`` is ``{slot, round,\ntop, bottom, site, game_id, game_date, status, home_id, home_points,\naway_points, winner_id, line}`` in bracket order; a side is ``{team_id, seed,\nfrom_slot}`` with ``team_id`` null until its feeder game is final. ``line`` is\n``{favorite_id, favorite_margin, favorite_win_prob, better_seed_id,\nbetter_seed_win_prob, home_field_points, state_through_date}`` — read\n``favorite_id``, never a sign — and null until both teams are known. These are\na model's probabilities, not betting odds. 404 for a season not covered.","operationId":"public_cfb_playoff_odds_api_public_cfb_playoff_odds_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (2024 on); omit for the latest bracket","title":"Season"},"description":"Season (2024 on); omit for the latest bracket"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Playoff Odds Api Public Cfb Playoff Odds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/season-record":{"get":{"tags":["public"],"summary":"Public Nfl Season Record","description":"How Elo and SRS have done this season against the closing line.\n\nReturns ``{sport, meta, season, seasons, through_week, games_final,\nmarket_source, market_note, predictors, interval_note, straight_up_note,\nno_cover_note}``.\n\nGraded off the ``/nfl/gameweek`` games: each rating's ENTERING-week forecast\nagainst nflverse's closing spread and the final score, postseason included.\n``predictors`` is ``{elo, srs}``, each scored on its own games — SRS forecasts\nnothing in week 1, so from 2000 on it holds fewer. 404 for a season with no graded game.\n\n\n``predictors`` maps each rating to its record. Each record carries\n``{games, mean_abs_error, market_mean_abs_error, difference,\ndifference_interval, straight_up, by_week}``. ``difference`` is ours minus\nthe market's average miss in points — **negative means our line missed by\nless** — and ``difference_interval`` its 95% paired bootstrap interval over\ngames (seeded; null under 2 games). Both averages are over the SAME games:\nour line and the market's both present and the game final. Averages are\nnull, never 0.0, when ``games`` is 0.\n\n``straight_up`` carries ``{games, correct, market_correct, disagreed,\ncorrect_when_disagreed}`` — games where both lines named a side and the game\nwas not tied; the market's side is its stored favorite, never a sign.\n\nEach ``by_week`` entry carries ``{week, games, mean_abs_error,\nmarket_mean_abs_error, straight_up_games, correct, market_correct}``.\n\nThere is no against-the-spread record and none will be added\n(``no_cover_note``).","operationId":"public_nfl_season_record_api_public_nfl_season_record_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season (1999-); omit for the latest","title":"Season"},"description":"Season (1999-); omit for the latest"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Season Record Api Public Nfl Season Record Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/forecast-record":{"get":{"tags":["public"],"summary":"Public Nfl Forecast Record","description":"How the win probabilities we published have done, against the closing moneyline.\n\nReturns ``{sport, season, seasons, first_logged_at, first_logged_week,\nthrough_week, games_served, games_final, games_without_market, market_source,\nmarket_note, served_note, coin_log_loss, predictors, brier_note,\ncalibration_note, interval_note}``.\n\nPer game, the last card logged before kickoff; each rating's ``win_prob`` on it\nis scored against the final. ``predictors`` is ``{elo, srs}``, each\n``{games, brier, coin_brier, market_brier, brier_difference, brier_difference_interval,\nlog_loss, market_log_loss, calibration, ece, market_calibration, market_ece,\nby_week}``: ``brier_difference`` is ours minus the market's, **negative means\nours were closer**; ``coin_brier`` is a flat 50-50 call on the same games\n(0.25 when none tied); scores are null, never 0.0, when ``games`` is 0.\n``calibration`` is five bins on the favorite's chance (50-100%), each\n``{lower, upper, games, predicted, realized, realized_interval}`` with a 95%\nWilson interval. 404 when the log holds nothing for the season; 503 +\n``no-store`` when the log or the schedule cannot be read.","operationId":"public_nfl_forecast_record_api_public_nfl_forecast_record_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season; omit for the newest one logged","title":"Season"},"description":"Season; omit for the newest one logged"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Forecast Record Api Public Nfl Forecast Record Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/season-record":{"get":{"tags":["public"],"summary":"Public Cfb Season Record","description":"How the Picks board's line has done this season against the market.\n\nReturns ``{sport, season, seasons, weeks, through_week, market_source,\nmarket_note, predictors, interval_note, straight_up_note, no_cover_note,\nbuilt_at}``.\n\nRolled up from every published Picks week's board, so each line is the one\nthat week's page showed and each game is one its own summary scores\n(``basis == \"standard\"`` only). ``predictors`` is ``{srs}``.\n``market_source`` is ``consensus``, ``single_book`` or ``mixed``. Cached\nin-process until CFB data changes or the UTC date turns (``built_at``). ``weeks`` lists every Picks week,\nthe upcoming lined one included; ``through_week`` is the newest week with a\ngraded game (null before the first). Only the current and previous season\nare covered: 404 for any other; 503 + ``no-store`` when a board or the week\nlist cannot be read.\n\n\n``predictors`` maps each rating to its record. Each record carries\n``{games, mean_abs_error, market_mean_abs_error, difference,\ndifference_interval, straight_up, by_week}``. ``difference`` is ours minus\nthe market's average miss in points — **negative means our line missed by\nless** — and ``difference_interval`` its 95% paired bootstrap interval over\ngames (seeded; null under 2 games). Both averages are over the SAME games:\nour line and the market's both present and the game final. Averages are\nnull, never 0.0, when ``games`` is 0.\n\n``straight_up`` carries ``{games, correct, market_correct, disagreed,\ncorrect_when_disagreed}`` — games where both lines named a side and the game\nwas not tied; the market's side is its stored favorite, never a sign.\n\nEach ``by_week`` entry carries ``{week, games, mean_abs_error,\nmarket_mean_abs_error, straight_up_games, correct, market_correct}``.\n\nThere is no against-the-spread record and none will be added\n(``no_cover_note``).","operationId":"public_cfb_season_record_api_public_cfb_season_record_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season; omit for the newest with a Picks week","title":"Season"},"description":"Season; omit for the newest with a Picks week"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Season Record Api Public Cfb Season Record Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/playoff-odds/meta":{"get":{"tags":["public"],"summary":"Public Nfl Playoff Odds Meta","description":"The season/week grid, provenance and every predicate the numbers belong to.\n\nReturns ``{sport, built_at, as_of, code_digest, season, latest, replicates,\nseed, probability_dp, rows, next_cutoff, is_stale, stale_note, cells, grain, grain_note, seed_pmf_layout,\np_division_title_means, e_seed_means, proj_wins_interval_note, mc_gap_note,\ncoin_note, game_probability_note, rule_fidelity_note,\npublishes_conference_title, publishes_super_bowl, not_published, sampler,\nvalidated_by, validation_holdout}``.\n\nEach ``cells`` entry carries ``{season, week, forecast_from_week, cutoff,\npreseason, teams}`` — ``teams`` being a row count.\n\n``latest`` is **one** ``(season, week)`` pair chosen by the builder, never a\nseason default and a week default composed after the fact.\n\n``is_stale`` is computed at READ time from the server's UTC date: true once a\nnewer freeze week was due — 2 h after the SECOND weekly cron run at or after\n``next_cutoff`` (the expected publish plus one retry) — and\nthe board still serves ``latest``. ``stale_note`` is the sentence to show beside\nthe numbers when it is; null otherwise. ``next_cutoff`` is null once the\nseason's last forecast is out, which is never stale.\n\n503 + ``no-store`` when no artifact can be read.","operationId":"public_nfl_playoff_odds_meta_api_public_nfl_playoff_odds_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Playoff Odds Meta Api Public Nfl Playoff Odds Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/playoff-odds":{"get":{"tags":["public"],"summary":"Public Nfl Playoff Odds","description":"One freeze week: each club's playoff, division-title and seed odds.\n\nReturns ``{sport, season, week, forecast_from_week, cutoff, preseason,\nbuilt_at, replicates, max_mc_gap, n_seeds, bye_seeds, out_index,\ndivision_coin_rate, seeding_coin_share, latest, next_cutoff, is_stale,\nstale_note, is_latest, weeks, teams, leverage,\ngrain, grain_note, seed_pmf_layout, p_division_title_means, e_seed_means,\nproj_wins_interval_note, mc_gap_note, coin_note, game_probability_note,\nrule_fidelity_note, publishes_conference_title, publishes_super_bowl,\nnot_published, sampler, validated_by, validation_holdout}``.\n\n``teams`` columns are ``{team, conference, division, games_banked,\nwins_banked, games_remaining, proj_wins_mean, proj_wins_lo80,\nproj_wins_hi80, proj_wins_80_mass, p_playoff, p_division_title, p_bye,\np_seed1, e_seed, mc_gap, seed_pmf}``, one row per club, ordered by\n(conference, division, team).\n\n``seed_pmf`` is index-aligned: **the index IS the seed**, index 0 is unused\nand always 0, and index ``out_index`` (``n_seeds + 1``) is \"missed the\nplayoffs\". ``p_division_title`` is 23.3's tiebreak-resolved title\nprobability, summing to 1 across a division and equal to P(top-four seed);\n``p_rank1`` (\"at least tied for the best record\") is **not** served.\n``e_seed`` is conditional on making the field, null if never.\n``proj_wins_lo80``/``hi80`` is a central interval on a COUNT, so it carries\nMORE than 80% of the mass — ``proj_wins_80_mass`` is the real coverage.\n\n``leverage`` is this week's swing games (``src/nfl/playoff_leverage.py``): one\nrow per game of ``forecast_from_week``, widest swing first, each\n``{game_id, week, p_home, max_swing, home, away}`` with a side\n``{team, p_playoff_if_win, p_playoff_if_loss, replicates_if_win,\nreplicates_if_loss}`` — the club's playoff share among the SAME simulated\nseasons split on that game's result; the two halves recombine to its\n``p_playoff``. ``[]`` on a cell built before the field existed.\n\n**No conference-title, Super Bowl or cover probability, score or margin.**\n\n**``week`` is the FREEZE week**: the rating state is THROUGH it. Render\n``forecast_from_week`` (\"entering week N\"), never ``week``. ``cutoff`` is\nexclusive. ``max_mc_gap`` is the largest seed-pmf Monte Carlo gap in the cell\n— the noise floor of the numbers served.\n\n``is_stale``/``stale_note``/``next_cutoff`` are the ARTIFACT's (is a newer\nweek due?), identical on every cell — see ``/nfl/playoff-odds/meta``.\n\nA ``(season, week)`` with no cell is a 404; an artifact that cannot be read\nis a 503 + ``no-store``.","operationId":"public_nfl_playoff_odds_api_public_nfl_playoff_odds_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season; omit for the latest","title":"Season"},"description":"Season; omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Freeze week (0 = preseason); omit for that season's last published one","title":"Week"},"description":"Freeze week (0 = preseason); omit for that season's last published one"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Playoff Odds Api Public Nfl Playoff Odds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/qb-ratings/meta":{"get":{"tags":["public"],"summary":"Public Nfl Qb Ratings Meta","description":"The season/week grid, provenance and the notes every number belongs to.\n\nReturns ``{sport, built_at, season_end_built_at, latest, season_end_seasons,\nmin_row_dropbacks, points_per_epa, replacement_point, cells, model, observation,\nlatent_note, change_note, carry_note, season_end_note, gate,\nvalidated_by}``.\n\nEach ``cells`` entry carries ``{season, week, season_type, passers,\nseason_end}`` — ``season_end`` true only on a season's final week of a\nseason the season-end table holds.\n\n``gate`` is the validation verdict verbatim. It is MIXED: render it as what\nwas measured, never as an accuracy claim.\n\n503 + ``no-store`` when no artifact can be read.","operationId":"public_nfl_qb_ratings_meta_api_public_nfl_qb_ratings_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Qb Ratings Meta Api Public Nfl Qb Ratings Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/qb-ratings":{"get":{"tags":["public"],"summary":"Public Nfl Qb Ratings","description":"One WALSH-QB board, THROUGH ``(season, week)``.\n\nReturns ``{sport, built_at, latest, is_latest, season, week, season_type,\nweeks, passers, rated_this_week, board, season_end, model, observation, latent_note,\nchange_note, carry_note, season_end_note, gate, validated_by}``.\n\n``board`` columns are ``{rank, qb, qb_name, team, last_week, latent,\nlatent_sd, season_plays, change}``, ordered by ``latent`` descending (ties\nby ``qb``), with **no qualifying floor** — ``season_plays`` is served so a\nthin sample can be judged. Every passer with a row this season at or before\n``week`` is listed at his most recent row (``last_week``);\n``rated_this_week`` counts those whose ``last_week`` is ``week``. A row exists\nonly for a QUALIFYING game (4+ dropbacks, ``min_row_dropbacks``), so\n``last_week < week`` means no qualifying game that week — not \"did not\nplay\".\n\n``latent`` is EPA per quarterback play (throws and carries) net of his\noffense and the defenses faced. Its zero is NOT an average quarterback;\ncompare within a board, never across seasons. ``change`` is how far the\nrating moved over that one week from every game played — not his game's\neffect — and is null unless ``last_week == week`` (and on his first week in\nthe record, 1999 onward).\n\n``season_end`` is null except on a season's final week, where its\ncolumns are ``{rank, qb, qb_name, team, plays, walsh, walsh_sd}``: the\nseason-end WALSH-QB scale (80 = that season's average starter), passers with\n200+ plays. Never merged into ``board``.\n\nA ``(season, week)`` the artifact does not carry is a 404; an artifact that\ncannot be read is a 503 + ``no-store``.","operationId":"public_nfl_qb_ratings_api_public_nfl_qb_ratings_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season; omit for the latest","title":"Season"},"description":"Season; omit for the latest"},{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Week (postseason continues the count); omit for that season's last week","title":"Week"},"description":"Week (postseason continues the count); omit for that season's last week"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Qb Ratings Api Public Nfl Qb Ratings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/qb-ratings/{qb}":{"get":{"tags":["public"],"summary":"Public Nfl Qb Career","description":"One passer's WALSH-QB history.\n\nReturns ``{sport, built_at, qb, qb_name, seasons, weeks, model, observation,\nlatent_note, change_note, carry_note, season_end_note, gate,\nvalidated_by}``.\n\n``seasons`` columns are ``{season, team, plays, games, walsh, walsh_sd, rank,\nof}``: the season-end scale, only seasons with 200+ plays (``rank`` of\n``of`` qualified passers). A passer who never qualified has no rows — a real\nanswer, not a missing one.\n\n``weeks`` columns are ``{season, week, season_type, team, opponent, game_id,\nplays, season_plays, epa_per_play, latent, latent_sd, change}``: every week\nwith a qualifying game (4+ dropbacks), on the latent scale. ``epa_per_play`` is that game's raw,\nunadjusted figure. A week without a qualifying game has no row (even if he\ntook 1-3 dropbacks), and the movement during it is in no ``change``, so changes do not sum to a season's movement.\n\nA passer the artifact does not carry is a 404; an artifact that cannot be\nread is a 503 + ``no-store``.","operationId":"public_nfl_qb_career_api_public_nfl_qb_ratings__qb__get","parameters":[{"name":"qb","in":"path","required":true,"schema":{"type":"string","maxLength":32,"description":"The passer's gsis id, e.g. 00-0033873","title":"Qb"},"description":"The passer's gsis id, e.g. 00-0033873"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Qb Career Api Public Nfl Qb Ratings  Qb  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/game/meta":{"get":{"tags":["public"],"summary":"Public Cfb Game Meta","description":"Which seasons have game pages, and when each was built.\n\nReturns ``{sport, schema_version, built_at, seasons}``.\n\nEach ``seasons`` entry carries ``{games, game_ids, absent_ids, scheduled_ids,\nfailed, bytes, built_at, through, complete, season}``. ``game_ids`` are exactly\nthe FINAL pages that exist (a game that failed a rebuild keeps its earlier page);\n``absent_ids`` the subset with no usable play-by-play (final + pregame only — not\nfor the sitemap). ``scheduled_ids`` (live season only; ``[]`` elsewhere and on a\nstore built before v3) are PREGAME pages of games with no final yet — disjoint\nfrom ``game_ids``, noindex, never in a sitemap.\n``complete`` is true for a settled season built in full; the live season is\nnever complete (every weekly run rebuilds it).\n\n503 + ``no-store`` when the store is unavailable.","operationId":"public_cfb_game_meta_api_public_cfb_game_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Game Meta Api Public Cfb Game Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/game/{game_id}":{"get":{"tags":["public"],"summary":"Public Cfb Game","description":"One CFB game: a FINAL's pregame forecasts, win probability, drives and box\nscore — or, for a live-season game with no final yet, its pregame page.\n\nReturns ``{sport, game_id, schema_version, built_at, state, game, pregame,\nwin_probability, drives, box, leaders, definitions, sources}``.\n\n``state`` is ``final``, or ``scheduled`` for a PREGAME page (store v3; a payload\nwithout it is a final built before v3). A scheduled payload returns ``{sport,\ngame_id, schema_version, built_at, state, game, pregame, definitions, sources}``\n— no box, WP, drives or leaders — with ``game.kickoff_utc`` (null = TBD) and null\npoints. ``scheduled`` means only \"no final in our data\": the game may have kicked\noff. Its ``pregame`` is the block below plus ``{market_total, moneyline,\nline_state, captured_at}`` (``captured_at`` = when THIS game's line was fetched;\nalso on ``line``), and its ``srs`` adds the card's ``margin_sd``,\n``margin_dist``, ``total``, ``fcs_adjustment``, ``footnote_text`` and\n``total_status``. No cover probability, and no edge or lean, is ever carried.\n\n``pregame`` is ``{week, margin, line, srs, elo, elo_withheld}``: the betting\nboard's line and ENTERING SRS for this game exactly as its card publishes them,\nplus the entering Elo, each with ``beat_by`` — home-margin points by which the\nresult beat that forecast (positive = the home side did better). Elo follows\n``/cfb/upcoming``'s rule and numbers (CFB-U U2): published only for two FBS teams\nthat have each played an in-season game, with ``hfa_points`` (the home edge it\nadded, 0 on a neutral site); otherwise ``elo`` is null and ``elo_withheld`` names\nwhy (``not_fbs_vs_fbs``, ``no_in_season_game``, ``tbd_team``, ``no_elo``). Null\nwhen the week had no priced game at all.\n\n``win_probability`` is ``{status, withheld_reason, model, perspective, series,\ntop_plays}``; ``status`` is ``ok``, ``withheld`` (the scores card's rule,\nunchanged) or ``absent``. ``series`` is columnar, one list per key of\n``{game_play_number, period, clock, pos_team_id, play_type, text,\nhome_wp_before, home_wp_after, epa}``; HOME perspective, no flip.\n``top_plays[0]`` is the card's biggest swing.\n\n``drives`` is ``{status, withheld_reason, rows}`` — withheld on a game where one\ndrive carries both offenses' scrimmage plays. ``box`` is ``{status, reconciled,\npbp_final, epa_status, epa_mismatch_share, home, away}``; points are the\nschedule's, ``reconciled`` says whether the play-by-play agrees.\n\nA final also carries ``recap`` (``src/cfb/game_recap.py``): ``{headline, recap,\nstar, star_line}`` — 1-2 sentences an LLM phrased strictly from deterministic facts\nof this page and a grounding check accepted (else a template from the same facts)\n— or null when none is written yet. A scheduled page has no ``recap`` key.\n\nA final also carries ``percentiles`` (``src/cfb/box_percentiles.py``): ``{status,\nseason, reference_team_games, stats, home, away}`` — each team's box RATE stats\nas a 0-100 percentile among the stored season's FBS team-games (100 = best;\nstarting field position reversed), ``status`` ``unavailable`` and sides null when\nthe season has too few stored games or the box is not ok; ``definitions`` always\ncarries ``percentiles``. A scheduled page has neither.\n\n404 when the store does not list the game: not FBS-involving; outside the stored\nseasons; no final and not in the LIVE season; or a live-season game with no final\nthat is past the next week to be played, or in a week with no posted line\nanywhere (the betting board declines it, so there is no card to build from).\n503 + ``no-store`` when the store is unavailable.","operationId":"public_cfb_game_api_public_cfb_game__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"integer","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Game Api Public Cfb Game  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/live/{game_id}":{"get":{"tags":["public"],"summary":"Public Cfb Live Game","description":"One CFB game while it is being played, from ESPN's live play-by-play.\n\nReturns ``{sport, game_id, schema_version, built_at, state, game, pregame,\nwin_probability, drives, box, leaders, definitions, sources, live}`` — the\n``/cfb/game/{game_id}`` shape (same blocks, same rules, same builder) plus\n``live``. ``state`` is ``live`` while ESPN says the game is on and ``final`` once\nit is over (until the weekly run stores its page). ``pregame`` is always null.\nPoints are ESPN's live score.\n\n``live`` is ``{espn_state, detail, period, clock, fetched_at,\nlast_play_wallclock, plays, participants, ttl_seconds, validation, home_wp,\npenalties, penalty_plays}``: ``detail`` is ESPN's\nstatus line (\"10:30 - 4th Quarter\"); ``last_play_wallclock`` the newest play's\ntime on ESPN's clock (the feed runs ~1.5 min behind the field); ``validation`` is\nsportsdataverse's per-game gate (``{ok, errors, processing_version}``, rules that\ncan only pass at the final whistle dropped while live), or null.\n``participants`` is false when ESPN's per-play participants could not be read:\nthe page then has no player ids and ``leaders`` is null. ``percentiles`` is the\nfinal page's block: the game so far against the stored season. ``home_wp`` is the\nwin-probability line's last point (the home side's chance after the latest\nplay; null once final or when the line is withheld); ``penalties`` is\n``{home, away}`` each ``{count, yards}`` from ESPN's box score (accepted only),\nor null when ESPN's box lacks either side; ``penalty_plays`` is\n``[{period, clock, text}]``, every play whose ESPN text mentions a penalty\n(declined and offsetting included), as ESPN wrote it.\n\nEPA and win probability are sportsdataverse's at the pinned commit, which can\ndiffer slightly from the stored page's. ESPN REVISES the live feed: every\nbuild replaces the whole game.\n\n404 when ESPN has no such game, it has not kicked off, or it was postponed or\ncanceled (``detail`` names the ESPN state or status). 503 + ``no-store`` when the\nfeed cannot be read or processed, carries no plays yet, or another request's\nbuild of the game is still running — never a cached empty page.","operationId":"public_cfb_live_game_api_public_cfb_live__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"integer","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Live Game Api Public Cfb Live  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/live/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Live Game","description":"One NFL game while it is being played, from ESPN's live play-by-play.\n\nReturns ``{sport, orientation, definitions, leaders_per_team, top_rule, source,\nbuilt_at, season, status, game_id, week, season_type, game_type, home, away, box,\nleaders, drives, wp, epa_flow, state, live}`` — the ``/nfl/game-detail/{game_id}``\nshape (same blocks, same builder) plus the EPA flow chart, ``state`` and ``live``.\n``status`` (the stored season's build status) is always null. ``state`` is ``live``\nwhile ESPN says the game is on and ``final`` once it is over (until the weekly run\nstores its page). Points are ESPN's live score; ``wp`` ends at the model's estimate\nENTERING the latest play while the game is live (the NFL processor's after-play\nvalue is copied from the next row of the feed, so it is not used), at the result\nonce it is final.\n``leaders[*].player_id`` is ESPN's athlete id, not gsis.\n\n``epa_flow`` is ``{orientation, x_axis, precision, top_rule, play_universe, plays,\nperiods, totals, top_plays}`` — the ``/nfl/epa-flow/{game_id}`` blocks.\n\n``live`` is ``{espn_id, espn_state, detail, period, clock, fetched_at,\nlast_play_wallclock, plays, participants, ttl_seconds, validation, home_wp,\npenalties, penalty_plays, projection}``: ``detail`` is ESPN's status line; ``last_play_wallclock`` the newest play's time on ESPN's clock;\n``validation`` is sportsdataverse's per-game gate (``{ok, errors,\nprocessing_version}``, rules that can only pass at the final whistle dropped while\nlive), or null. ``participants`` is false when ESPN's per-play participants could\nnot be read: ``leaders`` is then null. ``home_wp`` is the\nwin-probability line's last point (the home side's chance ENTERING the latest\nplay, about one play behind; null once final or when the line is withheld); ``penalties`` is\n``{home, away}`` each ``{count, yards}`` from ESPN's box score (accepted only),\nor null when ESPN's box lacks either side; ``penalty_plays`` is\n``[{period, clock, text}]``, every play whose ESPN text mentions a penalty\n(declined and offsetting included), as ESPN wrote it. ``projection`` is the\nprojected final score (``src/nfl/live_projection.py``,\n``docs/NFL-LIVE-PROJECTION-SERVE.md``): ``{status}`` alone unless ``status`` is\n``ok``, then also ``{entering, total, home_points, away_points,\np_tied_after_regulation, n_sims, pregame, model}``; ``total`` is the final\nregulation total's ``{mean, q10, q50, q90}``. A projection failure never fails\nthe page (``status: unavailable``).\n\nEPA and win probability are sportsdataverse's (its versions of nflfastR's models),\nwhich differ from the stored page's by the amounts ``definitions.live`` quotes.\n\n404 when the id is not an nflverse id on the schedule (or has no ESPN id), ESPN has\nno such game, it has not kicked off, or it was postponed or canceled. 503 +\n``no-store`` when the schedule or the feed cannot be read or processed, the feed\ncarries no plays yet, or another request's build of the game is still running —\nnever a cached empty page.","operationId":"public_nfl_live_game_api_public_nfl_live__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Live Game Api Public Nfl Live  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/upcoming/meta":{"get":{"tags":["public"],"summary":"Public Nfl Upcoming Meta","description":"Which week the forward forecast is about, and every predicate it belongs to.\n\nReturns ``{sport, built_at, as_of, is_stale, stale_note, market_observed_at,\ncode_digest, season, week, week_start,\nweek_end, state_through_week, state_through_date, cutoff, board_gated,\nweek_games, games_completed, games_unplayed, seasons_walked,\nlast_complete_season, params, sources, rows, grain, grain_note, predictors, margin_sd, probability_mapping,\nprobability_note, publishes_cover_probability, cover_probability_note,\nmarket_line_convention, market_note, eligibility, validated_by,\nvalidation_holdout, market_is_better, state_complete,\nstate_incomplete_games, margin_law, totals, qb}``.\n\n``qb`` is the C7c QB layer's status, inputs and predicates — the upcoming\nroute's ``qb`` block without its per-game entries — or null when the\nartifact carries none.\n\nWhat a page or a cron fetches to answer \"is this fresh, and which week is it\nabout\" without paying for the game rows.\n\n``as_of`` is the date the upcoming week was selected as of, and it is the\nfield that says how stale this is — **not** ``built_at``, which moves on every\nrebuild whether or not the week did. ``market_observed_at`` is a third,\ndifferent clock: when the schedule feed carrying the **lines** was last\npublished upstream. An upcoming game's price moves, so it is the only part of\nthis artifact that is not reproducible from the code and the schedule. The artifact is a snapshot of a moving\nfeed rather than a reproducible record, which is the opposite of\n``/nfl/ratings``' artifact.\n\n404 if no artifact is readable.","operationId":"public_nfl_upcoming_meta_api_public_nfl_upcoming_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Upcoming Meta Api Public Nfl Upcoming Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/upcoming":{"get":{"tags":["public"],"summary":"Public Nfl Upcoming","description":"The upcoming week's games, each with a predicted margin and a win probability.\n\nReturns ``{sport, season, week, game_types, week_start, week_end,\nstate_through_week, state_through_date, cutoff, board_gated, week_games,\ngames_completed, games_unplayed, built_at, as_of, is_stale, stale_note,\nmarket_observed_at, games, grain, grain_note,\npredictors, margin_sd, probability_mapping, probability_note,\npublishes_cover_probability, cover_probability_note, market_line_convention,\nmarket_note, eligibility, validated_by, validation_holdout,\nmarket_is_better, state_complete, state_incomplete_games, margin_law,\ntotals, qb}``.\n\nEach ``games`` card carries ``{game_id, game_date, game_type, neutral_site,\ncompleted, home, away, market, model, qb}``, ordered by kickoff **date** then\n``game_id`` — stable and deterministic, but **not** a slate timeline: the\nartifact carries no kickoff time, so games sharing a date fall in ``game_id``\norder, which is alphabetical by away team.\n\nEach ``home``/``away`` side carries ``{team_key, team_code, team, conference,\ndivision, points}``. **Join on ``team_key``, display ``team_code``** — the\nkey is franchise-folded so a relocated team keeps its rating, and the code is\nera-correct. ``points`` is null unless that game has already been played;\n``0`` is a real score.\n\nEach ``market`` block carries ``{home_line, favorite, market_margin,\nhome_moneyline, away_moneyline}``. ``home_line`` is **BOOK convention —\nNEGATIVE means the home team is favored**, the opposite sign to nflverse's own\n``spread_line``; read ``favorite``, never the sign. On a future week the line\nis a **lookahead price, not a closing line**, coverage is partial and both\nmoneylines are frequently null.\n\nEach ``model.elo``/``model.srs`` entry carries ``{predicted_margin,\nmodel_line, home_rating, away_rating, edge, lean, win_prob, margin_sd,\nmargin_dist}``.\n``predicted_margin`` and ``edge`` are in **margin** space (positive = home\nfavored) and ``model_line`` is in book space. ``win_prob`` is P(home wins) =\nPhi(margin / margin_sd), and the two SDs differ by predictor (Elo 13.70, SRS\n13.74) and are not interchangeable. **``model.srs`` is null for every week-1\ngame** — entering week 1 there is no previous slot — which is the model\ndeclining, not a gap. ``model.hfa`` is null on a neutral site, where both\npredictors zero the home edge out.\n\nEach ``model.total`` block carries ``{expected_total, expected_home_points,\nexpected_away_points, weather}`` — GS1 v2: the SRS-side points model's expected total\nENTERING the week and the home/away points it implies, (total +/- the SRS\nentry's ``predicted_margin``)/2. It is solved at READ time\n(``src/nfl/live_totals.py``) and is null on every card whenever\n``totals.status`` is not ``ok`` (``no_state`` entering week 1,\n``history_behind`` when the ratings history has not reached this cell's\nstate, ``history_mismatch``, ``no_prior``) and on a card SRS declined. It is\ndescriptive and loses to the market total; ``totals.note`` carries the\nfigures. ``margin_dist`` does NOT depend on it — a total-conditioned shape was\nmeasured and did not help (``docs/GAME-SIM-VALIDATION.md``, GS1 v2).\n\nEach ``model.total.weather`` block carries ``{term, adjusted_total, reason,\nstate, roof, fetched_at, lead_days, wind_mph_forecast, wind_mph_calibrated,\ntemp_f, wet}`` — the FROZEN weather term (``src/nfl/weather_total.py``,\n``docs/NFL-WEATHER-TERM.md``) BESIDE ``expected_total``, which weather never\nchanges: ``adjusted_total = expected_total + term``. It reads the game's own\n``game-weather`` record, the one the game page shows, with the forecast wind\ncalibrated for forecast error. ``term`` is null, with a ``reason``, for a\nretractable roof, a forecast more than 2 days before kickoff\n(``forecast_too_early``), a game already played, and a game with no record;\nnever 0. A dome gets its indoor term with no forecast. ``totals.weather``\ncarries the status (``unavailable`` when the weather artifact cannot be read\n— every term null), the frozen constants and the note.\n\nEach ``margin_dist`` block carries ``{law, lo, p, p_below, p_above, p_tie,\nmode, median, buckets}`` — the game simulation: a full distribution over the\nfinal HOME margin from the key-number law (``src/ratings/margin_law.py``).\n``p[i]`` is P(home margin = ``lo`` + i) for margins -40..+40; the mass beyond\nis ``p_below``/``p_above``; ``p_tie`` is the tie's share. It is pinned to its\nown entry's numbers — its mean is ``predicted_margin`` and its win share\n(a tie counting half) is ``win_prob``, before rounding — so it never\ncontradicts them; it adds only the SHAPE, where NFL margins pile up at 3\n(14.8% of games) and 7. ``buckets`` sums the mass by winner and margin\n(``home_1_3`` ... ``away_15_plus``, plus ``tie``). ``mode`` and ``median`` are\nhome margins. Probabilities are rounded to 4 dp. ``margin_dist`` is null\nexactly when its entry's ``predicted_margin`` is. ``margin_law`` names the law\nand the seasons each predictor's law was fitted on.\n\n**No cover probability is published as a field — but one CAN be read off\n``margin_dist``, and it is worth nothing.** Against the market line it scored\nworse than calling every game 50/50 on 2018-2025, in every sport and\npredictor (``docs/GAME-SIM-VALIDATION.md``, G3); ``cover_probability_note``\nsays so on every response. The distribution is this rating's view of the\noutcome, not an edge.\n\n``board_gated`` is true **PAST** the gate — weeks 4+ — and false for weeks\n1-3, where the rating is mostly the carried prior. The name reads backwards,\nso a consumer writing ``{board_gated && <Provisional/>}`` gets the caveat\nexactly inverted.\n\n``week`` is the week being FORECAST; ``state_through_week`` is the week the\nrating state runs through, and the two are deliberately different fields. All\nthree state fields are null in week 1, where the state is the post-carryover\nseason open rather than a played week.\n\n**``is_stale`` is true once the served week's last game has been played** and\nthe artifact has not been rebuilt since — at which point every card claiming\n``completed: false`` is claiming it about a finished game. Nothing in this\nrepo rebuilds this artifact on a schedule and the ETL freshness alarm watches\nonly ``/nfl/ratings/meta``, so this flag is the only signal; a consumer must\nnot render a stale cell as a preview. It is computed at read time from\n``week_end``, so it becomes true on its own.\n\n**``state_complete`` is false** when any scheduled game before the priced slot\n— in an earlier week of this season **or in an earlier season** — still had no\nresult when the state was built. Either shifts the published numbers while\nleaving every other field identical to a sound build: an earlier season moves\na week boundary in the schedule-derived ladder, an earlier week leaves the\nstate a week behind. The builder refuses to produce that unless explicitly\noverridden for a cancelled game, and ``state_incomplete_games`` names them.\n\n**``qb`` is the C7c quarterback layer — EXPERIMENTAL, and \"not worse than\nElo; not shown better\"** (``docs/NFL-QB-PREGAME-VALIDATION.md``: +0.0389\n[-0.0190, +0.0984] MAE vs raw Elo on 2018-2025). It is OPTIONAL: null on the\nresponse and on every card when the artifact predates it. Elo stays the\npublished rating; this is a forecast-time layer beside it, never blended in.\nEach ``qb`` block (one per response) carries ``{status, reason, built_at, inputs, label, verdict,\nvalidated_by, form, constants, win_prob_sd, chart_max_age_hours, views,\nnote}``; ``status`` is ``unavailable`` (with ``reason``) when an input could\nnot be read, and then every card's ``qb`` is null.\n\nEach ``games[].qb`` entry carries ``{status, reasons, computed_at, carried,\nkickoff, elo_margin, home, away, unscored, game_ready, qb1}``. **It is never\ncomputed after kickoff**: a game that had kicked off when the build ran keeps\nthe block of the last build before its kickoff (``carried: true``,\n``computed_at`` that build's time) or is ``unavailable`` with\n``kicked_off_before_build``. Other ``reasons``: ``<side>:depth_chart_missing``,\n``<side>:depth_chart_stale`` (newest snapshot older than\n``chart_max_age_hours``), ``<side>:no_starter_candidate``, ``elo_unrated``.\n``elo_margin`` is the entering Elo margin the layer adjusts — ``model.elo``'s\n``predicted_margin`` on the same card.\n\nEach ``qb`` side carries ``{team, prev_qb, q1, q2, chart_dt, a, b, a_status,\np_a, status_of, game_statuses_published, report_rows, names, unscored, mix}``.\n``a`` is the previous starter (week 1: the chart's QB1), ``b`` the alternate,\n``p_a`` P(``a`` starts) from his report status, ``mix`` the starter mix\n``[{gsis_id, name, p, level}]``. **``game_statuses_published`` false means no\nrow of the team's report carried a game-status designation when the block was\nbuilt** — EITHER its game-status report was not out (its statuses are then\npractice readings, not the FINAL Friday report the gate scored) OR it was out\nand designated nobody; one team's rows cannot tell the two apart. The block's\n``inputs.week_designated_rows`` is the league-wide count: 0 means no team's\nreport had been read.\n``unscored`` names branches the gate never scored: ``cold_team`` (flagged,\nstill served) and ``out_or_doubtful_starter_without_alternate`` — that side\nwould publish an Out/Doubtful quarterback as the certain starter, so\n``game_ready`` is WITHHELD (null) and only ``qb1`` serves.\n\nEach ``game_ready``/``qb1`` view carries ``{margin, win_prob, gap, dev,\nlevel_home, level_away}`` — ``game_ready`` is the gated arm (the injury-moved\nstarter mix), ``qb1`` the depth chart's QB1 as if healthy, a reference that\nwas never scored. ``margin`` is home-perspective points; ``win_prob`` is\nPhi(margin / ``win_prob_sd``), Elo's SD, which is how the gate scored it.\n\nOne week, by design. The entering-week forecast for a week that HAS been\nplayed, graded against the result, is ``/nfl/gameweek``.\n\n404 if no artifact is readable.","operationId":"public_nfl_upcoming_api_public_nfl_upcoming_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Upcoming Api Public Nfl Upcoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/epa-views/meta":{"get":{"tags":["public"],"summary":"Public Nfl Epa Views Meta","description":"Seasons, their status and the methodology, without the curves.\n\nReturns ``{sport, built_at, grain, grid, top_frac, top_index, units, curve,\nbootstrap, reliability, play_universe, seasons, latest, season_status,\nteam_is_a_franchise_key_not_a_label}``.\n\n``season_status`` maps each season to ``{complete, games, scheduled_games,\nmissing_games, through_week, partial_games}``. ``through_week`` is the last\nweek whose games are ALL final, never the highest week with a play;\n``partial_games`` counts the live season's games past it. The live season is\n``complete: false`` and refreshed by the weekly cron's overlay — render\nboth, e.g. \"through week 4, plus 1 game of week 5\".\n\n``reliability`` is the null every statistic is held to: odd-week vs\neven-week split-half ``r`` per unit over the complete seasons. Measured, the\ntop-5% contribution (``from_top``) is far less stable than the other 95%\n(``from_rest``) — a page must not present one season's ``from_top`` as a\ntrait of the team.\n\n503 + ``no-store`` when the artifact cannot be served.","operationId":"public_nfl_epa_views_meta_api_public_nfl_epa_views_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Epa Views Meta Api Public Nfl Epa Views Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/epa-views/{season}":{"get":{"tags":["public"],"summary":"Public Nfl Epa Views","description":"One season's explosiveness curves: the league's, its chance band, and every unit's.\n\nReturns ``{sport, built_at, grain, grid, top_frac, top_index, units, curve,\nbootstrap, reliability, season, seasons, status, league, teams}``.\n\nEach curve is on ``grid``: sort a unit's plays best-first and plot the\ncumulative EPA of the top ``p`` share divided by the unit's TOTAL play count,\nso ``curve[-1]`` is EPA/play and ``curve[top_index]`` is ``from_top``. **The\n``def`` unit is EPA ALLOWED — higher is worse for the defense** (the opposite\nof C1's ``def_epa``); ``units`` carries the orientation.\n\n``league`` carries ``{n_plays, games, epa_per_play, from_top, from_rest,\npos_share, curve, band_lo, band_hi, band_games}`` — the band is pointwise:\nwhere a league-average unit's curve falls by chance over ``band_games``\nteam-games. Each ``teams`` entry carries ``{team_key, team_code, off, def}``\nand each unit ``{n_plays, games, epa_per_play, from_top, from_rest,\npos_share, from_top_lo, from_top_hi, curve}``, the interval a cluster\nbootstrap over the unit's own games. ``team_key`` is the franchise (join),\n``team_code`` that season's own code (label).\n\n404 for a season the artifact does not carry; 503 + ``no-store`` when the\nartifact cannot be served.","operationId":"public_nfl_epa_views_api_public_nfl_epa_views__season__get","parameters":[{"name":"season","in":"path","required":true,"schema":{"type":"integer","title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Epa Views Api Public Nfl Epa Views  Season  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/epa-flow/meta":{"get":{"tags":["public"],"summary":"Public Nfl Epa Flow Meta","description":"Seasons, their status and the methodology, without the games.\n\nReturns ``{sport, orientation, x_axis, precision, top_rule, play_universe,\nsource, seasons, latest, season_status, built_at}``.\n\n``season_status`` maps each season to ``{complete, scheduled_games,\nfinal_games, games, missing_games, withheld_games, pending_games,\nout_of_order_plays}``: ``games`` are the finals published, ``missing_games``\nthe finals with no plays and ``withheld_games`` those whose feed is\nincomplete (a regulation quarter with no plays) or contradicts its own final\nscore (their ids — each one 404s), ``out_of_order_plays`` the\nplays the feed filed in the wrong period and the build moved. ``built_at`` is per season:\nthe live season is refreshed by the weekly cron's overlay.\n\n503 + ``no-store`` when the artifact cannot be served.","operationId":"public_nfl_epa_flow_meta_api_public_nfl_epa_flow_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Epa Flow Meta Api Public Nfl Epa Flow Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/epa-flow/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Epa Flow","description":"One final game's plays, in order, as two teams' running EPA.\n\nReturns ``{sport, orientation, x_axis, precision, top_rule, play_universe,\nsource, built_at, season, status, game_id, week, season_type, game_type,\nhome, away, plays, periods, totals, top_plays}``.\n\n``plays`` is ``{home, epa}``, one entry per play in game order: ``home[i]`` is\n1 when the HOME team had the ball, ``epa[i]`` the OFFENSE's EPA on the play.\nA side's running total is the sum of its own plays — draw it on the PLAY\nINDEX (``periods`` = ``[[period, first index], ...]``), never the clock.\n``totals`` carries ``{home, away}``, each ``{plays, epa}`` summed from\nUNROUNDED EPA, so a drawn line can end a few thousandths from its label.\n``top_plays`` lists the three largest plays by |EPA|, each ``{i, qtr, clock,\nepa, desc}`` (``i`` indexes ``plays``). ``home``/``away`` are that season's own\nteam codes. Descriptive only — not a win probability.\n\n404 for a game the artifact does not carry (not final, not an nflverse id, a\nfinal with no plays, or one withheld because its feed is incomplete or\ncontradicts its score); 503 + ``no-store`` when the artifact cannot be served.","operationId":"public_nfl_epa_flow_api_public_nfl_epa_flow__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Epa Flow Api Public Nfl Epa Flow  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/game-detail/meta":{"get":{"tags":["public"],"summary":"Public Nfl Game Detail Meta","description":"Seasons, their status and the definitions, without the games.\n\nReturns ``{sport, orientation, definitions, leaders_per_team, top_rule, source,\nseasons, latest, season_status, built_at}``.\n\n``season_status`` maps each season to ``{complete, scheduled_games,\nfinal_games, games, missing_games, withheld_games, drives_withheld,\nwp_withheld, pending_games}``: ``games`` are the finals published,\n``missing_games`` the finals with no plays, ``withheld_games`` those whose feed\nis broken in kind (each one 404s), ``drives_withheld`` / ``wp_withheld`` the\npublished games without drives / a win-probability line. ``built_at`` is per\nseason: the live season is refreshed by the weekly cron's overlay.\n\n503 + ``no-store`` when the artifact cannot be served.","operationId":"public_nfl_game_detail_meta_api_public_nfl_game_detail_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Game Detail Meta Api Public Nfl Game Detail Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/game-detail/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Game Detail","description":"One final game's box score, leaders, drives and win-probability line.\n\nReturns ``{sport, orientation, definitions, leaders_per_team, top_rule, source,\nbuilt_at, season, status, game_id, week, season_type, game_type, home, away,\nbox, leaders, drives, wp}``.\n\n``box`` is ``{home, away}``, each team's OFFENSE: nflverse's counting stats\n(plays, yards, attempts, sacks, turnovers, ``third_down``/``fourth_down`` as\n``[converted, attempts]``) and EPA / success rates over every scrimmage play\n(``epa_total`` equals the EPA flow chart's total), with ``drives``,\n``points_per_drive``, ``avg_start_yardline_100`` and ``time_of_possession``\n(seconds) null when drives are withheld. ``leaders`` holds ``passing`` /\n``rushing`` / ``receiving`` rows (``team`` = the game's code, ``player_id`` =\ngsis id), top ``leaders_per_team`` per team. ``drives`` is ``{status: \"ok\",\nrows}`` (each ``{n, team, qtr, clock, yardline_100, plays, yards, seconds,\nresult}``) or ``{status: \"withheld\", reason}``. ``wp`` is ``{status: \"ok\",\nhome_wp, periods, top_plays}`` — ``home_wp[i]`` the home team's modelled chance\nbefore play i, the LAST point the result; ``top_plays[].i`` moves the line from\npoint i to i+1 — or ``{status: \"withheld\", reason}``. ``home``/``away`` are that\nseason's own team codes.\n\n404 for a game the artifact does not carry; 503 + ``no-store`` when the\nartifact cannot be served.","operationId":"public_nfl_game_detail_api_public_nfl_game_detail__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Game Detail Api Public Nfl Game Detail  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/game-units/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Game Units","description":"One game's opponent-adjusted offense and defense, both teams.\n\nReturns ``{sport, game_id, season, week, ratings_week, league_epa_per_play,\nopponent_weight, home, away, reference_games, reference_seasons, definitions,\nnot_a_rating, built_at}``. ``home``/``away`` are ``{team, team_key, offense,\ndefense, net, net_percentile}``; each unit is ``{plays, epa_per_play, raw,\nopponent, adjustment, adjusted, opponent_rated, percentile}``. Every value is\npositive-good for the team, defense included: ``epa_per_play`` is per play\n(EPA gained for an offense, EPA PREVENTED for a defense); ``raw``,\n``opponent``, ``adjustment``, ``adjusted`` and ``net`` are points per 100 plays,\n``adjusted = raw + adjustment``.\n``opponent`` is null (and ``adjustment`` 0) when the opponent unit was not yet\nrated going into the week; ``ratings_week`` is null in week 1.\n\n404 for a game the inputs do not carry (including 1999 week 1, which has no\nleague terms to measure against); 503 + ``no-store`` when an input artifact\ncannot be read.","operationId":"public_nfl_game_units_api_public_nfl_game_units__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Game Units Api Public Nfl Game Units  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/game-units/{game_id}":{"get":{"tags":["public"],"summary":"Public Cfb Game Units","description":"One CFB game's opponent-adjusted offense and defense, both teams.\n\nReturns ``{sport, game_id, season, season_type, week, neutral,\nratings_season_type, ratings_week, league_epa_per_play, opponent_weight, home,\naway, reference_games, reference_seasons, definitions, not_a_rating,\nbuilt_at}``. ``home``/``away`` are ``{team_id, fbs, opponent_fcs_pool,\ngarbage_plays, repaired_plays, offense, defense, net, net_percentile}``;\neach unit is ``{plays, epa_per_play, raw, opponent, adjustment, adjusted,\nopponent_rated, percentile}``. Positive is good for the team, defense\nincluded; ``raw``/``opponent``/``adjustment``/``adjusted``/``net`` are points\nper 100 plays and ``adjusted = raw + adjustment``. ``opponent`` is null when\nthe opponent unit was not yet rated (always in week 1, ``ratings_week`` null).\n\n404 for a game the artifact does not carry (no FBS side, 2014 week 1, before\n2014, unknown id); 503 + ``no-store`` when the artifact cannot be read.","operationId":"public_cfb_game_units_api_public_cfb_game_units__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Game Units Api Public Cfb Game Units  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/unit-games":{"get":{"tags":["public"],"summary":"Public Nfl Unit Games","description":"Every NFL team-game's opponent-adjusted offense and defense in a season.\n\nReturns ``{sport, season, seasons, opponent_weight, rows, reference_games,\nreference_seasons, definitions, not_a_rating, built_at}``. Each row is\n``{game_id, season_type ('REG'|'POST'), week, team, team_key, opponent, home,\nneutral, off_plays, off, off_pct, off_opp_rated, def_plays, def, def_pct,\ndef_opp_rated, net, net_pct}``: ``team``/``opponent`` are the era-correct\ncodes, ``team_key`` the franchise key; ``off``/``def``/``net`` are points per\n100 plays, positive good, exactly the game page's ``adjusted``/``net``.\n``season`` defaults to the latest.","operationId":"public_nfl_unit_games_api_public_nfl_unit_games_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Unit Games Api Public Nfl Unit Games Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/unit-games":{"get":{"tags":["public"],"summary":"Public Cfb Unit Games","description":"Every FBS team-game's opponent-adjusted offense and defense in a season.\n\nReturns the NFL shape, with rows ``{game_id, season_type\n('regular'|'postseason'), week, team_id, team, conference, opponent_id,\nopponent, opponent_fbs, opponent_fcs_pool, home, neutral, off_plays, off,\noff_pct, off_opp_rated, def_plays, def, def_pct, def_opp_rated, net,\nnet_pct}``. Names and conferences are that season's\n(``cfb_conference_history``); join on the ids. FBS sides only.","operationId":"public_cfb_unit_games_api_public_cfb_unit_games_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2014},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Unit Games Api Public Cfb Unit Games Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/unit-seasons":{"get":{"tags":["public"],"summary":"Public Nfl Unit Seasons","description":"Every NFL team-season's regular-season opponent-adjusted line.\n\nReturns ``{sport, seasons, scope, rows, definitions, not_a_rating,\nbuilt_at}``. Each row is ``{season, team, team_key, games, off_plays, off,\ndef_plays, def, net}``: the play-weighted mean of the season's game values\nper unit (points per 100 plays, positive good), net = off + def.","operationId":"public_nfl_unit_seasons_api_public_nfl_unit_seasons_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Unit Seasons Api Public Nfl Unit Seasons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/unit-seasons":{"get":{"tags":["public"],"summary":"Public Cfb Unit Seasons","description":"Every FBS team-season's regular-season opponent-adjusted line.\n\nReturns the NFL shape, with rows ``{season, team_id, team, conference,\ngames, off_plays, off, def_plays, def, net}``; name and conference are that\nseason's.","operationId":"public_cfb_unit_seasons_api_public_cfb_unit_seasons_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Unit Seasons Api Public Cfb Unit Seasons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/units/entering/{season}/{season_type}/{week}":{"get":{"tags":["public"],"summary":"Public Cfb Entering Units","description":"Every FBS team's opponent-adjusted offense and defense entering a CFB week.\n\nReturns ``{sport, season, season_type, week, status, ratings_season_type,\nratings_week, ranked, teams, definitions, not_a_forecast, built_at}``.\n``teams`` is a list of ``{team_id, games, offense, defense, net}``; ``offense``\nand ``defense`` are ``{rating, rank, reliability}`` and ``net`` is ``{rating,\nrank}``. Ratings are points per 100 plays, positive good (defense is EPA\nprevented), ``null`` when the unit could not be measured; ranks are among\nthe FBS teams rated that week (``ranked``), 1 best. ``status`` is ``rated``,\nor ``no_prior_week`` with ``teams`` empty when nothing was played before the\nweek (every regular-season week 1). Any postseason week reads the fit through the regular\nseason. FCS teams are never listed.\n\n404 for a season the artifact does not carry or a bad season type / week;\n503 + ``no-store`` when the ratings cannot be read.","operationId":"public_cfb_entering_units_api_public_cfb_units_entering__season___season_type___week__get","parameters":[{"name":"season","in":"path","required":true,"schema":{"type":"string","title":"Season"}},{"name":"season_type","in":"path","required":true,"schema":{"type":"string","title":"Season Type"}},{"name":"week","in":"path","required":true,"schema":{"type":"string","title":"Week"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Entering Units Api Public Cfb Units Entering  Season   Season Type   Week  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/matchup-card/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Matchup Card","description":"How this game's two units have played to date: offence against defence.\n\nReturns ``{sport, schema_version, game_id, season, week, season_type, game_type,\nthrough_week, grain, missing_games, home, away, neutral, kickoff_utc, panels,\nstyle, rules, definitions, validation, not_a_forecast, built_at}``. ``panels`` is\nexactly two (away offence first), each ``{offense, defense, sections}``; every\nrow carries the RAW to-date ``offense`` / ``defense`` ``{value, rank, rank_tied,\nden, reliability, early, emphasis}``, the pooled ``league_avg``, and ``edge``\n``{z, z_clipped, expected, lo, hi, from_offense, from_defense, hfa}`` or ``null``\nwith ``edge_reason`` (``not_validated`` | ``before_validated_week``). A week-``W``\ngame reads regular-season games through ``W−1``; a postseason game reads the\nregular season. Not a forecast.\n\n404 for a game with no card: unknown, final, already kicked off (server UTC),\nregular-season week 1, or week ``W−1`` not absorbed yet. 503 + ``no-store`` when\nthe committed record cannot be read.","operationId":"public_nfl_matchup_card_api_public_nfl_matchup_card__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Matchup Card Api Public Nfl Matchup Card  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/since-1950/franchise/{team}":{"get":{"tags":["public"],"summary":"Public Nfl Ratings Since 1950 Franchise","description":"One club's season-end Elo and SRS for every completed season since 1950.\n\nReturns ``{sport, team_key, team, first_season, last_season, seasons, meta}``.\n``team`` is the FOLDED franchise code (``LV``, ``LA``, ``TEN``); the top-level\n``team`` is the current name. Each ``seasons`` entry carries ``{season, team, league, source, elo, srs, reg_wins, reg_losses, reg_ties, post_wins, post_losses, title, league_teams, elo_rank, srs_rank, elo_z, srs_z}``.\n\n``team`` there is the era name (``Houston Oilers``); ``source`` is\n``long_walk`` (1950-1998) or ``board`` (1999 on). The ratings are at the\nseason's last week, playoffs included. ``reg_*`` is the regular season,\n``post_*`` the postseason; ``title`` is ``super_bowl``, ``league`` (an NFL or\nAFL champion before the merger who did not win a Super Bowl) or null. Ranks\n(competition) and z-scores are within that season's ``league``, which has\n``league_teams`` clubs.\n\nThe ``meta`` block carries ``{seasons, join_season, separate_leagues_through, constants, built_at, sources, credit, join_note, league_note, z_definition}``.\n\n**Mark the 1998/99 join** (``join_note``): the board started every club at 1500\nin 1999. **Through 1969 an AFL season is on the AFL's scale**, never the NFL's\n(``league_note``). Seasons are never padded: the Browns' 1996-98 suspension is\na gap. Show ``credit`` wherever 1950-1998 is shown.","operationId":"public_nfl_ratings_since_1950_franchise_api_public_nfl_ratings_since_1950_franchise__team__get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Ratings Since 1950 Franchise Api Public Nfl Ratings Since 1950 Franchise  Team  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/ratings/since-1950/best-teams":{"get":{"tags":["public"],"summary":"Public Nfl Ratings Since 1950 Best Teams","description":"Team-seasons since 1950, by z-score within their own season and league.\n\nReturns ``{sport, sort, league, decade, limit, total, claim, teams, meta}``.\nEach ``teams`` entry carries ``{rank, team_key, season, team, league, source, elo, srs, reg_wins, reg_losses, reg_ties, post_wins, post_losses, title, league_teams, elo_rank, srs_rank, elo_z, srs_z}`` — a franchise-history\nseason plus its ``rank`` (competition, within the filtered list; ties by season,\nthen club). ``total`` counts the filtered team-seasons before ``limit``. ``meta``\nis the franchise route's.\n\n**Quote ``claim``**: the list ranks dominance over a team's own league, never\nhow teams of different eras would play each other. 404 for a filter that\nmatches nothing; 503 + ``no-store`` when the record cannot be read.","operationId":"public_nfl_ratings_since_1950_best_teams_api_public_nfl_ratings_since_1950_best_teams_get","parameters":[{"name":"sort","in":"query","required":false,"schema":{"enum":["elo","srs"],"type":"string","description":"Rank by Elo or SRS z","default":"elo","title":"Sort"},"description":"Rank by Elo or SRS z"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"league","in":"query","required":false,"schema":{"anyOf":[{"enum":["NFL","AFL"],"type":"string"},{"type":"null"}],"title":"League"}},{"name":"decade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","multipleOf":10,"maximum":2020,"minimum":1950},{"type":"null"}],"title":"Decade"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Ratings Since 1950 Best Teams Api Public Nfl Ratings Since 1950 Best Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/pgwe/game/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Pgwe Game","description":"Post-game win expectancy for one finished regular-season game, both teams.\n\nReturns ``{sport, game_id, season, week, basis, tie, home, away,\nnet_scrimmage_epa, net_special_teams_epa, definition}``. ``home``/``away`` are\n``{team, team_key, score, pgwe}`` — ``pgwe`` in [0, 1], and the two sum to\n1. ``basis`` is ``cross-fit`` for 1999-2025 (scored by a fit that never saw the\nseason) and ``served`` for the live season (the frozen all-season fit).\n``tie`` true means neither side won; frame neither as the winner.\n\n404 for a game neither source carries (a playoff game, a withheld game, a live\ngame whose play-by-play has not reached its final score); 503 + ``no-store``\nwhen the committed record cannot be read.","operationId":"public_nfl_pgwe_game_api_public_nfl_pgwe_game__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Pgwe Game Api Public Nfl Pgwe Game  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/pgwe/season/{season}":{"get":{"tags":["public"],"summary":"Public Nfl Pgwe Season","description":"Every team's actual wins beside its PGWE wins for one regular season.\n\nReturns ``{sport, season, basis, games, pending_games, withheld_games, teams,\ndefinition, claim}``. Each of ``teams`` is ``{team, team_key, games, wins,\nlosses, ties, pgwe_wins, wins_minus_pgwe}`` over the DESCRIBED games only (a\nwithheld or pending game counts in neither column); ``wins_minus_pgwe`` counts a\ntie as half a win. ``claim`` is the only season-level statement the validation\nsupports — quote it, never \"better than points for and against\".\n\n404 for a season neither source carries; 503 + ``no-store`` when the committed\nrecord cannot be read.","operationId":"public_nfl_pgwe_season_api_public_nfl_pgwe_season__season__get","parameters":[{"name":"season","in":"path","required":true,"schema":{"type":"integer","title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Pgwe Season Api Public Nfl Pgwe Season  Season  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/pgwe/week/{season}/{week}":{"get":{"tags":["public"],"summary":"Public Nfl Pgwe Week","description":"One regular-season week's PGWE for the scores page, in one read.\n\nReturns ``{sport, season, week, basis, games, pending_games, withheld_games,\nteams, definition, claim}``. Each of ``games`` is ``{game_id, tie, home,\naway}``, ``home``/``away`` as on the game route. ``teams`` is the season\nroute's table computed THROUGH this week (each ``{team, team_key, games, wins,\nlosses, ties, pgwe_wins, wins_minus_pgwe}``), so an archived week compares\nagainst its own standings. ``pending_games``/``withheld_games`` are this\nweek's only.\n\n404 for a week with no game either source knows of; 503 + ``no-store`` when\nthe committed record cannot be read.","operationId":"public_nfl_pgwe_week_api_public_nfl_pgwe_week__season___week__get","parameters":[{"name":"season","in":"path","required":true,"schema":{"type":"integer","title":"Season"}},{"name":"week","in":"path","required":true,"schema":{"type":"integer","title":"Week"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Pgwe Week Api Public Nfl Pgwe Week  Season   Week  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/teams":{"get":{"tags":["public"],"summary":"Public Nfl Teams","description":"Every club in a season with its regular-season record, grouped by division.\n\nReturns ``{sport, season, team_count, divisions, order_note}``. Each of\n``divisions`` is ``{division, conference, teams}``; each team is ``{team_key,\nteam_code, name, nickname, conference, division, color, color2, record}`` and\n``record`` is ``{games, wins, losses, ties, points_for, points_against,\npoint_diff, win_pct}`` (``win_pct`` null before a club's first final). Clubs\nare ordered as ``order_note`` says — not by the NFL's tiebreakers. ``season``\ndefaults to the latest with a final score.\n\n404 for a season the schedule does not carry, and before 2002 (the division\ntable is present-day; the 2002 realignment is where it starts being true); 503 + ``no-store`` when it\ncannot be read.","operationId":"public_nfl_teams_api_public_nfl_teams_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Teams Api Public Nfl Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/home-field":{"get":{"tags":["public"],"summary":"Public Nfl Home Field","description":"NFL home-field advantage by season since 1950 — a model-free description.\n\nReturns ``{sport, meta, seasons, decades, trend, notes}``. Each of ``seasons`` is\n``{season, league, games, home_margin, se, low, high, home_win_share,\nhome_win_se}``: the average home margin over the season's regular-season games\nat one team's home (neutral sites dropped), its 95% interval, and the home win\nshare (a tie counts half); 1960-69 has separate AFL and NFL rows. ``trend`` is a\nprecision-weighted line through 1970 to the last complete season, per decade,\nwith its interval. Not the ratings' home term; nothing here changes a model.\n503 + no-store when the committed artifact cannot be read.","operationId":"public_nfl_home_field_api_public_nfl_home_field_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Home Field Api Public Nfl Home Field Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/teams/{team}/story":{"get":{"tags":["public"],"summary":"Public Nfl Team Story","description":"One club's season as a story, for a season-in-cards page.\n\nReturns ``{sport, season, team, record, games, rating_series, playoff_odds,\npgwe, notes}``. ``team`` and ``record`` are the team page's. Each of ``games`` is\n``{game_id, week, game_type, gameday, site, opponent, opponent_name,\ndivision_game, points_for, points_against, result, overtime, pgwe, drama_index,\nwin_probability, win_probability_withheld}`` — finals only, postseason included,\n``pgwe`` null outside the regular season. ``win_probability`` is ``{low, high,\nfinal, plays, curve}``: the club's own chance of winning before each play\n(nflfastR's, the game page's curve), thinned for drawing; null when the\nplay-by-play is not in yet or withheld (``win_probability_withheld`` says why).\n``rating_series`` is our rating THROUGH each week (the ratings series points).\nEach of ``playoff_odds`` is ``{week, preseason, p_playoff, p_division_title,\nproj_wins_mean}``, one per published freeze week; empty for a season with no\ncells. ``pgwe`` is the season row or null. 503 + no-store when any source\ncannot be read; 404 for a club or season the schedule does not carry, or a club\nwith no final.\n\nCached in-process until NFL data changes, the server date turns, or the\nplayoff-odds board turns stale (``src/nfl/serve_cache.py``).","operationId":"public_nfl_team_story_api_public_nfl_teams__team__story_get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Team Story Api Public Nfl Teams  Team  Story Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/teams/{team}":{"get":{"tags":["public"],"summary":"Public Nfl Team","description":"One club's season: record, schedule, stats and every model's view of it.\n\nReturns ``{sport, season, team, coach, last_qb, record, division, games,\ntraditional, advanced, ratings, playoff_odds, pgwe, qb, upcoming, profile,\nrecap, leaders, defense_note}``.\n\n``team`` is the identity row of ``/nfl/teams``; ``coach``/``last_qb`` are from\nthe club's latest final. ``games`` is the whole schedule (postseason included)\n— each ``{game_id, week, game_type, gameday, gametime, site, opponent,\nopponent_name, division_game, points_for, points_against, result, overtime,\nline, total_line, pgwe, box}``, ``line`` in BOOK convention from THIS club's\nside (negative = favored), ``pgwe`` this club's post-game win expectancy\n(regular season only), ``box`` ``{team, opponent}`` yards / yards per play /\nturnovers / EPA per play, or null before the box score is built.\n\n``traditional`` and ``advanced.box`` are ``{games, rated, built_at, metrics,\noffense, defense, league}`` over the regular season's box scores: each metric\n``{value, rank}`` ranked across the ``rated`` clubs (1 = best); DEFENSE is\nopponents' offense in this club's games (``defense_note``), so a lower\ndefensive yards-per-play ranks better. ``traditional`` also carries\n``turnover_margin``. ``advanced.adjusted`` is the team-efficiency board's row\n(opponent-adjusted EPA per play; a column whose ``display`` is ``tier`` must\nnot be shown as a rank). ``record`` is the regular season; ``ratings``\n(Elo/SRS THROUGH ``week``, with ``series``) counts every final through that\nweek, postseason included, so its W/L can differ. ``playoff_odds`` (the latest freeze week), ``pgwe`` (quote only\nits ``claim``), ``qb`` (WALSH-QB; 0 is not average — see ``latent_note``) are\neach null when not published for the season. ``upcoming`` lists the club's\nunplayed games on the upcoming slate (ENTERING forecasts from this club's\nside), or null off-season. ``profile`` is the team-profile strip THROUGH\n``through_week`` (the last COMPLETE regular-season week; ``entering_week`` when\nthe season is live): gate-S offense strengths/weaknesses, three defense facts\n(a ``verdict`` only on run stops), the early-down pass-rate ``style``, and the\n``rules`` that govern them. Null before 2016 (no validated label rule), before\na live season's first complete week, or for the live season until the\n``NFL_TEAM_PROFILE_PATH`` overlay has been built (the record ends 2025).\n``recap`` is the newest grounded season summary ``{headline, recap,\nthrough_week, season_complete}`` (``through_week`` = the week of the club's\nlatest final), generated by the weekly ETL from this payload's own facts; null\nuntil one has been generated for the season.\n\n``leaders`` is ``{season, season_type, categories, note}``: the club's top\nplayers in passing / rushing / receiving yards, tackles, sacks and\ninterceptions, regular season only, each ranked across the WHOLE league exactly\nas ``/nfl/stats`` ranks them (ties share a rank) — each category ``{key, label,\ngroup, format, qualifier, qualified, columns, leaders}`` (``qualified`` = players\nthe league ranks; a category the league ranks nobody in is left out, a club\nwith no ranked player in it has an empty ``leaders``), each leader ``{rank,\nplayer_id, name, team, position, games, value, stats}``. A traded player is\nunder their most recent club with full-season totals. Null for a season the\nplayer feed does not carry.\n\n404 for a club or season the schedule does not carry, and before 2002 (as\n``/nfl/teams``); 503 + ``no-store`` when any source cannot be read. Cached\nin-process until NFL data changes, the server date turns, or the playoff-odds\nboard turns stale (``src/nfl/serve_cache.py``).","operationId":"public_nfl_team_api_public_nfl_teams__team__get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Team Api Public Nfl Teams  Team  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/teams":{"get":{"tags":["public"],"summary":"Public Cfb Teams","description":"Every FBS program in a season with its record, grouped by conference.\n\nReturns ``{sport, season, team_count, conferences, order_note}``. Each of\n``conferences`` is ``{conference, independent, teams}``; each team is\n``{team_id, team, slug, mascot, abbreviation, conference, division, color,\nalt_color, record}`` and ``record`` is ``{games, wins, losses, ties,\npoints_for, points_against, point_diff, win_pct, conf_wins, conf_losses,\nconf_ties, espn_finals}`` (``win_pct`` null before a program's first final;\n``espn_finals`` counts finals that are ESPN's score, not yet our schedule's).\nConference is AS OF the season; ``mascot``/``abbreviation``/colors are one\npresent-day snapshot. Before 2023 records are the regular season only (the\nschedule source has no postseason rows). Programs are ordered as ``order_note`` says — not by the\nconference's tiebreakers. ``season`` defaults to the latest with a final score.\n\n404 for a season the schedule does not carry, and before 2002; 503 +\n``no-store`` when it cannot be read.","operationId":"public_cfb_teams_api_public_cfb_teams_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Teams Api Public Cfb Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/teams/{team}":{"get":{"tags":["public"],"summary":"Public Cfb Team","description":"One FBS program's season: record, conference table, results and ratings.\n\nReturns ``{sport, season, team, record, conference, games, postseason, ratings,\ntraditional, advanced, stats_note, defense_note, leaders,\npostseason_covered, postseason_note, espn_final_note}``.\n\n``team`` (the path) is the ESPN ``team_id`` or the season's ``slug``; the\npayload's ``team`` is the identity row of ``/cfb/teams`` and ``record`` its\nrecord — bowls and playoff games included only where the source carries them:\n``postseason_covered`` is false before 2023 (the schedule has no postseason\nrows), and ``postseason_note`` then says the record is the regular season only\n(null otherwise). A conference record counts regular-season conference games\nbetween two members, the title game included.\n\n``conference`` is ``{name, independent, order_note, teams}`` — ``teams`` is\nthat conference's FBS programs that season (rows as ``/cfb/teams`` plus\n``position``), null for an independent. ``games`` is the schedule the source\ncarries — each ``{game_id, week, season_type, game_date,\nstart_date_utc, start_time_tbd, site, opponent_id, opponent,\nopponent_conference, opponent_division, conference_game, points_for,\npoints_against, result, espn_final, venue, notes, postseason}``; ``week`` is the\nTue-Mon calendar week (the source files the whole postseason as week 1), and\n``espn_final`` marks a final that is ESPN's score, not yet our schedule's\n(``espn_final_note``). There is no line or cover field.\n\nA game's ``postseason`` is null in the regular season, else ``{kind, name,\nround, round_label, round_order, host_bowl}`` read from ``notes``: ``kind`` is\n``bowl``, ``cfp`` (a College Football Playoff game; ``round`` one of\n``first_round``, ``quarterfinal``, ``semifinal``, ``championship``, in\n``round_order`` 0-3, ``host_bowl`` the bowl that hosts it or null) or ``other``\n(a note that names neither — never guessed; ``name`` null when the note is).\nThe page's ``postseason`` summarises the postseason FINALS: ``{games, wins,\nlosses, ties, playoff, bowls}`` — ``playoff`` null without a Playoff final, else\n``{games, wins, losses, ties, furthest, furthest_label, champion}``\n(``champion`` only for a WIN in the national championship), ``bowls`` the\n``game_id`` of each non-Playoff bowl final. Null without a postseason final.\n\n``ratings`` is the ratings board's row for this program THROUGH ``week`` (the\nlatest week holding a stored final): ``{season, week, grain, through_date,\nprovisional, rated_teams, ap_poll, row, series}``, ``provisional`` true when\nthe week is prior-dominated, ``row`` the board's SRS / Elo / SOS with FBS\nranks and ``ap_rank`` (the AP poll released after the week — never our rank),\n``series`` one point per week the rating-paths artifact lists (its own\n``week``, which can lag the row), or null. ``ratings`` is null before a\nseason's first final or when the board does not rate the program.\n\n``traditional`` and ``advanced`` are ``{games, rated, built_at, metrics,\noffense, defense, league}`` summed over the box scores on the program's stored\ngame pages (postseason included; ``stats_note``): each metric ``{value, rank}``\nranked across the ``rated`` FBS programs (1 = best), DEFENSE the opponent's\nbox in the same game (``defense_note``), so a lower defensive yards-per-play\nranks better. ``games`` counts games with a usable box and can be below the\nrecord's. ``traditional`` also carries ``turnover_margin``. Both are null for\na season the game store's manifest does not list (by default the builder\nwrites the live season and the one before) or a program with no stored box.\n\n``leaders`` is ``{season, categories, coverage, note}``: the program's top\npassers, rushers and receivers by yards, regular season and postseason, each\nranked across EVERY FBS player exactly as ``/cfb/stats`` ranks them (ties share\na rank) — each category ``{key, label, group, format, qualifier, qualified,\ncolumns, leaders}``, each leader ``{rank, player_id, name, team, position,\ngames, value, stats}``; ``coverage`` is the board's ``{games, scheduled}``\n(completed FBS games the play-by-play has, of those played). A player who\nappeared for two programs is under the one with more games. Null before 2014\n(no play-by-play).\n\n404 for a program that was not FBS that season (or a slug two programs\nshare), a season the schedule does not carry, and before 2002; 503 +\n``no-store`` when any source cannot be read.","operationId":"public_cfb_team_api_public_cfb_teams__team__get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Team Api Public Cfb Teams  Team  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/stat-leaders":{"get":{"tags":["public"],"summary":"Public Nfl Stat Leaders","description":"NFL regular-season stat leaders, every category at once.\n\nReturns ``{sport, season, season_type, seasons, max_team_games, groups,\ncategories, notes}``. Each category is ``{key, label, group, format,\nlower_is_better, qualifier, qualified, columns, leaders}``; each leader is\n``{rank, player_id, name, team, position, games, value, stats}`` with\n``stats`` keyed by ``columns``. Ties share a rank; a rate category ranks only\nplayers meeting ``qualifier``. ``season`` defaults to the latest.","operationId":"public_nfl_stat_leaders_api_public_nfl_stat_leaders_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Stat Leaders Api Public Nfl Stat Leaders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/stat-leaders":{"get":{"tags":["public"],"summary":"Public Cfb Stat Leaders","description":"CFB stat leaders (FBS players, offense, postseason included).\n\nReturns ``{sport, season, seasons, max_team_games, coverage, groups,\ncategories, notes}`` — the NFL board's shape, plus ``coverage`` ``{games,\nscheduled}``: the season's completed FBS games the play-by-play carries,\nagainst those scheduled. ``position`` is always null (the feed has none).","operationId":"public_cfb_stat_leaders_api_public_cfb_stat_leaders_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2014},{"type":"null"}],"title":"Season"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Stat Leaders Api Public Cfb Stat Leaders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/teams/{team}/story":{"get":{"tags":["public"],"summary":"Public Cfb Team Story","description":"One FBS program's season as a story (default: the latest season).\n\nReturns ``{sport, season, team, record, games, postseason, rating_series, pgwe,\nlabels, notes}``. Each of ``games`` (finished games only, in date order) is ``{game_id,\nweek, season_type, game_date, site, opponent_id, opponent,\nopponent_division, points_for, points_against, result, espn_final, postseason,\nap_rank, cfp_rank, opponent_ap_rank, drama_index, win_probability,\nwin_probability_withheld}``; ``win_probability`` is ``{low, high, final, plays,\ncurve}`` from the TEAM's side, or null. A game's ``postseason`` and the story's\n``postseason`` summary are the team page's (``/cfb/teams/{team}``).\n``rating_series`` is OUR rating by week (``{week, srs, srs_rank, elo,\nelo_rank}``); ``pgwe`` is the team's row or null.","operationId":"public_cfb_team_story_api_public_cfb_teams__team__story_get","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1999},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Team Story Api Public Cfb Teams  Team  Story Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/drama":{"get":{"tags":["public"],"summary":"Public Cfb Drama","description":"The most dramatic games of one CFB season (default: the latest).\n\nReturns ``{sport, season, seasons, games, games_ranked, games_withheld,\ngames_without_plays, through_date, median_drama_index, rows, definition,\nscope, length_note}``. Each of ``rows`` is ``{rank, game_id, week, game_date,\nhome, away, drama_index, plays}`` with ``home``/``away`` ``{team_id, team,\npoints}``. ``games`` counts every in-scope final; the withheld and no-plays\ncounts are the games the list could not rank.","operationId":"public_cfb_drama_api_public_cfb_drama_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2014},{"type":"null"}],"title":"Season"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Drama Api Public Cfb Drama Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/polls":{"get":{"tags":["public"],"summary":"Public Cfb Polls","description":"One CFB season's AP Top 25 and CFP committee rankings, week by week.\n\nReturns ``{sport, season, weeks, latest_ap_week, latest_cfp_week, labels,\nnotes}``. Each of ``weeks`` is ``{week, ap, cfp}``: the ranking ENTERING that\nregular-season week (``src.cfb.ap_poll``'s rule), or null when none applies.\nA ranking is ``{poll_date, headline, source_week, source_season_type, ranks}``\nwith ``ranks`` ``[{rank, team_id, team, fbs}]``. The polls only — never our\nrating, which the rank-paths feed serves.","operationId":"public_cfb_polls_api_public_cfb_polls_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2002},{"type":"null"}],"title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Polls Api Public Cfb Polls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/qb-ratings/meta":{"get":{"tags":["public"],"summary":"Public Cfb Qb Ratings Meta","description":"The seasons the CFB QB board carries, its scale and its notes.\n\nReturns ``{sport, built_at, model, observation, latest, scale,\npoints_per_epa, min_season_plays, cells, adj_note, scale_note,\ninterval_note, cast_note, epa_note, verdict, validated_by}``.\n\nEach ``cells`` entry carries ``{season, passers, is_partial}`` —\n``is_partial`` true for a season still in progress when the artifact was\nbuilt.\n\n``verdict`` is descriptive-only: render it as written, never as an accuracy\nclaim. 503 + ``no-store`` when the artifact cannot be read.","operationId":"public_cfb_qb_ratings_meta_api_public_cfb_qb_ratings_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Qb Ratings Meta Api Public Cfb Qb Ratings Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/qb-ratings":{"get":{"tags":["public"],"summary":"Public Cfb Qb Ratings","description":"One season's CFB WALSH-QB board: FBS passers with 200+ plays.\n\nReturns ``{sport, built_at, model, observation, season, seasons, is_latest,\nis_partial, partial_note, passers, board, adj_note, scale_note,\ninterval_note, cast_note, epa_note, verdict, validated_by}``.\n\n``board`` columns are ``{rank, qb_id, qb_name, team_id, team, plays,\npass_plays, rush_plays, games, epa_per_play, adj_epa, adj_epa_sd, walsh,\nwalsh_sd, walsh_rank}``, ordered by ``adj_epa`` descending (ties by\n``qb_id``). ``adj_epa`` is the passer with his offense, in EPA per play\nagainst an average defense (``adj_epa_sd`` one standard deviation); ``walsh``\nis the quarterback's own share on the 80 scale (80 = that season's average\nFBS starter), ``walsh_rank`` its order; ``epa_per_play`` is raw, unadjusted. ``team`` is the passer's main team that\nseason. ``partial_note`` is null unless ``is_partial``.\n\nA season the artifact does not carry is a 404; an artifact that cannot be\nread is a 503 + ``no-store``.","operationId":"public_cfb_qb_ratings_api_public_cfb_qb_ratings_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Season; omit for the latest","title":"Season"},"description":"Season; omit for the latest"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Qb Ratings Api Public Cfb Qb Ratings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/qb-ratings/{qb_id}":{"get":{"tags":["public"],"summary":"Public Cfb Qb Career","description":"One passer's CFB WALSH-QB seasons.\n\nReturns ``{sport, built_at, model, observation, qb_id, qb_name, seasons,\nadj_note, scale_note, interval_note, cast_note, epa_note, verdict,\nvalidated_by}``.\n\n``seasons`` columns are ``{season, team_id, team, plays, games,\nepa_per_play, adj_epa, adj_epa_sd, walsh, walsh_sd, rank, walsh_rank, of,\nis_partial}``: FBS seasons with 200+ plays, ``rank`` (by ``adj_epa``) and\n``walsh_rank`` of ``of`` on that season's board. A season under the\nfloor has no row.\n\nA passer the artifact does not carry is a 404; an artifact that cannot be\nread is a 503 + ``no-store``.","operationId":"public_cfb_qb_career_api_public_cfb_qb_ratings__qb_id__get","parameters":[{"name":"qb_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"The passer's ESPN athlete id","title":"Qb Id"},"description":"The passer's ESPN athlete id"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Qb Career Api Public Cfb Qb Ratings  Qb Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/pgwe/game/{game_id}":{"get":{"tags":["public"],"summary":"Public Cfb Pgwe Game","description":"Post-game win expectancy for one finished FBS-vs-FBS game, both teams.\n\nReturns ``{sport, season, basis, game_id, season_type, week, home, away,\nnet_scrimmage_epa, net_special_teams_epa, definition}``. ``home``/``away`` are\n``{team_id, team, points, pgwe}`` — ``pgwe`` in [0, 1], the two summing to 1.\n``basis`` is ``cross-fit`` for 2014-2025 and ``served`` for the live season.\n\n404 for a game neither source serves (a game against an FCS team, a 2014-2022\nbowl, a live game whose play-by-play has not reached its final); 503 +\n``no-store`` when the committed record cannot be read.","operationId":"public_cfb_pgwe_game_api_public_cfb_pgwe_game__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"integer","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Pgwe Game Api Public Cfb Pgwe Game  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/pgwe/season/{season}":{"get":{"tags":["public"],"summary":"Public Cfb Pgwe Season","description":"Every FBS team's actual wins beside its PGWE wins for one season.\n\nReturns ``{sport, season, basis, games, pending_games, withheld_games,\nwithheld_reasons, teams, definition, claim}``. Each of ``teams`` is ``{team_id,\nteam, games, wins, losses, pgwe_wins, wins_minus_pgwe, fcs_games_excluded}``\nover SERVED games only (FBS-vs-FBS, bowls included): a game against an FCS team\nis in neither column, and ``fcs_games_excluded`` says how many. Quote ``claim``,\nnever \"better than points for and against\".\n\n404 for a season neither source carries; 503 + ``no-store`` when the committed\nrecord cannot be read.","operationId":"public_cfb_pgwe_season_api_public_cfb_pgwe_season__season__get","parameters":[{"name":"season","in":"path","required":true,"schema":{"type":"integer","title":"Season"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Pgwe Season Api Public Cfb Pgwe Season  Season  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/pgwe/week/{season}/{week}":{"get":{"tags":["public"],"summary":"Public Cfb Pgwe Week","description":"One week's PGWE for the scores page, in one read.\n\nThe postseason is ONE bucket, ``season_type=postseason&week=1``.\n\nReturns ``{sport, season, season_type, week, basis, games, pending_games,\nwithheld_games, withheld_reasons, teams, definition, claim}``.\nEach of ``games`` is ``{game_id, season_type, week, home, away}``,\n``home``/``away`` as on the game route. ``teams`` is the season route's table THROUGH this week, the\npostseason bucket after every regular week (each ``{team_id, team, games, wins,\nlosses, pgwe_wins, wins_minus_pgwe, fcs_games_excluded}``).\n``pending_games``/``withheld_games`` are this week's only.\n\n404 for a week with no game either source knows of; 503 + ``no-store`` when\nthe committed record cannot be read.","operationId":"public_cfb_pgwe_week_api_public_cfb_pgwe_week__season___week__get","parameters":[{"name":"season","in":"path","required":true,"schema":{"type":"integer","title":"Season"}},{"name":"week","in":"path","required":true,"schema":{"type":"integer","title":"Week"}},{"name":"season_type","in":"query","required":false,"schema":{"type":"string","pattern":"^(regular|postseason)$","default":"regular","title":"Season Type"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Pgwe Week Api Public Cfb Pgwe Week  Season   Week  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/game-weather/meta":{"get":{"tags":["public"],"summary":"Public Nfl Game Weather Meta","description":"Seasons, their status and the methodology, without the games.\n\nReturns ``{sport, source, attribution, attribution_url, hour_rule, definitions,\nseasons, latest, season_status, built_at}``.\n\n``season_status`` maps each season to ``{scheduled_games, games, indoors,\nobserved, forecast, pending, no_venue, no_kickoff}``: ``games`` are the records\npublished (``indoors`` + ``observed`` + ``forecast``); ``pending`` the games with\na venue and a kickoff but no conditions yet (beyond the 16-day forecast, or past\nkickoff while the archive has not published the hour); ``no_venue`` /\n``no_kickoff`` the games that can have none. ``built_at`` is per season: the live\nseason is refreshed by the weekly cron's overlay.\n\n503 + ``no-store`` when the artifact cannot be served.","operationId":"public_nfl_game_weather_meta_api_public_nfl_game_weather_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Game Weather Meta Api Public Nfl Game Weather Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/game-weather/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Game Weather","description":"One game's weather at the hour nearest kickoff, from Open-Meteo.\n\nReturns ``{sport, source, attribution, attribution_url, hour_rule, definitions,\nbuilt_at, game_id, season, week, kickoff_utc, venue, roof, roof_status, state,\nfetched_at, conditions}``.\n\n``state`` is ``forecast`` (a game not yet kicked off: the forecast as of\n``fetched_at``, or a past game whose archived hour is not published yet),\n``observed`` (the historical reanalysis for that hour) or ``indoors`` (a fixed\nroof, or a retractable one recorded ``closed`` for a played NFL game; no\nconditions). ``roof`` is ``outdoors`` / ``dome`` / ``retractable``;\n``roof_status`` is ``open`` / ``closed`` for a retractable roof whose position\nthe NFL feed recorded, else null. ``conditions`` is ``{temp_f, feels_like_f,\nhumidity_pct, wind_mph, gust_mph, precip_in, precip_prob_pct, weather_code,\nsky}`` (any value may be null, never imputed; ``precip_prob_pct`` is null on an\nobserved hour) or null when indoors. ``attribution`` must be shown with the data.\n\n404 for a game with no record (no venue coordinates, no kickoff time, or no\nconditions yet); 503 + ``no-store`` when the artifact cannot be served.","operationId":"public_nfl_game_weather_api_public_nfl_game_weather__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Game Weather Api Public Nfl Game Weather  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/game-weather/meta":{"get":{"tags":["public"],"summary":"Public Cfb Game Weather Meta","description":"Seasons, their status and the methodology, without the games.\n\nReturns ``{sport, source, attribution, attribution_url, hour_rule, definitions,\nseasons, latest, season_status, built_at}``.\n\n``season_status`` maps each season to ``{scheduled_games, games, indoors,\nobserved, forecast, pending, no_venue, no_kickoff}``: ``games`` are the records\npublished (``indoors`` + ``observed`` + ``forecast``); ``pending`` the games with\na venue and a kickoff but no conditions yet (beyond the 16-day forecast, or past\nkickoff while the archive has not published the hour); ``no_venue`` /\n``no_kickoff`` the games that can have none. ``built_at`` is per season: the live\nseason is refreshed by the weekly cron's overlay.\n\n503 + ``no-store`` when the artifact cannot be served.","operationId":"public_cfb_game_weather_meta_api_public_cfb_game_weather_meta_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Game Weather Meta Api Public Cfb Game Weather Meta Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/cfb/game-weather/{game_id}":{"get":{"tags":["public"],"summary":"Public Cfb Game Weather","description":"One game's weather at the hour nearest kickoff, from Open-Meteo.\n\nReturns ``{sport, source, attribution, attribution_url, hour_rule, definitions,\nbuilt_at, game_id, season, week, kickoff_utc, venue, roof, roof_status, state,\nfetched_at, conditions}``.\n\n``state`` is ``forecast`` (a game not yet kicked off: the forecast as of\n``fetched_at``, or a past game whose archived hour is not published yet),\n``observed`` (the historical reanalysis for that hour) or ``indoors`` (a fixed\nroof, or a retractable one recorded ``closed`` for a played NFL game; no\nconditions). ``roof`` is ``outdoors`` / ``dome`` / ``retractable``;\n``roof_status`` is ``open`` / ``closed`` for a retractable roof whose position\nthe NFL feed recorded, else null. ``conditions`` is ``{temp_f, feels_like_f,\nhumidity_pct, wind_mph, gust_mph, precip_in, precip_prob_pct, weather_code,\nsky}`` (any value may be null, never imputed; ``precip_prob_pct`` is null on an\nobserved hour) or null when indoors. ``attribution`` must be shown with the data.\n\n404 for a game with no record (no venue coordinates, no kickoff time, or no\nconditions yet); 503 + ``no-store`` when the artifact cannot be served.","operationId":"public_cfb_game_weather_api_public_cfb_game_weather__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Cfb Game Weather Api Public Cfb Game Weather  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/nfl/coach-decisions/{game_id}":{"get":{"tags":["public"],"summary":"Public Nfl Coach Decisions","description":"One regular-season game's key 4th-down and try calls, both teams, 2014 onward.\n\nReturns ``{game_id, season, week, home, away, teams, basis, caveat_fourth, doc,\nboard, units, definitions, key_rule, built_at, in_season}``.\n\n``in_season`` is ``null`` for 2014-2025 and ``{season, through_week, games, note}``\nfor the season in progress, committed weekly (its average coach is refit each week,\nso a call's ``value_vs_avg`` can move until the season ends).\n\n``teams`` maps each side's code (the game id's own, e.g. ``STL``) to ``null`` (no\ndecisions) or ``{team, opponent, head_coach, block, key_decisions, n_rated,\nn_other_rated, not_rated, n_unvalued, footer, luck_shown, luck_withheld_reason}``.\nEach of ``key_decisions`` (game order) is ``{play_id, kind, situation, call,\naverage_coach, option_wp, best, close, value_vs_avg, value_vs_best, realized_wpa,\nwp_after, luck, luck_tested, key, caveat}`` in win-probability points from the\ndeciding team's side: ``option_wp`` each option's modelled WP, ``value_vs_avg`` /\n``value_vs_best`` what the call was worth, ``wp_after`` the WP that followed and\n``luck`` = ``wp_after`` - the chosen option's WP (execution + luck, null where\nK3b's gate withholds it). ``footer`` is ``{sum_value_vs_avg, sum_luck,\nluck_includes_untested, n_without_outcome}`` over every rated call. Every value\nis a model estimate of nfl4th's engine (``basis``); nothing is a coach rating.\n\n404 for a game the record does not carry (before 2014, not yet played or not yet\ncommitted, postseason); 503 +\n``no-store`` when the record cannot be served.","operationId":"public_nfl_coach_decisions_api_public_nfl_coach_decisions__game_id__get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"string","title":"Game Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Nfl Coach Decisions Api Public Nfl Coach Decisions  Game Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/{sport}/{kind}/{game_date}":{"get":{"tags":["public"],"summary":"Public Sport Kind","description":"Sport-aware public page.\n\nNFL (`/nfl/weather/{date}`): resolves the date to its NFL `(season, week)`\nvia cadence and returns the week's weather board, keyed on the canonical\nSunday, with `narrative: null` and `served_from: \"live\"`.\n\nMLB (`/mlb/{kind}/{date}`): aliases to the sport-less money-page builders,\nbyte-identical envelope (no `sport`/`period` keys).","operationId":"public_sport_kind_api_public__sport___kind___game_date__get","parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","title":"Sport"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"game_date","in":"path","required":true,"schema":{"type":"string","title":"Game Date"}},{"name":"site","in":"query","required":false,"schema":{"type":"string","description":"DFS site (mlb/dfs only): dk or fd","default":"dk","title":"Site"},"description":"DFS site (mlb/dfs only): dk or fd"},{"name":"market","in":"query","required":false,"schema":{"type":"string","description":"Prop market (mlb/props only)","default":"hr","title":"Market"},"description":"Prop market (mlb/props only)"},{"name":"bookmaker","in":"query","required":false,"schema":{"type":"string","description":"Sportsbook (mlb/props only)","default":"draftkings","title":"Bookmaker"},"description":"Sportsbook (mlb/props only)"},{"name":"value_limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Value Limit"}},{"name":"stack_limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":5,"title":"Stack Limit"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"narrative","in":"query","required":false,"schema":{"type":"string","description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)","default":"auto","title":"Narrative"},"description":"Narrative mode: 'auto' (cached LLM blurb) or 'skip' (omit)"},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Sport Kind Api Public  Sport   Kind   Game Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","description":"Health check endpoint.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health","description":"Basic health check — no sensitive details.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/detail":{"get":{"summary":"Health Detail","description":"Detailed health check with database connectivity status.","operationId":"health_detail_api_health_detail_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/briefing":{"get":{"summary":"Get Briefing","description":"Get today's daily briefing for the user.","operationId":"get_briefing_api_briefing_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/recaps/{date}":{"delete":{"summary":"Delete Recaps For Date","description":"Delete all pre-generated recaps for a date.","operationId":"delete_recaps_for_date_api_recaps__date__delete","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","title":"Date"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/game/{game_pk}":{"get":{"summary":"Get Game Detail Endpoint","description":"Get detailed game data for expanded scoreboard card.","operationId":"get_game_detail_endpoint_api_game__game_pk__get","parameters":[{"name":"game_pk","in":"path","required":true,"schema":{"type":"integer","title":"Game Pk"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scoreboard/{date}":{"get":{"summary":"Get Scoreboard Endpoint","description":"Get daily scoreboard with linescores, pitcher decisions, and WPA sparklines.","operationId":"get_scoreboard_endpoint_api_scoreboard__date__get","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","title":"Date"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scoreboard":{"get":{"summary":"Get Scoreboard Latest","description":"Get scoreboard for the latest date in the database.","operationId":"get_scoreboard_latest_api_scoreboard_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/run-etl":{"post":{"summary":"Run Etl","description":"Trigger daily ETL pipeline. Returns immediately; runs in background.","operationId":"run_etl_api_run_etl_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/etl-status":{"get":{"summary":"Get Etl Status","description":"Get status of ETL runs.","operationId":"get_etl_status_api_etl_status_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/run-nfl-weekly":{"post":{"summary":"Run Nfl Weekly","description":"Trigger the NFL weekly ETL (run_weekly.py + the nflverse MotherDuck re-upload)\nas a background task. Runs IN-PROCESS because the operational nfl_current DB lives\non this service's Railway volume. Returns immediately; 409 if already running.\n\n``?force=true`` passes ``--force`` to the orchestrator, running the FULL pipeline\nout of season instead of just the year-round reference steps. The crons never set\nit; it exists so an operator can force an offseason backfill without a shell.","operationId":"run_nfl_weekly_api_run_nfl_weekly_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nfl-etl-status":{"get":{"summary":"Get Nfl Etl Status","description":"Status of the most recent NFL weekly ETL run.","operationId":"get_nfl_etl_status_api_nfl_etl_status_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/run-cfb-weekly":{"post":{"summary":"Run Cfb Weekly","description":"Trigger the CFB weekly ETL (run_weekly.py + the cfbfastR MotherDuck sync) as a\nbackground task. Runs IN-PROCESS because the sync reads the local cfbfastr.duckdb\nthe previous step just wrote to this container's disk. Self-gates on the CFB\nseason. Returns immediately; 409 if already running.","operationId":"run_cfb_weekly_api_run_cfb_weekly_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/run-cfb-finals":{"post":{"summary":"Run Cfb Finals","description":"Refresh provisional CFB finals from ESPN; 409 if a refresh is already running.\nOut of season it does nothing (``skipped_out_of_season``), so the cron can stay on\nyear-round like the weekly ones.","operationId":"run_cfb_finals_api_run_cfb_finals_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cfb-finals-status":{"get":{"summary":"Get Cfb Finals Status","description":"The last 20 finals refreshes since this process started (in-memory: an empty\nlist means none since the last restart, not a failure).","operationId":"get_cfb_finals_status_api_cfb_finals_status_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/run-nfl-finals":{"post":{"summary":"Run Nfl Finals","description":"Refresh provisional NFL finals from ESPN; 409 if a refresh is already running.\nOut of season it does nothing (``skipped_out_of_season``).","operationId":"run_nfl_finals_api_run_nfl_finals_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nfl-finals-status":{"get":{"summary":"Get Nfl Finals Status","description":"The last 20 NFL finals refreshes since this process started (in-memory: an\nempty list means none since the last restart, not a failure).","operationId":"get_nfl_finals_status_api_nfl_finals_status_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cfb-etl-status":{"get":{"summary":"Get Cfb Etl Status","description":"Status of the most recent CFB weekly ETL run.","operationId":"get_cfb_etl_status_api_cfb_etl_status_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat":{"post":{"summary":"Chat","description":"Main chat endpoint. Sends user message to Claude with tools,\nexecutes any tool calls, and returns the response.\nMaintains conversation history for multi-turn conversations.","operationId":"chat_api_chat_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/stream":{"post":{"summary":"Chat Stream","description":"Streaming chat endpoint. Same logic as /api/chat but streams text tokens\nvia Server-Sent Events as they arrive from Claude.\n\nEvents:\n  data: {\"type\": \"text\", \"content\": \"...\"}     - text chunk\n  data: {\"type\": \"tool_start\", \"name\": \"...\"}   - tool execution starting\n  data: {\"type\": \"done\", \"conversation_id\": \"...\", \"exchange_id\": \"...\", \"sources\": [...], \"suggested_followups\": [...]}\n  data: {\"type\": \"error\", \"message\": \"...\"}","operationId":"chat_stream_api_chat_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations":{"get":{"summary":"List Conversations","description":"List all conversations for the current user, most recent first.","operationId":"list_conversations_api_conversations_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Conversation"},"title":"Response List Conversations Api Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Conversation","description":"Create a new empty conversation.","operationId":"create_conversation_api_conversations_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}":{"get":{"summary":"Get Conversation","description":"Get a specific conversation with all messages.","operationId":"get_conversation_api_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Conversation","description":"Delete a conversation.","operationId":"delete_conversation_api_conversations__conversation_id__delete","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"summary":"Submit Feedback","description":"Submit thumbs up (1) or thumbs down (-1) for an exchange.","operationId":"submit_feedback_api_feedback_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics":{"get":{"summary":"Get Analytics","description":"Get exchange analytics dashboard. Default 7 days, max 1 year.","operationId":"get_analytics_api_analytics_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":1,"default":168,"title":"Hours"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage":{"get":{"summary":"Get Usage","description":"Get API usage statistics.\n\nArgs:\n    hours: Number of hours to look back (default 24, max 720)\n\nReturns usage breakdown including:\n- Total tokens and estimated costs\n- Cache hit rate and savings\n- Per-conversation breakdown\n- Hourly breakdown","operationId":"get_usage_api_usage_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"default":24,"title":"Hours"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage/all":{"get":{"summary":"Get All Usage","description":"Get all-time usage statistics.","operationId":"get_all_usage_api_usage_all_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test/player/{player_id}/{year}":{"get":{"summary":"Test Player","description":"Quick test endpoint for player narratives.","operationId":"test_player_api_test_player__player_id___year__get","parameters":[{"name":"player_id","in":"path","required":true,"schema":{"type":"string","title":"Player Id"}},{"name":"year","in":"path","required":true,"schema":{"type":"integer","title":"Year"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test/search/{query}":{"get":{"summary":"Test Search","description":"Quick test endpoint for player search.","operationId":"test_search_api_test_search__query__get","parameters":[{"name":"query","in":"path","required":true,"schema":{"type":"string","title":"Query"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ChatRequest":{"properties":{"message":{"type":"string","title":"Message"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"sport":{"type":"string","title":"Sport","default":"mlb"}},"type":"object","required":["message"],"title":"ChatRequest"},"ChatResponse":{"properties":{"response":{"type":"string","title":"Response"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"sources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sources"},"citation_meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Citation Meta"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"exchange_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exchange Id"},"suggested_followups":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Suggested Followups"}},"type":"object","required":["response"],"title":"ChatResponse"},"ConnectLeagueRequest":{"properties":{"platform":{"type":"string","pattern":"^(espn|yahoo)$","title":"Platform"},"league_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"League Url"},"league_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"League Id"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"},"season":{"type":"integer","title":"Season","default":2026},"espn_swid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Espn Swid"},"espn_s2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Espn S2"}},"type":"object","required":["platform"],"title":"ConnectLeagueRequest"},"Conversation":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count"}},"type":"object","required":["id","title","created_at","updated_at","message_count"],"title":"Conversation"},"FeedbackRequest":{"properties":{"exchange_id":{"type":"string","title":"Exchange Id"},"feedback":{"type":"integer","title":"Feedback"}},"type":"object","required":["exchange_id","feedback"],"title":"FeedbackRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProfilePayload":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"favorite_team":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favorite Team"},"secondary_teams":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Secondary Teams"},"plays_season_long":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plays Season Long"},"plays_dfs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plays Dfs"},"season_long_platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Season Long Platform"},"dfs_platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dfs Platform"},"league_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"League Format"},"weight_storylines":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Weight Storylines"},"weight_fantasy":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Weight Fantasy"},"weight_betting":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Weight Betting"},"email_morning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Morning"},"email_evening":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Evening"},"email_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Frequency"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"}},"type":"object","title":"ProfilePayload"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}