Supporto The Movie Database

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

19 risposte (nella pagina 1 di 2)

Jump to last post

Prossima paginaUltima pagina

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

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi