Our great sponsors
-
public-apis
Discontinued A collective list of free APIs such as http://ipstack.com, http://fixer.io/, https://numverify.com/, etc. for use in software and web development. [Moved to: https://github.com/public-apis/public-apis] (by toddmotto)
-
ISO-3166-Countries-with-Regional-Codes
ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm also familiar with the list of APIs https://github.com/toddmotto/public-apis but I couldn't find an API that does what I want (although I might have looked in the wrong place, so feel free to correct me). I've obviously also searched for "API iso code" on reddit but nothing came up.
You can download the country code data from https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes
The issue with your requirement here is not only do you want to probably account for country code and name, but aliases. I can imagine there's a dataset out there but you'll want to build your own algorithm to do the searching, or actually, I have a really old project that might be sufficient already called Fuzzle.