• Register

countries

A general API call to retrieve a list of countries. Check out our I/O Docs for a live demo of this operation.

Resource Information

Resource URL  https://api.tugo.com/v1/travelsafe/countries
Authentication API Key
Response Format JSON
HTTP Methods GET

Methods

GET

Request

Parameters

None

Sample

curl -i   -H 'Content-Type: application/x-www-form-urlencoded'  'https://api.tugo.com/v1/travelsafe/countries'  -H "X-Auth-API-Key:abcdefghijklmnopqrstuvw"

Response

Parameters

Key Type Description
array Collection of Country Returns a collection of Country objects

 

Country

Key Type Description
id string The country's referenced id string
name string The country's name

 

Sample

array[
   {
      "id":"AF",
      "name":"Afghanistan"
   },
   {
      "id":"AL",
      "name":"Albania"
   },
   {
      "id":"DZ",
      "name":"Algeria"
   },
   {
      "id":"AS",
      "name":"American Samoa"
   },
   {
      "id":"AD",
      "name":"Andorra"
   },
   {
      "id":"AO",
      "name":"Angola"
   },
   {
      "id":"AI",
      "name":"Anguilla"
   },
   {
      "id":"AQ",
      "name":"Antarctica"
   },
	.
	.
	.
	.
	.
	.
   {
      "id":"ZM",
      "name":"Zambia"
   },
   {
      "id":"ZW",
      "name":"Zimbabwe"
   }
]