-
Notifications
You must be signed in to change notification settings - Fork 1
Get Leagues (API v3)
Valentyn Nechytailenko edited this page Jul 21, 2022
·
3 revisions
- Send REST request to the following endpoint:
-
Prematch data:
https://api-pr.oddsmarket.org/v1/leagues/{leagueIds}
-
Live data:
https://api-lv.oddsmarket.org/v1/leagues/{leagueIds}
where
{leagueIds}
is a comma-separated list of league IDs
- 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 |
- Map all leagues you are interested in.
This section describes API v3.
If you are using API v4 go to API v4 documentation root page.