Classes
- Account
- AccountSection
- Collection
- CollectionSection
- Company
- CompanySection
- ConfigurationSection
- Credit
- CreditSection
- DiscoverMovieSettings
- DiscoverSection
- DiscoverTvShowSettings
- FindSection
- GenreSection
- GuestSession
- GuestSessionSection
- Keyword
- KeywordSection
- List
- ListSection
- Movie
- MovieSection
- Network
- NetworkSection
- PeopleSection
- Person
- Review
- ReviewSection
- SearchSection
- TrendingSection
- TvShow
- TvShowEpisode
- TvShowEpisodeGroup
- TvShowSeason
- TvShowSection
- WatchProvidersSection
- DiscoverSettings
Members
(inner, constant) searchType
All different search types on TMDb.
- Source:
Methods
(async, inner) searchPageAsync(url, searchTerm, apiKey, page, includeAdult, language, additionalInfo) → {Promise.<*>}
Gets search data from TMDb as a JSON object.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
url |
string
|
The url path. | |
searchTerm |
string
|
The search term (query). | |
apiKey |
string
|
The API key to the TMDb API. | |
page |
Number
|
1 | The search result page to return data from. |
includeAdult |
Boolean
|
true | true if adult content will be included. |
language |
string
|
en-US | The language of the search results. Default value is "en-US". |
additionalInfo |
Object
|
Additional info to add to the search query. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data of the specified page.
(async, inner) searchPagesAsync(url, searchTerm, apiKey, startPage, pageCount, includeAdult, language, additionalInfo) → {Promise.<*>}
Gets search data from TMDb as a JSON object.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
url |
string
|
The url. | |
searchTerm |
string
|
The search term (query). | |
apiKey |
string
|
The API key to the TMDb API. | |
startPage |
Number
|
The first search result page to return data from. | |
pageCount |
Number
|
The number of search result pages to return data from. | |
includeAdult |
Boolean
|
true | true if adult content will be included. |
language |
string
|
en-US | The language of the search results. Default value is "en-US". |
additionalInfo |
Object
|
Additional info to add to the search query. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with search results.