Hi! When I search films with genres: Drama, fantasy and music i get 4 pages of results, and some pages have a couple of duplicate movies (in my case it is pages 1 and 3).
Im just curious if this is normal or im doing something wrong.
My request url looks like this
https://api.themoviedb.org/3/discover/movie?api_key=...&page=1&language=en&with_genres=18,14,10402
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 ticao2 🇧🇷 pt-BR
on November 11, 2018 at 10:38 PM
I have tested your request.
On page 1 I did not find any duplicates.
On page 3 I came across the similar name.
Can you be more specific?
Inform the ID of the duplicates and on which page are they?
Reply by ph8d
on November 12, 2018 at 8:18 AM
Sorry that i was not specific in the first post. My problem looks like this:
When I send this request
https://api.themoviedb.org/3/discover/movie?api_key=...&page=3&language=en&with_genres=14,18,10402
API response is not consistent, i get different movies almost every time. Is it supposed to be like this? I thought that i will get consistent results.
This is a results of two requests i sent with 5 second interval:
Request 1
Request 2
Movies appear in different order and in the first response there is a movie with id
61736
when in the second response there is no movie with id61736
.Reply by ph8d
on November 12, 2018 at 8:27 AM
I know what is going on. I get inconsistent result because i'm not specifying
sort_by
parameter. For some reason i thought that API by default will usesort_by=popularity.desc
if i'm not specifying anything.So my problem is solved! But anyway, thank you for your response @ticao2.