Skip to contents

Get a Bundestag news article

Usage

bundestag_article(article_id, safe = TRUE, refresh = FALSE)

Arguments

article_id

Article id.

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 one-row tibble with fields extracted from the XML document. Column names correspond to XML element names.

<tag>

One column per unique scalar child element of the XML root (character). Exact names depend on the XML document structure.

<repeated_tag>

List-column when a child element name appears more than once.

Details

Returns a single Bundestag news article in XML format. API documentation: https://bundesapi.github.io/bundestag-api/.

Examples

if (FALSE) { # \dontrun{
bundestag_article(849630)
} # }