covid-19-api icon indicating copy to clipboard operation
covid-19-api copied to clipboard

Add method for daily cases by country, by date

Open kerchner opened this issue 5 years ago • 4 comments

Suggested form: /api/countries/[country]/daily/[date]

Alternatively: /api/daily/[date]/countries/[country]

kerchner avatar Mar 13 '20 14:03 kerchner

Please. Thanks for your work!

Krato avatar Mar 14 '20 17:03 Krato

+1 on this

datasith avatar Mar 21 '20 17:03 datasith

I'm hoping for this as well. ☺

bumblybee avatar Mar 21 '20 18:03 bumblybee

In the meantime, here's a way (Python script) for getting the country-by-date data. I iterate through each day, and add the reports for each region in a country. It saves the data locally. I've only tested it for the US and China. In the case of China, there was a change on the API (countryRegion went from "Mainland China" to "China" so double-check that there aren't similar hiccups for the country you're interested in.

datasith avatar Mar 21 '20 19:03 datasith