دعم الموقع

Hi i am fairly new to using this API, i have a quick question regarding searching for films by KEYWORD - to search i must have a valid keyword ID, however how do i find the id related to a given keyword? For example i search for keyword = cat, how do i get the id ?

Thanks in advance

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

Jump to last post

Hi Frostycrow,

There's 2 ways you would normally get the id of a keyword.

First, by calling (for example) the /keywords method on a movie. This will return a list of keyword (along with the id).

Second, would be to use /search/keyword. An example request would look like:

https://api.themoviedb.org/3/search/keyword?api_key=###&query=cat

This will return a list of items with a name and id.

Cheers.

can we send multiple keywords? i tried it by seperating from a coma... and it reduced the number of results

@LeoIndu said:
can we send multiple keywords?

Yes.

i tried it by seperating from a coma... and it reduced the number of results

Comma = AND
Pipe = OR

Use pipe, | .
See the rule:

AND/OR Logic
Also note that a number of filters support being comma (,) or pipe (|) separated.
Comma's are treated like an AND query while pipe's are treated like an OR.
This allows for quite complex filtering depending on your desired results.

What @ticao2 said is true for discover. This does not work on search.

worked!... thank you so much☜(゚ヮ゚☜)

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول