This function retrieves event data based on search parameters from the Austrian Parliament API. It mirrors the search functionality on the Austrian Parliament website at this page, and additionally facilitates searches by legislative period.
Usage
get_events(
institution = NULL,
event_type = NULL,
location = NULL,
legis_period = NULL,
date_start = NULL,
date_end = NULL,
echo = TRUE
)Arguments
- institution
Character vector specifying the institution(s) to query. Must be "NR" (Nationalrat/National Council), "BR" (Bundesrat/Federal Council), or "ParlDir/Klub" ("Parliamentary Directorate/Caucus"). Can be a single value or vector for multiple institutions. NULL covers all institutions.
- event_type
Optional character string indicating the event type. Must be one of the predefined event types (see Details). Default is NULL (all types).
- location
Optional character string to filter events by location. Must be one of the predefined locations (see Details). Default is NULL (all locations).
- legis_period
Character or numeric value of length 1, or NULL. Specifies the legislative period to search in. Only available if
date_startanddate_endare NULL.- date_start
Optional character string representing the start date in day-month-year (DMY) format (e.g., "26-10-2025", "26.10.2025", or "26/10/2025"). Default is NULL.
- date_end
Optional character string representing the end date in day-month-year (DMY) format (e.g., "26-10-2025", "26.10.2025", or "26/10/2025"). Default is NULL.
- echo
Logical indicating whether to print used search parameters, number of hits, and link to results on website of parliament. Default is TRUE.
Value
A data frame containing event details with the following columns, or NULL if no results are found:
date: Event date (parsed as Date)date_time_start: Event start date and time (parsed as POSIXct)date_time_end: Event end date and time (parsed as POSIXct)title: Event title/nameevent_type: Type of eventlocation: Event location/venuetopic: Event topic/subjectinstitution: Institution hosting the eventmedia_relevance: Media relevance indicatorguidance_type: Type of guidance (if applicable)group: Group informationview: View/visibility settingsfully_booked: Whether the event is fully bookedregistration: Registration informationlivestream_url: URL for livestream (if available)available: Availability statuslanguage: Event languagelink: Primary link to event detailslink2: Secondary link (if available)
Details
event_type
Allowed event types are:
"Plenarsitzung" (Plenary Session)
"Ausschusssitzung oder Ausschuss" (Committee Meeting or Committee)
"Besuch einer Plenarsitzung" (Visit to a Plenary Session)
"Demokratiebildung" (Democracy Education)
"Fest-/Gedenksitzung" (Ceremonial/Commemorative Session)
"Führung" (Guided Tour)
"Internationales" (International)
"Klubveranstaltung" (Club Event)
"Konferenz" (Conference)
"Parlamentarische Enquete" (Parliamentary Inquiry)
"Pressekonferenz" (Press Conference)
"Sitzung der Bundesversammlung" (Federal Assembly Session)
"Sonstiger Termin" (Other Event)
"Veranstaltung" (Event)
location
Allowed locations are:
"Abgeordneten-Sprechzimmer (alt)"
"Auditorium"
"Außer Haus"
"Bertha von Suttner | Lokal 4"
"Blauer Salon (Epstein E1)"
"Bundesratssaal"
"Bundesrats-Sitzungssaal (alt)"
"Bundesversammlungssaal"
"Burgraum (Hofburg)"
"Camineum (ÖNB)"
"Dachfoyer (Hofburg)"
"Egon Schiele | Lokal 7"
"Elise Richter | Lokal 2"
"Empfangssalon"
"Epstein Beletage"
"Epstein Innenhof"
"Erwin Schrödinger | Lokal 1"
"Extern"
"Festsaal (Epstein E3)"
"Großer Prunksaal (1. OG Stubenring)"
"Großer Redoutensaal"
"Heldenplatz"
"Historischer Sitzungssaal (alt)"
"Kunschak-Saal"
"Lise Meitner | Lokal 6"
"Lokal I (Ministerratszimmer, alt)"
"Lokal II (alt)"
"Lokal III (alt)"
"Lokal IV (alt)"
"Lokal V (alt)"
"Lokal VI (Budgetsaal, alt)"
"Lokal VII (alt)"
"Lokal VIII (alt)"
"Lokal 1 Medienraum (EG Bibliothekshof)"
"Lokal 2 (EG Bibliothekshof)"
"Lokal 3 (EG Bibliothekshof)"
"Lokal 4 (2. OG Bibliothekshof)"
"Lokal 5 (3. OG Bibliothekshof)"
"Lokal 6 (3. OG Bibliothekshof)"
"Lokal 7 (Hofburg Segmentbogen)"
"Ludwig Wittgenstein | Lokal 5"
"Nationalratssaal"
"Nationalrats-Sitzungssaal (alt)"
"Palais Epstein"
"Parlament"
"Parliament"
"Plenar-Lounge"
"Portikus"
"Pressezentrum"
"Roter Salon (Epstein E4)"
"Säulenhalle"
"Säulenhalle (alt)"
"Spielsalon (Epstein E5)"
"Teamentwicklung"
"Theophil Hansen | Lokal 3"
"virtuell"
Note
Free Text Search: Due to limitations of the underlying API, this function does not currently support a general free text search across all fields. Search functionality is restricted to the specific parameters provided.
Examples
if (FALSE) { # \dontrun{
# Basic example: Get all National Council events
events <- get_events(institution = "NR")
# Get events with specific date range
events <- get_events(
institution = "NR",
date_start = "01-01-2024",
date_end = "31-01-2024"
)
# Get plenary sessions in the National Council chamber
events <- get_events(
institution = "NR",
event_type = "Plenarsitzung",
location = "Nationalratssaal"
)
# Get Federal Council events
events <- get_events(
institution = "BR",
event_type = "Plenarsitzung"
)
# Get events for a specific legislative period
events <- get_events(
institution = "NR",
legis_period = 28
)
# Get events from multiple institutions
events <- get_events(
institution = c("NR", "BR"),
event_type = "Plenarsitzung"
)
} # }
