Warning: Trying to access array offset on value of type bool in /home/forge/the-nerd.be/public/wp-content/themes/twentyfifteen/functions.php on line 538
List of countries and capitals of the world (json, xml, csv) - the-nerd

List of countries and capitals of the world (json, xml, csv)

For the upcoming release of iCapital 2.0 I needed a list of all the countries and capitals of the world in json format. I searched the web, but couldn’t find a proper solution until I found these lists on GitHub.

Sadly they only contained the countries of the world, so on a boring Sunday night, I’ve extended the list with all the capitals for those countries!

Next to the countries and the capitals, the lists also contain:

  • top-level domain (tld)
  • code ISO 3166-1 alpha-2 (cca2)
  • code ISO 3166-1 numeric (ccn3)
  • code ISO 3166-1 alpha-3 (cca3)
  • currency code(s)
  • calling code(s)
  • alternative spellings
  • relevance
  • region
  • subregion

Go check them out right here!

%d bloggers like this: