EUROPE · DOMESTIC LEAGUE

La Liga API

Spain's premier football division, home to FC Barcelona, Real Madrid, and Atletico Madrid. Known for technical, possession-based football.

30
Seasons
20
Teams
Spain
Country
2
Competition ID
Get this via API

Sample La Liga API call

Fetch La Liga matches with competition_id=2. The same ID works across every endpoint.

GET /football/matches?competition_id=2

Request
GET https://api.thestatsapi.com/api/football/matches
  ?competition_id=2
  &season=2025
Authorization: Bearer YOUR_API_KEY
JSON response
{
  "data": [
    {
      "match_id": "mt_20481",
      "competition_id": 2,
      "competition": "La Liga",
      "season": "2025/26",
      "status": "finished",
      "kickoff_utc": "2025-09-14T14:00:00Z",
      "home": { "name": "Real Madrid", "score": 2 },
      "away": { "name": "FC Barcelona", "score": 1 },
      "xg": { "home": 1.84, "away": 0.97 },
      "odds": { "home": "2.10", "draw": "3.40", "away": "3.30" }
    }
  ],
  "meta": { "page": 1, "per_page": 25, "total": 380 }
}
Use competition_id=2 for La Liga in fixtures, standings, player-stats and odds requests.

What data is available for La Liga

Match fixtures and results
Final scores and live status
Historical seasons back to 1996
Match events (goals, cards, substitutions)
Player statistics (goals, assists, minutes, cards, shots)
Team season stats (possession, shots, passes, corners)
Pre-match odds from Bet365, Pinnacle, Betfair Exchange & Kambi
Expected goals (xG) per match and per shot

What you can build with La Liga data

Stats dashboards

Power a live La Liga table, fixtures, and form widgets with a single endpoint.

Betting & prediction models

Train models on 30 seasons of results, xG, and closing odds.

Fantasy & content apps

Fetch player stats and match events to drive fantasy scoring and editorial content.

Research & analytics

Bulk-export historical La Liga data for academic and commercial analysis.

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, including 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.

Are betting odds available for La Liga?

Yes. Pre-match odds for La Liga are available from Bet365, Pinnacle, Betfair Exchange, and Kambi across 1X2, over/under, BTTS, and Asian handicap markets, joined to fixtures by match ID.

How do I get a La Liga API key?

Sign up for a 7-day free trial, generate an API key from your dashboard, and call the matches endpoint with competition_id=2. Every plan includes all endpoints and all competitions.

What does La Liga data cost?

La Liga data is included on every TheStatsAPI plan, starting at $50/month with a 7-day free trial. There are no per-competition add-ons.

Start building today

Get La Liga Data & 1,195 Other Competitions

Start your 7-day free trial. All endpoints included on every plan.