[object Object]

Countries

Get a list of countries with ISO2, ISO3, Phonecode, Capital, Currency, Flag etc.

[object Object]

States

Get a list of states with ISO2 code and attached to its belonging country code.

[object Object]

Cities

Get a list of cities attached with state and country code, longitude and latitude information.

Examples

Quick snippets to get started with Country State City API

var headers = new Headers();
headers.append("X-CSCAPI-KEY", "API_KEY");
var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
fetch("https://api.countrystatecity.in/v1/countries", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));