Learn Data & AI Skills | 50% off
Get 50% off unlimited learning

TMDb (version 1.1)

movie_top_rated: Retrieve top rated movies.

Description

Get the list of top rated movies. By default, this list will only include movies that have 10 or more votes. This list refreshes every day.

Usage

movie_top_rated(api_key, page = 1, language = NA)

Arguments

api_key

Your TMDb Consumer Key.

page

The number of the page to show. Minimum 1, maximum 1000.

language

A ISO 639-1 code.

Value

A list with the following fields:

page

The current page for the results.

results

A list of top-rated movies, with a brief description.

total_pages

The number of pages for the results.

total_results

The number of results.

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"

movie_top_rated(api_key = api_key, page = 155, language = "en")
# }

Run the code above in your browser using DataLab