Skip to contents

Fetch Tagesschau channels

Usage

tagesschau_channels(flatten = FALSE, flatten_mode = "json")

Arguments

flatten

Logical; if TRUE, simplify nested list columns according to flatten_mode. Default FALSE keeps list columns as-is.

flatten_mode

How to handle list columns when flatten = TRUE:

"drop"

Remove list columns entirely. Use when nested data is not needed.

"json"

Convert each list element to a JSON string. Preserves all data in a text-queryable format. This is the default.

"unnest"

Expand list columns into multiple rows via tidyr::unnest_longer(). Warning: this can significantly increase the number of rows.

Value

A tibble with the same columns as tagesschau_homepage(), restricted to channel entries.

Details

Lists the Tagesschau channels endpoint. API documentation: https://bundesapi.github.io/tagesschau-api/.

Examples

if (FALSE) { # \dontrun{
tagesschau_channels(flatten = TRUE)
} # }