marlon360 / rki-covid-api

🦠🇩🇪📈 An API for the spread of covid-19 in Germany. Data from Robert-Koch-Institut.
https://api.corona-zahlen.org/
Creative Commons Attribution 4.0 International
250 stars 50 forks source link

Die aktuellen Inzidenz-Zahlen stimmen nicht #522

Closed SirRufo closed 1 year ago

SirRufo commented 1 year ago

Bei der Abfrage der aktuellen Zahlen über https://api.corona-zahlen.org/districts erhält man nicht die aktuellen Zahlen, sondern die eingefrorenen von vor 5 Tagen.

{
    "data": {
        "10041": {
            "weekIncidence": 14.971706530108406,
        },
        "10042": {
            "weekIncidence": 10.635623537601763,
        },
    }
}

Vergleiche dazu die Abfrage https://api.corona-zahlen.org/districts/history/frozen-incidence/5 wo die aktuellen Zahlen stimmen

{
    "data": {
        "10041": {
            "history": [
                {
                    "weekIncidence": 14.9717065301,
                    "date": "2023-04-27T00:00:00.000Z",
                },
                {
                    "weekIncidence": 16.193886655,
                    "date": "2023-05-01T00:00:00.000Z",
                }
            ]
        },
        "10042": {
            "history": [
                {
                    "weekIncidence": 10.6356235376,
                    "date": "2023-04-27T00:00:00.000Z",
                },
                {
                    "weekIncidence": 9.6687486705,
                    "date": "2023-05-01T00:00:00.000Z",
                }
            ]
        }
    }
}

Ich habe die JSON Daten auf das Wesentliche reduziert

Rubber1Duck commented 1 year ago

jetzt passt es wieder!

{
   "data":{
      "10041":{
         "weekIncidence":16.193886655015216,
      },
      "10042":{
        "weekIncidence":9.668748670547059,
      }
   }
}