Resource information
URL | https://api. |
---|
statscore.com/v2/competitions/{competition_id} |
Method | GET |
---|---|
Description | Returns |
data for a single competition |
Cache | 60 seconds |
---|---|
Authorization required | Yes |
Method parameters
Name | Data type | Description |
---|---|---|
competition_id | xsd:int | REQUIRED. The requested competition identifier |
Query parameters
Name | Data type | Description |
---|---|---|
token | xsd:string | REQUIRED. |
More information concerning |
authorization in API introduction section | ||
lang | xsd:string | Determines the language for the output data. |
The complete list of possible languages can be retrieved using the API resource: languages.index |
...
Method calling examples
Link | Description |
---|---|
https://api. |
statscore.com/v2/competitions/1528 |
?token={{YOUR_TOKEN}} | Returns detailed data for a single competition |
e.g. Premier League in JSON format |
Output elements
.competition
competitions | |
competitions > competition |
---|
Mini name of the competition. Max 3 characters length i.e.: U19
Competition gender. Possible values:
- male
- female
- mixed
Competitions type. Possible values:
- country_league - i.e.: Premier Division
- country_cups - i.e.: FA Cup
- international - i.e.: World Cup
- international_clubs - i.e.: Champions League
- friendly - friendly matches
- individual - for speedway individual competitions such as Speedway GP
- team - for speedway national competitions
- single - for tennis competitions
- double - for tennis competitions
- mixed - for tennis competitions
- undefined - other
Type of area in which competitions are played. Possible values:
- country
- international
..seasons
...season
Determines the season year e.g:
- 1970
- 1970/71
- 1971
- 1971/72
- 2000
- 2000/01
- 2014
- 2014/15
| |||||||
competitions > competition > seasons | |||||||
---|---|---|---|---|---|---|---|
competitions > competition > seasons > season | |||||||
|