API Documentation

API which provides the current real time situation
of the COVID-19 patients reported in Sri Lanka.

HOST

EndPoint

Overall details

local_new_cases Confirmed COVID-19 cases reported during the day
local_active_cases Confirmed COVID-19 cases currently on treatment at the Hospitals in Sri Lanka
local_total_cases Cumulative count of confirmed COVID-19 cases in Sri Lanka
local_deaths Total deaths due to COVID-19 reported in Sri Lanka
local_recovered Total COVID-19 cases recovered and discharged in Sri Lanka
local_total_number_of_individuals_in_hospitals Total suspected COVID-19 cases currently under investigations in hospitals
global_new_cases Global confirmed COVID-19 cases reported during last 24 hours
global_total_cases Total global confirmed COVID-19 cases
global_deaths Total global deaths due to COVID-19
global_new_deaths Global deaths due to COVID-19 reported during last 24 hours
global_recovered Total Global COVID-19 cases who recovered

Sri Lankan hospitals overview

cumulative_local Total number of Sri Lankans who have been treated /observed for COVID-19 in a given hospital
cumulative_foreign Total number of foreigners who have been treated /observed for COVID-19 in a given hospital
treatment_local Total number of Sri Lankans who are currently on treatment/observation for COVID-19 in a given hospital
treatment_foreign Total number of foreigners who are currently on treatment/observation for COVID-19 in a given hospital

Sample Data

                                {
                                    "success": true,
                                    "message": "Success",
                                    "data": {
                                        "update_date_time": "2020-03-17 08:14:26",
                                        "local_new_cases": 10,
                                        "local_total_cases": 29,
                                        "local_total_number_of_individuals_in_hospitals": 3,
                                        "local_deaths": 0,
                                        "local_recovered": 1,
                                        "global_new_cases": 13903,
                                        "global_total_cases": 167511,
                                        "global_deaths": 6606,
                                        "global_recovered": 862,
                                        "hospital_data": []
                                    }
                                }