public class TheMovieDbApi extends Object
This is for version 3 of the API as specified here: http://help.themoviedb.org/kb/api/about-3
| Constructor and Description |
|---|
TheMovieDbApi(String apiKey)
API for The Movie Db.
|
TheMovieDbApi(String apiKey,
org.apache.http.client.HttpClient httpClient)
API for The Movie Db.
|
| Modifier and Type | Method and Description |
|---|---|
StatusCode |
addItemToList(String sessionId,
String listId,
Integer mediaId)
This method lets users add new items to a list that they created.
|
StatusCode |
addToWatchList(String sessionId,
int accountId,
MediaType mediaType,
Integer mediaId)
Add a movie to an accounts watch list.
|
boolean |
checkItemStatus(String listId,
Integer mediaId)
Check to see if an item is already on a list.
|
URL |
createImageUrl(String imagePath,
String requiredSize)
Generate the full image URL from the size and image path
|
String |
createList(String sessionId,
String name,
String description)
This method lets users create a new list.
|
StatusCode |
deleteList(String sessionId,
String listId)
This method lets users delete a list that they created.
|
FindResults |
find(String id,
ExternalSource externalSource,
String language)
You con use this method to find movies, tv series or persons using
external ids.
|
Account |
getAccount(String sessionId)
Get the basic information for an account.
|
TokenAuthorisation |
getAuthorisationToken()
This method is used to generate a valid request token for user based
authentication.
|
ResultList<Artwork> |
getCollectionImages(int collectionId,
String language)
Get all of the images for a particular collection by collection id.
|
CollectionInfo |
getCollectionInfo(int collectionId,
String language)
This method is used to retrieve all of the basic information about a
movie collection.
|
Company |
getCompanyInfo(int companyId)
This method is used to retrieve the basic information about a production
company on TMDb.
|
ResultList<MovieBasic> |
getCompanyMovies(int companyId,
String language,
Integer page)
This method is used to retrieve the movies associated with a company.
|
Configuration |
getConfiguration()
Get the configuration information
|
CreditInfo |
getCreditInfo(String creditId,
String language)
Get the detailed information about a particular credit record.
|
ResultList<MovieBasic> |
getDiscoverMovies(Discover discover)
Discover movies by different types of data like average rating, number of
votes, genres and certifications.
|
ResultList<TVBasic> |
getDiscoverTV(Discover discover)
Discover movies by different types of data like average rating, number of
votes, genres and certifications.
|
MediaState |
getEpisodeAccountState(int tvID,
int seasonNumber,
int episodeNumber,
String sessionID)
This method lets users get the status of whether or not the TV episode
has been rated.
|
ResultList<ChangeKeyItem> |
getEpisodeChanges(int episodeID,
String startDate,
String endDate)
Look up a TV episode's changes by episode ID
|
MediaCreditList |
getEpisodeCredits(int tvID,
int seasonNumber,
int episodeNumber)
Get the TV episode credits by combination of season and episode number.
|
ExternalID |
getEpisodeExternalID(int tvID,
int seasonNumber,
int episodeNumber,
String language)
Get the external ids for a TV episode by comabination of a season and
episode number.
|
ResultList<Artwork> |
getEpisodeImages(int tvID,
int seasonNumber,
int episodeNumber)
Get the images (episode stills) for a TV episode by combination of a
season and episode number.
|
TVEpisodeInfo |
getEpisodeInfo(int tvID,
int seasonNumber,
int episodeNumber,
String language,
String... appendToResponse)
Get the primary information about a TV episode by combination of a season
and episode number.
|
ResultList<Video> |
getEpisodeVideos(int tvID,
int seasonNumber,
int episodeNumber,
String language)
Get the videos that have been added to a TV episode (teasers, clips,
etc...)
|
ResultList<MovieBasic> |
getFavoriteMovies(String sessionId,
int accountId)
Get the account favourite movies
|
ResultList<TVBasic> |
getFavoriteTv(String sessionId,
int accountId)
Get the list of favorite TV series for an account.
|
ResultList<Genre> |
getGenreMovieList(String language)
Get the list of Movie genres.
|
ResultList<MovieBasic> |
getGenreMovies(int genreId,
String language,
Integer page,
Boolean includeAllMovies,
Boolean includeAdult)
Get a list of movies per genre.
|
ResultList<Genre> |
getGenreTVList(String language)
Get the list of TV genres..
|
ResultList<MovieBasic> |
getGuestRatedMovies(String guestSessionId,
String language,
Integer page,
SortBy sortBy)
Get a list of rated movies for a specific guest session id.
|
TokenSession |
getGuestSessionToken()
This method is used to generate a guest session id.
|
ResultList<JobDepartment> |
getJobs()
Get a list of valid jobs
|
Keyword |
getKeyword(String keywordId)
Get the basic information for a specific keyword id.
|
ResultList<MovieBasic> |
getKeywordMovies(String keywordId,
String language,
Integer page)
Get the list of movies for a particular keyword by id.
|
MovieInfo |
getLatestMovie()
This method is used to retrieve the newest movie that was added to TMDb.
|
TVInfo |
getLatestTV()
Get the latest TV show id.
|
ListItem<MovieInfo> |
getList(String listId)
Get a list by its ID
|
MediaState |
getMovieAccountState(int movieId,
String sessionId)
This method lets a user get the status of whether or not the movie has
been rated or added to their favourite or movie watch list.
|
ResultList<AlternativeTitle> |
getMovieAlternativeTitles(int movieId,
String country)
This method is used to retrieve all of the alternative titles we have for
a particular movie.
|
ResultList<ChangeListItem> |
getMovieChangeList(Integer page,
String startDate,
String endDate)
Get a list of Movie IDs that have been edited.
|
ResultList<ChangeKeyItem> |
getMovieChanges(int movieId,
String startDate,
String endDate)
Get the changes for a specific movie ID.
|
MediaCreditList |
getMovieCredits(int movieId)
Get the cast and crew information for a specific movie id.
|
ResultList<Artwork> |
getMovieImages(int movieId,
String language)
This method should be used when you’re wanting to retrieve all of the
images for a particular movie.
|
MovieInfo |
getMovieInfo(int movieId,
String language,
String... appendToResponse)
This method is used to retrieve all of the basic movie information.
|
MovieInfo |
getMovieInfoImdb(String imdbId,
String language,
String... appendToResponse)
This method is used to retrieve all of the basic movie information.
|
ResultList<Keyword> |
getMovieKeywords(int movieId)
This method is used to retrieve all of the keywords that have been added
to a particular movie.
|
ResultList<UserList> |
getMovieLists(int movieId,
Integer page,
String language)
Get the lists that the movie belongs to
|
ResultList<ReleaseInfo> |
getMovieReleaseInfo(int movieId,
String language)
This method is used to retrieve all of the release and certification data
we have for a specific movie.
|
ResultList<Review> |
getMovieReviews(int movieId,
Integer page,
String language)
Get the reviews for a particular movie id.
|
ResultsMap<String,List<Certification>> |
getMoviesCertification()
Get a list of movies certification.
|
ResultList<Translation> |
getMovieTranslations(int movieId)
This method is used to retrieve a list of the available translations for
a specific movie.
|
ResultList<Video> |
getMovieVideos(int movieId,
String language)
This method is used to retrieve all of the trailers for a particular
movie.
|
Network |
getNetworkInfo(int networkId)
This method is used to retrieve the basic information about a TV network.
|
ResultList<MovieInfo> |
getNowPlayingMovies(Integer page,
String language)
This method is used to retrieve the movies currently in theatres.
|
ResultList<ChangeListItem> |
getPersonChangeList(Integer page,
String startDate,
String endDate)
Get a list of PersonInfo IDs that have been edited.
|
ResultList<ChangeKeyItem> |
getPersonChanges(int personId,
String startDate,
String endDate)
Get the changes for a specific person id.
|
PersonCreditList<CreditBasic> |
getPersonCombinedCredits(int personId,
String language)
Get the combined (movie and TV) credits for a specific person id.
|
ExternalID |
getPersonExternalIds(int personId)
Get the external ids for a specific person id.
|
ResultList<Artwork> |
getPersonImages(int personId)
Get the images for a specific person id.
|
PersonInfo |
getPersonInfo(int personId,
String... appendToResponse)
Get the general person information for a specific id.
|
PersonInfo |
getPersonLatest()
Get the latest person id.
|
PersonCreditList<CreditMovieBasic> |
getPersonMovieCredits(int personId,
String language)
Get the movie credits for a specific person id.
|
ResultList<PersonFind> |
getPersonPopular(Integer page)
Get the list of popular people on The Movie Database.
|
ResultList<ArtworkMedia> |
getPersonTaggedImages(int personId,
Integer page,
String language)
Get the images that have been tagged with a specific person id.
|
PersonCreditList<CreditTVBasic> |
getPersonTVCredits(int personId,
String language)
Get the TV credits for a specific person id.
|
ResultList<MovieInfo> |
getPopularMovieList(Integer page,
String language)
This method is used to retrieve the daily movie popularity list.
|
ResultList<MovieBasic> |
getRatedMovies(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of rated movies (and associated rating) for an account.
|
ResultList<TVBasic> |
getRatedTV(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of rated TV shows (and associated rating) for an account.
|
Review |
getReviews(String reviewId) |
MediaState |
getSeasonAccountState(int tvID,
String sessionID)
This method lets users get the status of whether or not the TV episodes
of a season have been rated.
|
ResultList<ChangeKeyItem> |
getSeasonChanges(int tvID,
String startDate,
String endDate)
Look up a TV season's changes by season ID.
|
MediaCreditList |
getSeasonCredits(int tvID,
int seasonNumber)
Get the cast & crew credits for a TV season by season number.
|
ExternalID |
getSeasonExternalID(int tvID,
int seasonNumber,
String language)
Get the external ids that we have stored for a TV season by season
number.
|
ResultList<Artwork> |
getSeasonImages(int tvID,
int seasonNumber,
String language,
String... includeImageLanguage)
Get the images that we have stored for a TV season by season number.
|
TVSeasonInfo |
getSeasonInfo(int tvID,
int seasonNumber,
String language,
String... appendToResponse)
Get the primary information about a TV season by its season number.
|
ResultList<Video> |
getSeasonVideos(int tvID,
int seasonNumber,
String language)
Get the videos that have been added to a TV season (trailers, teasers,
etc...)
|
TokenSession |
getSessionToken(TokenAuthorisation token)
This method is used to generate a session id for user based
authentication.
|
TokenAuthorisation |
getSessionTokenLogin(TokenAuthorisation token,
String username,
String password)
This method is used to generate a session id for user based
authentication.
|
ResultList<MovieInfo> |
getSimilarMovies(int movieId,
Integer page,
String language)
The similar movies method will let you retrieve the similar movies for a
particular movie.
|
ResultsMap<String,List<String>> |
getTimezones()
Get the list of supported timezones for the API methods that support
them.
|
ResultList<MovieInfo> |
getTopRatedMovies(Integer page,
String language)
This method is used to retrieve the top rated movies that have over 10
votes on TMDb.
|
MediaState |
getTVAccountState(int tvID,
String sessionID)
This method lets users get the status of whether or not the TV show has
been rated or added to their favourite or watch lists.
|
ResultList<TVInfo> |
getTVAiringToday(Integer page,
String language,
String timezone)
Get the list of TV shows that air today.
|
ResultList<AlternativeTitle> |
getTVAlternativeTitles(int tvID)
Get the alternative titles for a specific show ID.
|
ResultsMap<String,List<Certification>> |
getTvCertification()
Get a list of tv certification.
|
ResultList<ChangeListItem> |
getTvChangeList(Integer page,
String startDate,
String endDate)
Get a list of TV IDs that have been edited.
|
ResultList<ChangeKeyItem> |
getTVChanges(int tvID,
String startDate,
String endDate)
Get the changes for a specific TV show id.
|
ResultList<ContentRating> |
getTVContentRatings(int tvID)
Get the content ratings for a specific TV show id.
|
MediaCreditList |
getTVCredits(int tvID,
String language)
Get the cast & crew information about a TV series.
|
ExternalID |
getTVExternalIDs(int tvID,
String language)
Get the external ids that we have stored for a TV series.
|
ResultList<Artwork> |
getTVImages(int tvID,
String language,
String... includeImageLanguage)
Get the images (posters and backdrops) for a TV series.
|
TVInfo |
getTVInfo(int tvID,
String language,
String... appendToResponse)
Get the primary information about a TV series by id.
|
ResultList<Keyword> |
getTVKeywords(int tvID)
Get the plot keywords for a specific TV show id.
|
ResultList<TVInfo> |
getTVOnTheAir(Integer page,
String language)
Get the list of TV shows that are currently on the air.
|
ResultList<TVInfo> |
getTVPopular(Integer page,
String language)
Get the list of popular TV shows.
|
ResultList<TVInfo> |
getTVSimilar(int tvID,
Integer page,
String language)
Get the similar TV shows for a specific tv id.
|
ResultList<TVInfo> |
getTVTopRated(Integer page,
String language)
Get the list of top rated TV shows.
|
ResultList<Translation> |
getTVTranslations(int tvID)
Get the list of translations that exist for a TV series.
|
ResultList<Video> |
getTVVideos(int tvID,
String language)
Get the videos that have been added to a TV series (trailers, opening
credits, etc...)
|
ResultList<MovieInfo> |
getUpcoming(Integer page,
String language)
Get the list of upcoming movies.
|
ResultList<UserList> |
getUserLists(String sessionId,
int accountId)
Get all lists of a given user
|
ResultList<MovieBasic> |
getWatchListMovie(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of movies on an accounts watchlist.
|
ResultList<TVBasic> |
getWatchListTV(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of movies on an accounts watchlist.
|
StatusCode |
modifyFavoriteStatus(String sessionId,
int accountId,
Integer mediaId,
MediaType mediaType,
boolean isFavorite)
Add or remove a movie to an accounts favourite list.
|
StatusCode |
postEpisodeRating(int tvID,
int seasonNumber,
int episodeNumber,
int rating,
String sessionID,
String guestSessionID)
This method lets users rate a TV episode.
|
StatusCode |
postMovieRating(int movieId,
int rating,
String sessionId,
String guestSessionId)
This method lets users rate a movie.
|
StatusCode |
postTVRating(int tvID,
int rating,
String sessionID,
String guestSessionID)
This method lets users rate a TV show.
|
StatusCode |
removeFromWatchList(String sessionId,
int accountId,
MediaType mediaType,
Integer mediaId)
Remove a movie from an accounts watch list.
|
StatusCode |
removeItemFromList(String sessionId,
String listId,
Integer mediaId)
This method lets users remove items from a list that they created.
|
ResultList<Collection> |
searchCollection(String query,
Integer page,
String language)
Search for collections by name.
|
ResultList<Company> |
searchCompanies(String query,
Integer page)
Search Companies.
|
ResultList<Keyword> |
searchKeyword(String query,
Integer page)
Search for keywords by name
|
ResultList<MovieInfo> |
searchMovie(String query,
Integer page,
String language,
Boolean includeAdult,
Integer searchYear,
Integer primaryReleaseYear,
SearchType searchType)
Search Movies This is a good starting point to start finding movies on
TMDb.
|
ResultList<MediaBasic> |
searchMulti(String query,
Integer page,
String language,
Boolean includeAdult)
Search the movie, tv show and person collections with a single query.
|
ResultList<PersonFind> |
searchPeople(String query,
Integer page,
Boolean includeAdult,
SearchType searchType)
This is a good starting point to start finding people on TMDb.
|
ResultList<TVBasic> |
searchTV(String query,
Integer page,
String language,
Integer firstAirDateYear,
SearchType searchType)
Search for TV shows by title.
|
public TheMovieDbApi(String apiKey) throws MovieDbException
apiKey - apiKeyMovieDbException - exceptionpublic TheMovieDbApi(String apiKey, org.apache.http.client.HttpClient httpClient) throws MovieDbException
apiKey - apiKeyhttpClient - The httpClient to use for web requests.MovieDbException - exceptionpublic Account getAccount(String sessionId) throws MovieDbException
sessionId - sessionIdMovieDbException - exceptionpublic ResultList<UserList> getUserLists(String sessionId, int accountId) throws MovieDbException
sessionId - sessionIdaccountId - accountIdMovieDbException - exceptionpublic ResultList<MovieBasic> getFavoriteMovies(String sessionId, int accountId) throws MovieDbException
sessionId - sessionIdaccountId - accountIdMovieDbException - exceptionpublic StatusCode modifyFavoriteStatus(String sessionId, int accountId, Integer mediaId, MediaType mediaType, boolean isFavorite) throws MovieDbException
sessionId - sessionIdaccountId - accountIdmediaId - mediaIdmediaType - mediaTypeisFavorite - isFavoriteMovieDbException - exceptionpublic ResultList<MovieBasic> getRatedMovies(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - sessionIdaccountId - accountIdpage - pagesortBy - sortBylanguage - languageMovieDbException - exceptionpublic ResultList<TVBasic> getRatedTV(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - sessionIdaccountId - accountIdpage - pagesortBy - sortBylanguage - languageMovieDbException - exceptionpublic ResultList<MovieBasic> getWatchListMovie(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - sessionIdaccountId - accountIdpage - pagesortBy - sortBylanguage - languageMovieDbException - exceptionpublic ResultList<TVBasic> getWatchListTV(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - sessionIdaccountId - accountIdpage - pagesortBy - sortBylanguage - languageMovieDbException - exceptionpublic StatusCode addToWatchList(String sessionId, int accountId, MediaType mediaType, Integer mediaId) throws MovieDbException
sessionId - sessionIdaccountId - accountIdmediaId - mediaIdmediaType - mediaTypeMovieDbException - exceptionpublic StatusCode removeFromWatchList(String sessionId, int accountId, MediaType mediaType, Integer mediaId) throws MovieDbException
sessionId - sessionIdaccountId - accountIdmediaId - mediaIdmediaType - mediaTypeMovieDbException - exceptionpublic ResultList<TVBasic> getFavoriteTv(String sessionId, int accountId) throws MovieDbException
sessionId - sessionIdaccountId - accountIdMovieDbException - exceptionpublic ResultList<MovieBasic> getGuestRatedMovies(String guestSessionId, String language, Integer page, SortBy sortBy) throws MovieDbException
guestSessionId - guestSessionIdlanguage - languagepage - pagesortBy - only CREATED_AT_ASC or CREATED_AT_DESC is supportedMovieDbException - exceptionpublic TokenAuthorisation getAuthorisationToken() throws MovieDbException
MovieDbException - exceptionpublic TokenSession getSessionToken(TokenAuthorisation token) throws MovieDbException
token - tokenMovieDbException - exceptionpublic TokenAuthorisation getSessionTokenLogin(TokenAuthorisation token, String username, String password) throws MovieDbException
token - Session tokenusername - User's usernamepassword - User's passwordMovieDbException - exceptionpublic TokenSession getGuestSessionToken() throws MovieDbException
MovieDbException - exceptionpublic ResultsMap<String,List<Certification>> getMoviesCertification() throws MovieDbException
MovieDbException - exceptionpublic ResultsMap<String,List<Certification>> getTvCertification() throws MovieDbException
MovieDbException - exceptionpublic ResultList<ChangeListItem> getMovieChangeList(Integer page, String startDate, String endDate) throws MovieDbException
page - pagestartDate - the start date of the changes, optionalendDate - the end date of the changes, optionalMovieDbException - exceptionpublic ResultList<ChangeListItem> getTvChangeList(Integer page, String startDate, String endDate) throws MovieDbException
page - pagestartDate - the start date of the changes, optionalendDate - the end date of the changes, optionalMovieDbException - exceptionpublic ResultList<ChangeListItem> getPersonChangeList(Integer page, String startDate, String endDate) throws MovieDbException
page - pagestartDate - the start date of the changes, optionalendDate - the end date of the changes, optionalMovieDbException - exceptionpublic CollectionInfo getCollectionInfo(int collectionId, String language) throws MovieDbException
collectionId - collectionIdlanguage - languageMovieDbException - exceptionpublic ResultList<Artwork> getCollectionImages(int collectionId, String language) throws MovieDbException
collectionId - collectionIdlanguage - languageMovieDbException - exceptionpublic Company getCompanyInfo(int companyId) throws MovieDbException
companyId - companyIdMovieDbException - exceptionpublic ResultList<MovieBasic> getCompanyMovies(int companyId, String language, Integer page) throws MovieDbException
companyId - companyIdlanguage - languagepage - pageMovieDbException - exceptionpublic Configuration getConfiguration() throws MovieDbException
MovieDbExceptionpublic URL createImageUrl(String imagePath, String requiredSize) throws MovieDbException
imagePath - imagePathrequiredSize - requiredSizeMovieDbException - exceptionpublic ResultList<JobDepartment> getJobs() throws MovieDbException
MovieDbException - exceptionpublic ResultsMap<String,List<String>> getTimezones() throws MovieDbException
MovieDbExceptionpublic CreditInfo getCreditInfo(String creditId, String language) throws MovieDbException
This is currently only supported with the new credit model found in TV.
These IDs can be found from any TV credit response as well as the
TV_credits and combined_credits methods for people.
The episodes object returns a list of episodes and are generally going to
be guest stars.
The season array will return a list of season numbers.
Season credits are credits that were marked with the "add to every
season" option in the editing interface and are assumed to be "season
regulars".
creditId - creditIdlanguage - languageMovieDbException - exceptionpublic ResultList<MovieBasic> getDiscoverMovies(Discover discover) throws MovieDbException
discover - A discover object containing the search criteria requiredMovieDbException - exceptionpublic ResultList<TVBasic> getDiscoverTV(Discover discover) throws MovieDbException
discover - A discover object containing the search criteria requiredMovieDbException - exceptionpublic FindResults find(String id, ExternalSource externalSource, String language) throws MovieDbException
id - the external idexternalSource - one of ExternalSource.language - the languageMovieDbException - exceptionpublic ResultList<Genre> getGenreMovieList(String language) throws MovieDbException
language - languageMovieDbException - exceptionpublic ResultList<Genre> getGenreTVList(String language) throws MovieDbException
language - languageMovieDbException - exceptionpublic ResultList<MovieBasic> getGenreMovies(int genreId, String language, Integer page, Boolean includeAllMovies, Boolean includeAdult) throws MovieDbException
genreId - genreIdlanguage - languagepage - pageincludeAllMovies - includeAllMoviesincludeAdult - includeAdultMovieDbException - exceptionpublic Keyword getKeyword(String keywordId) throws MovieDbException
keywordId - keywordIdMovieDbException - exceptionpublic ResultList<MovieBasic> getKeywordMovies(String keywordId, String language, Integer page) throws MovieDbException
keywordId - keywordIdlanguage - languagepage - pageMovieDbException - exceptionpublic ListItem<MovieInfo> getList(String listId) throws MovieDbException
listId - listIdMovieDbException - exceptionpublic String createList(String sessionId, String name, String description) throws MovieDbException
sessionId - sessionIdname - namedescription - descriptionMovieDbException - exceptionpublic StatusCode deleteList(String sessionId, String listId) throws MovieDbException
sessionId - sessionIdlistId - listIdMovieDbException - exceptionpublic boolean checkItemStatus(String listId, Integer mediaId) throws MovieDbException
listId - listIdmediaId - mediaIdMovieDbException - exceptionpublic StatusCode addItemToList(String sessionId, String listId, Integer mediaId) throws MovieDbException
sessionId - sessionIdlistId - listIdmediaId - mediaIdMovieDbException - exceptionpublic StatusCode removeItemFromList(String sessionId, String listId, Integer mediaId) throws MovieDbException
sessionId - sessionIdlistId - listIdmediaId - mediaIdMovieDbException - exceptionpublic MovieInfo getMovieInfo(int movieId, String language, String... appendToResponse) throws MovieDbException
movieId - movieIdlanguage - languageappendToResponse - appendToResponseMovieDbException - exceptionpublic MovieInfo getMovieInfoImdb(String imdbId, String language, String... appendToResponse) throws MovieDbException
imdbId - imdbIdlanguage - languageappendToResponse - appendToResponseMovieDbException - exceptionpublic MediaState getMovieAccountState(int movieId, String sessionId) throws MovieDbException
movieId - movieIdsessionId - sessionIdMovieDbException - exceptionpublic ResultList<AlternativeTitle> getMovieAlternativeTitles(int movieId, String country) throws MovieDbException
movieId - movieIdcountry - countryMovieDbException - exceptionpublic MediaCreditList getMovieCredits(int movieId) throws MovieDbException
movieId - movieIdMovieDbException - exceptionpublic ResultList<Artwork> getMovieImages(int movieId, String language) throws MovieDbException
movieId - movieIdlanguage - languageMovieDbException - exceptionpublic ResultList<Keyword> getMovieKeywords(int movieId) throws MovieDbException
movieId - movieIdMovieDbException - exceptionpublic ResultList<ReleaseInfo> getMovieReleaseInfo(int movieId, String language) throws MovieDbException
movieId - movieIdlanguage - languageMovieDbException - exceptionpublic ResultList<Video> getMovieVideos(int movieId, String language) throws MovieDbException
movieId - movieIdlanguage - languageMovieDbException - exceptionpublic ResultList<Translation> getMovieTranslations(int movieId) throws MovieDbException
movieId - movieIdMovieDbException - exceptionpublic ResultList<MovieInfo> getSimilarMovies(int movieId, Integer page, String language) throws MovieDbException
movieId - movieIdlanguage - languagepage - pageMovieDbException - exceptionpublic ResultList<Review> getMovieReviews(int movieId, Integer page, String language) throws MovieDbException
movieId - movieIdpage - pagelanguage - languageMovieDbException - exceptionpublic ResultList<UserList> getMovieLists(int movieId, Integer page, String language) throws MovieDbException
movieId - movieIdlanguage - languagepage - pageMovieDbException - exceptionpublic ResultList<ChangeKeyItem> getMovieChanges(int movieId, String startDate, String endDate) throws MovieDbException
movieId - movieIdstartDate - startDateendDate - endDateMovieDbException - exceptionpublic StatusCode postMovieRating(int movieId, int rating, String sessionId, String guestSessionId) throws MovieDbException
sessionId - sessionIdmovieId - movieIdrating - ratingguestSessionId - guestSessionIdMovieDbException - exceptionpublic MovieInfo getLatestMovie() throws MovieDbException
MovieDbException - exceptionpublic ResultList<MovieInfo> getUpcoming(Integer page, String language) throws MovieDbException
language - languagepage - pageMovieDbException - exceptionpublic ResultList<MovieInfo> getNowPlayingMovies(Integer page, String language) throws MovieDbException
language - languagepage - pageMovieDbException - exceptionpublic ResultList<MovieInfo> getPopularMovieList(Integer page, String language) throws MovieDbException
language - languagepage - pageMovieDbException - exceptionpublic ResultList<MovieInfo> getTopRatedMovies(Integer page, String language) throws MovieDbException
language - languagepage - pageMovieDbException - exceptionpublic Network getNetworkInfo(int networkId) throws MovieDbException
You can use this ID to search for TV shows with the discover method.
networkId - networkIdMovieDbException - exceptionpublic PersonInfo getPersonInfo(int personId, String... appendToResponse) throws MovieDbException
personId - personIdappendToResponse - appendToResponseMovieDbException - exceptionpublic PersonCreditList<CreditMovieBasic> getPersonMovieCredits(int personId, String language) throws MovieDbException
personId - personIdlanguage - languageMovieDbException - exceptionpublic PersonCreditList<CreditTVBasic> getPersonTVCredits(int personId, String language) throws MovieDbException
personId - personIdlanguage - languageMovieDbException - exceptionpublic PersonCreditList<CreditBasic> getPersonCombinedCredits(int personId, String language) throws MovieDbException
personId - personIdlanguage - languageMovieDbException - exceptionpublic ExternalID getPersonExternalIds(int personId) throws MovieDbException
personId - personIdMovieDbException - exceptionpublic ResultList<Artwork> getPersonImages(int personId) throws MovieDbException
personId - personIdMovieDbException - exceptionpublic ResultList<ArtworkMedia> getPersonTaggedImages(int personId, Integer page, String language) throws MovieDbException
personId - personIdpage - pagelanguage - languageMovieDbExceptionpublic ResultList<ChangeKeyItem> getPersonChanges(int personId, String startDate, String endDate) throws MovieDbException
personId - personIdstartDate - startDateendDate - endDateMovieDbExceptionpublic ResultList<PersonFind> getPersonPopular(Integer page) throws MovieDbException
page - pageMovieDbException - exceptionpublic PersonInfo getPersonLatest() throws MovieDbException
MovieDbException - exceptionpublic Review getReviews(String reviewId) throws MovieDbException
reviewId - reviewIdMovieDbExceptionpublic ResultList<Company> searchCompanies(String query, Integer page) throws MovieDbException
query - querypage - pageMovieDbException - exceptionpublic ResultList<Collection> searchCollection(String query, Integer page, String language) throws MovieDbException
query - querylanguage - languagepage - pageMovieDbException - exceptionpublic ResultList<Keyword> searchKeyword(String query, Integer page) throws MovieDbException
query - querypage - pageMovieDbException - exceptionpublic ResultList<MovieInfo> searchMovie(String query, Integer page, String language, Boolean includeAdult, Integer searchYear, Integer primaryReleaseYear, SearchType searchType) throws MovieDbException
query - querysearchYear - Limit the search to the provided year. Zero (0) will
get all yearslanguage - The language to include. Can be blank/null.includeAdult - true or false to include adult titles in the searchpage - The page of results to return. 0 to get the default (first
page)primaryReleaseYear - primaryReleaseYearsearchType - searchTypeMovieDbException - exceptionpublic ResultList<MediaBasic> searchMulti(String query, Integer page, String language, Boolean includeAdult) throws MovieDbException
query - querypage - pagelanguage - languageincludeAdult - includeAdultMovieDbException - exceptionpublic ResultList<PersonFind> searchPeople(String query, Integer page, Boolean includeAdult, SearchType searchType) throws MovieDbException
query - queryincludeAdult - includeAdultpage - pagesearchType - searchTypeMovieDbException - exceptionpublic ResultList<TVBasic> searchTV(String query, Integer page, String language, Integer firstAirDateYear, SearchType searchType) throws MovieDbException
query - querypage - pagelanguage - languagefirstAirDateYear - firstAirDateYearsearchType - searchTypeMovieDbExceptionpublic TVInfo getTVInfo(int tvID, String language, String... appendToResponse) throws MovieDbException
tvID - tvIDlanguage - languageappendToResponse - appendToResponseMovieDbExceptionpublic MediaState getTVAccountState(int tvID, String sessionID) throws MovieDbException
tvID - tvIDsessionID - sessionIDMovieDbExceptionpublic ResultList<AlternativeTitle> getTVAlternativeTitles(int tvID) throws MovieDbException
tvID - tvIDMovieDbExceptionpublic ResultList<ChangeKeyItem> getTVChanges(int tvID, String startDate, String endDate) throws MovieDbException
tvID - tvIDstartDate - startDateendDate - endDateMovieDbExceptionpublic ResultList<ContentRating> getTVContentRatings(int tvID) throws MovieDbException
tvID - tvIDMovieDbExceptionpublic MediaCreditList getTVCredits(int tvID, String language) throws MovieDbException
tvID - tvIDlanguage - languageMovieDbExceptionpublic ExternalID getTVExternalIDs(int tvID, String language) throws MovieDbException
tvID - tvIDlanguage - languageMovieDbExceptionpublic ResultList<Artwork> getTVImages(int tvID, String language, String... includeImageLanguage) throws MovieDbException
tvID - tvIDlanguage - languageincludeImageLanguage - includeImageLanguageMovieDbExceptionpublic ResultList<Keyword> getTVKeywords(int tvID) throws MovieDbException
tvID - tvIDMovieDbExceptionpublic StatusCode postTVRating(int tvID, int rating, String sessionID, String guestSessionID) throws MovieDbException
tvID - tvIDrating - ratingsessionID - sessionIDguestSessionID - guestSessionIDMovieDbExceptionpublic ResultList<TVInfo> getTVSimilar(int tvID, Integer page, String language) throws MovieDbException
tvID - tvIDpage - pagelanguage - languageMovieDbExceptionpublic ResultList<Translation> getTVTranslations(int tvID) throws MovieDbException
tvID - tvIDMovieDbExceptionpublic ResultList<Video> getTVVideos(int tvID, String language) throws MovieDbException
tvID - tvIDlanguage - languageMovieDbExceptionpublic TVInfo getLatestTV() throws MovieDbException
MovieDbExceptionpublic ResultList<TVInfo> getTVOnTheAir(Integer page, String language) throws MovieDbException
page - pagelanguage - languageMovieDbExceptionpublic ResultList<TVInfo> getTVAiringToday(Integer page, String language, String timezone) throws MovieDbException
page - pagelanguage - languagetimezone - timezoneMovieDbExceptionpublic ResultList<TVInfo> getTVTopRated(Integer page, String language) throws MovieDbException
page - pagelanguage - languageMovieDbExceptionpublic ResultList<TVInfo> getTVPopular(Integer page, String language) throws MovieDbException
page - pagelanguage - languageMovieDbExceptionpublic TVSeasonInfo getSeasonInfo(int tvID, int seasonNumber, String language, String... appendToResponse) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberlanguage - languageappendToResponse - appendToResponseMovieDbException - exceptionpublic ResultList<ChangeKeyItem> getSeasonChanges(int tvID, String startDate, String endDate) throws MovieDbException
tvID - tvIDstartDate - startDateendDate - endDateMovieDbException - exceptionpublic MediaState getSeasonAccountState(int tvID, String sessionID) throws MovieDbException
tvID - tvIDsessionID - sessionIDMovieDbException - exceptionpublic MediaCreditList getSeasonCredits(int tvID, int seasonNumber) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberMovieDbException - exceptionpublic ExternalID getSeasonExternalID(int tvID, int seasonNumber, String language) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberlanguage - languageMovieDbException - exceptionpublic ResultList<Artwork> getSeasonImages(int tvID, int seasonNumber, String language, String... includeImageLanguage) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberlanguage - languageincludeImageLanguage - includeImageLanguageMovieDbException - exceptionpublic ResultList<Video> getSeasonVideos(int tvID, int seasonNumber, String language) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberlanguage - languageMovieDbException - exceptionpublic TVEpisodeInfo getEpisodeInfo(int tvID, int seasonNumber, int episodeNumber, String language, String... appendToResponse) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumberlanguage - languageappendToResponse - appendToResponseMovieDbException - exceptionpublic ResultList<ChangeKeyItem> getEpisodeChanges(int episodeID, String startDate, String endDate) throws MovieDbException
episodeID - episodeIDstartDate - startDateendDate - endDateMovieDbException - exceptionpublic MediaState getEpisodeAccountState(int tvID, int seasonNumber, int episodeNumber, String sessionID) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumbersessionID - sessionIDMovieDbException - exceptionpublic MediaCreditList getEpisodeCredits(int tvID, int seasonNumber, int episodeNumber) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumberMovieDbException - exceptionpublic ExternalID getEpisodeExternalID(int tvID, int seasonNumber, int episodeNumber, String language) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumberlanguage - languageMovieDbException - exceptionpublic ResultList<Artwork> getEpisodeImages(int tvID, int seasonNumber, int episodeNumber) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumberMovieDbException - exceptionpublic StatusCode postEpisodeRating(int tvID, int seasonNumber, int episodeNumber, int rating, String sessionID, String guestSessionID) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumberrating - ratingsessionID - sessionIDguestSessionID - guestSessionIDMovieDbException - exceptionpublic ResultList<Video> getEpisodeVideos(int tvID, int seasonNumber, int episodeNumber, String language) throws MovieDbException
tvID - tvIDseasonNumber - seasonNumberepisodeNumber - episodeNumberlanguage - languageMovieDbException - exceptionCopyright © 2012–2017. All rights reserved.