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_idxsd:intDetermines sport to which
season
belongs. softnetSPORT API provides the following sports: sports.indexcompetition
_idxsd:int
Determines competition to which competition belongs. softnetSPORT API provides the following competitions: competitions.indexseason_idxsd:string
REQUIRED. Determines season to which stages belongs
. softnetSPORT API provides the following seasons: seasons.index
timestamp
timestampxsd
xsd: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

 

.stage
 
idUnique identifier for the stage
nameName of the stage
start_dateDate when stage begins. Format YYYY-MM-DD
end_dateDate when stage ends. Format YYYY-MM-DD
season_idUnique identifier for the season to which stage belongs
sortThe sort order for stage
is_current

Possible values:

  • yes
  • no
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