Closed 1CM69 closed 4 years ago
I don't have much time so I just flew over this but I am quite sure this is because of the historical endpoints using the JHU as a datasource, not official government data, if you want official gov data, please check our /gov
endpoints
Just checked through JHU data as you posted your reply & I can see that the historic data matches what JHU are putting out.
Thanks, I'll look in to the /gov endpoints. For the moment I have manually setup a subtraction of 85 from the historic records I collect but no doubt this will break at some point.
Thanks for replying.
I would really advise you to switch over to the /gov/uk
endpoint! 👍
Firstly, thanks for putting the time in to this API but I seem to getting some discrepancies between the data returned via the API v3 & the actual data which this API is scraping from the UK Government website.
Looking at the historic data the API returns for the cumulative Deaths, is this:
Now below is an excerpt from the UK Government website:
https://api.coronavirus-staging.data.gov.uk/v1/data?filters=areaName=United%2520Kingdom;areaType=overview&structure=%7B%22areaType%22:%22areaType%22,%22areaName%22:%22areaName%22,%22areaCode%22:%22areaCode%22,%22date%22:%22date%22,%22newDeathsByPublishDate%22:%22newDeathsByPublishDate%22,%22cumDeathsByPublishDate%22:%22cumDeathsByPublishDate%22%7D&format=json
the same site that is scrapped to form the API, returns the following for the same time period:
Straight away the obvious error is that the current total of deaths 2020-07-29 is lower from the UK Government site than what the API displays for the previous day 2020-07-28.
This is doubly strange as when using the URL:
https://disease.sh/v3/covid-19/countries/UK
shows the total number of deaths for today 2020-07-29 as 45961, see below:
and this does indeed match the official UK figure.
I have checked the HISTORIC deaths totals returned by the API against the official totals for the last 10 days and the API has artificially increased each official total by 85.
I have not bothered going back any further to check.