League by ID

GET

The Get League by ID Endpoint gives you data from a specific League / tournament.

Description

Headersapplication/json
Endpoint Example https://api.sportdatastreamapi.com/leagues/?user=USERNAME&token=TOKEN&t=info&id=LEAGUE_ID
Endpoint https://api.sportdatastreamapi.com/leagues/?user=null&token=null&t=info&id=594
PaginatedNo, this endpoint is not paginated

Example Response

{
  "data": {
    "id": 594,
    "name": "Bundesliga",
    "is_cup": 0,
    "is_amateur": 0,
    "id_current_season": 406,
    "id_current_stage": null,
    "id_current_round": 2019,
    "continent": {
      "id": 2,
      "name": "Europe"
    },
    "country": {
      "id": 4,
      "name": "Germany",
      "cc": "de"
    },
    "seasons": [
      {
        "id": 406,
        "name": "19/20",
        "is_current": 1
      },
      {
        "id": 407,
        "name": "18/19",
        "is_current": 0
      }
    ]
  }
}