The Movie Database Support

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 replies (on page 1 of 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.

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