The Movie Database Support

When I download the API for the Movie API, there is a video object in the results, but it is set to false.

It looks like this:

"video":false,

I'm getting the API from this URL: http://api.themoviedb.org/3/movie/popular

Is it possible to download video trailers from this API? I ask because I notice that there are video trailers on www.themoviedb.org.

25 replies (on page 2 of 2)

Jump to last post

Previous page

@travisbell said:

this is id (video) for a particular one item our also for all list of item??

My example is one video (from the results array, which can contain many) for one specific movie, Logan, id: 263115).

Hi travis i thast dont now how to do it in the cod exemple were to past the url how to start the video i need the youtubeplayerView?? but thank you any way

Unfortunately I have no idea about anything to do with youtubeplayerView. Never used it wink but asking for that kind of support here is probably not the best place. Somewhere like Stack Overflow would be better suited for that kind of question.

Cheers.

@travisbell said:

You need to call the method that Kevin linked to above: http://docs.themoviedb.apiary.io/#reference/movies/movieidvideos

You cannot get the video responses in any of the list methods, only by calling the primary movie video method:

http://api.themoviedb.org/3/movie/131634/videos?api_key=###

Which you can do with append_to_response as well (to get everything in a single HTTP call):

http://api.themoviedb.org/3/movie/131634?api_key=###&append_to_response=videos

Hope that make more sense now.

Hi Travis

how the video is gonna start to play ?? its going direct to the YouTube when you click the button OUR the video is playing in the activity when you press the button

thank you

I'm not sure how that's done locally, I believe there's a way to play them inline. You would have to check out the YouTube API and Android libraries.

@travisbell said:

I'm not sure how that's done locally, I believe there's a way to play them inline. You would have to check out the YouTube API and Android libraries.

thank you travis

@travisbell sorry how i can get videos of popular movies ( the category of sorting criteria is popular )

The link that Kevin made doesn't work at all.

Also, a lot of the examples in your documentaries don't work, e.g. https://api.themoviedb.org/3/movie/157336?api_key={api_key}&append_to_response=videos,images

Could someone look into it?

@codette said:
The link that Kevin made doesn't work at all.

This conversation with Kevin is from 2015.
The documents are now here.
https://developers.themoviedb.org/3/getting-started/introduction
And soon they will go to another service.
In the case of videos, trailers, the new link is here:
https://developers.themoviedb.org/3/movies/get-movie-videos

Also, a lot of the examples in your documentaries don't work, e.g.
https://api.themoviedb.org/3/movie/157336?api_key={api_key}&append_to_response=videos,images
Could someone look into it?

I just tested it and it worked correctly for me.
https://api.themoviedb.org/3/movie/157336?api_key=THE_KEY&append_to_response=videos,images
It's the basic data of the movie Interstellar (2014)
https://www.themoviedb.org/movie/157336-interstellar
and at the end the videos, trailers.

vote_average    8.399
vote_count  31174
videos  
results 
0   
iso_639_1   "en"
iso_3166_1  "US"
name    "INTERSTELLAR - Own it TODAY on Blu-ray and DIGITAL HD!"
key "KlyknsTJk0w"
published_at    "2015-03-20T21:10:51.000Z"
site    "YouTube"
size    1080
type    "Teaser"
official    true
id  "57817ab4c3a36813870024b7"
1   
iso_639_1   "en"
iso_3166_1  "US"
name    "Interstellar – Building A Black Hole – Official Warner Bros."
key "MfGfZwQ_qaY"
site    "YouTube"
size    1080
type    "Featurette"
official    true
published_at    "2014-10-24T12:59:28.000Z"
id  "5db465f6f056d500180e96ff"
2   
iso_639_1   "en"

Is there any way to get the same trailers of movies and tv shown on website's home page, in the app as well? If yes what is the logic used there? Thank You

Basically, What is the logic used to display the trailers there for both movies and tv shows can anyone explain?

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login