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
| Method | Path | Used by | Notes |
|---|---|---|---|
| POST | /api/contact |
| Route exists; form disabled |
| GET | /api/database/all-schedule?season= |
| n/a |
| GET | /api/database/depth-chart?team= |
| Called once per team (heavier page) |
| GET | /api/database/league-rankings |
| n/a |
| GET | /api/database/players?team= |
| n/a |
| GET | /api/database/team-leaders?team=&season= |
| n/a |
| GET | /api/database/team-schedule?team=&season= |
| n/a |
| GET | /api/database/team-seasons?team= |
| n/a |
| GET | /api/database/team-stats?team=&season= |
| n/a |
| GET | /api/database/teams |
| Logos / context |
| GET | /api/database/teams?season= |
| n/a |
| GET | /api/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 |
| Implemented, not wired to a page UI yet |
| GET | /api/rundown/nfl/events?date=YYYY-MM-DD |
| Only page that spends Rundown quota (server-cached) |
| GET | /api/rundown/sports |
| Internal / admin-style |
| GET | /api/rundown/usage |
| 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= |
| n/a |
| GET | /api/search?q= |
| n/a |
| GET | /api/search?q={query} |
| Navbar search on every page (Turso players + teams) |
| GET | /api/teammates |
| Implemented, not wired to a page UI yet |