How can I get list of seasons?
This article will help you find the season ID, useful for collecting data for specific season.
Step-by-step guide:
-
To get a list of seasons go to the seasons.index method
https://api.statscore.com/v2/seasons?token=<<YOUR TOKEN>>
Seasons with attribute actual="yes" are current
- You can filter the list of seasons for specific competition using competition_id as a parameter.
https://api.statscore.com/v2/seasons?token=<<YOUR TOKEN>>&competition_id=1528
- There is also possible to get same list by competitions.show method
https://api.statscore.com/v2/competitions/1528?token=<<YOUR TOKEN>>
Here is the list of seasons for English Premier League.
Useful links:
How can I get competition id