תמיכת The Movie Database

Hey everybody, I'm trying to query movies for the last 2 years. what do i need to add to this so it will work ? &primary_release_year=2015 .. i tried &primary_release_year=2015&primary_release_year=2014 and, &primary_release_year=2015,2014

but of course no luck, an suggestions ?

3 תגובות (בדף 1 מתוך 1)

Jump to last post

Hi mohen,

For a query like this, you need to use the primary_release_date.gte and primary_release_date.lte params.

https://api.themoviedb.org/3/discover/movie?api_key=###&primary_release_date.gte=2015-01-01&primary_release_date.lte=2015-12-31

For more available params, please read through the docs.

Cheers.

Thank you for the quick response. for some reason I missed that on the docs. Sorry. But for some reason I still getting wrong dates like 2013 http://api.themoviedb.org/3/movie/top_rated?api_key=xxx&primary_release_date.gte=2014-01-01&primary_release_date.lte=2015-12-31

You can't use those filters on the top rated method, only the discover.

If you would like get the top rated with those date queries, use the sort_by=vote_average.desc param with the discover query I posted above.

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס