Skip to content

An API wrapper to get information about the Covid19 from Portugal.

License

Notifications You must be signed in to change notification settings

TiagoAryan/covid19-api-pt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Covid19 API PT Wapper

An API wrapper to get information about the Covid19 from Portugal.

wraps open API DSSG Portugal / VOST REST API by dssg-pt

Installation

Npm:

npm i covid19-api-pt

Yarn:

yarn add covid19-api-pt

Usage

JavaScript:

const { CovidPT } = require("covid19-api-pt");

const track = new CovidPT();

TypeScript:

import { CovidPT } from "covid19-api-pt";

const track = new CovidPT();

Methods

Status

.status(); // For State of the API

All

.all(); // For Full Dataset

Last Update

.last(); // For Last Updated Entry

Get Update

.get('date'); // For Specific Date
.get('date1', 'date2'); // For Specific Range of Dates

Thanks!

About

An API wrapper to get information about the Covid19 from Portugal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published