GET All Leagues

GET All Leagues

1
https://soccer.sportmonks.com/api/v2.0/leagues
Copied!
Endpoint details
Authorization
API Key
Pagination
YES
Allowed nested includes
2

Parameters

Available parameters
page
The number of the page you want to browse. Can be used by adding &page= etc to your request url.
include
Enrich the API with more data and/or nested includes. Can be used by adding &include= etc. to your request url.
cupslast
When provided via the request url the cups will be put on the end of the response.

Include options

country season seasons
Includes are the cornerstone of our API and allow you to enrich and customize your requests. This flexibility is what distinguishes us from our competitors.
You can learn more about what includes are and how they work here:

Example response

Request
Response
Field Description
1
https://soccer.sportmonks.com/api/v2.0/leagues?api_token={API_TOKEN}
Copied!
1
"data": [
2
{
3
"id": 2,
4
"active": true,
5
"type": "cup_international",
6
"legacy_id": 11,
7
"country_id": 41,
8
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/2.png",
9
"name": "Champions League",
10
"is_cup": true,
11
"is_friendly": false,
12
"current_season_id": 18346,
13
"current_round_id": null,
14
"current_stage_id": 77453623,
15
"live_standings": true,
16
"coverage": {
17
"predictions": false,
18
"topscorer_goals": true,
19
"topscorer_assists": true,
20
"topscorer_cards": true
21
}
22
},
23
{
24
"id": 5,
25
"active": true,
26
"type": "cup_international",
27
"legacy_id": 12,
28
"country_id": 41,
29
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/5.png",
30
"name": "Europa League",
31
"is_cup": true,
32
"is_friendly": false,
33
"current_season_id": 18629,
34
"current_round_id": null,
35
"current_stage_id": 77454501,
36
"live_standings": true,
37
"coverage": {
38
"predictions": false,
39
"topscorer_goals": true,
40
"topscorer_assists": true,
41
"topscorer_cards": true
42
}
43
},
44
{
45
"id": 8,
46
"active": true,
47
"type": "domestic",
48
"legacy_id": 29,
49
"country_id": 462,
50
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/8/8.png",
51
"name": "Premier League",
52
"is_cup": false,
53
"is_friendly": false,
54
"current_season_id": 18378,
55
"current_round_id": null,
56
"current_stage_id": 77453700,
57
"live_standings": true,
58
"coverage": {
59
"predictions": true,
60
"topscorer_goals": true,
61
"topscorer_assists": true,
62
"topscorer_cards": true
63
}
64
},
65
{
66
"id": 9,
67
"active": true,
68
"type": "domestic",
69
"legacy_id": 30,
70
"country_id": 462,
71
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/9/9.png",
72
"name": "Championship",
73
"is_cup": false,
74
"is_friendly": false,
75
"current_season_id": 18432,
76
"current_round_id": null,
77
"current_stage_id": null,
78
"live_standings": true,
79
"coverage": {
80
"predictions": true,
81
"topscorer_goals": true,
82
"topscorer_assists": true,
83
"topscorer_cards": true
84
}
85
},
Copied!
Field
Description
data
Opens an array of data you've requested
id
A unique league id
active
Indicates if the league is active or not. Possible values are 'true' or 'false'
type
Indicates what kind of league this is. Possible values: 'domestic', 'cup', 'international'. More values can be found here
legacy_id
This was for our API version 1.0. It's only of use for old users of our API
country_id
The unique country id the league is played in
logo_path
The logo URL path of the league
name
The name of the league
is_cup
Indicates if the league is a cup or not. Possible values are 'true' or 'false'
current_season_id
The unique id of the current season
current_round_id
The unique id of the current round
current_stage_id
The unique id of the current stage
live_standings
Indicates if the league covers live standings
coverage
Opens an array of partial coverage for the league
predictions
Indicates if the league covers predictions
topscorers_goals
Indicates if the league covers goal topscorers
topscorers_assists
Indicates if the league covers assists topscorers
topscorers_cards
Indicates if the league covers cards topscorers
Check this endpoint in Postman.
Export as PDF
Copy link