Description
Returns the stages played in the seasons.
Package
This method is included in the STATISTICS package.
Parameters
Name | Type | Description |
---|---|---|
username | xsd:string | REQUIRED. Assigned to you by softnetSPORT administrator |
page | xsd:int | Determines offset of paginated data. Default value is 1 which means first page |
limit | xsd:int | Determines maximum number of returned records on page. Used in paginated data. Default value is 500. Possible values: 5, 10, 25, 50, 100, 250, 500 |
sport_id | xsd:int | Determines sport to which season belongs. softnetSPORT API provides the following sports: sports.index |
competition_id | xsd:int | Determines competition to which competition belongs. softnetSPORT API provides the following competitions: competitions.index |
year | xsd:string | Determines the season year f.e 2014/15, 2015. softnetSPORT API provides the following seasons years: seasons_years.index |
timestamp | timestampxsd:unix_timestamp | Selection date, format UNIX_TIMESTAMP. Only changes in seasons or stages which occured or was updated after this timestamp will be returned. |
Method calling examples
Link | Description |
---|---|
https://api.softnetsport.com/v2/seasons.xml?username=softnetsport | Returns the list of seasons names in XML format |
https://api.softnetsport.com/v2/seasons?username=softnetsport | Returns the list of seasons names in JSON format |
https://api.softnetsport.com/v2/seasons.xml?username=softnetsport&competition_id=1507 | Returns the seasons played in the competition - Primera Division |
https://api.softnetsport.com/v2/seasons.xml?username=softnetsport&sport_id=5 | Returns the all competitions seasons played in soccer |
https://api.softnetsport.com/v2/seasons.xml?username=softnetsport&season_name=2014/15 | Returns the all competitions seasons played in the season 2014/15. |
Output elements
.season | |
---|---|
id | Unique identifier for the season |
name | Name of the season f.e: Premiership 2014/15 |
competition_id | Identifier of the competition. softnetSPORT API provides the following competitions: competitions.index |
ut | Information about date and time when record was last updated. Format YYYY-MM-DD HH:MM:SS. UTC timezone. |