Get a list of Countries

GET https://api.countrystatecity.in/v1/countries

Security

This api use API KEY as an authentication method.

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

Request Parameters

No parameters

Response

CodeDescription
200Return a list of countries
401Unauthorized.

Example Success Response

[
{
"id": 101,
"name": "India",
"iso2": "IN"
},
...
]

Example Error Response

{
"error'": "Unauthorized. You shouldn't be here."
}
Last updated on by Darshan Gada