sagarkarira / coronavirus-tracker-cli

Track conronavirus cases from command line. curl https://corona-stats.online/
https://corona-stats.online/
944 stars 81 forks source link

APIs for both sources have issues #95

Open prochazkaml opened 4 years ago

prochazkaml commented 4 years ago

Hello,

I've tried to use the APIs for both sources, but each have their issues:

Source 1:

Source 2:

The URL I use for fetching data is "https://corona-stats.online?format=json&top=10&source=X", where X is 1 or 2.

Since the first API doesn't report recovered cased, I tried to use the second API. But in the second API, it's not possible to get the data from the previous day. The first API had it and it was quite useful...

hwiards commented 4 years ago

Now China is on the last place in the order, when I query the data with:

curl 'https://corona-stats.online?minimal=true&source=2'

onzyone commented 4 years ago

Looks like the issue with the source=2 data is related to upstream data coming from here https://corona.lmao.ninja/countries

hwiards commented 4 years ago

Then the reqest URL should be changed to: https://corona.lmao.ninja/countries?sort=cases

EDIT: This part of the Issue seem to be fixed.

sagarkarira commented 4 years ago

@michalprochazka02

1.top param is not supported with json param.

  1. recovered cases were removed by JHU. So the source API removed it too.