This is a basic API for tracking development of the new coronavirus (COVID-19, SARS-CoV-2). It's written in python using ๐ผ Flask.
All requests must be made to the base url: https://corona-covid-19-map.appspot.com (e.g: https://corona-covid-19-map.appspot.com/all). You can try them out in your browser to further inspect responses.
Getting confirmed cases, deaths, and recoveries:
GET /all{
"confirmed": {
"latest": ...,
"locations": {
"Mainland China": [ ... ],
"US": [...],
...
},
"last_updated": "2020-03-07T18:08:58.432242Z"
},
"deaths": {
"latest": ...,
"locations": {
"Mainland China": [ ... ],
"US": [...],
...
},
"last_updated": "2020-03-07T18:08:58.432242Z"
},
"recovered": {
"latest": ...,
"locations": {
"Mainland China": [ ... ],
"US": [...],
...
},
"last_updated": "2020-03-07T18:08:58.432242Z"
},
"latest": {
"confirmed": ...,
"deaths": ...,
"recovered": ...
},
"source": "https://github.com/ManjurHKhan/coronavirus-tracker-api",
"comment": "Forked from https://github.com/ExpDev07/coronavirus-tracker-api"
}Getting just confirmed:
GET /confirmed{
"confirmed": {
"latest": ...,
"locations": {
"Mainland China": [ ... ],
"US": [...],
...
},
"last_updated": "2020-03-07T18:08:58.432242Z"
},
"source": "https://github.com/ManjurHKhan/coronavirus-tracker-api",
"comment": "Forked from https://github.com/ExpDev07/coronavirus-tracker-api"
}Getting just deaths:
GET /deaths{
"deaths": {
"latest": ...,
"locations": {
"Mainland China": [ ... ],
"US": [...],
...
},
"last_updated": "2020-03-07T18:08:58.432242Z"
},
"source": "https://github.com/ManjurHKhan/coronavirus-tracker-api",
"comment": "Forked from https://github.com/ExpDev07/coronavirus-tracker-api"
}Getting just recoveries:
GET /recovered{
"recovered": {
"latest": ...,
"locations": {
"Mainland China": [ ... ],
"US": [...],
...
},
"last_updated": "2020-03-07T18:08:58.432242Z"
},
"source": "https://github.com/ManjurHKhan/coronavirus-tracker-api",
"comment": "Forked from https://github.com/ExpDev07/coronavirus-tracker-api"
}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 cache for one hour.
These are the available API wrappers created by the community. They are not neccecarily maintained by any of this project's authors or contributors.
You will need the following things properly installed on your computer.
git clone https://github.com/ManjurHKhan/coronavirus-tracker-api.gitcd coronavirus-tracker-apipip3 install
dev_appserver.py .- It will tell you what port to run it on.
python3 main.py- Visit your app at http://localhost:8080.
# login to be able to deploy the app
$ gcloud auth login
# create new GCP project (change name here)
$ export PROJECT_ID=simple-gae-project-2134
$ gcloud projects create $PROJECT_ID
# set this project to current project
$ gcloud config set project $PROJECT_ID
# check your config
$ gcloud config list
# you need to create the app first in the specific region.
# omit the region to choose it interactivelly.
$ gcloud app create --region=us-east1
# now deploy the code
$ gcloud app deploy
# open app in the browser
$ gcloud app browse
# tail live log
$ gcloud app logs tail -s defaultThanks goes to these wonderful people (emoji key):
ExpDev ๐ป ๐ ๐ง |
bjarkimg ๐ฌ |
Bost ๐ |
The data is available to the public strictly for educational and academic research purposes.