Docs

API endpoint reference

Flat SDK-style list of `/api` routes. For the page-by-page story see /docs.

Base URL: https://www.buildparlays.com

MethodPathUsed byNotes
POST/api/contact
  • (not wired to UI)
Route exists; form disabled
GET/api/database/all-schedule?season=
  • /gameday-companion
n/a
GET/api/database/depth-chart?team=
  • /teams/[id]
  • /gameday-companion
Called once per team (heavier page)
GET/api/database/league-rankings
  • /
  • /rankings
n/a
GET/api/database/players?team=
  • /teams/[id]
n/a
GET/api/database/team-leaders?team=&season=
  • /teams/[id]
n/a
GET/api/database/team-schedule?team=&season=
  • /teams/[id]
n/a
GET/api/database/team-seasons?team=
  • /teams/[id]
n/a
GET/api/database/team-stats?team=&season=
  • /teams/[id]
n/a
GET/api/database/teams
  • /
  • /teams
  • /rankings
  • /gameday-companion
Logos / context
GET/api/database/teams?season=
  • /teams/[id]
n/a
GET/api/matchup/[gameId]
  • /matchup/[gameId]
Still queries legacy games table; may 404/500 until rewritten to schedules
GET/api/players/consistency?position=&stat=&limit=&minGames=
  • /
n/a
GET/api/players/flag-magnets?filter=
  • /
Empty until player penalty data exists
GET/api/players/weekly-top
  • (not wired to UI)
Implemented, not wired to a page UI yet
GET/api/rundown/nfl/events?date=YYYY-MM-DD
  • /odds
Only page that spends Rundown quota (server-cached)
GET/api/rundown/sports
  • (not wired to UI)
Internal / admin-style
GET/api/rundown/usage
  • (not wired to UI)
Internal / admin-style
GET/api/schedule/date?date=YYYY-MM-DD
  • /
UpcomingGames look-ahead; records as of that date
GET/api/schedule/next
  • /
Current-season next game + W-L as of today ET
GET/api/schedule/today
  • /
Current-season records as of today ET
GET/api/schedule/week?week=&season=
  • /schedule
n/a
GET/api/search?q=
  • /search
n/a
GET/api/search?q={query}
  • Global (navbar)
Navbar search on every page (Turso players + teams)
GET/api/teammates
  • (not wired to UI)
Implemented, not wired to a page UI yet