Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource information

URLhttps://api.statscore.com/v2/stages
MethodGET

Description

Returns

...

a list of all available stages played in

...

Package

This method is included in the  STATISTICS package.

...

a particular season
Cache60 seconds
Authorization requiredYes

Method parameters

NameTypeDescription
There are no method parameters in this resource 

Query parameters

NameTypeDescription
username
tokenxsd:stringREQUIRED.
Assigned to you by softnetSPORT administrator
 More information concerning authorization in API introduction section
langxsd:string

Determines language for the output data. The complete list of possible languages can be retrieved using the API resource: languages.index

pagexsd:intDetermines offset of paginated data. Default value is 1 which means first page
limitxsd: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
season_idxsd:intREQUIRED. Determines
sport to which
season
belongs. softnetSPORT API provides the following sports: sports.indexcompetition_idxsd:intDetermines competition
to which
competition belongs. softnetSPORT API provides the following competitions: competitions.indexyearxsd:stringDetermines the season year f.e 2014/15, 2015. softnetSPORT API provides the following seasons years: seasons_years.indextimestamptimestampxsd:
stages belongs
timestampxsd:unix_timestampSelection date, format UNIX_TIMESTAMP. Only changes in
seasons or
stages
which occured
that occurred or
was
were updated after this timestamp will be returned.

Method calling examples

Link
Description
https://api.
softnetsport
statscore.com/v2/
seasons.xml
stages?
username=softnetsportReturns the list of seasons names in XML formathttps://api.softnetsport.com/v2/seasons?username=softnetsportReturns the list of seasons names in JSON formathttps://api.softnetsport.com/v2/seasons.xml?username=softnetsport&competition_id=1507Returns the seasons played in the competition - Primera Divisionhttps://api.softnetsport.com/v2/seasons.xml?username=softnetsport&sport_id=5Returns the all competitions seasons played in soccerhttps://api.softnetsport.com/v2/seasons.xml?username=softnetsport&season_name=2014/15Returns the all competitions seasons played in the season 2014/15.

Output elements

 

.season
 
idUnique identifier for the season
nameName of the season f.e: Premiership 2014/15
competition_idIdentifier of the competition. softnetSPORT API provides the following competitions: competitions.index
utInformation about date and time when record was last updated. Format YYYY-MM-DD HH:MM:SS. UTC timezone.

 

...

token={{YOUR_TOKEN}}&season_id=2212Returns the stages played in the season Primera Division 2014/15

Output elements


competition

Include Page
Competition node
Competition node

competition > season

Include Page
Season node
Season node

competition > season > stages
competition > season > stages > stage

Include Page
Stage node
Stage node