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.

softnetSPORT API provides the following languages

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

season_idxsd:
string
int
 
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/stages
.xml
?
username=softnetsportReturns the list of stages in XML formathttps://api.softnetsport.com/v2/stages?username=softnetsportReturns the list of stages in JSON formathttps://api.softnetsport.com/v2/stages.xml?username=softnetsport
token={{YOUR_TOKEN}}&season_id=2212Returns the stages played in the season Primera Division 2014/15

Output elements


 
competition
.stage

Include Page

 

Competition node

idUnique identifier for the stagenameName of the stagestart_dateDate when stage begins. Format YYYY-MM-DDend_dateDate when stage ends. Format YYYY-MM-DDseason_idUnique identifier for the season to which stage belongs
show_table

Determines if the stage contains a table. Possible values:

  • yes
  • no
groups_nrThe amount of groups that are part of the stagesortThe sort order for the stage. Sorting direction is ascendingis_current

Possible values:

  • yes
  • no
utInformation about date and time when record was last updated. Format YYYY-MM-DD HH:MM:SS. UTC timezone.

 

...

Competition node

competition > season

Include Page
Season node
Season node

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

Include Page
Stage node
Stage node