The Movie Database Support

running query to get popular and top rated tv shows, but episode runtime, # episodes, and # seasons are all null on both these lists. Am I pulling wrong or is the correct? I am using laravel and this package to query the api https://github.com/php-tmdb/api

here is a screen shot of my result https://snag.gy/wpHfMe.jpg

Thanks,

3 replies (on page 1 of 1)

Jump to last post

In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [MY_KEY].

I did a test.
https://api.themoviedb.org/3/tv/100?api_key=[MY_KEY]&language=en-US
The two fields are there.
number_of_episodes 6 and number_of_seasons 1
See the result.

backdrop_path   "/o8Site0BMZ8xhknKJ0m52iLfqHg.jpg"
created_by  []
episode_run_time    […]
first_air_date  "2004-05-10"
genres  […]
homepage    ""
id  100
in_production   false
languages   […]
last_air_date   "2004-06-14"
last_episode_to_air {…}
name    "I Am Not an Animal"
next_episode_to_air null
networks    […]
number_of_episodes  6
number_of_seasons   1
origin_country  […]
original_language   "en"
original_name   "I Am Not an Animal"
overview    "I Am Not An Animal is an…nimal rights activists."
popularity  8.185
poster_path "/nMhv6jG5dtLdW7rgguYWvpbk0YN.jpg"
production_companies    […]

Ah I think I see. With the popular method you don't get those details back in the response but the laravel object has those properties so it was confusing me. When I run a test with just the details for a particular TV show I can see all the details I need. 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