How can I use movie trailer module in TMDB api? The movie trailer module uses data from TMDB but I cannot get access to the youtube videos that are in TMDB from movie trailer module. I tried to use TMDB movie id in movie trailer module to get the video from the youtube. Can anyone help me with this?
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von ticao2 🇧🇷 pt-BR
am 20. September 2020 um 13:08
Who is this "movie trailer module"? What module is it from?
Antwort von shresritik
am 20. September 2020 um 13:16
It is one of the npm packages which is used to get YouTube urls. Here is the link: https://www.npmjs.com/package/movie-trailer
Antwort von ticao2 🇧🇷 pt-BR
am 20. September 2020 um 13:36
I think it will be easier for you to get help on Github from the developers.
https://github.com/npm/rfcs
Antwort von shresritik
am 20. September 2020 um 13:43
Ok But I just want to get the YouTube movie trailer url from the TMDB movies Is this possible?
Antwort von Bogdan
am 20. September 2020 um 18:50
Yes, https://developers.themoviedb.org/3/movies/get-movie-videos, you just need to get a key and merge it with youtube link. Example key from the api: h6hZkvrFIj0. Full url would look like this: https://www.youtube.com/watch?v=h6hZkvrFIj0
Antwort von ticao2 🇧🇷 pt-BR
am 20. September 2020 um 21:15
I didn't understand that that was the problem in your first comment.
Yes, I even have a ready answer:
Trailer URL
When you make an API Request requesting Videos, in the response you will receive something like this:
Just add the Key in the respective URL:
For example:
Youtube: https://www.youtube.com/watch?v=eBKvlCf0B4g
Youtube: https://www.youtube.com/watch?v=hzfvYSIIgyc
Vimeo: https://vimeo.com/282875052
Travis Bell - 2020-09-19
Hi @user, we only support YouTube and Vimeo right now.
Antwort von shresritik
am 21. September 2020 um 08:28
Thank you very much @ticao2 and @kironet your suggestions worked and I didn't even have to use movie-trailer module.
Antwort von lucaselbestprogramer
am 19. Oktober 2021 um 16:51
HI, i have a question, when you have the key and the link of youtube in the code, how do i show the video? using any html tag in specific? i try with video and media and doesnt work...
Antwort von Travis Bell
am 29. Oktober 2021 um 10:55
Hi @lucaselbestprogramer, your best bet is to read through YouTube's documentation.
Antwort von mariaxx9
am 31. Dezember 2021 um 09:17
if i only want to get the videos with TYPE trailer how can i do that?
Antwort von ticao2 🇧🇷 pt-BR
am 31. Dezember 2021 um 09:50
When a Video API Request is made in the response in each item, it is specified what type it is.
I believe that an answer is not possible with only trailers, without the other types.
You, on your side, must filter what interests you.
For example:
https://api.themoviedb.org/3/movie/634649/videos?api_key=THE_KEY
Look: