backtrackbaba / covid-api

API's to interact with COVID19 dataset by John Hopkins University
https://covidapi.info/
MIT License
77 stars 19 forks source link

Data delay? #1

Closed mbodge closed 4 years ago

mbodge commented 4 years ago

Hi there, first of all thank you for making this!

You said you have the data pulling 3 times a day...I haven't seen the numbers for total confirmed cases change since I looked at the site early this morning. They don't match up with the John Hopkins dashboard. Has the data just not updated yet?

m

backtrackbaba commented 4 years ago

Hi @mbodge , As mentioned in the README, the data we use is from this repository which updates thrice a day - pomber which in turn uses the data from John Hopkins

Now, pomber, fetches the new data at "At minute 15 past hour 5, 13, and 21." every day as described in their Github Action file. We fetch the new data, keeping a 5 min buffer.

Also, I've manually triggered an update a few minutes back. Could you check the data again if it matches up and if not then share the endpoint you are trying to access?

backtrackbaba commented 4 years ago

Johns Hopkins is going to change the pattern of the data a bit as mentioned in this Issue.

I'm waiting for that change, and in the meantime, I'm trying to get a form of pomber's code up and running with a higher frequency of updates. This should be up hopefully by tomorrow.

mbodge commented 4 years ago

Thanks for the quick response!

I'm seeing on the JH dashboard a total cases of 372,563.

https://covidapi.info/api/v1/global

returns 335,955

backtrackbaba commented 4 years ago

I'm currently dependant on Pomber's code which for some reason hasn't updated in the last 16 hours. It should have ideally updated at 21:00 UTC which is approx 20 mins back.

It's past midnight in my timezone, let me see if I can get an updated result in some time. Otherwise, it'll surely be up in say at the most 12 hours

backtrackbaba commented 4 years ago

Hey @mbodge closing this issue for now, please feel free to open another issue!