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.
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 অগাস্ট 7, 2024 at 11:09 AM
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
.Reply by LeandroA
on অগাস্ট 7, 2024 at 11:38 AM
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.
Reply by Travis Bell
on অগাস্ট 7, 2024 at 11:48 AM
What request isn't working as expected?
Reply by LeandroA
on অগাস্ট 7, 2024 at 2:58 PM
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.
Reply by Travis Bell
on অগাস্ট 7, 2024 at 3:39 PM
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).