GET /census/countries

GET /census/countries

Returns a list of all known countries

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • countries array[object]
      Hide countries attributes Show countries attributes array[object]
      • country_code string

        ISO 3166-1 alpha-2 country code identifier

      • country_name string
  • 500

    Server Error

GET /census/countries
curl \
 -X GET https://api.cosmily.com/api/v1/census/countries \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "countries": [
    {
      "country_code": "US",
      "country_name": "United States of America"
    }
  ]
}
Response examples (200)
{
  "countries": [
    {
      "country_code": "US",
      "country_name": "United States of America"
    }
  ]
}