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 svar (på sida 1 av 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

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus på sökrutan
p öppna profilmenyn
esc stäng ett öppet fönster
? öppna tangentbordsgenväg fönstret

På mediasidor

b gå tillbaka (eller till förälder när det är tillämpligt)
e gå till redigerings sidan

På tv-säsongssidor

(höger pil) gå till nästa säsong
(vänster pil) gå till den föregående säsongen

På tv-avsnittssidor

(höger pil) gå till nästa avsnitt
(vänster pil) gå till föregående avsnitt

På alla bildsidor

a öppna lägg till bild fönstret

På alla redigeringssidor

t öppna översättnings väljaren
ctrl+ s skicka förmulär

På diskussionssidor

n skapa ny diskussion
w växla sedd-status
p växla offentligt/privat
c växla stäng/öppna
a öppna aktivitet
r svara på diskussionen
l gå till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nästa sida
(vänster pil) föregående sida

Inställningar

Vill du betygsätta denna artikel eller lägga till den i en lista?

Logga in