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 στις 01:08 ΜΜ
Who is this "movie trailer module"? What module is it from?
Απάντηση από τον/την shresritik
στις 20 Σεπτέμβριος 2020 στις 01: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 στις 01: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 στις 01:43 ΜΜ
Ok But I just want to get the YouTube movie trailer url from the TMDB movies Is this possible?
Απάντηση από τον/την Bogdan
στις 20 Σεπτέμβριος 2020 στις 06: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 στις 09: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 στις 08: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 στις 04: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 στις 09:17 ΕΊΜΑΙ
if i only want to get the videos with TYPE trailer how can i do that?
Απάντηση από τον/την ticao2 🇧🇷 pt-BR
στις 31 Δεκέμβριος 2021 στις 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: