@datafire/quarantine_country
v3.0.0
Published
DataFire integration for Coronavirus API
Downloads
2
Readme
@datafire/quarantine_country
Client library for Coronavirus API
Installation and Usage
npm install --save @datafire/quarantine_country
let quarantine_country = require('@datafire/quarantine_country').create();
.then(data => {
console.log(data);
});
Description
Coronavirus API with free COVID-19 live updates. The best free coronavirus API and COVID-19 update source. Programmatically access live corona virus updates for statistics with historical data, maps, charts, graphs. COVID-19 API and corona virus live updates.
Actions
spots.day.get
Resolve change chart by day
quarantine_country.spots.day.get({
"region": ""
}, context)
Input
- input
object
- region required
string
: Region short name - date
string
: Date to query spots on
- region required
Output
- output SpotsResponse
spots.month.get
Resolve change chart for week
quarantine_country.spots.month.get({
"region": ""
}, context)
Input
- input
object
- region required
string
: Region short name - date
string
: Date to query spots on
- region required
Output
- output SpotsResponse
spots.week.get
Resolve change chart for week
quarantine_country.spots.week.get({
"region": ""
}, context)
Input
- input
object
- region required
string
: Region short name - date
string
: Date to query spots on
- region required
Output
- output SpotsResponse
spots.year.get
Resolve change chart for week
quarantine_country.spots.year.get({
"region": ""
}, context)
Input
- input
object
- region required
string
: Region short name - date
string
: Date to query spots on
- region required
Output
- output SpotsResponse
summary.latest.get
Get latest coronavirus situation report
quarantine_country.summary.latest.get({}, context)
Input
- input
object
- date
string
: Date of the report
- date
Output
- output ReportResponse
summary.region.get
Resolve report for region
quarantine_country.summary.region.get({
"region": ""
}, context)
Input
- input
object
- region required
string
: Region short name - date
string
: Date of the report
- region required
Output
- output ReportResponse
Definitions
Report
- Report
object
- active_cases
integer
- change Report
- death_ratio
number
: Dead / Total cases - deaths
integer
- name
string
- recovered"
integer
- recovery_ratio
number
: Recovered / Total cases - total_cases
integer
- active_cases
ReportResponse
- ReportResponse
object
SpotsResponse
- SpotsResponse
object
- data
object
- status
integer
- type
string
(values: stack, collection, pagination)
- data