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
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ فبراير 29, 2016 في 9:34 صباحا
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:
This will return a list of items with a name and id.
Cheers.
رد بواسطة LeoIndu
بتاريخ ديسمبر 29, 2023 في 3:19 صباحا
can we send multiple keywords? i tried it by seperating from a coma... and it reduced the number of results
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ ديسمبر 29, 2023 في 11:38 صباحا
Yes.
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.
رد بواسطة Travis Bell
بتاريخ ديسمبر 29, 2023 في 12:09 مساءا
What @ticao2 said is true for discover. This does not work on search.
رد بواسطة LeoIndu
بتاريخ ديسمبر 29, 2023 في 12:31 مساءا
worked!... thank you so much☜(゚ヮ゚☜)