The Movie Database Support

This example is taken from list add items page. The url should be "https://api.themoviedb.org/4/list/list_id/items" instead of "https://api.themoviedb.org/4/list_id/items".

const axios = require('axios');

const options = {
  method: 'POST',
  url: 'https://api.themoviedb.org/4/list_id/items',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    Authorization: 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhYTYzOWRkNWY0NmU1N2M5YTJkNDY5MzlkZGE1OTYxOSIsInN1YiI6IjY1NDYyNjM0NDFhNTYxMzM2ZDg0MzlhZiIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.2cdP4naZMke4IQDr_Lt4e86H6jDuZ8d0nGWq75OqdUk'
  },
  data: {
    items: [
      {media_type: 'movie', media_id: 550},
      {media_type: 'movie', media_id: 244786},
      {media_type: 'tv', media_id: 1396}
    ]
  }
};

axios
  .request(options)
  .then(function (response) {
    console.log(response.data);
  })
  .catch(function (error) {
    console.error(error);
  });

2 replies (on page 1 of 1)

Jump to last post

Also i have a doubt. I got my access token from this script http://dev.travisbell.com/play/v4_auth.html and even added some movies to my list through the api. will my access token expire? if yes how long will it take?

@Raghavan_Rave said:

This example is taken from list add items page. The url should be "https://api.themoviedb.org/4/list/list_id/items" instead of "https://api.themoviedb.org/4/list_id/items".

Good catch, I've updated the docs.

will my access token expire? if yes how long will it take?

No, access tokens do not expire.

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