Public API Version is also available. Links are below:
http://countrystatecity.org/
http://countrystatecity.org/docs/gettingstarted
http://api.countrystatecity.org/swagger/
Request API key here
Country City Data Service
This service has data of all Countries and their States, Cities. This allows user to use this as service and provides the public server actions, service actions and exposed rest endpoints to use this data.
Let's go over all Service, Server Actions and Rest Endpoints
Rest Documentation
https://your-personal-environment/CountryStateCityData/rest/v1/