The Movie Database Support

Hello everybody, I'm developing a "select" bar in a form and I would like to present to the user all the most popular actors, is there a way to retrieve from a single API all those actors, because actually I see that only specifying a page is possible like: 'https://api.themoviedb.org/3/person/popular?language=en-EN&page=1'. Thank in advance

4 replies (on page 1 of 1)

Jump to last post

Hi @FraBo98, this endpoint is like many on the site, you get 20 results per page and you have to query each page (query...&page=1, query...&page=2, etc) up to 500 pages and 10000 results. So to get more than 20 results you have to do multiple queries. You can't get them all from a single request.

@FraBo98 said:

Hello everybody, I'm developing a "select" bar in a form and I would like to present to the user all the most popular actors, is there a way to retrieve from a single API all those actors, because actually I see that only specifying a page is possible like: 'https://api.themoviedb.org/3/person/popular?language=en-EN&page=1'. Thank in advance

P.S. language=en-EN is not a valid language. en-US would be what you're looking for.

This is just a guess. Maybe it will help you.
Files are exported daily with valid IDs for all areas.
https://developer.themoviedb.org/docs/daily-id-exports
Among them the people file.
http://files.tmdb.org/p/exports/person_ids_06_11_2023.json.gz
And this file contains the name, ID and "popularity" value of each person.
Something like that:

{"adult":false,"id":16767,"name":"Aki Kaurismäki","popularity":2.021}
{"adult":false,"id":54768,"name":"Turo Pajala","popularity":1.96}
{"adult":false,"id":54769,"name":"Susanna Haavisto","popularity":0.6}
{"adult":false,"id":4826,"name":"Matti Pellonpää","popularity":2.465}
{"adult":false,"id":54770,"name":"Eetu Hilkamo","popularity":0.6}
{"adult":false,"id":16769,"name":"Timo Salminen","popularity":0.6}

Thanks to everybody

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