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.
Antwort von Travis Bell
am 24. Dezember 2013 um 10:35
Hi baskar,
You'll be able to find the "Original Music Composer" under the crew section found in the credits method.
Antwort von PatFr38
am 8. Mai 2024 um 04: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.
Antwort von talestalker
am 8. Mai 2024 um 07:00
You can find movie credits method here. Or you can just query movie details with
append_to_response=credits
parameter (see here).Antwort von PatFr38
am 8. Mai 2024 um 07:07
Thanks alot, talestalker.
Antwort von PatFr38
am 25. März 2025 um 14: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
Antwort von talestalker
am 25. März 2025 um 16:04
Just add
credits
toappend_to_response
:https://api.themoviedb.org/3/movie/27205?append_to_response=videos,credits&language=en-US&api_key=###
Antwort von PatFr38
am 26. März 2025 um 14: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:
Antwort von PatFr38
am 26. März 2025 um 15: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:
Antwort von talestalker
am 27. März 2025 um 08: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.