You could try scraping the CIA World Factbook, which should have all of that information. There's no formal API, but someone has written a scraper[0] that you could rerun to get newer data (or, for that matter, you could write your own scraper).<p>[0]: <a href="https://github.com/twigkit/worldfactbook-dataset" rel="nofollow">https://github.com/twigkit/worldfactbook-dataset</a>