Hello,
I'm looking for a way to get mixed lists via the v4 API but I can't find any documentation for it?
This page mentions "You can use mixed type (movie and TV) lists" but when visiting the docs I can't see it mentioned.
https://developer.themoviedb.org/v4/reference/list-details
Thanks, Jason
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de robbie3999
le 26 septembre 2023 à 18h55
Hi @jasonalvis, I'm not exactly sure what you want to know, but in order to use the v4 mixed lists you specify a media type with each list element. For example to add or remove items you would specify the following in the body of the request.
{ "items": [ { "media_type": "movie", "media_id": 550 }, { "media_type": "movie", "media_id": 244786 }, { "media_type": "tv", "media_id": 1396 } ] }
Réponse de Wajeemba
le 15 janvier 2024 à 19h38
I'm on this same wavelength. When I retrieve the List Details from a mixed-type list, the records for TV shows return with empty titles:
I'd love to be able to pull movie and tv titles directly within the same list details call, as opposed to having to go back later and add in all the details for tv entries.
API pages for reference/continuity of this thread.
https://developer.themoviedb.org/reference/v3-or-v4-lists
https://developer.themoviedb.org/v4/reference/list-details
Réponse de Travis Bell
le 15 janvier 2024 à 20h49
Hey @Wajeemba,
Notice that the field names are different between movies and TV shows. For TV, you need to use
original_name
andname
.