axisbits / covid-api

API based on publicly available data by Johns Hopkins CSSE
21 stars 0 forks source link

Bad data for USA #8

Closed impredicative closed 4 years ago

impredicative commented 4 years ago

Bad data was returned for USA. Bad data is worse than no data at all. This corrupts the computed totals for the world too.

URL: https://covid-api.com/api/reports?iso=USA Data:

{
    "data": [
        {
            "date": "2020-04-01",
            "confirmed": 0,
            "deaths": 0,
            "recovered": 8536,
            "confirmed_diff": 0,
            "deaths_diff": 0,
            "recovered_diff": 1512,
            "last_update": "2020-04-01 23:08:29",
            "active": -8536,
            "active_diff": -1512,
            "fatality_rate": 0,
            "region": {
                "iso": "USA",
                "name": "US",
                "province": "Recovered",
                "lat": "0.0",
                "long": "0.0",
                "cities": []
            }
        }
    ]
}

Please advise if it's the upstream data that's bad or a bug in the processing done by covid-api. Thanks.

elitemaks commented 4 years ago

@impredicative Hi, thanks for noticing, fixed. Seems it was an error in the data, but then it was fixed.