ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

Recovered values all set to 0 #161

Open mugetsu opened 4 years ago

ExpDev07 commented 4 years ago

Our main data provided (JHU) has decided to drop support for recovery data, hence, the API will show 0 until an alternative source is added for world data.

There’s a notice regarding this change on the top of the README. Unfortunately little I can do besides change data source, which again, many people will get upset with.

jaime-chur commented 4 years ago

Will this be fixed soon? :(

ExpDev07 commented 4 years ago

@jaime-chur hopefully !

dinesh-varyani commented 4 years ago

"Our main data provided (JHU) has decided to drop support for recovery data" ... Where its mentioned ? I can see JHU still has latest data (published few hours back) with recovered cases.

ExpDev07 commented 4 years ago

@dinesh-varyani

We will no longer provide recovered cases.

(from https://github.com/CSSEGISandData/COVID-19/issues/1250).

codedawi commented 4 years ago

According to a recent interview IBM's CEO they are working on getting the recovered numbers for their new Weather Channel map to track coronavirus. They could be working with CDC to aggregate this data. This might be a creditable data source to get this recovery information from in the future.

ExpDev07 commented 4 years ago

@codedawi Awesome!

winsphinx commented 4 years ago

Even in v1, the recovered data are dropped.

ExpDev07 commented 4 years ago

It seems like JHU are starting to track recoveries again (or at least they've added a file for it: https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv), however, the indexing is not compatible with the confirmed and deaths so it won't show up in v2 yet and it also appears the file is a bit corrupted/broken. I'll give them some time to fix it then add back recoveries :).

See https://github.com/CSSEGISandData/COVID-19/issues/1581#issuecomment-604207335.

@winsphinx

Zrna commented 4 years ago

@ExpDev07 will https://coronavirus-tracker-api.herokuapp.com/all be updated also?

ExpDev07 commented 4 years ago

@Zrna yes.

ExpDev07 commented 4 years ago

@Zrna recoveries for https://coronavirus-tracker-api.herokuapp.com/all is working again. It will still be a little bit before it's fixed for v2.

Zrna commented 4 years ago

@ExpDev07 thank you for all the hard work!

nguyandy commented 4 years ago

@Zrna recoveries for https://coronavirus-tracker-api.herokuapp.com/all is working again. It will still be a little bit before it's fixed for v2.

Recoveries in Canada is not showing up properly for V1.

web-sys1 commented 4 years ago

Why?

MZDN commented 4 years ago

Hi, JHU is still providing recovered data: https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv @ExpDev07 Could you please adjust the api? Thanks

nkutinha commented 4 years ago

Thanks for this excellent API :) Would be really cool if the recovered numbers are enabled again, at least the last recorded number instead of 0.

karim-alt commented 4 years ago

try this : https://documenter.getpostman.com/view/9992373/SzS7PkXr?version=latest#7ce3048e-45eb-4421-b963-7ffc5e1fbd20

itsamirrezah commented 4 years ago

Is there any future plan to showing recovered data for /v2 ? Thank you for your hard work.

Sajantoor commented 4 years ago

Will recoveries be added to v2?

Kilo59 commented 4 years ago

@itsamirrezah @Sajantoor Yes, no-one has gotten around to doing it though.

https://github.com/ExpDev07/coronavirus-tracker-api/blob/05e67bdfdf35305afb11487359e8e65bde3ef714/app/services/location/jhu.py#L131-L142

The issue is the recovered data set doesn't match the other data sets 1-to-1, so they need to be merged. https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series

udsgit commented 4 years ago

Other Idea for try to fix (for the moment) the recovered cases. Add https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv to other route for fetch, and for example in my web application I can "merge" with any functions every country, that would great almost for my web application.

ahmedfaaid commented 4 years ago

Will the recovery stats ever be added in the API?

Kilo59 commented 4 years ago

@ahmedfaaid That is the plan but no-one has gotten around to implementing it yet. See the rest of the thread.

I'm currently working on a major redesign to simplify the codebase (hopefully making it more friendly to new contributors). We would happily accept a pull request to deal with the JHU recovered vs confirmed/deaths data mismatch.

ahmedfaaid commented 4 years ago

@Kilo59 Okay that sounds good. Hopefully someone can help implement soon. I would have contributed if I was a Python dev.