Get similiar(ish) shows
Source
shows_related() wraps endpoint /shows/:id/related.
Arguments
- id
character(1): The ID of the item requested. Preferably thetraktID (e.g.1429). Other options are the trakt.tvslug(e.g."the-wire") orimdbID (e.g."tt0306414"). Can also be of length greater than 1, in which case the function is called on allidvalues separately and the result is combined. Seevignette("tRakt")for more details.- limit
integer(1) [10L]: Number of items to return. Must be greater than0and will be coerced viaas.integer().- extended
character: Level of detail for the API response."min"(default): Minimal info (title, year, IDs). Omits theextendedquery param."full": Complete info including overview, ratings, runtime, etc."images": Minimal info plus image URLs (returned as a list-column)."full,images": Complete info plus images."metadata": Collection endpoints only; adds video/audio metadata.
Multiple values can be combined as a comma-separated string (e.g.
"full,images") or a character vector (e.g.c("full", "images")).
Value
A tibble(). If the function has a limit parameter
(defaulting to 10), this will be the (maximum) number of rows of the tibble.
If there are no results (or the API is unreachable), an empty tibble() is returned.
Examples
shows_related("breaking-bad", limit = 5)
#> # A tibble: 5 × 11
#> related_to year title aired_episodes imdb slug tmdb tvdb trakt plex_guid
#> <chr> <int> <chr> <int> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 breaking-b… 2015 Bett… 63 tt30… bett… 60059 2731… 59660 5d9c0825…
#> 2 breaking-b… 2002 The … 60 tt03… the-… 1438 79126 1429 5d9c086c…
#> 3 breaking-b… 1999 The … 86 tt01… the-… 1398 75299 1389 5d9c086c…
#> 4 breaking-b… 2017 Ozark 44 tt50… ozark 69740 3290… 1199… 5d9f40c6…
#> 5 breaking-b… 2015 Narc… 30 tt27… narc… 63351 2826… 94630 5d9c0803…
#> # ℹ 1 more variable: plex_slug <chr>
