Skip to contents

Get a Bundestag video feed entry

Usage

bundestag_video_feed(content_id, safe = TRUE, refresh = FALSE)

Arguments

content_id

Video content 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 video feed fields extracted from XML. 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 video feed entry from the Bundestag webtv service. API documentation: https://bundesapi.github.io/bundestag-api/.

Examples

if (FALSE) { # \dontrun{
bundestag_video_feed(7529016)
} # }