List German public holidays
Usage
feiertage_list(
jahr = NULL,
nur_land = NULL,
nur_daten = NULL,
safe = TRUE,
refresh = FALSE
)Arguments
- jahr
Year to query (defaults to current year on the API).
- nur_land
Optional Bundesland code to filter.
- nur_daten
Logical; return only date values (1) or include names (0).
- safe
Logical; if
TRUE(default), apply rate-limiting and cache GET responses totools::R_user_dir("bunddev", "cache").- refresh
Logical; if
TRUE, ignore cached responses and re-fetch from the API (defaultFALSE).
Value
A tibble with one row per holiday:
- region
Bundesland code (character,
NAfor nationwide results).- holiday
Holiday name (character).
- date
Date in
YYYY-MM-DDformat (character).- note
Optional holiday note from the API (character or
NA).- date_time
Date as
POSIXctin Europe/Berlin.
Details
The Feiertage API returns German public holidays from a Wikipedia-based dataset. The endpoint supports filtering by year and Bundesland. Official docs: https://github.com/bundesAPI/feiertage-api.
See also
bunddev_parameters() for available query parameters.