Skip to content

La Liga Odds API ​

The Odds API covers La Liga odds for live and upcoming matches in a simple JSON API.

Not a developer? Current La Liga odds can also be accessed in Excel or Google Sheets. For website owners, the odds widget brings bookmaker odds into websites with a simple HTML tag.

Features ​

  • La Liga odds are covered for live and upcoming matches.

  • Featured markets, including 1X2, handicap, over/under are covered for several bookmakers. See the full list of bookmakers.

  • Odds are refreshed at regular intervals. More information on update intervals can be found here.

  • La Liga scores are covered, with final scores available for matches completed up to 3 days ago.

  • Current odds data and scores are available on all usage plans, including the free usage plan.

  • Historical La Liga odds data is available from Jun 2020 on paid usage plans. More information on historical odds data can be found here.

  • The API response includes deep links to bookmaker websites.

Querying La Liga Odds ​

Featured markets (1X2, handicap and over/under) can be queried using the odds endpoint.

Parameters

To query current La Liga odds for featured markets, the following parameters need to be provided:

  • sport   In this case soccer_spain_la_liga
  • regions   Regions of bookmakers to return, for example eu
  • markets   For example, h2h for 1X2, spreads for handicap, totals for over/under
  • oddsFormat   decimal or american. This example uses decimal
  • apiKey   Get a free API key

See the documentation for more options

Example API Request

https://api.the-odds-api.com/v4/sports/soccer_spain_la_liga/odds?regions=eu&markets=h2h,spreads,totals&oddsFormat=decimal&apiKey=YOUR_API_KEY

Example API Response

The API will return live and upcoming La Liga matches, including start times, home and away teams, and odds from bookmakers for the specified regions and markets.

json
[{
    "id": "9dd0014685fd62d9b2890d7c33a8c9ab",
    "sport_key": "soccer_spain_la_liga",
    "sport_title": "La Liga - Spain",
    "commence_time": "2026-11-06T20:00:00Z",
    "home_team": "Sevilla",
    "away_team": "Alavés",
    "bookmakers": [
        {
            "key": "pinnacle",
            "title": "Pinnacle",
            "last_update": "2026-11-06T11:55:16Z",
            "markets": [
                {
                    "key": "h2h",
                    "last_update": "2026-11-06T11:55:15Z",
                    "outcomes": [
                        {"name": "Alavés", "price": 4.81},
                        {"name": "Sevilla", "price": 1.89},
                        {"name": "Draw", "price": 3.45}
                    ]
                },
                {
                    "key": "spreads",
                    "last_update": "2026-11-06T11:55:15Z",
                    "outcomes": [
                        {"name": "Alavés", "price": 2.03, "point": 0.5},
                        {"name": "Sevilla", "price": 1.89, "point": -0.5}
                    ]
                },
                {
                    "key": "totals",
                    "last_update": "2026-11-06T11:55:15Z",
                    "outcomes": [
                        {"name": "Over", "price": 2.04, "point": 2.25},
                        {"name": "Under", "price": 1.87, "point": 2.25}
                    ]
                }
            ]
        },
        ...

The usage cost of the API call in this example is

usage cost = [number of markets] x [number of regions] = 3 x 1 = 3 credits

See the API documentation for details.

Other Sports ​

See the full list of sports covered by The Odds API.

Stay Updated ​

Follow us on X.com or Bluesky to stay updated on new sports, bookmakers, markets and features.