Learn R Programming

TMDb (version 1.1)

search_company: Search for companies by name.

Description

Retrieve all the company ID that match (entirely or partially) the query.

Usage

search_company(api_key, query, page = 1)

Arguments

api_key

Your TMDb Consumer Key.

query

A CGI escaped string.

page

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

Value

A list with the following fields:

page

The current page for the results.

results

The companies that match the query.

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"

search_company(api_key = api_key, query = "Fox")
# }

Run the code above in your browser using DataLab