GET League by ID

GET Leagues by ID

https://cricket.sportmonks.com/api/v2.0/leagues/{ID}
Endpoint details
Authorization
API Key
Pagination
NO
Allowed nested includes
10

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.
fields[object]
Only return fields you are interested in. Simply add &fields[object]=id,name,code to your request url.
sort
One or comma separated list of fields to sort on. Can be used by adding &sort= to your request url.
Sort
You can sort on all fields.

Include options

season seasons country
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
https://cricket.sportmonks.com/api/v2.0/leagues/3/api_token={API_TOKEN}
"data": {
"resource": "leagues",
"id": 3,
"season_id": 507,
"country_id": 99474,
"name": "Twenty20 International",
"code": "T20I",
"image_path": "https://cdn.sportmonks.com/images/cricket/leagues/3/3.png",
"type": "phase",
"updated_at": "2021-02-10T09:22:22.000000Z"
}
Copy link