Versions Compared

Key

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

...

Resource information

...

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

Description

Returns areas used in the softnetSPORT API (continents, countries)

...

Cache60 seconds
Authorization requiredNo

 

Method parameters

NameTypeDescription
There are no method parameters in this resource 

Query parameters

NameTypeDescription
langxsd:string

Determines the language for the output data. softnetSPORT API provides the following languages: 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

parent_area_idxsd:intIdentifier which is parent to the selected area
timestampxsd:unix_timestampSelection date, format UNIX_TIMESTAMP. Only changes that occurred or were updated after this timestamp will be returned

Method calling examples

LinkDescription
https://api.softnetsport.com/v2/areas.xmlReturns a list of all areas and sub-areas in XML format
https://api.softnetsport.com/v2/areasReturns a list of all areas and sub-areas in JSON format

https://api.softnetsport.com/v2/areas.xml?parent_area_id=209

Returns a list of the areas which are sub-areas of area_id = 209 (Europe)

Output elements

.areas 
..area 
idUnique identifier for the area.
area_codeThree character area code e.g. GER, POL, FRA
nameName of the area
parent_area_idIdentifier for the parent area e.g. parent area for Poland is Europe and parent area for Europe is World
utInformation about the date and time of when the record was last updated. Format UNIX_TIMESTAMP