Functions¶
A List of Classes¶
1 | Country()
|
Parameter: country (str) - The name of the country
1 | World()
|
Parameter: None
class: Country()¶
1 | last_updated()
|
Parameters: None
Returns: The time when the API was last updated
1 | flag()
|
Parameters: None
Returns: (str) The flag of the specified country
1 | population()
|
Parameters: None
Returns: (int) Number of the residents in the specified country
1 | continent()
|
Parameters: None
Returns: (str) The continent of the specified country
1 | total_cases()
|
Parameters: None
Returns: (int) Number of the total cases in the specified country
1 | today_cases()
|
Parameters: None
Returns: (int) Number of the total cases today in the specified country
1 | total_deaths()
|
Parameters: None
Returns: (int) Number of the total deaths in the specified country
1 | today_deaths()
|
Parameters: None
Returns: (int) Number of the total deaths today in the specified country
1 | recovered()
|
Parameters: None
Returns: (int) Number of the total recovered people in the specified country
1 | today_recovered()
|
Parameters: None
Returns: (int) Number of the total recovered people today in the specified country
1 | active()
|
Parameters: None
Returns: (int) Number of the active cases in the specified country
1 | critical()
|
Parameters: None
Returns: (int) Number of the critical cases in the specified country
1 | cases_per_one_million()
|
Parameters: None
Returns: Number of the cases per one million in the specified country
1 | deaths_per_one_million()
|
Parameters: None
Returns: (int) Number of the deaths per one million in the specified country
1 | total_tests()
|
Parameters: None
Returns: (int) Number of the total tests in the specified country
1 | tests_per_one_million()
|
Parameters: None
Returns: (int) Number of the tests per one million in the specified country
1 | one_case_per_people()
|
Parameters: None
Returns: (int) Number of the cases per one people in the specified country
1 | one_death_per_people()
|
Parameters: None
Returns: (int) Number of the deaths per one people in the specified country
1 | one_test_per_people()
|
Parameters: None
Returns: (int) Number of the tests per one people in the specified country
1 | get_all()
|
Parameters: None
Returns: (str) Returns the full data in JSON format
class: World()¶
1 | last_updated()
|
Parameters: None
Returns: (int) The time when the API was last updated
1 | total_cases()
|
Parameters: None
Returns: Number of the total cases worldwide
1 | today_cases()
|
Parameters: None
Returns: (int) Number of the total cases today worldwide
1 | total_deaths()
|
Parameters: None
Returns: (int) Number of the total deaths worldwide
1 | today_deaths()
|
Parameters: None
Returns: (int) Number of the total deaths today worldwide
1 | recovered()
|
Parameters: None
Returns: (int) Number of the total recovered people worldwide
1 | today_recovered()
|
Parameters: None
Returns: (int) Number of the total recovered people today worldwide
1 | active_cases()
|
Parameters: None
Returns: (int) Number of the active cases worldwide
1 | critical_cases()
|
Parameters: None
Returns: (int) Number of the critical cases worldwide
1 | cases_per_one_million()
|
Parameters: None
Returns: (int) Number of the cases per one million worldwide
1 | deaths_per_one_million()
|
Parameters: None
Returns: (int) Number of the deaths per one million worldwide
1 | total_tests()
|
Parameters: None
Returns: (int) Number of the total tests worldwide
1 | population()
|
Parameters: None
Returns: (int) Number of the people in the world
1 | affected_countries()
|
Parameters: None
Returns: (int) Number of the people in the world
1 | tests_per_one_million()
|
Parameters: None
Returns: (int) Number of the tests per one million worldwide
1 | one_case_per_people()
|
Parameters: None
Returns: (int) Number of cases per one person
1 | one_death_per_people()
|
Parameters: None
Returns: (int) Number of deaths per one person
1 | one_test_per_people()
|
Parameters: None
Returns: (int) Number of tests per one person
1 | active_per_million()
|
Parameters: None
Returns: (int) Number of active cases per one million people
1 | recovered_per_million()
|
Parameters: None
Returns: (int) Number of recovered cases per one million people
1 | critical_per_million()
|
Parameters: None
Returns: (int) Number of critical cases per one million people
1 | get_all()
|
Parameters: None
Returns: (str) Returns the full data in JSON format