MoviesDatabase

FREEMIUM
By Adriano Massimo | Updated 11 days ago | Movies
Popularity

9.9 / 10

Latency

232ms

Service Level

100%

Health Check

N/A

Back to All Discussions

crew/main_actors not working

Rapid account: Hadasnahshon
hadasnahshon
a year ago

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.)

Rapid account: S Adrian
SAdrian Commented a year ago

@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

Rapid account: S Adrian
SAdrian Commented a year ago

@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

Rapid account: Erehbezerra
erehbezerra Commented a year ago

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!! 😄

Rapid account: Hadasnahshon
hadasnahshon Commented a year ago

Thank you very much! Is there any way to help out with the API?

Rapid account: S Adrian
SAdrian Commented a year ago

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

Join in the discussion - add comment below:

Login / Signup to post new comments