How can I get details about the legaue/competition
Problem
I would like to get the details about a league
Solution
Get a list of areas
To get a list of areas go to the areas.index method
Get a list of sports
To get a list of sports go to the sports.index method
Sports with attribute active="yes" are currently supported by STATSCORE
Get a list of competitions
To get a list of competitions go to the competitions.index method with specified parameters: area_id and sport_id.
To see all available seasons you need to open wanted competition
- ...and season
- Finally as we know sport ID and season ID we can open the list of standings
- To see the table for example for Top scorers we just need to go to standigs.show method
Please note that is just an example of details path. Every time you should take into account the goal you want to achieve through the query.
Related articles