search_multi {TMDb} | R Documentation |
Search the movie, TV show and person collections with a single query.
Description
Each item returned in the result array has a media_type field that maps to either movie, TV show or person. Each mapped result is the same response you would get from each independent search.
Usage
search_multi(api_key, query, page = 1, include_adult = NA, language = NA)
Arguments
api_key |
Your TMDb Consumer Key. |
query |
A CGI escaped string. |
page |
The number of the page to show. Minimum 1, maximum 1000. |
include_adult |
Toggle the inclusion of adult titles. Expected value is: true or false. |
language |
A ISO 639-1 code. |
Value
A list with the following fields:
page |
The current page for the results. |
results |
The movies, TV shows and people that match the query. |
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"
search_multi(api_key = api_key, query = "star wars")
## End(Not run)
[Package TMDb version 1.1 Index]