Using the get videos, I saw its JSON data. I didn't see any link to video. How does it work? how can I check the video before adding to my website? please let me know.
https://api.themoviedb.org/3/movie/{movie_id}/videos?api_key=###&language=en-US
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on June 21, 2017 at 12:47 PM
Hi there,
That is the right call.
And here's the response:
What were you having problems with exactly?
Reply by hinalpandya32
on June 21, 2017 at 4:18 PM
So I wanted to know how these JSON objects are linked to a movie trailer. Is there any way I can use its id number to see the video on YouTube? example like in images I could see the poster image for movie using url. let me know thanks
Reply by Travis Bell
on June 21, 2017 at 4:22 PM
The
key
field is the YouTube id. So taking the first result as an example, "5lGoQhFb4NM" you can build a YouTube URL:Reply by hinalpandya32
on June 21, 2017 at 4:23 PM
thank you!
Reply by Hollyn
on July 9, 2018 at 10:25 PM
Awesome!