for example, i want to get all movie which primary_release_date between "2025-03-27" and "2026-04-27", if i use /discover interface, i got total_result is 6457; but if i use 7 as the query granularity(just like "2025-03-27 ~ 2025-04-03", "2025-04-04 ~ 2025-04-11"....), calculating their sum, i got total_result is 6481, i want to know why?
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 ticao2 🇧🇷 pt-BR
le 27 avril 2025 à 13h15
If I understand correctly, you divided it into 7 API Requests.
I suspect that one or more of them is causing this problem.
Please post the 7 Requests here with the number of items in each of them.
Problems with API Request
In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.
Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.
Réponse de fanxinzzz
le 28 avril 2025 à 01h08
thanks for your answer, and this is my API request:
use /discover query movie between 2025-04-28 and 2025-05-28
use /discover query movie between 2025-04-28 and 2025-05-08
use /discover query movie between 2025-05-09 ~ 2025-05-19
use /discover query movie between 2025-05-20 and 2025-05-28
You can find that the result obtained by making requests in segments and accumulating total_results is different from the total_results obtained by directly using2025-04-28 ~ 2025-05-28 for api requests, which confuses me. Thank you for your answer, I hope you can answer my question.
Réponse de ticao2 🇧🇷 pt-BR
le 2 mai 2025 à 12h01
Sometimes the result may be left in the TMDb Cache.
That's why this error may occur.
It usually takes a while for the Cache to be cleared.
An error may also occur due to the UTC date change.
Avoid doing this at the turn of the hour. 23:59:47 and 00:01:14
I just tested it.
It seems to have worked correctly.
2025-04-28 and 2025-05-28
total_pages 77
total_results 1521
2025-04-28 and 2025-05-08
total_pages 43
total_results 841
2025-05-09 ~ 2025-05-19
total_pages 24
total_results 478
2025-05-20 and 2025-05-28
total_pages 11
total_results 202
841 + 478 + 202 = 1521