Hello, I want to list the TV series according to the date of the last episode, almost the same as we see in the airing-today section, I couldn't find a way to list it in the same way.
https://api.themoviedb.org/3/tv/airing_today?api_key=THEKEY&language=es-ES&air_date.lte=2024-05-02&air_date.gte=2024-05-02&page=1
the TV serie "The Boss" or "El encargado" It should appear on that date but it doesn't, it seems to ignore the date filter.
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 7 de agosto de 2024 a las 11:09
Hi @LeandroA,
Indeed,
/tv/airing_today
does not support aair_date.lte
orair_date.gte
filter.If you want to use those filters, you'll have to switch over to use
/discover/tv
.Contestado por LeandroA
el 7 de agosto de 2024 a las 11:38
In any case, the results are not as expected, they all give very different results to those indicated, it seems that this part of the API is not working well, I have seen other posts reporting similar problems.
Contestado por Travis Bell
el 7 de agosto de 2024 a las 11:48
What request isn't working as expected?
Contestado por LeandroA
el 7 de agosto de 2024 a las 14:58
What I'm looking for is to get this list, using the date filter https://www.themoviedb.org/tv/airing-today
In no case can I obtain the series that premiere episodes in the indicated date range, or a pagination in order of episode premiere dates.
Contestado por Travis Bell
el 7 de agosto de 2024 a las 15:39
If you want to filter TV shows by their premiere date (I'm assuming you're talking about season 1, episode 1) then you need to use
first_air_date.lte
and/orfirst_air_date.gte
.If you are wanting to query specific shows that simply have an episode airing within the date range, then your discover query is correct. No Rancho Fundo is being returned because as you can see here, it has an episode airing today (Aug. 7).