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 ?
Ne najdete filma ali serije? Prijavite se, da ga/jo ustvarite.
Want to rate or add this item to a list?
Not a member?
Travis Bell je odgovoril
dne maj 24, 2015 ob 11:25 AM
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 je odgovoril
dne maj 24, 2015 ob 11:34 AM
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 je odgovoril
dne maj 24, 2015 ob 12:58 PM
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.