class Tmdb::Movie
- Tmdb::Movie
- Reference
- Object
Included Modules
Defined in:
movie.crmovie/cast.cr
movie/credit_base.cr
movie/crew.cr
Constructors
-
.detail(id : Int64, language : String | Nil = nil) : Movie
Get the primary information about a movie.
-
.latest(language : String | Nil = nil, skip_cache : Bool = false) : Movie
Get the most newly created movie.
- .new(data : JSON::Any)
Class Method Summary
-
.now_playing(language : String | Nil = nil, region : String | Nil = nil, skip_cache : Bool = false) : LazyIterator(MovieResult)
Get a list of movies in theatres.
-
.popular(language : String | Nil = nil, region : String | Nil = nil, skip_cache : Bool = false) : LazyIterator(MovieResult)
Get a list of the current popular movies on TMDB.
-
.top_rated(language : String | Nil = nil, region : String | Nil = nil, skip_cache : Bool = false) : LazyIterator(MovieResult)
Get the top rated movies on TMDB.
-
.upcoming(language : String | Nil = nil, region : String | Nil = nil, skip_cache : Bool = false) : LazyIterator(MovieResult)
Get a list of upcoming movies in theatres.
Instance Method Summary
- #adult? : Bool
-
#alternative_titles(country : String | Nil = nil) : Array(AlternativeTitle)
Get all of the alternative titles for a movie.
- #backdrop_path : String | Nil
-
#backdrops(language : String | Nil = nil, include_image_language : Array(String) | Nil = nil) : Array(Backdrop)
See
#images
- #belongs_to_collection : Collection | Nil
- #budget : Int64
- #cast(language : String | Nil = nil) : Array(Movie::Cast)
-
#changes(start_date : Time | Nil = nil, end_date : Time | Nil = nil) : Array(Change)
Get the changes for a movie.
-
#credits(language : String | Nil = nil) : Array(Movie::Cast | Movie::Crew)
Get the cast and crew for a movie.
- #crew(language : String | Nil = nil) : Array(Movie::Crew)
-
#external_ids : Array(ExternalId)
Get the external ids for a movie.
- #genres : Array(Genre)
- #homepage : String | Nil
- #id : Int64
-
#images(language : String | Nil = nil, include_image_language : Array(String) | Nil = nil) : Array(Backdrop | Poster)
Get the images that belong to a movie.
- #imdb_id : String | Nil
-
#keywords : Array(Keyword)
Get the keywords that have been added to a movie.
- #original_language : String
- #original_title : String
- #overview : String | Nil
- #popularity : Float64
- #poster_path : String | Nil
-
#posters(language : String | Nil = nil, include_image_language : Array(String) | Nil = nil) : Array(Poster)
See
#images
- #production_companies : Array(Company)
- #production_countries : Array(Country)
-
#recommendations(language : String | Nil = nil) : LazyIterator(MovieResult)
Get a list of recommended movies for a movie.
- #release_date : Time | Nil
-
#release_dates : Array(Tuple(String, Array(Release)))
Get the release date along with the certification for a movie.
- #revenue : Int64
- #runtime : Int32 | Nil
-
#similar_movies(language : String | Nil = nil) : LazyIterator(MovieResult)
Get a list of similar movies.
- #spoken_languages : Array(Language)
- #status : Status
- #tagline : String | Nil
- #title : String
-
#translations : Array(Translation)
Get a list of translations that have been created for a movie.
-
#user_reviews(language : String | Nil = nil) : LazyIterator(Review)
Get the user reviews for a movie.
- #video? : Bool
-
#videos(language : String | Nil = nil) : Array(Video)
Get the videos that have been added to a movie.
- #vote_average : Float64
- #vote_count : Int32
-
#watch_providers : Hash(String, Watch)
Powered by our partnership with JustWatch, you can query this method to get a list of the availabilities per country by provider.
Instance methods inherited from module Tmdb::ImageUrls
backdrop_url(size : String = "original") : String
backdrop_url
Instance methods inherited from module Tmdb::PosterUrls
poster_url(size : String = "original") : String
poster_url
Constructor Detail
Get the primary information about a movie.
Get the most newly created movie. This is a live response and will continuously change.
Class Method Detail
Get a list of movies in theatres. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range.
You can optionally specify a region
prameter which will narrow the search
to only look for theatrical release dates within the specified country.
Get a list of the current popular movies on TMDB. This list updates daily.
Get the top rated movies on TMDB.
Get a list of upcoming movies in theatres. This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range.
You can optionally specify a region
prameter which will narrow the search
to only look for theatrical release dates within the specified country.
Instance Method Detail
Get all of the alternative titles for a movie.
See #images
Get the changes for a movie. By default only the last 24 hours are returned.
You can query up to 14 days in a single query by using the start_date
and
end_date
query parameters.
Get the cast and crew for a movie.
Get the external ids for a movie. We currently support the following external sources.
- IMDb ID
Get the images that belong to a movie.
Querying images with a language
parameter will filter the results. If you
want to include a fallback language (especially useful for backdrops) you
can use the include_image_language
parameter. This should be a comma
seperated value like so: include_image_language=en,null
.
See #images
Get a list of recommended movies for a movie.
Get the release date along with the certification for a movie.
Get a list of similar movies. This is not the same as the "Recommendation" system you see on the website.
These items are assembled by looking at keywords and genres.
Get a list of translations that have been created for a movie.
Get the user reviews for a movie.
Get the videos that have been added to a movie.
Powered by our partnership with JustWatch, you can query this method to get a list of the availabilities per country by provider.
This is not going to return full deep links, but rather, it's just enough information to display what's available where.
You can link to the provided TMDB URL to help support TMDB and provide the actual deep links to the content.
Please note: In order to use this data you must attribute the source of the data as JustWatch. If we find any usage not complying with these terms we will revoke access to the API.