This library provides abstraction for the official Czech COVID data API. It is wrapper around the API, which provides a more user-friendly interface.
-
have Deno installed. This library is primarily tested against Deno.
-
this library also supports Node.js as well, but only as best effort.
-
have a valid token for the API. You can get it by registering at the API registration page.
Use JSR offered options to install.
import Client from "@bedna/czech-covid-data-api-lib";
// Client is a singleton
const client = Client.getInstance({ token: "<YOUR TOKEN>" });
const [data, err] = await client.basicOverview.getBasicOverviewV3();
if (!err) {
console.log(JSON.stringify(data, null, 2));
}
- official API documentation is HERE