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?
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 20, 2020 في 1:08 مساءا
Who is this "movie trailer module"? What module is it from?
رد بواسطة shresritik
بتاريخ سبتمبر 20, 2020 في 1: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
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 20, 2020 في 1:36 مساءا
I think it will be easier for you to get help on Github from the developers.
https://github.com/npm/rfcs
رد بواسطة shresritik
بتاريخ سبتمبر 20, 2020 في 1:43 مساءا
Ok But I just want to get the YouTube movie trailer url from the TMDB movies Is this possible?
رد بواسطة Bogdan
بتاريخ سبتمبر 20, 2020 في 6: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
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 20, 2020 في 9: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.
رد بواسطة shresritik
بتاريخ سبتمبر 21, 2020 في 8:28 صباحا
Thank you very much @ticao2 and @kironet your suggestions worked and I didn't even have to use movie-trailer module.
رد بواسطة lucaselbestprogramer
بتاريخ أكتوبر 19, 2021 في 4: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...
رد بواسطة Travis Bell
بتاريخ أكتوبر 29, 2021 في 10:55 صباحا
Hi @lucaselbestprogramer, your best bet is to read through YouTube's documentation.
رد بواسطة mariaxx9
بتاريخ ديسمبر 31, 2021 في 9:17 صباحا
if i only want to get the videos with TYPE trailer how can i do that?
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ ديسمبر 31, 2021 في 9: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: