Skip to contents

Search Tagesschau content

Usage

tagesschau_search(
  search_text = NULL,
  page_size = NULL,
  result_page = NULL,
  flatten = FALSE,
  flatten_mode = "json"
)

Arguments

search_text

Query string.

page_size

Results per page.

result_page

Result page index.

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 search results.

Details

Searches Tagesschau content by free-text query. API documentation: https://bundesapi.github.io/tagesschau-api/.

Examples

if (FALSE) { # \dontrun{
tagesschau_search(search_text = "energie", page_size = 10, flatten = TRUE)
} # }