ChrisMichaelPerezSantiago / covid19

This API provides updated real-time data on coronavirus cases from the worldometers page, provided by the most reputable organizations and statistical offices in the world.
MIT License
76 stars 17 forks source link

Wrong data for FatalityRateBySex #25

Closed blazerzar closed 4 years ago

blazerzar commented 4 years ago

As I checked the API docs, the call FatalityRateBySex should return JSON with keys: Sex, DeathRateConfirmedCases, DeathRateAllCases, which it does, but in reality they really look more like some other data for FatalityRateByAge, only that the numbers are different. I believe Worldometer has added another table onto the website and now the this call is not working correctly anymore.

Could this be resolved?

ChrisMichaelPerezSantiago commented 4 years ago

Hello blazerzar

During the weekend (Saturday / Sunday) I will fix the problem or when time permits.

Thank you for letting me know.

ChrisMichaelPerezSantiago commented 4 years ago

Apparently I also have to correct the following endpoints,

  "FatalityRateByAge": "/api/v1/FatalityRateByAge",
  "FatalityRateBySex": "/api/v1/FatalityRateBySex",
  "FatalityRateByComorbidities": "/api/v1/FatalityRateByComorbidities",

this because more tables have been added in the section and the tables I was pointing to no longer refer to the correct data.

ChrisMichaelPerezSantiago commented 4 years ago

Hi @blazerzar ,

Sorry for the delay!

Fatality Rate By [age, sex, Comorbidities] return object fixed.