Hi how to display trailer from particular movie say for eg: from upcoming movies if selected one movie, where I need to display video trailer. How to get that link.
Thanks.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de billybobbob
le 23 novembre 2017 Ă 01h28
Thanks for the great explanation and the quick responses!
Réponse de NikkyYo
le 30 novembre 2017 Ă 14h23
How can i query the api to get a download link to a movie
Réponse de Travis Bell
le 30 novembre 2017 Ă 15h22
We don't have any download links. Only YouTube ids to trailers.
Réponse de maverickvivek22
le 3 février 2018 à 01h45
Hello Travis. Hope you're doing well. Man, I am facing an issue and it'll be great if you could help. See I am using the link to get all video resources with the help of the movie id. And fetching the youtube key of the first element in the string. Its working good, though. But the issues are for some movies I am unable to show my users the trailer as it has been blocked on the copyrights grounds. To bypass this issue I tried to retrieve the youtube key of the second element but it's throwing an error as most of the movies don't have a second element. How should I go around this, then?
Réponse de Travis Bell
le 3 février 2018 à 11h41
@maverickvivek22 The only way I can think of to improve it on your end would be to use the YouTube API yourself with the keys we provide. The YouTube API provides the relevant regional geolocked data as well as whether the video is still available.
There are plans to do some of that integration on our end here eventually but I haven't found time to get to it.
Réponse de maverickvivek22
le 3 février 2018 à 11h45
Thanks a lot for showing the way. I'll definitely try and explore and share the work with you. Cheers.
Réponse de albertoivo
le 29 mars 2018 Ă 14h51
I have the following code:
And the following output:
How can I get the
source
attribute in here? I'm using Python.Réponse de Travis Bell
le 31 mars 2018 Ă 11h33
Hi @albertoivo,
Unfortunately, I can't answer anything to do with Python as I have never used it. Unless someone familiar with Python happens to see this you might not get much farther. For coding issues, I usually recommend asking on somewhere like Stack Overflow.
Réponse de Masera
le 20 septembre 2018 Ă 05h06
What about tv series traillers? How do we structure the Api call?
Réponse de Travis Bell
le 20 septembre 2018 Ă 18h29
It's the same, please do make sure to read the documentation.
or with append to response:
Cheers.
Réponse de bgopikrishna
le 24 mars 2019 Ă 11h45
@travisbell How to get both movie credits and trailers from single API call?
Réponse de Travis Bell
le 24 mars 2019 Ă 11h52
Hi @bgopikrishna,
As an example.
Réponse de bgopikrishna
le 24 mars 2019 Ă 12h52
@travisbell Thanks.
Réponse de thidasaone
le 20 avril 2019 Ă 04h37
Hi @travisbell ,
I tried to append the movie details to the response. But I'm getting the response like this.
My request is:
Réponse de ticao2 🇧🇷 pt-BR
le 21 avril 2019 Ă 22h59
Either your KEY was canceled or was not placed correctly in the Request.
Take a test.
Click to go to your Profile > API: https://www.themoviedb.org/settings/api
At the bottom of the page, below, you'll find the Example API Request.
Use this example to do a search using your browser.
If it works, your key is OK.
If it does not work, let us know right here.