Assistance de TMDB

I cannot find or i don't know how to get video api

19 réponses (sur la page 1 sur 2)

Jump to last post

Page suivanteDernière page

You want to use the videos API method for this.

And example call if you were calling Wonder Woman's videos would look like this:

https://api.themoviedb.org/3/movie/297762/videos?api_key=###

I would recommend using append_to_response which combines the primary info method and videos calls together:

https://api.themoviedb.org/3/movie/297762?api_key=###&append_to_response=videos

no one works for me

by such like this request https://api.themoviedb.org/3/movie/297762/videos?api_key=###&language=en-US i just can recieve the thrailer . but what about the own movie?

We don't provide any links to actual movies, only trailers/behind the scenes/featurettes, etc...

How do I use the object received to show a video on my website? I get this response:

{
  "id": 100,
  "results": [
    {
      "id": "533ec652c3a36854480000c3",
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "key": "h6hZkvrFIj0",
      "name": "Lock Stock and two smoking barrels - Trailer",
      "site": "YouTube",
      "size": 360,
      "type": "Trailer"
    }
  ]
}

Trailer URL
Just add the Key in the respective URL:
YouTube: https://www.youtube.com/watch?v=
Vimeo: https://vimeo.com/

For example:
Youtube: https://www.youtube.com/watch?v=h6hZkvrFIj0
Vimeo: https://vimeo.com/282875052

Thank you very much for the quick reply

Is there an option to connect two api's? Right now I got upcoming movies and currently playing in the cinema movies in 2 separate files. I would like to add to each one of them under the desc. a video window, is it possible?

@konradrozycki0@gmail.com said:

Is there an option to connect to api's? Right now I got upcoming movies and currently playing in the cinema movies in 2 separate files. I would like to add to each one of them under the desc. a video window, is it possible?

You mean in one request?if so , i think that you have to get each of them separately and then combine them in your own app or website

dear mustafa, its not showing video url, there is 1 url there like youtube url and its not answer what people asking here. do you have bettor good idea??

@travisbell said:

You want to use the videos API method for this.

And example call if you were calling Wonder Woman's videos would look like this:

https://api.themoviedb.org/3/movie/297762/videos?api_key=###

I would recommend using append_to_response which combines the primary info method and videos calls together:

https://api.themoviedb.org/3/movie/297762?api_key=###&append_to_response=videos

https://api.themoviedb.org/3/movie/${id}?api_key=${REACT_APP_TMDB_KEY}&append_to_response=videos

i have a url like above and i use axios to process it, but it shows as undefined, can anyone help me? thank you very much

@ticao2 said:

Trailer URL
Just add the Key in the respective URL:
YouTube: https://www.youtube.com/watch?v=
Vimeo: https://vimeo.com/

For example:
Youtube: https://www.youtube.com/watch?v=h6hZkvrFIj0
Vimeo: https://vimeo.com/282875052

but youtube showed i can't get this trailer, do you know why

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion