M-Media-Group / Covid-19-API

This is the code running in AWS Lambda powering covid-api.mmediagroup.fr/v1. The API provides realtime and historical data on Coronavirus COVID-19 confirmed cases, deaths, and recovered cases. This API has now been called over 40 million times, thank you!
https://covid-api.mmediagroup.fr/v1/cases
GNU Affero General Public License v3.0
399 stars 30 forks source link

Missing updated field #9

Closed leandroparedes closed 4 years ago

leandroparedes commented 4 years ago

Some countries doesn't have the updated field on the /cases endpoint. This are the ones I have noticed:

mwargan commented 4 years ago

@leandroparedes great catch! These countries don't have an updated field because there isn't an actual metric for the "All" region for them, it's summed up from all the subregions. Because the subregions are updated at different times, it is impossible to determine when the total data is actually from.

I might be able to just put the most recently updated timestamp in All but I think that won't be accurate.

leandroparedes commented 4 years ago

I guess that makes sense.