Get country details from ISO2 code

GET https://api.countrystatecity.in/v1/countries/[ciso]

Security

This api use API KEY as an authentication method.

  • Name: X-CSCAPI-KEY
  • In: header

Request Parameters

NameLocated inDescriptionRequiredType
cisoURLISO2 Code of CountryRequiredstring

Response

CodeDescription
200Return a details of country
401Unauthorized.
404Not Found.

Example Success Response

{
"id": 101,
"name": "India",
"iso3": "IND",
"iso2": "IN",
"phonecode": "91",
"capital": "New Delhi",
"currency": "INR",
"native": "भारत",
"emoji": "🇮🇳",
"emojiU": "U+1F1EE U+1F1F3"
}

Example Error Response

{
"error'": "Unauthorized. You shouldn't be here."
}

Example Not Found Response

{
"error'": "Country not found."
}
Last updated on by Darshan Gada