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
Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.
Want to rate or add this item to a list?
Not a member?
Odpověď od robbie3999
26.09.2023 v 6:55 ODP.
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 } ] }
Odpověď od Wajeemba
15.01.2024 v 7:38 ODP.
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
Odpověď od Travis Bell
15.01.2024 v 8:49 ODP.
Hey @Wajeemba,
Notice that the field names are different between movies and TV shows. For TV, you need to use
original_name
andname
.