The Movie Database Support

I ran the movie/popular to get a list of popular movies...the beginning of the Jason file returned says "page":1.. and it gave a total of 20 popular movies but the end of the file says "total_pages":9188,"total_results":183741}

what does this mean? it says total pages 9188 but the returned page says page 1 only...is there a page 2, page 3? another is that it says total result is 183741 but I can only retrieve 20?

Also, how do I increase the query result. For example, if I want more than 20 popular movies, say 50 or 100 popular movies?

4 replies (on page 1 of 1)

Jump to last post

Hi regie,

You need to use the page= parameter.

https://api.themoviedb.org/3/movie/popular?api_key=###&page=1
https://api.themoviedb.org/3/movie/popular?api_key=###&page=2
https://api.themoviedb.org/3/movie/popular?api_key=###&page=3

Etc, etc…

Cheers.

I see..so are the most popular movies on page 1?

Results are sorted by popularity in descending order so yes, the first page has the most popular items.

thanks Travis!

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?

ലോഗിൻ