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 ?
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת Travis Bell
ב-מאי 24, 2015 ב-11:25לפני חצות יום
Hi mohen,
For a query like this, you need to use the
primary_release_date.gte
andprimary_release_date.lte
params.For more available params, please read through the docs.
Cheers.
תגובה מאת mohen
ב-מאי 24, 2015 ב-11:34לפני חצות יום
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
תגובה מאת Travis Bell
ב-מאי 24, 2015 ב-12:58אחרי חצות יום
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.