Add country flags

Best solution is to import data from 3rd party API into your database. By this you do not need to rely on any API.

Your page performance will also be increased as it will reduce external request.

So you need to do one time job to fetch all the data from API, stores it into your database. For flag image, if API is providing you image, then it must be in base64 which you can directly store in your Database table.