{ "openapi": "3.0.2", "info": { "title": "Coronavirus Greece API", "description": "A simple and fast API for tracking the coronavirus (COVID-19) outbreak in Greece. This project is developed by volunteers of [COVID-19 Response Greece](https://www.covid19response.gr/index_en.html). Project page: [Github](https://github.com/Covid-19-Response-Greece/covid19-greece-api).", "version": "1.0.0", "contact": { "name": "COVID-19 Response Greece", "url": "https://www.covid19response.gr/index_en.html", "email": "contact@covid19response.gr" } }, "servers": [], "paths": { "/all": { "get": { "tags": [ "Daily recorded events" ], "summary": "All the information about the cases", "description": "Get all the confirmed and fatal cases reported in Greece as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "confirmed": { "type": "number" }, "deaths": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/confirmed": { "get": { "tags": [ "Daily recorded events" ], "summary": "Confirmed cases", "description": "Get all the confirmed cases reported in Greece as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "confirmed": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/recovered": { "get": { "tags": [ "Daily recorded events" ], "summary": "Recovered cases", "description": "Get all the recovered cases reported in Greece as timeseries (Updating has stopped due to lack of reliable source)", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "recovered": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/deaths": { "get": { "tags": [ "Daily recorded events" ], "summary": "Deaths", "description": "Get all the deaths reported in Greece as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "deaths": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/active": { "get": { "tags": [ "Daily recorded events" ], "summary": "Active cases", "description": "Get all the active cases reported in Greece as timeseries (Updating has stopped due to lack of reliable source concerning recovered cases)", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "active": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/intensive-care": { "get": { "tags": [ "Daily recorded events" ], "summary": "Patients in intensive care", "description": "Get the number of patients in intensive care units reported in Greece as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "intensive_care": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/total-tests": { "get": { "tags": [ "Daily recorded events" ], "summary": "Tests performed", "description": "Get the number of tests performed in Greece as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "array", "items": { "type": "object", "properties": { "tests": { "type": "number" }, "rapid-tests": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } } }, "/age-distribution-history": { "get": { "tags": [ "Daily recorded events" ], "summary": "Age distribution of cases timeline", "description": "Get the timeline of the age distribution of the cases reported in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "age-distribution": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "cases": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "critical": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "deaths": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } } } } } } } } } } } } }, "/regions-history": { "get": { "tags": [ "Daily recorded events" ], "summary": "Per region data", "description": "Get the total number of confirmed cases per region in Greece as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "regions-history": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "regions": { "type": "array", "items": { "type": "object", "properties": { "area_gr": { "type": "string" }, "area_en": { "type": "string" }, "region_gr": { "type": "string" }, "region_en": { "type": "string" }, "geo_department_gr": { "type": "string" }, "geo_department_en": { "type": "string" }, "last_updated_at": { "type": "string", "format": "date" }, "longtitude": { "type": "number" }, "latitude": { "type": "number" }, "population": { "type": "number" }, "cases": { "type": "number" } } } } } } } } } } } } } } }, "/male-cases-history": { "get": { "tags": [ "Daily recorded events" ], "summary": "Age distribution of male cases timeline", "description": "Get the timeline of the age distribution of the male cases reported in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "male-cases": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "cases": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "critical": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "deaths": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } } } } } } } } } } } } }, "/female-cases-history": { "get": { "tags": [ "Daily recorded events" ], "summary": "Age distribution of female cases timeline", "description": "Get the timeline of the age distribution of the female cases reported in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "female-cases": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "cases": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "critical": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "deaths": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } } } } } } } } } } } } }, "/vaccinations-per-region-history": { "get": { "tags": [ "Daily recorded events" ], "summary": "Vaccinations per region timeline", "description": "Get the timeline of vaccinations per region in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "vaccinations-history": { "type": "array", "items": { "type": "object", "properties": { "area_gr": { "type": "string" }, "area_en": { "type": "string" }, "dailydose1": { "type": "number" }, "dailydose2": { "type": "number" }, "dailydose3": { "type": "number" }, "daydiff": { "type": "number" }, "daytotal": { "type": "number" }, "referencedate": { "type": "string", "format": "date" }, "totaldistinctpersons": { "type": "number" }, "totaldose1": { "type": "number" }, "totaldose2": { "type": "number" }, "totaldose3": { "type": "number" }, "totalvaccinations": { "type": "number" } } } } } } } } } } } }, "/western-macedonia": { "get": { "tags": [ "Per hospital data" ], "summary": "Hospital data from the Region of Western Macedonia", "description": "Get the daily reported data from the hospitals of Western Macedonia as timeseries", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "western-macedonia": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "total": { "type": "object", "properties": { "hospitalized_ICU_current": { "type": "number" }, "total_deaths": { "type": "number" }, "total_samples": { "type": "number" }, "total_samples_negative": { "type": "number" }, "total_samples_positive": { "type": "number" } } }, "hospitals": { "type": "array", "items": { "type": "object", "properties": { "home_restriction_current": { "type": "number" }, "hospital_name": { "type": "string" }, "hospitalized_current": { "type": "number" }, "hospitalized_negative": { "type": "number" }, "hospitalized_pending_result": { "type": "number" }, "hospitalized_positive": { "type": "number" }, "new_recoveries": { "type": "number" }, "new_samples": { "type": "number" } } } } } } } } } } } } } } }, "/western-macedonia-deaths": { "get": { "tags": [ "Per hospital data" ], "summary": "Death records in Western Macedonia", "description": "Get information of Covid-19 victims in Western Macedonia", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "western-macedonia-deaths": { "type": "array", "items": { "type": "object", "properties": { "age": { "type": "number" }, "date": { "type": "string", "format": "date" }, "permanent_residence_municipality_en": { "type": "string" }, "permanent_residence_municipality_gr": { "type": "string" }, "sex": { "type": "string" }, "underlying_diseases": { "type": "string" } } } } } } } } } } } }, "/refugee-camps": { "get": { "tags": [ "Per refugee camp data" ], "summary": "Recorded cases in Refugee Camps", "description": "Get information of Covid-19 spread in Refugee Camps", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "refugee-camps": { "type": "array", "items": { "type": "object", "properties": { "area_type_en": { "type": "string" }, "area_type_gr": { "type": "string" }, "capacity": { "type": "number" }, "current_hosts": { "type": "number" }, "description": { "type": "string" }, "last_update": { "type": "string", "format": "date" }, "latitude": { "type": "number" }, "longtitude": { "type": "number" }, "name_en": { "type": "string" }, "name_gr": { "type": "string" }, "recorded_events": { "type": "array", "items": { "type": "object", "properties": { "case_detection_week": { "type": "string" }, "confirmed_cases": { "type": "number" }, "quarantine_duration_days": { "type": "number" }, "samples": { "type": "number" } } } }, "region_en": { "type": "string" }, "region_gr": { "type": "string" }, "total_confirmed_cases": { "type": "number" }, "total_confirmed_samples": { "type": "number" } } } } } } } } } } } }, "/total": { "get": { "tags": [ "Cumulative data" ], "summary": "Total data", "description": "Get the latest cumulative data in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "cases": { "type": "object", "properties": { "confirmed": { "type": "number" }, "deaths": { "type": "number" }, "date": { "type": "string", "format": "date" } } } } } } } } } } }, "/regions": { "get": { "tags": [ "Cumulative data" ], "summary": "Per region data", "description": "Get the latest cumulative number of confirmed cases per region in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "regions": { "type": "array", "items": { "type": "object", "properties": { "area_gr": { "type": "string" }, "area_en": { "type": "string" }, "region_gr": { "type": "string" }, "region_en": { "type": "string" }, "geo_department_gr": { "type": "string" }, "geo_department_en": { "type": "string" }, "last_updated_at": { "type": "string", "format": "date" }, "longtitude": { "type": "number" }, "latitude": { "type": "number" }, "population": { "type": "number" }, "total_cases": { "type": "number" }, "cases_per_100000_people": { "type": "number" } } } } } } } } } } } }, "/age-distribution": { "get": { "tags": [ "Cumulative data" ], "summary": "Age distribution of patients", "description": "Get the age distribution of the patients reported in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "age_distribution": { "type": "object", "properties": { "age_average": { "type": "number" }, "average_death_age": { "type": "number" }, "total_age_groups": { "type": "object", "properties": { "cases": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "critical": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "deaths": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "updated": { "type": "string", "format": "date" } } } } } } } } } } } } }, "/gender-distribution": { "get": { "tags": [ "Cumulative data" ], "summary": "Gender distribution of patients", "description": "Get the gender ratio of the patients reported in Greece as a percentage (%)", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "gender_percentages": { "type": "object", "properties": { "total_females": { "type": "number" }, "total_males": { "type": "number" }, "updated": { "type": "string", "format": "date" } } } } } } } } } } }, "/gender-age-distribution": { "get": { "tags": [ "Cumulative data" ], "summary": "Gender-Age distribution of patients", "description": "Get the gender and age distribution of the patients reported in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "total_age_gender_distribution": { "type": "object", "properties": { "females": { "type": "object", "properties": { "cases": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "critical": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "deaths": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } } } }, "males": { "type": "object", "properties": { "cases": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "critical": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } }, "deaths": { "type": "object", "properties": { "0-17": { "type": "number" }, "18-39": { "type": "number" }, "40-64": { "type": "number" }, "65+": { "type": "number" } } } } } } }, "updated": { "type": "string", "format": "date" } } } } } } } } }, "/total-vaccinations-per-region": { "get": { "tags": [ "Cumulative data" ], "summary": "Total vaccinations per region", "description": "Get the total vaccinations per region in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "total-vaccinations": { "type": "array", "items": { "type": "object", "properties": { "area_gr": { "type": "string" }, "area_en": { "type": "string" }, "referencedate": { "type": "string", "format": "date" }, "totaldistinctpersons": { "type": "number" }, "totaldose1": { "type": "number" }, "totaldose2": { "type": "number" }, "totalvaccinations": { "type": "number" } } } } } } } } } } } }, "/total-vaccinations": { "get": { "tags": [ "Cumulative data" ], "summary": "Total vaccinations", "description": "Get the total vaccinations in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "total-vaccinations": { "type": "array", "items": { "type": "object", "properties": { "totaldistinctpersons": { "type": "number" }, "totalvaccinations": { "type": "number" }, "totaldose3": { "type": "number" }, "updated": { "type": "string", "format": "date" } } } } } } } } } } } }, "/measures-timeline": { "get": { "tags": [ "Cumulative data" ], "summary": "Social distancing measures timeline", "description": "Get the timeline of social distancing measures in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "imposition": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string" }, "category_el": { "type": "string" }, "event": { "type": "string" }, "event_el": { "type": "string" }, "date": { "type": "string", "format": "date" }, "updated": { "type": "string", "format": "date" } } } }, "lifting": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string" }, "category_el": { "type": "string" }, "event": { "type": "string" }, "event_el": { "type": "string" }, "date": { "type": "string", "format": "date" }, "updated": { "type": "string", "format": "date" } } } } } } } } } } } }, "/risk-levels": { "get": { "tags": [ "Cumulative data" ], "summary": "Risk levels", "description": "Get the COVID risk levels in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "last_updated": { "type": "string", "format": "date" }, "region": { "type": "object", "properties": { "Attica": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Central_Greece": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Central_Macedonia": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Crete": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Eastern_Macedonia_and_Thrace": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Epirus": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Ionian_islands": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "North_Aegean": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Peloponnese": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "South_Aegean": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Thessaly": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Western_Greece": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } }, "Western_Macedonia": { "type": "array", "items": { "type": "object", "properties": { "regional_unit": { "type": "string" }, "risk_level": { "type": "string" } } } } } } } } } } } } } }, "/measures-by-risk-level": { "get": { "tags": [ "Cumulative data" ], "summary": "Social distancing measures by risk level", "description": "Get the social distancing measures by risk level in Greece", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "date_from": { "type": "string", "format": "date" }, "date_to": { "type": "string", "format": "date" }, "measures_levels": { "type": "array", "items": { "type": "object", "properties": { "level_code": { "type": "string" }, "level": { "type": "string" }, "level_el": { "type": "string" }, "measures": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string" }, "category_el": { "type": "string" }, "description_el": { "type": "string" } } } } } } } } } } } } } } }, "/schools-status": { "get": { "tags": [ "Daily recorded events" ], "summary": "Schools operation", "description": "Get info concerning Greek Schools Operation Changes due to Covid-19. Only schools which are not closed due to lockdown restrictions are included.", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "schools_status": { "type": "array", "items": { "type": "object", "properties": { "UnitName": { "type": "string" }, "SchoolKind": { "type": "string" }, "Municipality": { "type": "string" }, "MunicipalUnit": { "type": "string" }, "Area": { "type": "string" }, "Address": { "type": "string" }, "Longitude": { "type": "number" }, "Latitude": { "type": "number" }, "DateFrom": { "type": "string", "format": "date" }, "DateTo": { "type": "string", "format": "date" }, "Remarks": { "type": "string" } } } } } } } } } } } } } }