This repository contains the full list of ISO 3166-1 countries and ISO 3166-2 subdivisions in CSV Text Files (Comma Delimited). It includes states/regions code, name, language and parent subdivision when it makes sense.
This works is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).
It is free for personal or commercial use with attribution required by mentioning the use of this work as follows:
"This site or product includes Ipregistry ISO 3166 data available from https://ipregistry.co."