Soporte de The Movie Database

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 respuestas (en la página 1 de 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

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión