hello
i'm trying to implement append to response request to my personal project but couldn't figure out how to implement.
this is the example code you have https://api.themoviedb.org/3/movie/157336?api_key={api_key}&append_to_response=videos.
in the movie id part i am writing {movie_id} and it does not work. could you please tell me the correct way
thank you
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 Francesco Mari
on February 5, 2019 at 5:11 PM
It looks like it's working to me: if you have a look at the response, you'll find a "video" property. If you look at the "result" property in it, you'll find an array: look for the "key" property. In this case, the first element of that array has a "key" set to "2LqzF5WauAw": it matches with this video url: https://www.youtube.com/watch?v=2LqzF5WauAw
Reply by coniko
on February 5, 2019 at 11:41 PM
the code works for me fine as well. but i need the raw code for it since i'm putting the code wihtout id. i should make it work with raw code. instead of movie id integer. how should ı write it?
Reply by Travis Bell
on February 7, 2019 at 12:15 PM
Hi @coniko,
The basic workflow would be the same as I have outlined here.