The Movie Database Support

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

18 replies (on page 1 of 2)

Jump to last post

Next pageLast 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

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login