Hello,
I want to start off by saying a huge thank you to anyone who works on this API and all of the associated services.
I was wondering if there was a way and/or a recommendation for how to sort discover API queries by air_date? I want to display a list of episodes and sort by air_date over the next 2 weeks. By default the discover endpoint (and the on air endpoint) sort(s) by popularity, and although there are other sort options such as first_air_date, popularity and votes, there doesn't appear to be a way to sort by air_date. It appears there's some knowledge of this air_date under the hood, as its possible to use air_date as a filter argument and I believe this is how the "on the air" API works behind the scenes https://api.themoviedb.org/3/tv/on_the_air.
I can hit the details endpoint and find the next_episode_to_air, and then use that, but then I have to hit the details API for every single episode and I also lose the pagination behaviour baked into the discover API because i need to do my own sorting for the entire list before presenting it.
Thanks.
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?