Learn R Programming

TMDb (version 1.1)

credit: Retrieve credits.

Description

Get the detailed information about a particular credit record.

Usage

credit(api_key, credit_id, language = NA)

Arguments

api_key

Your TMDb Consumer Key.

credit_id

The credit ID.

language

A ISO 639-1 code.

Value

A list with the following fields:

credit_type

The credit's type.

department

The section to which a person belongs.

job

The job of a person.

media

Name, ID and character associated with the person.

media_type

The media's type.

id

The credit ID.

person

Name and ID of the character associated with the person.

Details

This is currently only supported with the new credit model found in TV. These ids can be found from any TV credit response as well as the tv_credits and combined_credits methods for people.

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"

credit(api_key = api_key, credit_id = "52542282760ee313280017f9", language = "it")
# }

Run the code above in your browser using DataLab