Hi I have some questions
Am using /discover API. I think it is great.
can we combine sorting? for example, i want to sort by average votes and number of votes. is something like sort_by=vote_average.desc&sort_by=vote_count.desc allowed?
how to include main casts in movie list returned?
Thanks
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de Travis Bell
pe data de 27 octombrie 2016 la ora 11:25 AM
Hi @emirBytes
No, combined sorting is not currently supported. I'll have to think about whether this is something I want to add or not.
You can't from a list method (search/discover/find, etc...). You'll have to make a query to the movie credits method. You can of course combine the credits call with
append_to_response
.Răspuns de Emir
pe data de 28 octombrie 2016 la ora 9:01 AM
Hi Travis. Thanks for your reply. I am not so sure how to use append_to_response with movie credits. Do you mean I can query credits for multiple movies in one request? If so, can you show an example?
My guess is: https://api.themoviedb.org/3/movie/1234/credits?api_key=KEY&append_to_response=2345,3456 Is this right?
Răspuns de Travis Bell
pe data de 28 octombrie 2016 la ora 10:05 AM
Hi,
Not quite. Take a read through the document I linked to above, it gives examples and outlines what you can do with it. It is used for querying sub-requests within the same ID (if you wanted the primary movie details and credits for example).