اختصارات لوحة المفاتيح
البحث المتقدم
Is there a way to block what ratings are seen in api
Hi jjcabinets,
When you say ratings, are you referring to country certifications like PG-13 in the U.S?
You can use the /discover method to filter movies by a country and certification but otherwise, no you would have to filter results locally.
What were you trying to achieve?
Im using this on a childs website and i would like to filter the content to like PG13 or G . only show those results .
Ya, so depending how you're up the data what I said above applies. If it's via search, you'll want to cache data locally and then filter things that way. There is no way to do this server side unless you're using the discover method.
do you have an example of a php code that could filter by discover mode?
No, I do not.
The raw query to (for example) filter movies that are rated PG and lower in the U.S., sorted by popularity looks like this:
http://api.themoviedb.org/3/discover/movie?api_key=###&sort_by=popularity.desc&certification_country=US&certification.lte=PG
Cheers.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
تسجيل الدخول
التسجيل
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
سجل و انضم الى المجتمع
رد بواسطة Travis Bell
بتاريخ نوفمبر 13, 2013 في 12:23 مساءا
Hi jjcabinets,
When you say ratings, are you referring to country certifications like PG-13 in the U.S?
You can use the /discover method to filter movies by a country and certification but otherwise, no you would have to filter results locally.
What were you trying to achieve?
رد بواسطة jjcabinets
بتاريخ نوفمبر 13, 2013 في 2:28 مساءا
Im using this on a childs website and i would like to filter the content to like PG13 or G . only show those results .
رد بواسطة Travis Bell
بتاريخ نوفمبر 13, 2013 في 2:50 مساءا
Ya, so depending how you're up the data what I said above applies. If it's via search, you'll want to cache data locally and then filter things that way. There is no way to do this server side unless you're using the discover method.
رد بواسطة jjcabinets
بتاريخ نوفمبر 13, 2013 في 3:09 مساءا
do you have an example of a php code that could filter by discover mode?
رد بواسطة Travis Bell
بتاريخ نوفمبر 13, 2013 في 3:21 مساءا
No, I do not.
The raw query to (for example) filter movies that are rated PG and lower in the U.S., sorted by popularity looks like this:
Cheers.