Edit: This API is deprecated! It has instead been merged with https://github.com/ExpDev07/coronavirus-tracker-api
Simple API for tracking the coronavirus (COVID-19, SARS-CoV-2), with per county data for each state
Requests should go to the base url: https://coronavirus-county-api.herokuapp.com/
(e.g: https://coronavirus-county-api.herokuapp.com/latest)
GET /latest
{
"West Virginia":{
"Jefferson":{
"confirmed":1,
"deaths":"0"
},
"Mercer":{
"confirmed":1,
"deaths":"0"
}
},
...
}
The data comes from https://coronavirus.1point3acres.com/en. The site is scraped from, and the results cached every day.
git clone https://github.com/JKSenthil/coronavirus-county-api.git
cd coronavirus-county-api
pip install requirements.txt
flask run
- Note that scraping will not work because the selenium code is intended for heroku, change the configuration lines in
scraper.py
and add your preferred browser driver
Available for use by anyone, just credit the datasource and link this repository