Skip to content
English
  • There are no suggestions because the search field is empty.

How can I get details about the competition?

This article helps you find basic information about the competition. It's helpful for getting started with SportsAPI.

Step-by-step guide:

Get a list of areas

  • To get a list of areas go to the areas.index method

api.statscore.com/v2/areas?token=<<YOUR TOKEN>>

 

Get a list of sports

  • To get a list of sports go to the sports.index method

api.statscore.com/v2/sports?token=<<YOUR TOKEN>>

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

api.statscore.com/v2/competitions?token=<<YOUR TOKEN>>&area_id=5&sport_id=5

  • To see all available seasons you need to open wanted competition and season

api.statscore.com/v2/competitions/2137?token=<<YOUR TOKEN>>

api.statscore.com/v2/seasons/33881?token=<<YOUR TOKEN>>

  •  Finally as we know sport ID and season ID we can open the list of standings

 

api.statscore.com/v2/standings?token=<<YOUR TOKEN>>&sport_id=5&season_id=33881

  •  To see the table for example for top scorers we just need to go to standigs.show method

api.statscore.com/v2/standings/47726?token=<<YOUR TOKEN>>

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.

Useful links:

How can I get competition id