Hi there,
How would you advise querying the API to get a credit a person is most known for? - I can't determine a clear way based on the current API.
Im currently grabbing an actors credits and doing the following... 1) Removing any TV series in which they appeared in less than 8 episodes 2) Selecting the credit with the highest popularity score
However, this produces results where the role may have been very minor for the actors... For example, Rik Mayall is mostly known in the UK for the TV series the young ones... internationally it would probably be the movie 'Drop Dead Fred' in which he had the starring role (It was basically a vehicle for him)
The result i get for Rik Mayall however is American Werewolf in London because that technically has the highest popularity score.. I doubt most people would even know he was in it however. It must have been an early minor bit part.
I note when you query a film, the cast has a 'order' field, so its possible to sort in order of starring roles to minor roles.. Is it possible to pass this value to the a the credits you receive when querying a person so we can filter out the minor bit parts?
These IS actually an 'order' field there, as if that's the intent. But the value in every case is 0.
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 July 1, 2023 at 5:06 PM
Hi @monkeydodev, this previous discussion may help: https://www.themoviedb.org/talk/5a91ccb8925141418300f255
Reply by monkeydodev
on July 2, 2023 at 1:41 AM
@robbie3999 Thanks Robbie - It did indeed.
That thread seems to suggest that every credit listed under a persons 'known_for' array is a lead role. This is not the case for Rik Mayall at least, whose role in 'American Werewolf in London' is that of '2nd chess player' - So this seems to be a bug.
However, i discovered the 'order' property when you specifically search for a persons record does in-fact reflect their order in the credits and it isn't always zero. So my solution is to ignore the 'known_for' array, search a persons credits and filter out any results with an order higher than zero.
Thanks for the help :)