Podpora The Movie Database

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

19 odpovědí (na stránce 1 z 2)

Jump to last post

Další stránkaPoslední stránka

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

Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.

Globální

s zaměřit panel hledání
p otevřít nabídku profilu
esc zavřít otevřené okno
? otevřít okno klávesových zkratek

Na stránkách médií

b zpět (nebo na nadřazený záznam, pokud to jde)
e na stránku úprav

Na stránkách sezón

(šipka vpravo) na další sezónu
(šipka vlevo) na předchozí sezónu

Na stránkách epizod

(šipka vpravo) na další epizodu
(šipka vlevo) na předchozí epizodu

Na všech stránkách obrázků

a otevřít okno přidání obrázku

Na všech stránkách úprav

t otevřít výběr překladu
ctrl+ s odeslat formulář

Na stránkách diskusí

n vytvořit novou diskusi
w přepnout stav zhlédnutí
p přepnout veřejný a soukromý
c přepnout zavřít a otevřít
a otevřít aktivitu
r odpovědět na diskusi
l na poslední odpověď
ctrl+ enter odeslat zprávu
(šipka vpravo) další stránka
(šipka vlevo) předchozí stránka

Nastavení

Want to rate or add this item to a list?

Přihlásit se