Given a movie title, I’m trying to get a list of all actors. I tried:
url = “https://moviesdatabase.p.rapidapi.com/titles/tt0377092/main_actors”
headers = {
“X-RapidAPI-Key”: “adbdbf11bcmsh7cd8e0ea91e76fep1f9d12jsn3aeb41b8e022”,
“X-RapidAPI-Host”: “moviesdatabase.p.rapidapi.com”
}
response = requests.request(“GET”, url, headers=headers)
print(response.text)
With both /crew and /main_actors and it’s not working. tt0377092 is the ID returned by /titles/search/title/Mean%20Girls.
Thanks!
(The paste above is copy-paste from the documentation provided.)
Join in the discussion - add comment below:
@hadasnahshon in any way you can think about it, you can help, just let me know in what way you wanna help and will talk about it
@erehbezerra Hi, there is custom info parameter named just like that “custom_info” that will return this :
id:
ratingsSummary:
episodes:
primaryImage:
titleType:
principalCast:
creators:
directors:
writers:
genres:
titleText:
releaseYear:
releaseDate:
runtime:
series:
meterRanking:
keywords:
plot:
Thanks,
AM
Hello SAdrian! How are you doing?
So, I have a similar question… I need movie genres and actors in my request, but genres is in the info parameter “base_info” and actor is in “principalCast”… So, I would need to make 2 requests, right ? =/
Is there any way I can have these two pieces of information?
Thanks!! 😄
Thank you very much! Is there any way to help out with the API?
Hi,
This paths not available at the moment. You can get it from title, with info parameter ‘principalCast’ or ‘extendedCast’ ( you can find the info in the ‘About’ and ‘Tutorials’).
Thanks,
AM