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.
Răspuns de Travis Bell
pe data de 24 decembrie 2013 la ora 10:35 AM
Hi baskar,
You'll be able to find the "Original Music Composer" under the crew section found in the credits method.
Răspuns de PatFr38
pe data de 8 mai 2024 la ora 4:18 AM
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.
Răspuns de talestalker
pe data de 8 mai 2024 la ora 7:00 AM
You can find movie credits method here. Or you can just query movie details with
append_to_response=credits
parameter (see here).Răspuns de PatFr38
pe data de 8 mai 2024 la ora 7:07 AM
Thanks alot, talestalker.
Răspuns de PatFr38
pe data de 25 martie 2025 la ora 2:46 PM
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
Răspuns de talestalker
pe data de 25 martie 2025 la ora 4:04 PM
Just add
credits
toappend_to_response
:https://api.themoviedb.org/3/movie/27205?append_to_response=videos,credits&language=en-US&api_key=###
Răspuns de PatFr38
pe data de 26 martie 2025 la ora 2:57 PM
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:
Răspuns de PatFr38
pe data de 26 martie 2025 la ora 3:11 PM
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:
Răspuns de talestalker
pe data de 27 martie 2025 la ora 8:22 AM
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.