Get all comments of a thing
Usage
movies_comments(
  id,
  sort = c("newest", "oldest", "likes", "replies"),
  extended = c("min", "full"),
  limit = 10L
)
shows_comments(
  id,
  sort = c("newest", "oldest", "likes", "replies"),
  extended = c("min", "full"),
  limit = 10L
)
seasons_comments(
  id,
  season = 1L,
  sort = c("newest", "oldest", "likes", "replies"),
  extended = c("min", "full"),
  limit = 10L
)
episodes_comments(
  id,
  season = 1L,
  episode = 1L,
  sort = c("newest", "oldest", "likes", "replies"),
  extended = c("min", "full"),
  limit = 10L
)Source
movies_comments() wraps endpoint /movies/:id/comments/:sort.
shows_comments() wraps endpoint /shows/:id/comments/:sort.
seasons_comments() wraps endpoint /shows/:id/seasons/:season/comments/:sort.
episodes_comments() wraps endpoint /shows/:id/seasons/:season/episodes/:episode/comments/:sort.
Arguments
- id
- character(1): The ID of the item requested. Preferably the- traktID (e.g.- 1429). Other options are the trakt.tv- slug(e.g.- "the-wire") or- imdbID (e.g.- "tt0306414"). Can also be of length greater than 1, in which case the function is called on all- idvalues separately and the result is combined. See- vignette("tRakt")for more details.
- sort
- character(1) ["newest"]: Comment sort order, one of "newest", "oldest", "likes" or "replies".
- extended
- character(1): Either- "min"(API default) or- "full". The latter returns more variables and should generally only be used if required. See- vignette("tRakt")for more details.
- limit
- integer(1) [10L]: Number of items to return. Must be greater than- 0and will be coerced via- as.integer().
- season, episode
- integer(1) [1L]: The season and episode number. If longer, e.g.- 1:5, the function is vectorized and the output will be combined. This may result in a lot of API calls. Use wisely.
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.
Functions
- movies_comments(): Get comments for a movie
- shows_comments(): Get comments for a movie
- seasons_comments(): Get comments for a season
- episodes_comments(): Get comments for an episode
See also
Other comment methods:
comments_comment(),
comments_trending(),
comments_updates(),
user_comments(),
user_list_comments()
Other movie data:
anticipated_media,
collected_media,
media_aliases,
media_lists,
media_people,
media_ratings(),
media_stats(),
media_translations,
media_watching,
movies_boxoffice(),
movies_related(),
movies_releases(),
movies_summary(),
people_media(),
played_media,
popular_media,
trending_media,
watched_media
Other show data:
collected_media,
media_aliases,
media_lists,
media_people,
media_ratings(),
media_stats(),
media_translations,
media_watching,
people_media(),
played_media,
shows_next_episode(),
shows_related(),
shows_summary()
Other season data:
media_lists,
media_people,
media_ratings(),
media_stats(),
seasons_episodes(),
seasons_season(),
seasons_summary()
Other episode data:
episodes_summary(),
media_lists,
media_people,
media_ratings(),
media_stats(),
media_translations,
media_watching,
seasons_episodes(),
seasons_summary(),
shows_next_episode()
