Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radekbednarik/covid-czech-data-api
Library to make it easy to work with REST API of official Czech Covid data.
https://github.com/radekbednarik/covid-czech-data-api
api covid-19 data deno library typescript
Last synced: 1 day ago
JSON representation
Library to make it easy to work with REST API of official Czech Covid data.
- Host: GitHub
- URL: https://github.com/radekbednarik/covid-czech-data-api
- Owner: radekBednarik
- License: mit
- Created: 2024-10-22T18:20:39.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-04T12:47:24.000Z (9 days ago)
- Last Synced: 2025-02-11T17:57:58.238Z (1 day ago)
- Topics: api, covid-19, data, deno, library, typescript
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wrapper for official Czech COVID data API
This library provides abstraction for the official Czech COVID data API. It is
wrapper around the [API](https://onemocneni-aktualne.mzcr.cz/api/v3/docs), which
provides a more user-friendly interface.## System requirements
- have [Deno](https://docs.deno.com/) installed. This library is primarily
tested against Deno.- this library also supports [Node.js](https://nodejs.org/) 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](https://onemocneni-aktualne.mzcr.cz/vytvorit-ucet).## Installation
Use JSR offered options to install.
## Example of usage
```ts
import Client from "@bedna/czech-covid-data-api-lib";// Client is a singleton
const client = Client.getInstance({ token: "" });const [data, err] = await client.basicOverview.getBasicOverviewV3();
if (!err) {
console.log(JSON.stringify(data, null, 2));
}
```## Documentation
- official API documentation is
[HERE](https://onemocneni-aktualne.mzcr.cz/api/v3/docs)