دعم الموقع

Can endpoints be filtered by Genre?

For example, the Now Playing (https://api.themoviedb.org/3/movie/now_playing) or the Search Movie (https://api.themoviedb.org/3/search/movie) endpoints return only movies by specific genre.

In this way: https://api.themoviedb.org/3/movie/now_playing?genre=animation returns only animation movies that are Now Playing.

Thanks.

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

Jump to last post

@gabrielizalo said:
Can endpoints be filtered by Genre?
Can endpoints be filtered by Genre?
For example, the Now Playing (https://api.themoviedb.org/3/movie/now_playing)
or the Search Movie (https://api.themoviedb.org/3/search/movie) endpoints return only movies by specific genre.
In this way: https://api.themoviedb.org/3/movie/now_playing?genre=animation returns only animation movies that are Now Playing.
Thanks.

Using Search Movies is not possible.
In the case of Now Playing it is possible.
https://developer.themoviedb.org/reference/movie-now-playing-list
As the text on the page states, it is based on Discover.

Note
This call is really just a discover call behind the scenes. If you would like to tweak any of the default filters head over and read about discover.

https://developer.themoviedb.org/reference/discover-movie
Just specify the release_date values.
For example:

https://api.themoviedb.org/3/discover/movie?page=1&region=BR&release_date.gte=2024-10-02&release_date.lte=2024-10-30

And you can specify one or more genre IDs, separated by commas.

https://api.themoviedb.org/3/discover/movie?page=1&region=BR&release_date.gte=2024-10-02&release_date.lte=2024-10-30&with_genres=35,16

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول