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 20 Next »

Resource information

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

Description

Returns a list of all available areas (continents and countries)
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 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
areas > area
idUnique identifier for the area
area_codeThree character area code e.g. GER, POL, FRA
name

Name of the area. Possible translation of the attribute

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