This repository provides an API with real-time data about the Coronavirus (COVID-19) outbreak in Greece.
API page: https://covid-19-greece.herokuapp.com
This project is performed by volunteers of COVID-19 Response Greece.
API documentation can be found here.
All the endpoints are located at https://covid-19-greece.herokuapp.com/ and are accessible via https.
Example: Get the number of confirmed cases as timeseries
Request:
You can visit https://covid-19-greece.herokuapp.com/confirmed via a browser or run the following command:
curl https://covid-19-greece.herokuapp.com/confirmed | json_pp
Response:
{
"cases": [
{
"date": "2020-01-22",
"confirmed": 0
},
{
"date": "2020-01-23",
"confirmed": 0
},
...
]
}
This API combines data from multiple sources. All data are fetched from here and updated 3 times a day using Github Actions.
-
Johns Hopkins CSSE: https://systems.jhu.edu/research/public-health/ncov
-
National Public Health Organization (NPHO) of Greece: https://eody.gov.gr
-
Wikipedia: https://el.wikipedia.org/wiki/Πανδημία_του_κορονοϊού_στην_Ελλάδα_το_2020
-
World Health Organization: https://www.who.int
Run the following command to install depedencies:
pip install -r requirements.txt
python app.py
Example: Get the number of confirmed cases
Request:
curl -v localhost:5000/confirmed