The Movie Database-ondersteuning

¿How could I do to get JSon result of movies of a specific actor by actor's name? I know I could get actor ID for eg: https://api.themoviedb.org/3/search/person?api_key=#####&query=bruce+willis , so id is 62 but I need to get this actor movies returned in JSon format.

I tried different was like https://www.themoviedb.org/discover/movie?with_cast=62 however that way gives me movies with different cast and no Bruce Willis. This way no API-KEY is requiered and no Json results is returned.

I tried: https://api.themoviedb.org/3/search/movie?api_key=#####&query=62. However it seems movie id 62 Json data is returned.

1 antwoord (op blad 1 van 1)

Jump to last post

Hi accarvajal,

Once you have a person id, you need to call one of the person methods.

http://api.themoviedb.org/3/person/62/movie_credits?api_key=###
http://api.themoviedb.org/3/person/62/tv_credits?api_key=###
http://api.themoviedb.org/3/person/62/combined_credits?api_key=###

You can also use discover to get their credits:

http://api.themoviedb.org/3/discover/movie?api_key=###&with_cast=62

The downside to this approach is that there's no combined method BUT you get the extra flexibility of sorting and filtering by all of the supported options on discover.

Cheers.

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