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 Narc… 30 tt27… narc… 63351 2826… 94630 5d9c0803…
#> 2 breaking-b… 2005 Weeds 102 tt04… weeds 186 74845 185 5d9c0801…
#> 3 breaking-b… 2014 Fargo 51 tt28… fargo 60622 2696… 60203 5d9c0838…
#> 4 breaking-b… 2015 Bett… 63 tt30… bett… 60059 2731… 59660 5d9c0825…
#> 5 breaking-b… 2016 Anim… 75 tt55… anim… 66025 3042… 1039… 5d9c0818…
#> # ℹ 1 more variable: plex_slug <chr>
