2019 Novel Coronavirus (nCoV) Data Repository, provided by JHU CCSE removed the support of recovered cases. The /recovered endpoint was removed !
This is a fast (< 200ms) and basic API for tracking development of the new coronavirus (2019-nCoV). It's written in Python using 🍼 Flask and also contains historical data 📈. I've also programmed a skeduler on the app to refresh the data every 10 minutes.
All requests must be made to the base url: https://covid19api.herokuapp.com/. You can try it out in your browser to further inspect responses.
Getting confirmed cases, deaths, and recoveries:
GET /{ "latest": { ... }, "confirmed": { ... }, "deaths": { ... } }Getting just confirmed:
GET /confirmed{ "latest": 418678, "locations": [ ... ] }Getting just deaths:
GET /deaths{ "latest": 18625, "locations": [ ... ] }Getting just latest data:
GET /latest{ "confirmed": 418678, "deaths": 18625 }The data comes from the 2019 Novel Coronavirus (nCoV) Data Repository, provided by JHU CCSE. It is programmatically retrieved, re-formatted and stored in the server for every 10 minutes.
You will need the following things properly installed on your computer.
git clone https://github.com/Omaroid/Covid-19-API.gitcd Covid-19-Apipip install -r requirements.txt
python app.py- Visit your app at http://localhost:5000.
- Create a Heroku account
- Create a Heroku application
heroku logingit initheroku git:remote -a <AppName>git add .git commit -am "first commit"git push heroku master
- Visit your application webpage
https://<AppName>.herokuapp.com/
The data is available to the public strictly for educational and academic research purposes.