One resource that may work:
This API provides you with a daily updated list of country advisories. These advisories contain a risk value which describes how dangerous a country is from a travellers perspective. This data is available for every country and as fresh as this website.
They don't require a key, but ask ...
It is a bit tricky to find up to date data/ infos concerning the travel restrictions. Best place to look for infos is the health ministry website of the country in question. For example:
Tunisia : offers a pdf list updated continuously with 3 categories, each with each set of restrictions.
UK : publishes an up-to-date list of exempted countries (from self-...