coronavirus worldwide statistics API
This api scrapes data from worldometers for every request (except /daily, it uses file i/o) which makes the provided data very accurate at the cost of loading time.
The api will crash in the future since the website gets design/layout changes almost every week, but i'm gonna keep an eye and update the scraper whenever some big change -that might cause problems- happens :).
The daily data in /daily is updated only once a day at 23:58PM GMT0 which makes it relatively faster than other routes since the API doesn't make any http requests.
npm install
Running this requires version ^14.3 of nodejs (current) to use some of its latest features, make sure you have it.
node server.js
access http://localhost:5000
example http://localhost:5000/Morocco