Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 32 Next »

Resource information

URLhttps://api.softnetsport.com/v2/sports
MethodGET

Description

Returns a list of all available sports
Cache60 seconds
Authorization requiredNo

Method parameters

NameTypeDescription
There are no method parameters in this resource 

Query parameters

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 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
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
template

Internal attribute.

Possible values:

  • default
  • fixed_incidents
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
  • No labels