GET All Leagues by Team ID
Returns all the current and historical leagues from your requested team id.
https://api.sportmonks.com/v3/football/leagues/teams/{ID}{{
"data": [
{
"id": 501,
"sport_id": 1,
"country_id": 1161,
"name": "Premiership",
"active": true,
"short_code": "SCO P",
"image_path": "https://cdn.sportmonks.com/images/soccer/leagues/501.png",
"type": "league",
"sub_type": "domestic",
"last_played_at": "2024-08-05 19:00:00",
"category": 2,
"has_jerseys": false
},
{
"id": 513,
"sport_id": 1,
"country_id": 1161,
"name": "Premiership Play-Offs",
"active": true,
"short_code": "SCO P PO",
"image_path": "https://cdn.sportmonks.com/images/soccer/leagues/1/513.png",
"type": "league",
"sub_type": "play-offs",
"last_played_at": "2024-05-26 11:00:00",
"category": 2,
"has_jerseys": false
}Field
Description
Type
Name
Required?
Description
Static filters
Available on Entity
Description
Example
Dynamic filters
Available on Entity
Description
Example
Filters
Pagination
Parameters
Parameter
Required
Description
Example
Include depth
Include options
Related Entities
Postman
Code Example
Last updated
Was this helpful?