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 ?
Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.
Wil u hierdie item gradeer of tot ’n lys toevoeg?
Nie ’n lid nie?
Antwoord deur Travis Bell
op 24 Mei 2015 om 11:25 VM
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.
Antwoord deur mohen
op 24 Mei 2015 om 11:34 VM
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
Antwoord deur Travis Bell
op 24 Mei 2015 om 12:58 NM
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.