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
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by robbie3999
on June 12, 2023 at 9:52 AM
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.
Reply by Travis Bell
on June 12, 2023 at 10:18 AM
P.S.
language=en-EN
is not a valid language.en-US
would be what you're looking for.Reply by ticao2 🇧🇷 pt-BR
on June 12, 2023 at 10:34 AM
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:
Reply by FraBo98
on June 12, 2023 at 11:18 AM
Thanks to everybody