La Liga Football Data API
Spain's premier football division, home to FC Barcelona, Real Madrid, and Atletico Madrid. Known for technical, possession-based football.
What data is available for La Liga
Sample API call for La Liga
// Fetch La Liga matches
const response = await fetch(
'https://api.thestatsapi.com/api/football/matches?competition_id=2',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);Use competition_id=2 for La Liga in all endpoint requests.
TheStatsAPI provides La Liga data including match results, player statistics, and historical records across 30 seasons. Access comprehensive La Liga data alongside 1,195 other competitions through a single REST API, with plans starting at $50/month and a 7-day free trial.
Frequently Asked Questions
Does TheStatsAPI cover La Liga?
Yes. TheStatsAPI provides full coverage of La Liga including match fixtures, results, player statistics, team data, and historical records across 30 seasons.
How many seasons of La Liga data are available?
TheStatsAPI has 30 seasons of La Liga data, going back to the 1996 season. This includes match results, player stats, and team performance data.
Can I get player stats for La Liga?
Yes. Player statistics for La Liga include goals, assists, appearances, minutes played, yellow cards, red cards, and shots. Available for all players across all 30 seasons.
Access La Liga Data & 1,195 Other Competitions
Start your 7-day free trial. All endpoints included on every plan.