LaLiga API

Realtime Sports API serves Spanish LaLiga games through the same REST endpoints and JSON schema as every other league, using sport=soccer and league=esp.1. You get the current scoreboard, live scores, game detail, play-by-play, teams, rosters and news, plus current odds and line history from a single source book. Not currently available or not verified for this league: injuries, player box-score stats. Data is aggregated from public sources and is typically 20-30 seconds behind live play (about 1 second after our source). There is no SLA.

Slugs
sport=soccer
league=esp.1
Teams
20
Season (from data)
2026-27 Spanish LALIGA 2026-27 LALIGA
In the scoreboard now
4 games, 1 live

Upcoming and live LaLiga games

LaLiga games from the API
DateAwayHomeTime / ResultTVVenue
Sat, Nov 21Celta VigoatReal Madrid1 - 0 22'TV: ESPN Deportes, ESPN+Santiago Bernabéu · Madrid

From the /events endpoint for this league, refreshed every few minutes. Times are US Eastern. Full LaLiga schedule · LaLiga team APIs · Free LaLiga scoreboard widget

Past LaLiga seasons

Finished top, season by season

  • 2023-24 Real Madrid CF (95 pts)
  • 2022-23 FC Barcelona (88 pts)
  • 2021-22 Real Madrid CF (86 pts)
  • 2020-21 Club Atlético de Madrid (86 pts)
  • 2019-20 Real Madrid (87 pts)
  • 2018-19 FC Barcelona (87 pts)
  • 2017-18 FC Barcelona (93 pts)
  • 2016-17 Real Madrid (93 pts)
  • 2015-16 FC Barcelona (91 pts)
  • 2014-15 FC Barcelona (94 pts)
  • 2013-14 Atlético Madrid (90 pts)
  • 2012-13 FC Barcelona (100 pts)

2023-24 final table, top six

LaLiga 2023-24 top six, computed from results
#TeamPGDPts
1Real Madrid CF38+6195
2FC Barcelona38+3585
3Girona FC38+3981
4Club Atlético de Madrid38+2776
5Athletic Club38+2468
6Real Sociedad de Fútbol38+1260

Historical results, computed from final scores (3 points a win, 1 a draw; point deductions not applied). Seasons with missing scores are left out. Not live data: the live API is above.

Live example

Request

curl -H "Authorization: Bearer $RSA_API_KEY" \
  "https://www.realtimesportsapi.com/api/v1/sports/soccer/leagues/esp.1/events?limit=1"

Response captured from live data at 2026-11-21 20:30 UTC (refreshed every few minutes). Long arrays are trimmed; meta.rateLimit values are illustrative for a Free key.

Response

{
  "success": true,
  "data": [
    {
      "id": "401882806",
      "uid": "s:600~l:740~e:401882806",
      "name": "Deportivo at Alavés",
      "shortName": "DEP @ ALA",
      "date": "2026-11-21T13:00Z",
      "status": {
        "state": "post",
        "completed": true,
        "period": 2,
        "clock": "90'+6'",
        "detail": "FT",
        "halftime": false,
        "firstHalfEnded": true
      },
      "homeTeam": {
        "id": "96",
        "name": "Alavés",
        "abbreviation": "ALA",
        "logo": "https://realtimesportsapi.com/api/images/proxy?id=GgcVSgNPTUMITUgaFFQVVVQXBVwOHV5LRQBZD1lbBllDXQAOWRMQEENcUx1GXQxYQVRe",
        "color": "0000ff",
        "alternateColor": "FFC0CB",
        "winner": true,
        "score": 3
      },
      "awayTeam": {
        "id": "90",
        "name": "Deportivo",
        "abbreviation": "DEP",
        "logo": "https://realtimesportsapi.com/api/images/proxy?id=GgcVSgNPTUMITUgaFFQVVVQXBVwOHV5LRQBZD1lbBllDXQAOWRMQEENcUx1GXQpYQVRe",
        "color": "3366CC",
        "alternateColor": "000000",
        "winner": false,
        "score": 1
      },
      "competition": {
        "attendance": 0,
        "neutralSite": false,
        "conferenceCompetition": false,
        "divisionCompetition": false,
        "playByPlayAvailable": true,
        "highlightsAvailable": false
      },
      "venue": {
        "id": "10022",
        "name": "Mendizorrotza",
        "city": "Vitoria-Gasteiz",
        "indoor": false,
        "grass": false
      },
      "notes": [],
      "season": {
        "year": 2026,
        "displayName": "2026-27 Spanish LALIGA",
        "type": {
          "id": "1",
          "name": "2026-27 LALIGA",
          "abbreviation": "2026-27 LALIGA"
        },
        "week": {}
      },
      "broadcasts": [
        {
          "network": "ESPN Deportes",
          "type": "TV"
        },
        {
          "network": "ESPN+",
          "type": "STREAMING"
        }
      ],
      "officials": []
    }
  ],
  "meta": {
    "rateLimit": {
      "limit": 125,
      "remaining": 124,
      "reset": 1796083200000
    }
  }
}

LaLiga endpoints

Checked against live data on 2026-10-04. Paths are relative to /api/v1/sports/soccer/leagues/esp.1.

