on discover API , https://www.themoviedb.org/documentation/api/discover
there are some examples on how to 'sort' movies. I m looking a query to sort the movies by 'genre' . does anyone know how we can do that ?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on April 20, 2018 at 11:33 AM
Hi @tornado1979,
There is no way to sort by genre, no. I'm not clear on how you'd expect the results to be returned in that case, can you give me some background info on what you're looking for?
Reply by tornado1979
on April 20, 2018 at 11:49 AM
Hi Travis, thanks for your interest.
i would expect the final outcome to be like below, movies in a list based on their category (action,animation etc), but as i see the structure of the json data and genres are on a separate json, it seems not possible.
..... and so on
Reply by Travis Bell
on April 20, 2018 at 11:52 AM
Understood.
Correct, since we return multiple genre objects this wouldn't really be possible.