Football Lineups API
Fetch confirmed starting elevens, substitutes, formations, and player positions for each match.
Quick answer
The football lineups API returns the starting XI, bench, formation, and per-player positions for a match once lineups are confirmed, joined to player and team IDs.
GET /football/matches/{match_id}/lineupsExample request
const res = await fetch(
"https://api.thestatsapi.com/api/football/matches/{match_id}/lineups",
{ headers: { Authorization: "Bearer YOUR_API_KEY" } }
);
const data = await res.json();
console.log(data);{
"data": {
"match_id": "mt_10481",
"home": {
"team": "Manchester City",
"formation": "4-3-3",
"starting_xi": [
{ "player_id": 201, "name": "Ederson", "position": "GK", "number": 31 },
{ "player_id": 1101, "name": "Erling Haaland", "position": "ST", "number": 9 }
],
"substitutes": [
{ "player_id": 233, "name": "Julian Alvarez", "position": "ST", "number": 19 }
]
}
}
}Key response fields
formationTeam shape, e.g. 4-3-3.
starting_xiConfirmed starters with positions and numbers.
substitutesNamed bench players.
player_idJoin to the player stats endpoint.
What you can build with the Football Lineups API
The Football Lineups API is part of TheStatsAPI, a single REST API covering 1,000+ football competitions with fixtures, results, standings, player and match stats, odds, and xG. Plans start at $50/month with a 7-day free trial and every endpoint included.
Frequently Asked Questions
When are lineups available?
Confirmed lineups typically publish around an hour before kickoff for covered matches.
Do lineups include positions?
Yes. Each player includes a position code and shirt number where available.
How do I link lineups to stats?
Use player_id from the lineup with the player stats endpoint to enrich each starter.
Simple, Transparent Pricing
Every plan includes stats, odds, xG, history, and every documented endpoint.
Starter
For prototypes, side projects, and early products
Included in every plan:
- All football data endpoints included
- Pre-match & live odds endpoints
- Bet365, Pinnacle, Betfair Exchange & Kambi odds
- 1X2, Asian handicap, totals, BTTS, DNB & corners
- Fixtures, results, match stats, teams & players
- xG, player season stats & team stats
- 10 years of historical match data
- Build with AI
- 80 competitions by default, up to 1,196 on request
- 100,000 requests/month
- 120 requests/min
- Email & chat support
Growth
For production apps with steady traffic
Everything in Starter, plus:
- 500,000 requests/month
- 300 requests/min
- Priority support for production teams
Scale
For high-volume, production-grade usage
Everything in Growth, upgraded to:
- 5,000,000 requests/month
- 1,000 requests/min
- Dedicated support & SLA
Build with the Football Lineups API today
Start a 7-day free trial. Every endpoint and competition is included on every plan.
Get your API key