The Movie Database Support

The documentation doesn't specify. It only says json. I assumed it was the id of the movie or TV series but that didn't work. Here is what I tried {"id": 12}. I even tried adding quotations marks around the numbers without success. That id exists, it leads to Finding Nemo. However it doesn't work.

2 replies (on page 1 of 1)

Jump to last post

@HelloUser000 said:

Here is what I tried {"id": 12}.

You need three key-value pair element,

{
   media_type: 'movie', 
   media_id: 11, 
   watchlist: true
}

To get request JSON body follow this steps:

  1. Go to (click this)
  2. On right side, select your perefered language programming
  3. On dropdown REQUEST EXAMPLE just click REQUEST EXAMPLE
  4. For example I choose Node and using FETCH REQUEST, the output on the box area will be
const url = 'https://api.themoviedb.org/3/account/21457174/watchlist';
const options = {
  method: 'POST',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    Authorization: 'Bearer {{YOUR_API_READ_ACCESS_TOKEN}}'
  },
  body: JSON.stringify({media_type: 'movie', media_id: 11, watchlist: true})
};
fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));

you can see the json body is:

...
body: JSON.stringify({media_type: 'movie', media_id: 11, watchlist: true})
...

Thanks

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