Hi all,
newbie here. I have a question :
How do I get all next _air_date's of a tvshow in a single api call?
Right now it takes two calls, one API call to fetch the Tvshow, then an API call to get the last season. In the season API call, that chunk of data will have all episodes and known "next_air_dates".
That's a lot of requests if I want to pull data of 20 or more tvshows. I personally dont mind, but its hard on the server?
Thanks in advance! J
edit: I am aware that I can pull the next air date via 1 api call, but that will only provide 1 next_air_date. I need all air dates of upcoming shows.
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 February 15, 2023 at 9:24 AM
It always makes the conversation easier when the user posts the API Request that was used.
This parameter "next_episode_to_air" does not exist here.
There are last_episode_to_air and next_episode_to_air parameters
There is append_to_response feature.
https://developers.themoviedb.org/3/tv/get-tv-details
Example:
Making an API Request for Season you receive the list of episodes of the season with the respective dates.
https://developers.themoviedb.org/3/tv-seasons/get-tv-season-details
Reply by Travis Bell
on February 15, 2023 at 10:32 AM
There's no bulk method to call multiple series next air dates. You'll have to query the top level show ID and grab the
next_episode_to_air
object if it's present for whatever shows you're tracking.Reply by joopANDco
on February 17, 2023 at 5:42 AM
ok thanks