how can i get the actors of a film? i search in API of movie and i don't find the attribute actors... or something similar in the other API.. please help me. i'm not an expert, i need simple information for a university exam
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 ticao2 š§š· pt-BR
on February 6, 2021 at 3:41 PM
If you wish to receive Cast & Crew data
1 This is a basic API Request for a Movie and TV Show
Movies - See here: https://developers.themoviedb.org/3/movies/get-movie-details
Movies - Example: https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US
TV Show - See here; https://developers.themoviedb.org/3/tv/get-tv-details
TV Show - Example: https://api.themoviedb.org/3/tv/1418?api_key=THE_KEY&language=en-US
2 If you want to receive the cast & crew in response, use the &append_to_response= feature with the credits parameter.
See here; https://developers.themoviedb.org/3/getting-started/append-to-response
Movies - Example: https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US&append_to_response=credits
TV Show - Example: https://api.themoviedb.org/3/tv/1418?api_key=THE_KEY&language=en-US&append_to_response=credits
3 Or do the API Request only from Cast & Crew.
Movies - See here: https://developers.themoviedb.org/3/movies/get-movie-credits
Movies - Example: https://api.themoviedb.org/3/movie/550/credits?api_key=THE_KEY&language=en-US
TV Show - See here; https://developers.themoviedb.org/3/tv/get-tv-credits
TV Show - Example: https://api.themoviedb.org/3/tv/1418/credits?api_key=THE_KEY&language=en-US