WORLDOMETER for country data
Ministry of Health and Family Welfare(GOI) for Indian state's data
Make a get request for the type of data you want
For country data : https://covid19indapi.herokuapp.com/country
For Indian state's data : https://covid19indapi.herokuapp.com/india
for indian data
{
"data": [
{
"active": "0",
"confirmed": "33",
"deaths": "0",
"recovered": "33",
"state": "Andaman and Nicobar"
},
{
"active": "1341",
"confirmed": "3783",
"deaths": "64",
"recovered": "2378",
"state": "Andhra Pradesh"
}
],
"success": true
}
for country data
{
"data": [
{
"active_cases": "+1,380",
"country": "USA",
"new_cases": "+6,136",
"total_cases": "1,865,459",
"total_deaths": "107,313 ",
"total_recovered": "616,796"
},
{
"active_cases": "",
"country": "Brazil",
"new_cases": "+1,328",
"total_cases": "530,733",
"total_deaths": "30,079 ",
"total_recovered": "211,080"
},
{
"active_cases": "+11,108",
"country": "Russia",
"new_cases": "+8,863",
"total_cases": "423,741",
"total_deaths": "5,037 ",
"total_recovered": "186,985"
},
{
"active_cases": "N/A",
"country": "Spain",
"new_cases": "",
"total_cases": "286,718",
"total_deaths": "27,127 ",
"total_recovered": "N/A"
}
],
"success": true
}
Install all dependencies listed in requirements.txt file.
-
To install all dependencies run -
$ sudo -H pip3 install -r requirements.txt
-
Start the server
$ python app.py