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.

Want to rate or add this item to a list?

Login