Fastest way: build with AI
Give Claude Code, Codex, Cursor or Lovable our full API reference and a starter prompt, and let it write the code.
Start here
Quickstart
Get a key and make your first useful requests in about five minutes.
Guides
Step-by-step recipes for fixtures, live scores, tables, stats and odds.
API reference
Every endpoint, with its parameters and response fields.
Coverage
Check which competitions and seasons have stats, xG and odds.
What you can build
Fixtures and results
A team’s next match, last result, or every match on a date.
Live scores
Live scores, minute, stats and events, by polling during a match.
League tables
Current and past standings for leagues and group stages.
Player and team stats
Season and match stats, xG, shot maps and heatmaps.
Odds comparison
Pre-match and in-play odds from several bookmakers, where available.
Find any ID
Look up competition, season, team, player and match IDs.
How it works
- Get an API key from your dashboard.
- Send it in the
Authorization: Bearer YOUR_API_KEYheader. - Call endpoints under
https://api.thestatsapi.com/apiand get JSON back.