The Movie Database Support Forum

How to get all the movies done by an actor? I have used this but it returns only 3 results:

https://api.themoviedb.org/3/search/person?api_key=####&language=en-US&page=1&include_adult=false

4 Antworten (Seite 1 von 1)

Jump to last post

Hi there,

You should make a call to the persons credits method:

https://api.themoviedb.org/3/person/287/credits?api_key=###

Or better yet with append_to_response (in order to get the person details and credits in a single request):

https://api.themoviedb.org/3/person/287?api_key=###&append_to_response=credits

Cheers.

I am trying to build a search method where user will provide the actor's name as an input and as output the website will provide all the works by that actor. Now the issue is that since the user is providing the name as input but the link that you have provided takes person_id as input.

thanks for the suggestion worked it out. I have another query i.e, somehow the tv search : https://api.themoviedb.org/3/search/tv?api_key=######&language=en-US&query="+###+"&page=1 returns me irrelevant results.

What query are you using? The API search is the same as here on the website:

I'll need more information to go on.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden