دعم الموقع

Hello! First of all thanks a lot for this great project. I am a big movie fan and I am trying to learn API requests with this website. Thanks a lot for all of this!

Now my question. I managed to get 20 similar movies based on a movie ID. Now I am trying to make 5 different requests to get similar movies based on 5 movie IDs, expecting a list of 20 movies in each of the requests, in total 100 movies.

Although, I am getting different numbers in each of the requests: 2 movies for the first one, 8 for the second, 3, 9, and 10 movies for each the rest. Why is this happening? Is there a limit on the number of similar movies that I can get for each request? Am I doing something wrong making 5 requests to the API?

Thanks a lot in advance for any help you could provide for this novice

3 ردود (على هذه الصفحة 1 من 1)

Jump to last post

In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [THE_KEY] , or something like that.

If possible, post the Initial Requisition, which had a response of 20 films,
And the first Requisition, which had a response of 2 films
And the second Requisition, which had an answer of 8 films


EDIT

Is there a limit on the number of similar movies that I can get for each request?

I do not think so.

@oscaralvarado said:

Although, I am getting different numbers in each of the requests: 2 movies for the first one, 8 for the second, 3, 9, and 10 movies for each the rest. Why is this happening? Is there a limit on the number of similar movies that I can get for each request? Am I doing something wrong making 5 requests to the API?

The /similar methods are trying to build a map related to keywords and genres, so the results you get will be based on the data that has been entered for those fields and will vary quite greatly across all of the items. I believe the only check related to this is to only return items that have at least 3 items to return. So the results will be anywhere from 3 to infinity.

Thank you very much both of you! I managed to solve the problem. Indeed it seems to be something related to what Travis has mentioned, so I just implemented a workaround and now it is working nicely.

Thanks a lot, both @ticao2 and @travisbell

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول