arrow-left

All pages
gitbookPowered by GitBook
1 of 5

Loading...

Loading...

Loading...

Loading...

Loading...

Leagues

For most customers, the Leagues endpoint is the starting point. A request on this endpoint returns a response with all Leagues you have access to, based on the plan you are subscribed to.

The Leagues endpoint provides you League information like its ID, Name, Country, Coverage etc.

The endpoint is often used in combination with the Season or Seasons Includes. Where the Season include returns information about the active Season only, the Seasons Include returns information about all seasons available for the specific Leagues.

GET All Leagueschevron-rightGET League by IDchevron-rightSearch Leagues by Namechevron-right

circle-info

Check this endpoint in Postman.

GET League by ID

hashtag
GET League by ID

https://soccer.sportmonks.com/api/v2.0/leagues/{ID}

Endpoint details

hashtag
Parameters

hashtag
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:

hashtag
Example response

circle-info

Check this endpoint in Postman.

GET Leagues by Country ID

hashtag
GET League by Country ID

https://soccer.sportmonks.com/api/v2.0/countries/{ID}/leagues

Endpoint details

hashtag
Parameters

hashtag
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:

hashtag
Example response

circle-info

Check this endpoint in Postman.

GET All Leagues

hashtag
GET All Leagues

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

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

Authorization

API Key

Pagination

NO

Allowed nested includes

2

Available parameters

include

Enrich the API with more data and/or nested includes. Can be used by adding &include= etc. to your request url.

Field

Description

data

Opens an array of data you've requested

id

A unique league id

https://soccer.sportmonks.com/api/v2.0/leagues/8?api_token={API_TOKEN}
Includeschevron-right
arrow-up-right
"data": {
        "id": 8,
        "active": true,
        "type": "domestic",
        "legacy_id": 29,
        "country_id": 462,
        "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/8/8.png",
        "name": "Premier League",
        "is_cup": false,
        "is_friendly": false,
        "current_season_id": 18378,
        "current_round_id": null,
        "current_stage_id": 77453700,
        "live_standings": true,
        "coverage": {
            "predictions": true,
            "topscorer_goals": true,
            "topscorer_assists": true,
            "topscorer_cards": true
        }
    },

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

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

Authorization

API Key

Pagination

NO

Allowed nested includes

2

Available parameters

include

Enrich the API with more data and/or nested includes. Can be used by adding &include= etc. to your request url.

Field

Description

data

Opens an array of data you've requested

id

A unique league id

https://soccer.sportmonks.com/api/v2.0/countries/462/leagues?api_token={API_TOKEN}
Includeschevron-right
arrow-up-right
    "data": [
        {
            "id": 8,
            "active": true,
            "type": "domestic",
            "legacy_id": 29,
            "country_id": 462,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/8/8.png",
            "name": "Premier League",
            "is_cup": false,
            "is_friendly": false,
            "current_season_id": 18378,
            "current_round_id": null,
            "current_stage_id": 77453700,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },
        {
            "id": 9,
            "active": true,
            "type": "domestic",
            "legacy_id": 30,
            "country_id": 462,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/9/9.png",
            "name": "Championship",
            "is_cup": false,
            "is_friendly": false,
            "current_season_id": 18432,
            "current_round_id": null,
            "current_stage_id": null,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },
        {
            "id": 12,
            "active": true,
            "type": "domestic",
            "legacy_id": 34,
            "country_id": 462,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/12/12.png",
            "name": "League One",
            "is_cup": false,
            "is_friendly": false,
            "current_season_id": 18433,
            "current_round_id": null,
            "current_stage_id": null,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },
        {
            "id": 14,
            "active": true,
            "type": "domestic",
            "legacy_id": 32,
            "country_id": 462,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/14/14.png",
            "name": "League Two",
            "is_cup": false,
            "is_friendly": false,
            "current_season_id": 18434,
            "current_round_id": null,
            "current_stage_id": null,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },

API Key

Pagination

YES

Allowed nested includes

2

hashtag
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.

hashtag
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:

hashtag
Example response

https://soccer.sportmonks.com/api/v2.0/leagues?api_token={API_TOKEN}
 "data": [
        {
            "id": 2,
            "active": true,
            "type": "cup_international",
            "legacy_id": 11,
            "country_id": 41,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/2.png",
            "name": "Champions League",
            "is_cup": true,
            "is_friendly": false,
            "current_season_id": 18346,
            "current_round_id": null,
            "current_stage_id": 77453623,
            "live_standings": true,
            "coverage": {
                "predictions": false,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },
        {
            "id": 5,
            "active": true,
            "type": "cup_international",
            "legacy_id": 12,
            "country_id": 41,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/5.png",
            "name": "Europa League",
            "is_cup": true,
            "is_friendly": false,
            "current_season_id": 18629,
            "current_round_id": null,
            "current_stage_id": 77454501,
            "live_standings": true,
            "coverage": {
                "predictions": false,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },
        {
            "id": 8,
            "active": true,
            "type": "domestic",
            "legacy_id": 29,
            "country_id": 462,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/8/8.png",
            "name": "Premier League",
            "is_cup": false,
            "is_friendly": false,
            "current_season_id": 18378,
            "current_round_id": null,
            "current_stage_id": 77453700,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },
        {
            "id": 9,
            "active": true,
            "type": "domestic",
            "legacy_id": 30,
            "country_id": 462,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/9/9.png",
            "name": "Championship",
            "is_cup": false,
            "is_friendly": false,
            "current_season_id": 18432,
            "current_round_id": null,
            "current_stage_id": null,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }
        },

Field

Description

data

Opens an array of data you've requested

id

A unique league id

circle-info

Check this endpoint in Postman. arrow-up-right

https://soccer.sportmonks.com/api/v2.0/leagues

Endpoint details

Authorization

Includeschevron-right
arrow-up-right

Search Leagues by Name

This endpoint returns an array of Leagues that meet your search criteria. Note that it will not return Leagues that are not covered by your subscription plan. The Leagues endpoint provides League information like its ID, Name, Country, Coverage etc.

hashtag
Search League by Name

Run in Postman
here
Run in Postman
here
Run in Postman

Authorization

API Key

Pagination

NO

Allowed nested includes

2

hashtag
Parameters

Available parameters

include

Enrich the API with more data and/or nested includes. Can be used by adding &include= etc. to your request url.

hashtag
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:

hashtag
Example response

https://soccer.sportmonks.com/api/v2.0/leagues/search/premier?api_token={API_TOKEN}
"data": [
        {
            "id

Field

Description

data

Opens an array of data you've requested

id

A unique league id

circle-info

Check this endpoint in Postman. arrow-up-right

https://soccer.sportmonks.com/api/v2.0/leagues/search/{league_name}

Endpoint details

Includeschevron-right

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

Run in Postman
"
:
8
,
"active": true,
"type": "domestic",
"legacy_id": 29,
"country_id": 462,
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/8/8.png",
"name": "Premier League",
"is_cup": false,
"is_friendly": false,
"current_season_id": 18378,
"current_round_id": null,
"current_stage_id": 77453700,
"live_standings": true,
"coverage": {
"predictions": true,
"topscorer_goals": true,
"topscorer_assists": true,
"topscorer_cards": true
}
},
{
"id": 32,
"active": true,
"type": "domestic_cup",
"legacy_id": 474,
"country_id": 462,
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/0/32.png",
"name": "Premier League Cup",
"is_cup": true,
"is_friendly": false,
"current_season_id": 16589,
"current_round_id": null,
"current_stage_id": null,
"live_standings": false,
"coverage": {
"predictions": false,
"topscorer_goals": true,
"topscorer_assists": true,
"topscorer_cards": true
}
},
{
"id": 35,
"active": true,
"type": "domestic",
"legacy_id": 290,
"country_id": 462,
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/3/35.png",
"name": "Premier League U21",
"is_cup": false,
"is_friendly": false,
"current_season_id": null,
"current_round_id": null,
"current_stage_id": null,
"live_standings": false,
"coverage": {
"predictions": false,
"topscorer_goals": true,
"topscorer_assists": true,
"topscorer_cards": true
}
},
{
"id": 38,
"active": true,
"type": "domestic_cup",
"legacy_id": null,
"country_id": 462,
"logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/6/38.png",
"name": "Premier League International Cup",
"is_cup": true,
"is_friendly": false,
"current_season_id": 16558,
"current_round_id": null,
"current_stage_id": null,
"live_standings": false,
"coverage": {
"predictions": false,
"topscorer_goals": true,
"topscorer_assists": true,
"topscorer_cards": true
}
},

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

Run in Postman