The Movie Database Support

If I'm not mistaken, the following POST request did work earlier, but doesn't anymore?

https://api.themoviedb.org/3/account/[###]/favorite?api_key=[###] with the data:

        {
          favorite: true,
          media_id: 123,
          media_type: 'movie',
        },

I get the response {"success":false,"status_code":34,"status_message":"The resource you requested could not be found."}

5 replies (on page 1 of 1)

Jump to last post

By the way, on the https://www.themoviedb.org/u/simonferndriger/favorites page the favorite toggle button doesn't work either. It only works on the detail page.

Is this a known issue and somebody already working on it or are you as surprised as I am?

Anyone?

What's the media_id you are passing in?

I am not seeing any issues:

Add to favourites

curl --location 'https://api.themoviedb.org/3/account/{ID}/favorite?api_key=###&session_id=###' \
--header 'Content-Type: application/json' \
--data '{ "media_type": "movie", "media_id": 16, "favorite": true }'

Response

{"success":true,"status_code":1,"status_message":"Success."}

Remove from favourites

curl --location 'https://api.themoviedb.org/3/account/{ID}/favorite?api_key=###&session_id=###' \
--header 'Content-Type: application/json' \
--data '{ "media_type": "movie", "media_id": 16, "favorite": false }'

Response

{"success":true,"status_code":13,"status_message":"The item/record was deleted successfully."}

I'm sorry, you're right! Now it works like it should. Don't know what the issue was before unfortunately, but I can imagine there was something wrong with the account id at first...

PS: But I can say that the media_id doesn't seem to matter when trying it on the tmdb website itself. See screen recording here: https://go.screenpal.com/watch/cZjeeqVPSoL - There I tried it for example for 205596, and it only worked on the detail page https://www.themoviedb.org/movie/205596-the-imitation-game but NOT on my favorites page https://www.themoviedb.org/u/simonferndriger/favorites

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?

உள் நுழை