The Movie Database Support

Hey there, Is it possible to get all the top rated movies of an actor based on his ID?

thanks

5 replies (on page 1 of 1)

Jump to last post

correct me if am wrong, we can use the filters in movie discovery to achieve it. https://developers.themoviedb.org/3/discover/movie-discover

Hi @codenametyler,

Yes, you can use /discover. You'll want to look at using the with_people filter. Looking at Brad Pitt as an example:

https://api.themoviedb.org/3/discover/movie?api_key=###&with_people=287&sort_by=vote_average.desc

Hello @travisbell ,

that exactly what i did, with an autocomplete to get the peopleID. XD

Cheers

This works similary for "with_people" and for "with_keywords" - in both case you must use the numerical ID of the person/keyword. This is true even though the API reference for Discover->Movie, for example, states that these values are strings. I tried with_keywords using both words (such as "Batman") and out of range numbers (such as "2"), but the first page of roughly 832,000 results were returned. Only when using a valid keyword ID (such as 4344 for "musical") will this work.

The docs state strings because values like "9663|9748" and "9663,9748" are valid in order to issue an OR or AND query.

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