How about https://country.register.gov.uk/ ? It’s an authoritative list of countries recognized by the UK Foreign Office. In Beta but already used by the UK Parliament ePetition site. More registers launching soon and they are exactly as you describe: restful APIs which do not require fancy authentication.