Teleport public APIs

Country Resource

The detailed information for a country

Properties

  • currency_code CurrencyCode(string) - The code of the main currency used by the country
  • geoname_id GeonameID(integer, int32) - The GeoNames.org ID of the country
  • iso_alpha2 ISOAlpha2Code(string) - The ISO-3166-1 alpha-2 code for the country
  • iso_alpha3 ISOAlpha3Code(string) - The ISO-3166-1 alpha-3 code for the country
  • name string - The name of the country
  • population Population(integer, int64) - The population estimate for the country

Relations

  • country:admin1_divisions resource: Admin1DivisionList - The level 1 administrative divisions of the country
  • country:continent resource: Continent - The continent the country is located on
  • country:salaries resource: CountrySalaries - Salary statistics for the country

Example

{
    "_links": {
        "country:admin1_divisions": {
            "href": "https://api.teleport.org/api/countries/iso_alpha2:US/admin1_divisions/"
        }, 
        "country:continent": {
            "href": "https://api.teleport.org/api/continents/geonames:NA/", 
            "name": "North America"
        }, 
        "country:salaries": {
            "href": "https://api.teleport.org/api/countries/iso_alpha2:US/salaries/"
        }, 
        "curies": [
            {
                "href": "https://developers.teleport.org/api/resources/Location/#!/relations/{rel}/", 
                "name": "location", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/City/#!/relations/{rel}/", 
                "name": "city", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/UrbanArea/#!/relations/{rel}/", 
                "name": "ua", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Country/#!/relations/{rel}/", 
                "name": "country", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Admin1Division/#!/relations/{rel}/", 
                "name": "a1", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Timezone/#!/relations/{rel}/", 
                "name": "tz", 
                "templated": true
            }
        ], 
        "self": {
            "href": "https://api.teleport.org/api/countries/iso_alpha2:US/"
        }
    }, 
    "currency_code": "USD", 
    "geoname_id": 6252001, 
    "iso_alpha2": "US", 
    "iso_alpha3": "USA", 
    "name": "United States", 
    "population": 310232863
}