Apologies if that has been asked already, but I was just wondering if there is an api call for this right now or in development.
What I tried was fetching the person id using "/3/search/person" and then fetching that person id's movie credits using "/3/person/{id}/movie_credits" but all that gets returned are the person's acting credits only. Examples I tried were James Cameron (id: 2710) and David Fincher (id: 7467)
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Dale
on March 27, 2014 at 9:24 PM
If you know the director ID why don't you just use their id and call:
https://api.themoviedb.org/3/person/7467/movie_credits?api_key=###
The movies that director has directed is shown by job = Director, example:
"job":"Director","original_title":"Zodiac"
You will have to fetch the data and go through it and find the job for the person and if equals director then they directed the film in question.
Full out put of the request for David Fincher:
{"cast":[{"adult":false,"character":"Christopher Bing","credit_id":"52fe4249c3a36847f80129b1","id":492,"original_title":"Being John Malkovich","poster_path":"/gLhl4MBEC6yHTInwV7TxV1D3FLp.jpg","release_date":"1999-09-30","title":"Being John Malkovich"},{"adult":false,"character":"Himself (Archival)","credit_id":"52fe4815c3a368484e0e8797","id":70849,"original_title":"Wreckage and Rage: Making 'Alien³'","poster_path":"/voUwgFGXrG5tSXwrKIbCTgUPvT3.jpg","release_date":"2003-12-02","title":"Wreckage and Rage: Making 'Alien³'"},{"adult":false,"character":"Himself","credit_id":"52fe4ad2c3a36847f81e3905","id":110354,"original_title":"Side by Side","poster_path":"/mW64vqJuz4riqx3GgrlZpthtbmT.jpg","release_date":"2012-08-19","title":"Side by Side"},{"adult":false,"character":"Pringles Original (voice)","credit_id":"52fe44d09251416c9101db87","id":32389,"original_title":"Logorama","poster_path":"/pqR9ZxUXzQ9GAwd9B1kYRFpl99u.jpg","release_date":"2009-01-01","title":"Logorama"}],"crew":[{"adult":false,"credit_id":"52fe4250c3a36847f8014a47","department":"Directing","id":550,"job":"Director","original_title":"Fight Club","poster_path":"/2lECpi35Hnbpa4y46JX0aY3AWTy.jpg","release_date":"1999-10-14","title":"Fight Club"},{"adult":false,"credit_id":"52fe4279c3a36847f80217bf","department":"Directing","id":807,"job":"Director","original_title":"Se7en","poster_path":"/zgB9CCTDlXRv50Z70ZI4elJtNEk.jpg","release_date":"1995-09-22","title":"Se7en"},{"adult":false,"credit_id":"52fe4325c3a36847f803dd3f","department":"Directing","id":1949,"job":"Director","original_title":"Zodiac","poster_path":"/nkUbb208RW6LTpj1A4GrbE4Oub5.jpg","release_date":"2007-03-01","title":"Zodiac"},{"adult":false,"credit_id":"52fe4363c3a36847f80506f5","department":"Directing","id":2649,"job":"Director","original_title":"The Game","poster_path":"/reLfX4fIasqLXCdgZ7vnnYWYhe3.jpg","release_date":"1997-09-11","title":"The Game"},{"adult":false,"credit_id":"52fe43cbc3a36847f80700d5","department":"Directing","id":4547,"job":"Director","original_title":"Panic Room","poster_path":"/tvmKIUsdvRZ2aSvvrxGp9H9XuIK.jpg","release_date":"2002-03-29","title":"Panic Room"},{"adult":false,"credit_id":"52fe43e2c3a36847f8076355","department":"Directing","id":4922,"job":"Director","original_title":"The Curious Case of Benjamin Button","poster_path":"/4O4INOPtWTfHq3dd5vYTPV0TCwa.jpg","release_date":"2008-11-24","title":"The Curious Case of Benjamin Button"},{"adult":false,"credit_id":"52fe4461c3a36847f80927ef","department":"Production","id":6641,"job":"Executive Producer","original_title":"Love and Other Disasters","poster_path":"/auvnKSvV0PDJaTlIex0ARugib1p.jpg","release_date":"2006-09-09","title":"Love and Other Disasters"},{"adult":false,"credit_id":"52fe4c4ac3a368484e1b0f91","department":"Production","id":138452,"job":"Executive Producer","original_title":"The Goon","poster_path":"/61i9aBuCNpYxUPJYhEEoib5WLgY.jpg","release_date":null,"title":"The Goon"},{"adult":false,"credit_id":"52fe4d7fc3a368484e1ec741","department":"Directing","id":210577,"job":"Director","original_title":"Gone Girl","poster_path":"/nTRZ8n6fnSLamA9NjNb3GMDiJ9H.jpg","release_date":"2014-10-03","title":"Gone Girl"},{"adult":false,"credit_id":"52fe4718c3a368484e0b4c49","department":"Directing","id":65754,"job":"Director","original_title":"The Girl with the Dragon Tattoo","poster_path":"/voxRWFTtagLiqnJQs9tWQLB0MN.jpg","release_date":"2011-12-14","title":"The Girl with the Dragon Tattoo"},{"adult":false,"credit_id":"52fe4491c3a36847f809d8ad","department":"Directing","id":8077,"job":"Director","original_title":"Alien³","poster_path":"/p7mUd9GpmCYV5qhkKGmiEerFK3i.jpg","release_date":"1992-05-22","title":"Alien³"},{"adult":false,"credit_id":"52fe452dc3a36847f80c09b9","department":"Production","id":9787,"job":"Executive Producer","original_title":"Lords of Dogtown","poster_path":"/k1WjRObfqZV7EfmhsnUmhx88EAa.jpg","release_date":"2005-06-03","title":"Lords of Dogtown"},{"adult":false,"credit_id":"52fe466f9251416c91054741","department":"Directing","id":37799,"job":"Director","original_title":"The Social Network","poster_path":"/hKTwHT6WtYhtG8U2PJQSQH2y4oD.jpg","release_date":"2010-09-30","title":"The Social Network"}],"id":7467}
For the above I can see he directed 11 movies.
Hope this has helped.
Dale.
Reply by fwong
on March 28, 2014 at 9:46 AM
Thanks for the help. I just thought there would be a way to filter out the directing jobs only.
Reply by Travis Bell
on March 28, 2014 at 11:36 AM
Hi fwong,
There isn't at this time as there are no job queries.
Cheers.