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 49 forks source link

Vacciniation Response not working anymor due to changed structure in repo #465

Closed maurermax closed 2 years ago

maurermax commented 2 years ago

When doing a GET https://api.corona-zahlen.org/vaccinations an error object is being returned

{
  "message": "An error occurred while fetching external data.",
  "url": "https://raw.githubusercontent.com/robert-koch-institut/COVID-19-Impfungen_in_Deutschland/master/.zenodo.json",
  "details": "Request failed with status code 404",
  "response": "404: Not Found"
}

seems like this path changed to https://raw.githubusercontent.com/robert-koch-institut/COVID-19-Impfungen_in_Deutschland/master/Metadaten/zenodo.json instead

codingcat2468 commented 2 years ago

https://api.corona-zahlen.org/germany now also throws a similar error:

{
    "error": {
        "message": "An error occurred while fetching external data.",
        "url": "https://raw.githubusercontent.com/robert-koch-institut/COVID-19-Hospitalisierungen_in_Deutschland/master/.zenodo.json",
        "details": "Request failed with status code 404",
        "response": "404: Not Found"
    }
}

It seems the structure has changed here also.

maurermax commented 2 years ago

created a potential fix here: https://github.com/marlon360/rki-covid-api/pull/466