This project has moved. For the latest updates, please go here.

Using the Library

Add a reference to WatTmdb.dll to your project.

The main api class is Tmdb in the WatTmdb.V3 namespace. The constructer takes your API key, and also an option language string, for example "en", or you can pass null. Instructions to obtain an API key can be found here.

WatTmdb.V3.Tmdb api = new Tmdb("apikey", "en");
or
WatTmdb.V3.Tmdb api = new Tmdb("apikey");

The api class contains most of the methods currently available by The Movie Db service, except those that are used for updating information back into The Movie Db.

Available Methods

Configuration

http://help.themoviedb.org/kb/api/configuration
TmdbConfiguration GetConfiguration()

Searching

http://help.themoviedb.org/kb/api/search
TmdbMovieSearch SearchMovie(string query, int page)
TmdbPersonSearch SearchPerson(string query, int page)
TmdbCompanySearch SearchCompany(string query, int page)

Movie Collections

http://help.themoviedb.org/kb/api/collections
TmdbCollection GetCollectionInfo(int CollectionID)

Movie Info

http://help.themoviedb.org/kb/api/movie-info-2
TmdbMovie GetMovieInfo(int MovieID)
TmdbMovie GetMovieByIMDB(string IMDB_ID)
TmdbMovieAlternateTitles GetMovieAlternateTitles(int MovieID, string Country)
TmdbMovieCast GetMovieCast(int MovieID)
TmdbMovieImages GetMovieImages(int MovieID)
TmdbMovieKeywords GetMovieKeywords(int MovieID)
TmdbMovieReleases GetMovieReleases(int MovieID)
TmdbMovieTrailers GetMovieTrailers(int MovieID)
TmdbSimilarMovies GetSimilarMovies(int MovieID, int page)
TmdbTranslations GetMovieTranslations(int MovieID)

Person Info

http://help.themoviedb.org/kb/api/person-info-2
TmdbPerson GetPersonInfo(int PersonID)
TmdbPersonCredits GetPersonCredits(int PersonID)
TmdbPersonImages GetPersonImages(int PersonID)

Miscellaneous Movie

http://help.themoviedb.org/kb/api/misc-movie
TmdbNowPlaying GetNowPlayingMovies(int page)
TmdbPopular GetPopularMovies(int page)
TmdbTopRated GetTopRatedMovies(int page)
TmdbUpcoming GetUpcomingMovies(int page)

Company Info

http://help.themoviedb.org/kb/api/company-info-2
TmdbCompany GetCompanyInfo(int CompanyID)
TmdbCompanyMovies GetCompanyMovies(int CompanyID, int page)

Genre Info

http://help.themoviedb.org/kb/api/genre-info
TmdbGenre GetGenreList()
TmdbGenreMovies GetGenreMovies (int GenreID)

Last edited Jul 17, 2012 at 12:28 PM by watway, version 2

Comments

watway Jul 31, 2012 at 1:41 PM 
If you're after a list of the Genres available, you can use the GetGenreList method. If you have any requests or suggestions for methods please use the Discussions board and I'll be more than happy to discuss with you. Thanks.

zibbyi Jul 23, 2012 at 12:41 AM 
I would like request GetMovieGenres method, thanks a lot - Zibby