Skip to contents

List components

Usage

luftqualitaet_components(params = list(), safe = TRUE, refresh = FALSE)

Arguments

params

Named list of query parameters. Common keys:

date_from

Start date/time filter (character, ISO-8601/date).

date_to

End date/time filter (character, ISO-8601/date).

component

Pollutant component id/code (character).

scope

Scope id/code (character).

station

Station id/code (character).

network

Network id/code (character).

lang

Language code for labels/descriptions (character).

safe

Logical; if TRUE (default), apply rate-limiting and cache GET responses to tools::R_user_dir("bunddev", "cache").

refresh

Logical; if TRUE, ignore cached responses and re-fetch from the API (default FALSE).

Value

A tibble with one row per component. Column names are derived from the indices metadata in the API response and typically include a component id/code key column followed by component id, component code, component symbol, component unit, and component name.

Details

Returns available pollutant components. API documentation: https://luftqualitaet.api.bund.dev.