The Movie Database Support

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

3 replies (on page 1 of 1)

Jump to last post

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

{
  "id": 157336,
  "imdb_id": "tt0816692",
  "videos": {
    "results": [
      {
        "id": "5794fffbc3a36829ab00056f",
        "iso_639_1": "en",
        "iso_3166_1": "US",
        "key": "2LqzF5WauAw",
        "name": "Interstellar Movie - Official Trailer",
        "site": "YouTube",
        "size": 1080,
        "type": "Trailer"
      }
    ]
  }
}

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?

Hi @coniko,

The basic workflow would be the same as I have outlined here.

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