Seasons by League id

get /v2/leagues/:id/seasons

The Season endpoints return information such as the name of the season, the League id which the Season belongs, the starting year and so on. You may use it to fetch the seasonId of your interest and then use it to query, for example, all the fixtures related to that season. As you may have noticed, many endpoints give you the possibility to filter data by the Season id.

The endpoint /v2/leagues/:id/seasons returns all the Seasons that belong to a League

How to make a request?

Is there any sample code?

      curl -G ''
--header 'Authorization: ***Authorization***'
--data-urlencode 'expand= ***expand***'