Provides data about Coronavirus outbreak in India. Includes number of confirmed cases, Cured/Dischared/Migrated number and the number of Deaths.
- This API collects data direclty from Ministry of Health and Family Welfare
All endpoints are located at https://dsd7azv2bl.execute-api.ap-south-1.amazonaws.com/production and are accessible via https. For instance: you can get data per state by using this URL: https://dsd7azv2bl.execute-api.ap-south-1.amazonaws.com/production/data
You can open the URL in your browser to further inspect the response or you can make this curl call in your terminal to see the prettified response:
curl https://dsd7azv2bl.execute-api.ap-south-1.amazonaws.com/production/data | json_pp
GET /data
"Andaman and Nicobar Islands": {
"cured_or_discharged_or_migrated": "0",
"death": "0",
"helpline": "03192-232102",
"total_confirmed_cases": "0",
},
...
Response Item | Description | Type |
---|---|---|
India_coronavirus | The parent key that contains all affected states | Object |
{state} | The state key that contains the data of that affected state | Object |
total_confirmed_cases | The number of confirmed cases | String |
cured_or_discharged_or_migrated | The number of People who have been Cured/Discharged/Migrated | String |
death | The number of People who have Died | String |
helpline | The helpline number of that affected state | String |
GET /
helplines": {
"Andaman and Nicobar Islands": "03192-232102",
"Andhra Pradesh": "0866-2410978",
"Arunachal Pradesh": "9436055743",
"Assam": "6913347770",
"Bihar": "104",
...
}
Since this API relies upon data that is scraped from an HTML table, there are sometimes code changes that need to be done based on the structural changes done on the website
- Python (3.8)
- Flask
This data is provided to the public strictly for educational and academic research purposes. The API relies upon publicly available data from single or multiple sources, that do not always agree. We hereby disclaim any and all representations and warranties with respect to the API, including accuracy, fitness for use, and merchantability. Reliance on the API for medical guidance or use of the API in commerce is strictly prohibited.
See LICENSE for the license. Please link to this repo somewhere in your project :)