covid19
Module covid19
API
Definitions
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_covid19_1.4.0.png)
ballerinax/covid19 Ballerina library
Overview
This is a generated connector from Novel COVID-19 API v3.0.0 OpenAPI Specification.
Ballerina connector for COVID-19 provides easy access to latest COVID-19 related data across the world. Please refer to API documentation for more detail.
Quickstart
To use the COVID-19 connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
import ballerinax/covid19
Step 2: Create a new connector instance
covid19:Client covid19Client = check new ();
Step 3: Invoke connector operation
- Get COVID-19 status by country
public function main() { covid19:CovidCountry statusByCountry = check covid19Client->getStatusByCountry("sri lanka"); }
- Use
bal run
command to compile and run the Ballerina program.
Clients![](/images/permalink.svg)
covid19: Client![](/images/permalink.svg)
This is a generated connector from Novel COVID-19 API version 3.0.0 OpenAPI Specification. Ballerina connector for COVID-19 provides easy access to latest COVID-19 related data across the world. Please refer to API documentation for more detail.
Constructor![](/images/permalink.svg)
Gets invoked to initialize the connector
.
The connector initialization doesn't require setting the API credentials.
init (ConnectionConfig config, string serviceUrl)
- config ConnectionConfig {} - The configurations to be used when initializing the
connector
- serviceUrl string "https://disease.sh" - URL of the target service
getGlobalStatus![](/images/permalink.svg)
function getGlobalStatus(string? yesterday, string? twoDaysAgo, string? allowNull) returns CovidAll|error
Get global COVID-19 totals for today, yesterday and two days ago
Parameters
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- twoDaysAgo string? (default ()) - Enter
true
(1) to receive data reported two days ago. Default isfalse
(0)
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
getAllUSAStatesStatus![](/images/permalink.svg)
function getAllUSAStatesStatus(string? sort, string? yesterday, string? allowNull) returns CovidStates|error
Get COVID-19 totals for all US States
Parameters
- sort string? (default ()) - Provided a key (e.g. cases, todayCases, deaths, active), result will be sorted from greatest to least
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidStates|error - Status OK
getUSAStatusByState![](/images/permalink.svg)
function getUSAStatusByState(string states, string? yesterday, string? allowNull) returns CovidState|error
Get COVID-19 totals for specific US State(s)
Parameters
- states string - State name or comma separated names spelled correctly
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidState|error - COVID-19 status of the given US state
getAllContinentsStatus![](/images/permalink.svg)
function getAllContinentsStatus(string? yesterday, string? twoDaysAgo, string? sort, string? allowNull) returns CovidContinents|error
Get COVID-19 totals for all continents
Parameters
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- twoDaysAgo string? (default ()) - Enter
true
(1) to receive data reported two days ago. Default isfalse
(0)
- sort string? (default ()) - Provided a key (e.g. cases, todayCases, deaths, recovered, active), results will be sorted from greatest to least
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidContinents|error - Status OK
getStatusByContinent![](/images/permalink.svg)
function getStatusByContinent(string continent, string? yesterday, string? twoDaysAgo, string strict, string? allowNull) returns CovidContinent|error
Get COVID-19 totals for a specific continent
Parameters
- continent string - Continent name
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- twoDaysAgo string? (default ()) - Enter
true
(1) to receive data reported two days ago. Default isfalse
(0)
- strict string (default "true") - Setting to false gives you the ability to fuzzy search continents (i.e. Oman vs. rOMANia)
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidContinent|error - COVID-19 status of the given continent
getAllCountriesStatus![](/images/permalink.svg)
function getAllCountriesStatus(string? yesterday, string? twoDaysAgo, string? sort, string? allowNull) returns CovidCountries|error
Get COVID-19 totals for all countries
Parameters
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- twoDaysAgo string? (default ()) - Enter
true
(1) to receive data reported two days ago. Default isfalse
(0)
- sort string? (default ()) - Provided a key (e.g. cases, todayCases, deaths, recovered, active), the result will be sorted from greatest to least
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidCountries|error - Status OK
getStatusByCountry![](/images/permalink.svg)
function getStatusByCountry(string country, string? yesterday, string? twoDaysAgo, string strict, string? allowNull) returns CovidCountry|error
Get COVID-19 totals for a specific country
Parameters
- country string - A country name, iso2, iso3, or country ID code
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- twoDaysAgo string? (default ()) - Enter
true
(1) to receive data reported two days ago. Default isfalse
(0)
- strict string (default "true") - Setting to false gives you the ability to fuzzy search countries (i.e. Oman vs. rOMANia)
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidCountry|error - COVID-19 status of the given country
getMultipleCountriesStatus![](/images/permalink.svg)
function getMultipleCountriesStatus(string countries, string? yesterday, string? twoDaysAgo, string? allowNull) returns CovidCountries|error
Get COVID-19 totals for a specific set of countries
Parameters
- countries string - Multiple country names, iso2, iso3, or country IDs separated by commas
- yesterday string? (default ()) - Enter
true
(1) to receive data reported a day ago. Default isfalse
(0)
- twoDaysAgo string? (default ()) - Enter
true
(1) to receive data reported two days ago. Default isfalse
(0)
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
Return Type
- CovidCountries|error - Status OK
getAllCountriesAndProvincesStatus![](/images/permalink.svg)
function getAllCountriesAndProvincesStatus() returns CovidJHUCountries|error
Get COVID-19 totals for all countries and their provinces
Return Type
- CovidJHUCountries|error - Status OK
getUSCountiesStatus![](/images/permalink.svg)
function getUSCountiesStatus() returns CovidJHUCounties|error
Get COVID-19 totals for all US counties
Return Type
- CovidJHUCounties|error - Status OK
getUSAStatusByCounty![](/images/permalink.svg)
Get COVID-19 totals for a specific county
Parameters
- county string - Name of any county in the USA. All counties are listed in the /v3/covid-19/jhucsse/counties/ endpoint
Return Type
- CovidJHUCounties|error - Status OK
getTimeSeriesForAllCountriesAndProvinces![](/images/permalink.svg)
Get COVID-19 time series data for all countries and their provinces
Parameters
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistorical|error - Status OK
getGlobalStatusInTimeSeries![](/images/permalink.svg)
function getGlobalStatusInTimeSeries(string lastdays) returns CovidHistoricalAll|error
Get global accumulated COVID-19 time series data
Parameters
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistoricalAll|error - Status Ok
getTimeSeriesBycountry![](/images/permalink.svg)
function getTimeSeriesBycountry(string country, string lastdays) returns CovidHistoricalCountry|error
Get COVID-19 time series data for a specific country
Parameters
- country string - A country name, iso2, iso3, or country ID code
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistoricalCountry|error - COVID-19 related time series for the given country
getTimeSeriesOfMultipleCountries![](/images/permalink.svg)
function getTimeSeriesOfMultipleCountries(string countries, string lastdays) returns CovidHistoricalCountries|error
Get COVID-19 time series data for a specific set of countries
Parameters
- countries string - Multiple country names, iso2, iso3, or country IDs separated by commas
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistoricalCountries|error - Status Ok
getTimeSeriesByProvince![](/images/permalink.svg)
function getTimeSeriesByProvince(string country, string province, string lastdays) returns CovidHistoricalProvince|error
Get COVID-19 time series data for a specific province in a country
Parameters
- country string - A country name, iso2, iso3, or country ID code
- province string - Province name. All available names can be found in the /v3/covid-19/historical/{query} endpoint
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistoricalProvince|error - Status Ok
getTimeSeriesDataForMultipleProvinces![](/images/permalink.svg)
function getTimeSeriesDataForMultipleProvinces(string country, string provinces, string lastdays) returns CovidHistoricalProvinces|error
Get COVID-19 time series data for a set of provinces in a country
Parameters
- country string - A country name, iso2, iso3, or country ID code
- provinces string - Provinces spelled correctly separated by ',' or '|' delimiters, never both in the same query
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistoricalProvinces|error - Status Ok
getTimeSeriesForUSACounties![](/images/permalink.svg)
function getTimeSeriesForUSACounties() returns CovidHistoricalUSCounties|error
Get all possible US States to query the /historical/usacounties/{state} endpoint with
Return Type
- CovidHistoricalUSCounties|error - Status OK
getUSACountiesDataByState![](/images/permalink.svg)
function getUSACountiesDataByState(string state, string lastdays) returns CovidHistoricalUSCounty|error
Get COVID-19 time series data for all counties in a specified US state
Parameters
- state string - US state name, validated in the array returned from the /v3/covid-19/historical/usacounties endpoint
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidHistoricalUSCounty|error - Status Ok
getTimeSeriesForAllUSAStatesNYT![](/images/permalink.svg)
Get COVID-19 time series data for all states, with an entry for each day since the pandemic began
Parameters
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidNYTState|error - Status Ok
getTimeSeriesByUSAStateNYT![](/images/permalink.svg)
Get COVID-19 time series data for a state or set of states, with an entry for each day since the pandemic began
Parameters
- state string - State name(s), separated by commas (e.g. 'Illinois, California')
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidNYTState|error - Status Ok
getTimeSeriesByUSACountyNYT![](/images/permalink.svg)
Get COVID-19 time series data for a county or set of counties, with an entry for each day since the pandemic began
Parameters
- county string - County name(s), separated by commas (e.g. 'Alameda, Humboldt')
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
Return Type
- CovidNYTCounty|error - Status Ok
getTimeSeriesForUSANYT![](/images/permalink.svg)
function getTimeSeriesForUSANYT() returns CovidNYTUSA|error
Get COVID-19 time series data for the entire USA, with an entry for each day since the pandemic began
Return Type
- CovidNYTUSA|error - Status Ok
getAppleMobilityDataSupportedCountries![](/images/permalink.svg)
function getAppleMobilityDataSupportedCountries() returns CovidAppleCountries|error
Get a list of supported countries for Apple mobility data
Return Type
- CovidAppleCountries|error - Status Ok
getAppleMobilityDataSupportedSubRegions![](/images/permalink.svg)
function getAppleMobilityDataSupportedSubRegions(string country) returns CovidAppleSubregions|error
Get a list of supported subregions for specific country in the Apple mobility data set
Parameters
- country string - A valid country name from the /v3/covid-19/apple/countries endpoint
Return Type
- CovidAppleSubregions|error - Status Ok
getStatusBySubRegionUsingAppleMobilotyData![](/images/permalink.svg)
function getStatusBySubRegionUsingAppleMobilotyData(string country, string subregions) returns CovidAppleData|error
Get COVID-19 Apple mobility data for subregions of a country
Parameters
- country string - A valid country name from the /v3/covid-19/apple/countries endpoint
- subregions string - Valid subregion(s) from the /v3/covid-19/apple/countries/{country} endpoint, separated by with commas
Return Type
- CovidAppleData|error - Status Ok
getGovenrmentDataSupportedCountries![](/images/permalink.svg)
function getGovenrmentDataSupportedCountries() returns CovidGov|error
Get a list of supported countries for government specific data
Return Type
- CovidGov|error - Status Ok
getGovernmentReportedDataByCountry![](/images/permalink.svg)
function getGovernmentReportedDataByCountry(string country, string? allowNull) returns Response|error
Get COVID-19 government reported data for a specific country
Parameters
- country string - A valid country name from the /v3/covid-19/gov endpoint
- allowNull string? (default ()) - By default, value is 0. Enter
1
to allow nulls to be returned
getVaccineTrialData![](/images/permalink.svg)
Get vaccine trial data from RAPS (Regulatory Affairs Professional Society). Specifically published by Jeff Craven at https://www.raps.org/news-and-articles/news-articles/2020/3/covid-19-vaccine-tracker
getTotalGlobalVaccineDosesAdministered![](/images/permalink.svg)
function getTotalGlobalVaccineDosesAdministered(string lastdays, string fullData) returns VaccineCoverage|error
Get total global COVID-19 vaccine doses administered. Sourced from https://covid.ourworldindata.org/
Parameters
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
- fullData string (default "false") - Flag indicating whether to return data type as SimpleVaccineTimeline (false) or FullVaccineTimeline (true).
Return Type
- VaccineCoverage|error - Vaccine coverage data
getVaccineCoverageOfAllCountries![](/images/permalink.svg)
function getVaccineCoverageOfAllCountries(string lastdays, string fullData) returns VaccineCountriesCoverage|error
Get COVID-19 vaccine doses administered for all countries that have reported rolling out vaccination. Sourced from https://covid.ourworldindata.org/
Parameters
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
- fullData string (default "false") - Flag indicating whether to return data type as SimpleVaccineTimeline (false) or FullVaccineTimeline (true).
Return Type
- VaccineCountriesCoverage|error - Status Ok
getVaccineCoverageByCountry![](/images/permalink.svg)
function getVaccineCoverageByCountry(string country, string lastdays, string fullData) returns VaccineCountryCoverage|error
Get COVID-19 vaccine doses administered for a country that has reported vaccination rollout. Sourced from https://covid.ourworldindata.org/
Parameters
- country string - A valid country name, iso2, iso3
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
- fullData string (default "false") - Flag indicating whether to return data type as SimpleVaccineTimeline (false) or FullVaccineTimeline (true).
Return Type
- VaccineCountryCoverage|error - Status Ok
getVaccineCoverageOfAllUSAStates![](/images/permalink.svg)
function getVaccineCoverageOfAllUSAStates(string lastdays, string fullData) returns VaccineStatesCoverage|error
Get COVID-19 vaccine doses administered for all states that have reported rolling out vaccination. Sourced from https://covid.ourworldindata.org/
Parameters
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
- fullData string (default "false") - Flag indicating whether to return data type as SimpleVaccineTimeline (false) or FullVaccineTimeline (true).
Return Type
- VaccineStatesCoverage|error - Status Ok
getVaccineCoverageByUSAState![](/images/permalink.svg)
function getVaccineCoverageByUSAState(string state, string lastdays, string fullData) returns VaccineStateCoverage|error
Get COVID-19 vaccine doses administered for a state that has reported vaccination rollout. Sourced from https://covid.ourworldindata.org/
Parameters
- state string - A valid state name
- lastdays string (default "30") - Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
- fullData string (default "false") - Flag indicating whether to return data type as SimpleVaccineTimeline (false) or FullVaccineTimeline (true).
Return Type
- VaccineStateCoverage|error - Status Ok
getTherapeuticsTrialData![](/images/permalink.svg)
function getTherapeuticsTrialData() returns Therapeutics|error
Get therapeutics trial data from RAPS (Regulatory Affairs Professional Society). Specifically published by Jeff Craven at https://www.raps.org/news-and-articles/news-articles/2020/3/covid-19-therapeutics-tracker
Return Type
- Therapeutics|error - Status Ok
getInfluenzaLikeIllnessData![](/images/permalink.svg)
function getInfluenzaLikeIllnessData() returns InfluenzaILINet|error
Get Influenza-like-illness data for the 2019 and 2020 outbreaks from the US Center for Disease Control
Return Type
- InfluenzaILINet|error - Status Ok
getInfluenzaReportsByUCLA![](/images/permalink.svg)
function getInfluenzaReportsByUCLA() returns InfluenzaUSCL|error
Get Influenza report data for the 2019 and 2020 outbreaks from the US Center for Disease Control, reported by US clinical labs
Return Type
- InfluenzaUSCL|error - Status Ok
getInfluenzaReportsByUSPHL![](/images/permalink.svg)
function getInfluenzaReportsByUSPHL() returns InfluenzaUSPHL|error
Get Influenza report data for the 2019 and 2020 outbreaks from the US Center for Disease Control, reported by US public health labs
Return Type
- InfluenzaUSPHL|error - Status Ok
Records![](/images/permalink.svg)
covid19: Cases![](/images/permalink.svg)
Fields
- date decimal? -
covid19: ClientHttp1Settings![](/images/permalink.svg)
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy ProxyConfig? - Proxy server related options
covid19: ConnectionConfig![](/images/permalink.svg)
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings? - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings? - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded
/x-forwarded
header
- poolConfig PoolConfiguration? - Configurations associated with request pooling
- cache CacheConfig? - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding
) header
- circuitBreaker CircuitBreakerConfig? - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig RetryConfig? - Configurations associated with retrying
- responseLimits ResponseLimitConfigs? - Configurations associated with inbound response size limits
- secureSocket ClientSecureSocket? - SSL/TLS-related options
- proxy ProxyConfig? - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
covid19: CovidAll![](/images/permalink.svg)
Fields
- updated decimal -
- cases decimal -
- todayCases decimal -
- deaths decimal -
- todayDeaths decimal -
- recovered decimal -
- todayRecovered decimal -
- active decimal -
- critical decimal -
- casesPerOneMillion decimal? -
- deathsPerOneMillion decimal? -
- tests decimal? -
- testsPerOneMillion decimal? -
- population decimal -
- oneCasePerPeople decimal? -
- oneDeathPerPeople decimal? -
- oneTestPerPeople decimal? -
- activePerOneMillion decimal? -
- recoveredPerOneMillion decimal? -
- criticalPerOneMillion decimal? -
- affectedCountries decimal? -
covid19: CovidAppleData![](/images/permalink.svg)
Fields
- country string? -
- subregion string? -
- data CovidappledataData[]? -
covid19: CovidappledataData![](/images/permalink.svg)
Fields
- 'sub\-region string? -
- subregion_and_city string? -
- geo_type string? -
- date string? -
- driving decimal? -
- transit decimal? -
- walking decimal? -
covid19: CovidAppleSubregions![](/images/permalink.svg)
Fields
- country string? -
- subregions string[]? -
covid19: CovidContinent![](/images/permalink.svg)
Fields
- updated decimal -
- cases decimal -
- todayCases decimal -
- deaths decimal -
- todayDeaths decimal -
- recovered decimal? -
- todayRecovered decimal? -
- active decimal -
- critical decimal -
- casesPerOneMillion decimal? -
- deathsPerOneMillion decimal? -
- tests decimal? -
- testsPerOneMillion decimal? -
- population decimal? -
- continent string? -
- activePerOneMillion decimal? -
- recoveredPerOneMillion decimal? -
- criticalPerOneMillion decimal? -
- continentInfo CovidcontinentContinentinfo? -
- countries string[]? -
covid19: CovidcontinentContinentinfo![](/images/permalink.svg)
Fields
- lat decimal? -
- long decimal? -
covid19: CovidCountry![](/images/permalink.svg)
Fields
- updated decimal? -
- country string -
- countryInfo CovidcountryCountryinfo? -
- cases decimal -
- todayCases decimal -
- deaths decimal -
- todayDeaths decimal -
- recovered decimal -
- todayRecovered decimal? -
- active decimal -
- critical decimal? -
- casesPerOneMillion decimal? -
- deathsPerOneMillion decimal? -
- tests decimal? -
- testsPerOneMillion decimal? -
- population decimal -
- continent string -
- oneCasePerPeople decimal? -
- oneDeathPerPeople decimal? -
- oneTestPerPeople decimal? -
- activePerOneMillion decimal? -
- recoveredPerOneMillion decimal? -
- criticalPerOneMillion decimal? -
covid19: CovidcountryCountryinfo![](/images/permalink.svg)
Fields
- _id decimal? -
- iso2 string? -
- iso3 string? -
- lat decimal? -
- long decimal? -
- flag string? -
covid19: CovidHistoricalAll![](/images/permalink.svg)
Fields
- cases TimelineDeaths -
- deaths TimelineDeaths -
- recovered TimelineDeaths -
covid19: CovidHistoricalCountry![](/images/permalink.svg)
Fields
- country string? -
- province string[]? -
- timeline Timeline? -
covid19: CovidhistoricalInner![](/images/permalink.svg)
Fields
- country string -
- province string? -
- timeline Timeline -
covid19: CovidHistoricalProvince![](/images/permalink.svg)
Fields
- country string? -
- province string? -
- timeline Timeline? -
covid19: CovidhistoricaluscountyInner![](/images/permalink.svg)
Fields
- province string? -
- county string? -
- timeline Timeline? -
covid19: CovidJHUCountry![](/images/permalink.svg)
Fields
- country string -
- county string? -
- updatedAt string? -
- stats CovidjhucountryStats -
- coordinates CovidjhucountryCoordinates? -
- province string? -
covid19: CovidjhucountryCoordinates![](/images/permalink.svg)
Fields
- latitude string? -
- longitude string? -
covid19: CovidjhucountryStats![](/images/permalink.svg)
Fields
- confirmed decimal -
- deaths decimal -
- recovered decimal? -
covid19: CovidJHUCounty![](/images/permalink.svg)
Fields
- country string -
- province string -
- county string -
- updatedAt string? -
- stats CovidjhucountryStats? -
- coordinates CovidjhucountryCoordinates? -
covid19: CovidnytcountyInner![](/images/permalink.svg)
Fields
- date string? -
- county string? -
- state string? -
- fips string? -
- cases decimal? -
- deaths decimal? -
covid19: CovidnytstateInner![](/images/permalink.svg)
Fields
- date string -
- state string -
- fips string -
- cases decimal -
- deaths decimal -
covid19: CovidnytusaInner![](/images/permalink.svg)
Fields
- date string? -
- cases decimal? -
- deaths decimal? -
covid19: CovidState![](/images/permalink.svg)
Fields
- state string -
- updated decimal -
- cases decimal -
- todayCases decimal -
- deaths decimal -
- todayDeaths decimal -
- active decimal -
- casesPerOneMillion decimal? -
- deathsPerOneMillion decimal? -
- tests decimal? -
- testsPerOneMillion decimal? -
- population decimal -
covid19: FullvaccinetimelineInner![](/images/permalink.svg)
Fields
- total decimal? -
- daily decimal? -
- totalPerHundred decimal? -
- dailyPerMillion decimal? -
- date string? -
covid19: ILINet![](/images/permalink.svg)
Fields
- week string? -
- 'age\ 5\-24 decimal? -
- 'age\ 25\-49 decimal? -
- 'age\ 50\-64 decimal? -
- 'age\ 64\+ decimal? -
- totalILI decimal? -
- totalPatients decimal? -
- percentUnweightedILI decimal? -
- percentWeightedILI decimal? -
covid19: InfluenzaILINet![](/images/permalink.svg)
Fields
- updated decimal? -
- 'source string? -
- data ILINet[]? -
covid19: InfluenzaUSCL![](/images/permalink.svg)
Fields
- updated decimal? -
- 'source string? -
- data USCL[]? -
covid19: InfluenzaUSPHL![](/images/permalink.svg)
Fields
- updated decimal? -
- 'source string? -
- data USPHL[]? -
covid19: Phases![](/images/permalink.svg)
Fields
- phase string? -
- candidates string? -
covid19: ProxyConfig![](/images/permalink.svg)
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
covid19: SimpleVaccineTimeline![](/images/permalink.svg)
Fields
- date decimal? -
covid19: Therapeutic![](/images/permalink.svg)
Fields
- medicationClass string? -
- tradeName string[]? -
- details string? -
- developerResearcher string[]? -
- sponsors string[]? -
- trialPhase string? -
- lastUpdate string? -
covid19: Therapeutics![](/images/permalink.svg)
Fields
- 'source string? -
- totalCandidates string? -
- phases Phases[]? -
- data Therapeutic[]? -
covid19: Timeline![](/images/permalink.svg)
Fields
- cases Cases -
- deaths TimelineDeaths -
- recovered TimelineDeaths -
covid19: TimelineDeaths![](/images/permalink.svg)
Fields
- date decimal? -
covid19: USCL![](/images/permalink.svg)
Fields
- week string? -
- totalA decimal? -
- totalB decimal? -
- percentPositiveA decimal? -
- percentPositiveB decimal? -
- totalTests decimal? -
- percentPositive decimal? -
covid19: USPHL![](/images/permalink.svg)
Fields
- week string? -
- 'A\(H3N2v\) decimal? -
- 'A\(H1N1\) decimal? -
- 'A\(H3\) decimal? -
- 'A\(unable\ to\ sub\-type\)\+ decimal? -
- 'A\(Subtyping\ not\ performed\) decimal? -
- B decimal? -
- BVIC decimal? -
- totalTests decimal? -
covid19: Vaccine![](/images/permalink.svg)
Fields
- candidate string? -
- mechanism string? -
- sponsors string[]? -
- details string? -
- trialPhase string? -
- institutions string[]? -
covid19: VaccineCountryCoverage![](/images/permalink.svg)
Fields
- country string? -
- timeline SimpleVaccineTimeline|FullVaccineTimeline? -
covid19: Vaccines![](/images/permalink.svg)
Fields
- 'source string? -
- totalCandidates string? -
- phases Phases[]? -
- data Vaccine[]? -
covid19: VaccineStateCoverage![](/images/permalink.svg)
Fields
- state string? -
- timeline SimpleVaccineTimeline|FullVaccineTimeline? -
Union types![](/images/permalink.svg)
covid19: VaccineCoverage![](/images/permalink.svg)
VaccineCoverage
Import
import ballerinax/covid19;
Metadata
Released date: almost 2 years ago
Version: 1.4.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.2.1
GraalVM compatible: Yes
Pull count
Total: 64008
Current verison: 474
Weekly downloads
Keywords
Lifestyle & Entertainment/News & Lifestyle
Cost/Free
Contributors