Country State 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.
Public API Version is also available. Links are below:
www.countrystatecity.org/
www.countrystatecity.org/docs/gettingstarted
api.countrystatecity.org/swagger/
Request API key here
Server Actions:
These server actions allows to get Countries, States and Cities by ID/Code and by their respective states/cities.
Service Actions:
Provides the same functionalities as above server actions but as service actions.
Exposed Rest Endpoints
It also exposed all actions as rest endpoints. Documentation for rest can be found once installed at below location.
Rest Documentation
https://your-personal-environment/CountryStateCityData/rest/v1/