I Found One More Easy ,Free And Unlimited To Use Easy Solution Where You Can Fetch The Info From API. Example
[https://liveapi.in/geo/country/][1] for fetching all countries and codes
[https://liveapi.in/geo/state/?country=US] for fetching all states or provinces or regions
for more details visit [liveapi.in/geo/]