The Movie Database-ondersteuning

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

thanks

5 antwoorde (op blad 1 van 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.

Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.

Globaal

s fokus op soekbalk
p open profielkieslys
esc sluit ’n oop venster
? open sneltoetsvenster

Op mediablaaie

b gaan terug (na ouer waar van toepassing)
e gaan na wysigblad

Op TV-seisoenblaaie

(regterpyl) gaan na volgende seisoen
(linkerpyl) gaan na vorige seisoen

Op TV-episodeblaaie

(regterpyl) gaan na volgende episode
(linkerpyl) gaan na vorige episode

Op alle beeldblaaie

a open beeldtoevoegvenster

Op alle wysigingsblaaie

t open vertaalkieser
ctrl+ s dien form in

Op besprekingsblaaie

n skep nuwe bespreking
w tokkel kykstatus
p tokkel openbaar/privaat
c tokkel maak oop/toe
a open aktiwiteit
r reageer op bespreking
l gaan na laaste reaksie
ctrl+ enter dien u boodskap in
(regterpyl) volgende blad
(linkerpyl) vorige blad

Instellings

Wil u hierdie item gradeer of tot ’n lys toevoeg?

Teken aan