xsreality / covid19

Covid19 India Patients Analyzer and Telegram Bot
GNU General Public License v3.0
16 stars 5 forks source link

Use the new raw_data3.json API #29

Closed xsreality closed 4 years ago

xsreality commented 4 years ago

The existing API raw_data.json is now deprecated. Below is the update:

Due to the growing size of the raw data, and the fact that regions like DL, MH, TG are only providing district level information, we have made a change in our data collection. Now, raw data is available in three parts : api.covid19india.org/raw_data1.json (Data till EoD Apr 19th) api.covid19india.org/raw_data2.json (Data till EoD Apr 26th) api.covid19india.org/raw_data3.json (Live 🚀)

Also, there are some structural difference in raw_data3.json : When a new report/bulletin is released from a state regarding confirmed cases :

If patient level information is available (from several states like KA,KL,BH etc.), that is captured.

If only districtwise information is available, one row is entered for each district, and "numcases" field mentions the number of cases in that district

If only statewise information is available, one row is added added for the entire state (DL 👀)

Recoveries and Deceased information is also available through raw_data3.json now. Use the "Current Status" field to extract that information.

All other aggergate APIs retain the same behaviour. CSV files for the same are also available through api.covid19india.org/csv/latest/raw_data{n}.csv