Hello,
I want to generate a list of a person's movies with the corresponding genre per film with the least number of requests to the tmdb api as possible.
From what I know at the moment, I have to call the following:
Is there any way to reduce the number of requests to the API?
Thanks in advance!
Bye The_Unknown
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ مارس 3, 2017 في 6:53 مساءا
I have 2 open tickets for this (ticket #316, and #418, which is to replicate the standard movie and tv list objects wherever a movie or TV show is part of the data.
I'm not sure when I'll get to this but it is planned.
Re: reducing the number of requests, are you using append_to_response?
رد بواسطة The_Unknown
بتاريخ مارس 4, 2017 في 11:35 صباحا
Thanks for the hint to append_to_response. I used it for including videos directly in /movie/. But unfortunately it doesn't colve my problem mentioned above. I tried:
https://api.themoviedb.org/3/person/525/movie_credits?api_key=<12345>&language=de&append_to_response=movies
and
https://api.themoviedb.org/3/person/525/movie_credits?api_key=<12345>&language=de&append_to_response=movie
with no success :(
It would be awesome if the info of a movie (retrieved through /movie/) is included directly in movie_credits.
رد بواسطة Travis Bell
بتاريخ مارس 4, 2017 في 12:23 مساءا
That's not quite how you use it
You can't use it on sub requests, only the primary get info calls. Ie:
As an example. You're now getting the person details with the credits in a single call. You also chain multiple calls together i.e.:
You can't make movie requests on the person method. The idea of
append_to_response
is to be able to make sub requests within the same namespace.رد بواسطة The_Unknown
بتاريخ مارس 4, 2017 في 3:28 مساءا
Ah, I see.
So is there's currently no chance to achieve what I'm trying :(?
رد بواسطة Travis Bell
بتاريخ مارس 4, 2017 في 7:09 مساءا
Unfortunately, no.