This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
developers:api:country [2014/10/16 13:05] Jaco van Wyk created |
developers:api:country [2014/10/17 10:20] Jaco van Wyk |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Countries ====== | ====== Countries ====== | ||
+ | ===== /v1/country/code/get ===== | ||
+ | |||
+ | |||
+ | Get the specified country. 'code' must be the iso2 code. | ||
+ | |||
+ | ===== Parameter listing ===== | ||
+ | |||
+ | ^Name ^Availability ^Description^ | ||
+ | |depth |get |The depth parameter signals the amount of data for the country that was provided. depth=0 is the highest level that provides full detail.| | ||
+ | |code |get |The unique ISO 2 code two letter code for the country, which is always specified in upper case.| | ||
+ | |iso2 |get |See 'code'.| | ||
+ | |iso3 |get |The unique ISO 3 code three letter code for the country, which is always specified in upper case.| | ||
+ | |name |get |The name of the country.| | ||
+ | |||
+ | ===== /v1/country/list ===== | ||
+ | |||
+ | List all countries. | ||
+ | |||
+ | Results can optionally be filtered by the filters listed below. | ||
+ | |||
+ | ===== List Countries Filters ===== | ||
+ | |||
+ | ^Name ^Availability ^Description^ | ||
+ | |iso2 |get |The iso2 code (see above) of the counties.| | ||
+ | |page |get |The page of results to return.| | ||
+ | |perpage |get |The number of results per page to return.| |