Learn R Programming

TMDb (version 1.1)

tv_credits: Retrieve credits for a TV series.

Description

Get the cast & crew information about a TV series. Just like the website, TMDb pulls this information from the last season of the series.

Usage

tv_credits(api_key, id, append_to_response = NA)

Arguments

api_key

Your TMDb Consumer Key.

id

The TV show ID.

append_to_response

Comma separated, any TV series method.

Value

A list with the following fields:

id

The TV show ID.

cast

The cast of the TV show.

crew

The crew of the TV show.

References

https://developers.themoviedb.org/3/getting-started

Examples

Run this code
# NOT RUN {
## An example of an authenticated request,
## where api_key is fictitious.
## You can obtain your own at https://www.themoviedb.org/documentation/api

api_key <- "key"

tv_credits(api_key = api_key, id = 1396)
# }

Run the code above in your browser using DataLab