The Movie Database Support

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.

3 replies (on page 1 of 1)

Jump to last post

@joopANDco said:
How do I get all air_dates of a season?
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.

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:

https://api.themoviedb.org/3/tv/100088?api_key=THE_KEY&language=en-US&append_to_response=next_episode_to_air  

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

https://api.themoviedb.org/3/tv/100088/season/1?api_key=THE_KEY&language=en-US  

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.

ok thanks

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login