genres_movies {TMDb} | R Documentation |
Get the list of movies for a particular genre by id.
Description
By default, only movies with 10 or more votes are included.
Usage
genres_movies(api_key, id, page = 1, language = NA, include_all_movies = NA,
include_adult = NA)
Arguments
api_key |
Your TMDb Consumer Key. |
id |
The movie genre ID. |
page |
The number of the page to show. Minimum 1, maximum 1000. |
language |
A ISO 639-1 code. |
include_all_movies |
Toggle the inclusion of all movies and not just those with 10 or more ratings. Expected value is: true or false. |
include_adult |
Toggle the inclusion of adult titles. Expected value is: true or false. |
Value
A list with the following fields:
id |
The ID genre. |
page |
The current page for the results. |
results |
The movies belonging to the id genre. |
total_pages |
The number of pages for the results. |
total_results |
The number of results. |
Author(s)
Andrea Capozio
References
https://developers.themoviedb.org/3/getting-started
Examples
## 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"
genres_movies(api_key = api_key, id = 18, page = 1, include_all_movies = TRUE,
include_adult = TRUE)
## End(Not run)
[Package TMDb version 1.1 Index]