دعم الموقع

Hello!

I'm using multi search (/search/multi) API to get movies and tv shows. Is it possible to get the results sorted by popularity?

Thanks!

5 ردود (على هذه الصفحة 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].

So we can better understand what your goal is.
It is not one of the options of the multi search Request.
But you can experiment and test.
In this test I did it had an effect. The popularity was respected.

https://api.themoviedb.org/3/search/multi?api_key=[THE_KEY]&language=en-US&query=Jack%20Reacher&page=1&region=US&sort_by=popularity.desc  
https://api.themoviedb.org/3/search/multi?api_key=[THE_KEY]&language=en-US&query=Jack%20Reacher&page=1&region=US&sort_by=popularity.asc

Hi @ticao2 , thanks for your answer.

You are right, I should have posted the url for the API request. Anyway I tested the query as you suggested and it's working totally fine.

Thank you!

@ticao2 said:

In this test I did it had an effect. The popularity was respected.

https://api.themoviedb.org/3/search/multi?api_key=[THE_KEY]&language=en-US&query=Jack%20Reacher&page=1®ion=US&sort_by=popularity.desc  
https://api.themoviedb.org/3/search/multi?api_key=[THE_KEY]&language=en-US&query=Jack%20Reacher&page=1®ion=US&sort_by=popularity.asc

Hi,

5 years later it seems to popularity is not respected. Both request return:

... | jq .results[].popularity
8.5005
1.3046
11.6605
68.6087

Could you help me how to search people most popular first?

Bert Regards, rysson.

Hi @rysson,

None of our search methods support a custom sort option. They are designed to try and return the most relevant results (and to be boosted by popularity) but there is no way to use a custom sort option.

OK, thank you for response.

It means that I need to wait Clint Eastwood will be boosted. Now the first person is 2189663, noname Eastwood, with no any date filled yet. 😋

 http api.themoviedb.org/3/search/person language==en-US query=='eastwood' region==US | jq .results[].popularity
0.0388
0.0819
4.3813

It's clear the sort method is not supported. It will be break cache and performance. I understand it.

Good luck,

rysson

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول