دعم الموقع

Hi, I am working on building a scheduled job that will pull movie data to a database to be displayed on my website. The scheduled job will loop through a list of movies currently playing in local theaters and pull the movie data for each. With the rate limit of 30 request per 10 seconds I will probably exceed this. So I am wondering if it is possible to pass in a list of movie IDs and pull back their movie data in a single batch?

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

Jump to last post

Hi Blair,

We do not have any batch features at this time. You'll have to loop through each item you need on its own.

Cheers.

Hi Travis,

Is it possible to reconsider batch requests? I think it'll reduces the server loads by reducing quite a lot of http requests. It's beneficial to both server's and client's point of view.

Hi henryk82,

What is is specifically you would like to get in a single request? We don't have any plans to release a "multi get" or "batch" method but I am curious to understand your problem better.

Cheers.

Hi Travis, An option to make a request for multiple movie details would be very helpful. to illustrate what I mean consider this batch of requests:

https://api.themoviedb.org/3/movie/{movie_id1}?api_key=<<api_key>>&language=en-US
https://api.themoviedb.org/3/movie/{movie_id2}?api_key=<<api_key>>&language=en-US
https://api.themoviedb.org/3/movie/{movie_id3}?api_key=<<api_key>>&language=en-US
https://api.themoviedb.org/3/movie/{movie_id4}?api_key=<<api_key>>&language=en-US
https://api.themoviedb.org/3/movie/{movie_id5}?api_key=<<api_key>>&language=en-US
...

I might want to make all of these requests one after the other because I have some list of movies that my user had saved in my app and I want to show them a scrollable list of their details. I could provide my user with a faster experience and stay under my rate limit more easily if I could send them as one request. for example:

https://api.themoviedb.org/3/movie/{movie_id1}_{movie_id2}_{movie_id3}_{movie_id4}_{movie_id5}_...?api_key=<<api_key>>&language=en-US

or maybe:

https://api.themoviedb.org/3/movie?movie_ids={movie_id1},{movie_id2},{movie_id3},{movie_id4},{movie_id5},...&api_key=<<api_key>>&language=en-US

Hi @Eyal-Kutz,

You can find my open ticket for this here.

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول