This subject interests me, but your 11 years ago answer is left (page has been deprecated). Please, could you give me another on the new documentation location? Thank you in advance.
Sorry, but I still don't find how to get details of a movie... Is it possible to give me the complete URL for having the director o f the movie, the Original Music Composer, please?
What do I have to add in the URL to have what I would like, please, like in the exemple "videos"?
https://api.themoviedb.org/3/movie/27205?append_to_response=videos&language=en-US
Thanks, talestalker, but it's not all I need for what I would like to have... What do I have to put in the URL to have in a shield with ID "Composer" for exemple the Original Music Composer of the movie, please?
I have found we can make a request in credits, crew, job and then director, Original Music Composer... But I don't know how to use it...
Until now, I have a HTML page wich aloud me to have few details of a movie, but not all I would like... Here is it:
Thanks, talestalker, but it's not all I need for what I would like to have... What do I have to put in the URL to have in a shield with ID "Composer" for exemple the Original Music Composer of the movie, please?
All TMDB API can do for you is provide a JSON that contains the data you want. In your case, this request (assuming you change the ### to your API key):
returns a 217 kB JSON that contains, among other things, the following (shortened and formatted for clarity):
{
"adult": false,
"backdrop_path": "/8ZTVqvKDQ8emSGUEMjsS4yHAwrp.jpg",
"belongs_to_collection": null,
...
"id": 27205,
...
"original_language": "en",
"original_title": "Inception",
"overview": "Cobb, a skilled thief who commits corporate espionage by infiltrating the subconscious of his targets is offered a chance to regain his old life as payment for a task considered to be impossible: \"inception\", the implantation of another person's idea into a target's subconscious.",
...
"credits": {
"cast": [
...
],
"crew": [
...
{
"adult": false,
"gender": 2,
"id": 947,
"known_for_department": "Sound",
"name": "Hans Zimmer",
"original_name": "Hans Zimmer",
"popularity": 1.5703,
"profile_path": "/tpQnDeHY15szIXvpnhlprufz4d.jpg",
"credit_id": "56e8462cc3a368408400354c",
"department": "Sound",
"job": "Original Music Composer"
},
...
{
"adult": false,
"gender": 2,
"id": 525,
"known_for_department": "Directing",
"name": "Christopher Nolan",
"original_name": "Christopher Nolan",
"popularity": 2.5244,
"profile_path": "/xuAIuYSmsUzKlUMBFGVZaWsY3DZ.jpg",
"credit_id": "5e83ac2ee33f830018359a00",
"department": "Directing",
"job": "Director"
},
...
]
}
}
TMDB support ends with the delivery of the above JSON and how you handle it is entirely up to your code. For example, if you are writing a javascript code, you will need to make a URL request and import the JSON into a javascript object (that's what the getMovieDetail(id) function does in your second example) and then find all the necessary information like director and original movie composer yourself. But for help with javascript please look somewhere else, such as Stack Overflow.
رد بواسطة Travis Bell
بتاريخ ديسمبر 24, 2013 في 10:35 صباحا
Hi baskar,
You'll be able to find the "Original Music Composer" under the crew section found in the credits method.
رد بواسطة PatFr38
بتاريخ مايو 8, 2024 في 4:18 صباحا
Hi Travis,
This subject interests me, but your 11 years ago answer is left (page has been deprecated). Please, could you give me another on the new documentation location? Thank you in advance.
رد بواسطة talestalker
بتاريخ مايو 8, 2024 في 7:00 صباحا
You can find movie credits method here. Or you can just query movie details with
append_to_response=credits
parameter (see here).رد بواسطة PatFr38
بتاريخ مايو 8, 2024 في 7:07 صباحا
Thanks alot, talestalker.
رد بواسطة PatFr38
بتاريخ مارس 25, 2025 في 2:46 مساءا
Hi.
Sorry, but I still don't find how to get details of a movie... Is it possible to give me the complete URL for having the director o f the movie, the Original Music Composer, please? What do I have to add in the URL to have what I would like, please, like in the exemple "videos"? https://api.themoviedb.org/3/movie/27205?append_to_response=videos&language=en-US
رد بواسطة talestalker
بتاريخ مارس 25, 2025 في 4:04 مساءا
Just add
credits
toappend_to_response
:https://api.themoviedb.org/3/movie/27205?append_to_response=videos,credits&language=en-US&api_key=###
رد بواسطة PatFr38
بتاريخ مارس 26, 2025 في 2:57 مساءا
Thanks, talestalker, but it's not all I need for what I would like to have... What do I have to put in the URL to have in a shield with ID "Composer" for exemple the Original Music Composer of the movie, please?
I have found we can make a request in credits, crew, job and then director, Original Music Composer... But I don't know how to use it...
Until now, I have a HTML page wich aloud me to have few details of a movie, but not all I would like... Here is it:
رد بواسطة PatFr38
بتاريخ مارس 26, 2025 في 3:11 مساءا
I have found this other code, but I don't know what to change in it to have the Director and the Original Music Composer:
رد بواسطة talestalker
بتاريخ مارس 27, 2025 في 8:22 صباحا
All TMDB API can do for you is provide a JSON that contains the data you want. In your case, this request (assuming you change the ### to your API key):
https://api.themoviedb.org/3/movie/27205?append_to_response=videos,credits&language=en-US&api_key=###
returns a 217 kB JSON that contains, among other things, the following (shortened and formatted for clarity):
TMDB support ends with the delivery of the above JSON and how you handle it is entirely up to your code. For example, if you are writing a javascript code, you will need to make a URL request and import the JSON into a javascript object (that's what the
getMovieDetail(id)
function does in your second example) and then find all the necessary information like director and original movie composer yourself. But for help with javascript please look somewhere else, such as Stack Overflow.