The Movie Database Support

I am using the /search/person endpoint in the TMDB API to search for a person by name. When I make a query, the response includes a list of 20 people on the first page, and the total_pages property indicates there are more pages with additional results.

I tried making requests for all pages (up to the total number of pages) and aggregated the results into one array. After sorting all results by the popularity property, I compared the top 10 people from the first page of the initial response with the top 6 people from the sorted aggregated results.

I noticed that the two lists do not match. Could you clarify how the TMDB API distributes search results across pages? Are they sorted by relevance, popularity, or some other criteria?

1 reply (on page 1 of 1)

Jump to last post

At my knowledge, the results aren't sorted. They are just listed as they are found in the database.

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?

Logg inn