Skip to content

Get Leagues (API v4)

Ihor Komar edited this page Aug 10, 2022 · 2 revisions
  1. Send REST request to the following endpoint:
  • Prematch data: https://api-pr.oddsmarket.org/v4/leagues/{leagueIds}

  • Live data: https://api-lv.oddsmarket.org/v4/leagues/{leagueIds}

    where {leagueIds} is a comma-separated list of league IDs

  1. The response is an array of League objects. See example below:
[
    {
        "id": 3889,
        "name": "England. Premier League",
        "sportId": 7,
        "countryIso3Code": "ENG"
    }
]
Name Description Type Example
id Internal ID of a league in our system INT 3889
name Internal name of a league in our system VARCHAR England. Premier League
sportId Sport ID SHORTINT 7
countryIso3Code Country code as per ISO 3166-1. Present only in case the league is limited to a specific country. VARCHAR ENG
  1. Map all leagues you are interested in.
Clone this wiki locally