Versions Compared

Key

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

Resource information

URLhttps://api.softnetsport.com/v2/sports
XSDhttps://api.softnetsport.com/assets/API/docs/xsd/sports.index.xsd
MethodGET

Description

Returns a list of all available sports
Cache60 seconds
Authorization requiredNo

Method parameters

NameTypeDescription
There are no method parameters in this
resource 
resource 

Query parameters

maximum
NameTypeDescription
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 

Determines maximum number of returned records on page. Used in paginated data. Default value is 100

Possible values: 5, 10, 25, 50, 100, 250, 500

timestampxsd:unix_timestampSelection date, format UNIX_TIMESTAMP. Only changes that occured or were updated after this timestamp will be returned

Method calling examples

Link
Description
https://api.softnetsport.com/v2/sports.xmlReturns a list of all sports in XML format
https://api.softnetsport.com/v2/sportsReturns a list of all sports in JSON format

Output elements

sports
.sport
idUnique identifier for the sport
nameName of the sport. Possible translation of the attribute
urlName that is used in the url address in API
active

Sports status that shows if the sport is currently supported in  API.
Possible values:

  • yes - sport is supported
  • no - sport will be supported in the near future
has_timer

Defines if sport use timer.
Possible values:

  • yes
  • no
incidents_positions

Defines if sport uses incidents positions.
Possible values:

  • yes
  • no
utInformation about the date and time of when the record was last updated. Format UNIX_TIMESTAMP