search_media: Search media

Description Usage Arguments Value Examples

View source: R/media.R

Description

Search for media outlets by name and/or tag.

Usage

1
search_media(name = NULL, tag = NULL, n = 20, key = NULL, tibble = TRUE)

Arguments

name

Media name to search for.

tag

MediaCloud tag to search for.

n

Maximum number of results to return.

key

MediaCloud API key. Will be read from environment variable 'MEDIACLOUD_API_KEY' if set to NULL (default).

tibble

Logical indicating whether result should be returned as a tibble. Default to TRUE. If set to FALSE, the unedited content of the HTTP response will be returned instead.

Value

A tibble containing information about found media outlets.

Examples

1
2
3
4
5
## Not run: 
search_media(name = "New York")
search_media(tag = "Germany___National")

## End(Not run)

joon-e/mediacloud documentation built on Jan. 8, 2022, 12:04 a.m.