Get a single person's details, like their various IDs. If extended
is
"full"
, there will also be biographical data if available, e.g. their
birthday.
Usage
people_summary(id, extended = c("min", "full"))
Source
people_summary()
wraps endpoint /people/:id.
Arguments
- id
character(1)
: The ID of the item requested. Preferably thetrakt
ID (e.g.1429
). Other options are the trakt.tvslug
(e.g."the-wire"
) orimdb
ID (e.g."tt0306414"
). Can also be of length greater than 1, in which case the function is called on allid
values separately and the result is combined. Seevignette("tRakt")
for more details.- extended
character(1)
: Either"min"
(API default) or"full"
. The latter returns more variables and should generally only be used if required. Seevignette("tRakt")
for more details.
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.
See also
Other people data:
media_lists
,
media_people
,
people_media()
Other summary methods:
comments_comment()
,
episodes_summary()
,
movies_summary()
,
seasons_summary()
,
shows_summary()
,
user_profile()
Examples
# A single person's extended information
people_summary("bryan-cranston", "full")
#> # A tibble: 4 × 14
#> name social_ids biography birthday death birthplace homepage
#> <chr> <named list> <chr> <date> <chr> <chr> <chr>
#> 1 Bryan Cranston <chr [1]> "Bryan Lee C… 1956-03-07 NA Hollywood… NA
#> 2 Bryan Cranston <chr [1]> "Bryan Lee C… 1956-03-07 NA Hollywood… NA
#> 3 Bryan Cranston <chr [1]> "Bryan Lee C… 1956-03-07 NA Hollywood… NA
#> 4 Bryan Cranston <NULL> "Bryan Lee C… 1956-03-07 NA Hollywood… NA
#> # ℹ 7 more variables: known_for_department <chr>, gender <chr>,
#> # updated_at <dttm>, trakt <chr>, slug <chr>, imdb <chr>, tmdb <chr>
# Multiple people
people_summary(c("kit-harington", "emilia-clarke"))
#> # A tibble: 2 × 5
#> name trakt slug imdb tmdb
#> <chr> <chr> <chr> <chr> <chr>
#> 1 Kit Harington 436512 kit-harington nm3229685 239019
#> 2 Emilia Clarke 436511 emilia-clarke nm3592338 1223786