Resource information
...
a list of all available stages played in |
...
Package
This method is included in the STATISTICS package.
...
a particular season |
Cache | 60 seconds |
---|
Authorization required | Yes |
---|
Method parameters
Name | Type | Description |
---|
There are no method parameters in this resource |
Query parameters
username. Assigned to you by softnetSPORT administrator. More information concerning authorization in API introduction section |
lang | xsd:string | Determines language for the output data. The complete list of possible languages can be retrieved using the API resource: languages.index
|
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 belongs. softnetSPORT API provides the following sports: sports.indexcompetitionDetermines competition to which competition belongs. softnetSPORT API provides the following competitions: competitions.index | season_id | xsd:string | REQUIRED. Determines season to which stages belongs |
. softnetSPORT API provides the following seasons: seasons.indextimestampxsdxsd:unix_timestamp | Selection date, format UNIX_TIMESTAMP. Only changes in |
seasons or which occured was were updated after this timestamp will be returned. |
Method calling examples
softnetsportseasons.xmlusername=softnetsportReturns 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
| |
---|
id | Unique identifier for the stage |
name | Name of the stage |
start_date | Date when stage begins. Format YYYY-MM-DD |
end_date | Date when stage ends. Format YYYY-MM-DD |
season_id | Unique identifier for the season to which stage belongs
|
sort | The sort order for stage |
is_current | Possible values: |
ut | Information about date and time when record was last updated. Format YYYY-MM-DD HH:MM:SS. UTC timezone. |
...
Output elements
|
---|
Include Page |
---|
| Competition node |
---|
| Competition node |
---|
|
|
competition > season |
---|
|
|
---|
|
---|
|