A wrapper for the Pegelonline API. The API Endpoint is free of charge and can be used without registration. The API provided data about water levels, water temperatures and discharge rates of rivers in Germany. The data is provided by the Federal Waterways and Shipping Administration (WSV).
The wrapper is written in Typescript and can be used in Node.js and in the browser.
npm install pegelonline-api-client
const PegelonlineApi = require('pegelonline-api-client').PegelOnlineApiClient;
const api = new PegelOnlineApiClient();
const station = await api.getStationDetails('c0ec139b-13b4-4f86-bee3-06665ad81a40');
import { PegelOnlineApiClient } from 'pegelonline-api-client';
const api = new PegelOnlineApiClient();
const station = await api.getStationDetails('c0ec139b-13b4-4f86-bee3-06665ad81a40');