Ratings API
First-party JSON endpoints for the shipped ratings product. These routes are meant for product consumers who want the same adjusted team, player, and matchup data that powers the UI without recreating BigQuery queries manually.
Returns the adjusted team rankings feed with raw and adjusted component context.
/api/ratings/teams?division=NAIA&season=2025&limit=25Returns the team summary plus per-game ratings detail for a single team-season row.
/api/ratings/teams/team_123?division=NAIA&season=2025&detail_limit=100Returns hitters, pitchers, baserunners, or all three groups for a season.
/api/ratings/players?division=NCAA-DII&season=2025&group=hitters&limit=50Returns all available player rating groups for one player across seasons.
/api/ratings/players/player_456Returns upcoming matchup cards with adjusted rating context, audit lines, and interest score.
/api/ratings/matchups?division=NJCAA-DI&season=2025&from=2026-04-10&to=2026-04-17&limit=25Usage Notes
`division` and `season` follow the same selection model as the product UI. If omitted, the API resolves to the current default season context used by the app.
`limit` values are clamped server-side so these routes stay useful for product consumers without turning into unconstrained export endpoints.
Matchup feeds return upcoming games only. Team and player endpoints include fallback behavior when newer marts are not materialized, matching the product's ship-first approach.