Created on 25 July 2021
icon_unfollowing
Login to follow
covid-19-data

Covid-19 Data

Stable version 1.0.5 (Compatible with OutSystems 11)
Uploaded on 02 January 2023 by 
covid-19-data

Covid-19 Data

Documentation
1.0.4

This component provides up-to-date data about Coronavirus outbreak. Includes numbers about confirmed cases, deaths and recovered.

This component uses an online Rest API (Coronavirus Tracker API: https://github.com/ExpDev07/coronavirus-tracker-api) to provide up-to-date data for your apps.


Server Action


 GetCountryCovidStats

This server action receives the country code as input and returns the latest Covid Stats, a record of CountryStats structure type.

CountryCode follows ISO 3166-1 alpha-2 country code notation. It can be used with the Forge Location component.

Input parameters

NameDataTypeMandatory
CountryCodeText


Output parameters

NameDataType
StatsGetCountryStatsResponse



Structures

 

CountryStats

AttributeType
LatestLatest
LocationsLocationItem List


Latest

AttributeType
ConfirmedLong Integer
DeathsLong Integer
RecoveredLong Integer


Example values:

{

   "confirmed": 6015469,

   "deaths": 111778,

   "recovered": 0

}


LocationItem

AttributeType
IdLong Integer
CountryText
Country_codeText
Country_populationLong Integer
ProvinceText
Last_updatedDate Time
CoordinatesCoordinate
LatestLatest


Example values:

{

      "id": 119,

      "country": "France",

      "country_code": "FR",

      "country_population": 66987244,

      "province": "French Guiana",

      "last_updated": "2021-07-25T02:32:49.489498Z",

      "coordinates": {

        "latitude": "3.9339",

        "longitude": "-53.1258"

      },

      "latest": {

        "confirmed": 29419,

        "deaths": 170,

        "recovered": 0

      }

}


Coordinate

AttributeType
LatitudeText
LongitudeText


Example values:

{

    "latitude": "3.9339",

    "longitude": "-53.1258"

}


1.0.2

This component provides up-to-date data about Coronavirus outbreak. Includes numbers about confirmed cases, deaths and recovered.

This component uses an online Rest API (Coronavirus Tracker API: https://github.com/ExpDev07/coronavirus-tracker-api) to provide up-to-date data for your apps.


Server Action


 GetCountryCovidStats

This server action receives the country code as input and returns the latest Covid Stats, a record of CountryStats structure type.

CountryCode follows ISO 3166-1 alpha-2 country code notation. It can be used with the Forge Location component.

Input parameters

NameDataTypeMandatory
CountryCodeText


Output parameters

NameDataType
StatsGetCountryStatsResponse



Structures

 

CountryStats

AttributeType
LatestLatest
LocationsLocationItem List


Latest

AttributeType
ConfirmedLong Integer
DeathsLong Integer
RecoveredLong Integer


Example values:

{

   "confirmed": 6015469,

   "deaths": 111778,

   "recovered": 0

}


LocationItem

AttributeType
IdLong Integer
CountryText
Country_codeText
Country_populationLong Integer
ProvinceText
Last_updatedDate Time
CoordinatesCoordinate
LatestLatest


Example values:

{

      "id": 119,

      "country": "France",

      "country_code": "FR",

      "country_population": 66987244,

      "province": "French Guiana",

      "last_updated": "2021-07-25T02:32:49.489498Z",

      "coordinates": {

        "latitude": "3.9339",

        "longitude": "-53.1258"

      },

      "latest": {

        "confirmed": 29419,

        "deaths": 170,

        "recovered": 0

      }

}


Coordinate

AttributeType
LatitudeText
LongitudeText


Example values:

{

    "latitude": "3.9339",

    "longitude": "-53.1258"

}



Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
Covid-19 Data has no dependencies.