All Leagues
GETAll Leagues
The Get All Leagues Endpoint gives you a paginated list of all leagues available in your plan.
Description
Headers | application/json |
Endpoint Example | https://api.sportdatastreamapi.com/leagues/?user={USERNAME}&token={TOKEN}&t=list |
Endpoint | https://api.sportdatastreamapi.com/leagues/?user=null&token=null&t=list |
Paginated | Yes, 100 leagues per page |
Example Response
{
"data": [
{
"id": 799,
"name": "Ligue 1",
"is_cup": 0,
"is_amateur": 0,
"continent_id": 3,
"country_id": 9,
"current_season_id": 8513,
"current_round_id": 29659,
"current_stage_id": null,
},
{
"id": 798,
"name": "Algeria Cup",
"is_cup": 1,
"is_amateur": 0,
"continent_id": 3,
"country_id": 9,
"current_season_id": 9523,
"current_round_id": 7648,
"current_stage_id": null,
},
{
"id": 800,
"name": "Ligue 2",
"is_cup": 0,
"is_amateur": 0,
"continent_id": 3,
"country_id": 9,
"current_season_id": 10027,
"current_round_id": 29660,
"current_stage_id": null,
},
],
}