Give us feedback
covid-19-data
Service icon

Covid-19 Data

Stable version 1.0.5 (Compatible with OutSystems 11)
Uploaded on 02 January 2023 by 
0.0
 (0 ratings)
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"

}