EndpointPathLaLigaNotes
Live scores/events/liveAvailable
Events (scoreboard)/eventsAvailable
Event detail/events/{eventId}Available
Play-by-play/events/{eventId}/playsAvailable
Box score/events/{eventId}/boxscoreLimitedTeam totals and period scores only; player stats are not returned.
Odds/events/{eventId}/oddsAvailable
Win probability/events/{eventId}/winprobabilityNot available
Teams/teamsAvailable
Rosters/teams/{teamId}/rosterAvailable
Athletes/athletes/searchAvailable
Injuries/injuriesNot available
News/newsAvailable
Schedule / weeks/seasons/{season}/scheduleAvailable
NCAA tournament/seasons/{season}/tournamentNot available
Rankings/rankingsNot available
Webhooks/webhooksAvailable
WebSocket/websocket/authAvailable
  • Schedules are by date, not week: use /events for the current scoreboard and /seasons/{season}/schedule for a season. Week parameters return SCHEDULE_WEEKS_NOT_SUPPORTED.
  • Soccer play-by-play is a stream of match events (passes, shots, fouls, cards); box scores carry team totals and period scores without player rows.

Every LaLiga game in the events, live and schedule endpoints uses the same Event object as other leagues: Event object field reference.

LaLiga API in Python, JavaScript and curl

curl

curl -H "Authorization: Bearer $RSA_API_KEY" \
  "https://www.realtimesportsapi.com/api/v1/sports/soccer/leagues/esp.1/events?limit=5"

JavaScript (fetch)

const res = await fetch("https://www.realtimesportsapi.com/api/v1/sports/soccer/leagues/esp.1/events?limit=5", {
  headers: { Authorization: `Bearer ${process.env.RSA_API_KEY}` }
});
const { success, data, meta } = await res.json();
console.log(data, meta.rateLimit);

Python (requests)

import os, requests

res = requests.get(
    "https://www.realtimesportsapi.com/api/v1/sports/soccer/leagues/esp.1/events?limit=5",
    headers={"Authorization": f"Bearer {os.environ['RSA_API_KEY']}"},
    timeout=10,
)
body = res.json()
print(body["data"])

MCP prompt (Claude, Cursor, ChatGPT)

Using the Realtime Sports MCP server (https://www.realtimesportsapi.com/api/mcp), call get_events with sport "soccer" and league "esp.1" and list the games it returns with start times, status and scores for LaLiga.

Connect the hosted MCP server first: setup guide. Each tool call counts as one API call.

Each request above is 1 call. Free covers 125 calls a month after a 1,000-call first month, at 1 request/second. Starter is $29/month for 10,000 calls (about 333 a day) plus webhooks and WebSocket, so you stop polling for changes; 7-day free trial. Compare plans

Real-time LaLiga push: WebSocket and webhooks

Instead of polling, paid plans can receive every LaLiga game start, score change and final as it is detected (typically 20-30 seconds behind live play): a LaLiga WebSocket feed for live dashboards and apps, or LaLiga webhooks that POST each event to your server. On the Free plan you can watch the stream and send yourself a sample webhook from the dashboard.

Shipping a product with LaLiga data?

Polling works on every plan. Production apps usually also want events pushed to them, by webhook or WebSocket, as soon as we detect them (typically 20-30 seconds behind live play). These guides show the setup and the plan each one needs.

LaLiga API pricing and rate limits

The LaLiga API is included in every plan, Free included: one key covers all leagues. Free starts with 1,000 calls in your first 30 days (no card); paid plans start at $29/month with a 7-day free trial.

PlanPriceCallsRateWebSocketWebhooks
Free$0125/mo (1,000 first 30 days)1/s500 msgs/moNo
Starter$29/mo ($290/yr)10,000/mo5/sShares monthly poolShares monthly pool
Growth$49/mo ($490/yr)25,000/mo10/sShares monthly poolShares monthly pool
Pro$99/mo ($990/yr)50,000/mo20/s100,000 msgs/mo25,000/mo
Business$179/mo ($1,790/yr)150,000/mo40/s300,000 msgs/mo75,000/mo
Scale$299/mo ($2,990/yr)500,000/mo100/s500,000 msgs/mo100,000/mo

Every successful REST call counts as one call. Over the limit you get HTTP 429 with a Retry-After header. No SLA. Full pricing.

29 leagues monitored live: NFL, college football, NBA, men's college basketball, MLB, NHL and 23 soccer competitions.

FAQ

Is there a free LaLiga API?
Yes. The Free plan is $0 with 125 calls per month (1,000 in the first 30 days) at 1 request per second, no card required. The same key works for all 29 leagues.
How fresh is the LaLiga data?
Data is aggregated from public sources and is typically 20-30 seconds behind live play (about 1 second after our source). There is no SLA. It is not intended for in-play betting that needs sub-second data.
Which LaLiga endpoints are available?
Available: live scores, events (scoreboard), event detail, play-by-play, odds, teams, rosters, athletes, news, schedule / weeks. Not available or not verified: box score (limited), win probability (not available), injuries (not available), ncaa tournament (not available), rankings (not available).
Does the LaLiga API include betting odds?
Yes. Upcoming LaLiga games returned a spread, moneyline and total when we checked, from a single source book, with line history. It is not a multi-book comparison feed and not suited to sub-second in-play betting.
Does it include LaLiga injuries?
No. The injuries endpoint returned no records for LaLiga when we checked, so treat injuries as not available for this league.
Can I get LaLiga score updates pushed instead of polling?
Yes. Webhooks are included on every paid plan (Starter, Growth, Pro, Business, Scale). WebSocket is included on paid plans, and the Free plan gets a 500-message monthly preview. Both can be filtered to esp.1.