The Movie Database Support

Hello, i tried to sort by primary release year and by the average_vote but it wont work out.

Here's an example of how i tried to add the primary_release_year:

https://api.themoviedb.org/3/genre/27/movies?primary_release_year=1999&api_key=key

What am i doing wrong?

Bests

3 replies (on page 1 of 1)

Jump to last post

Hi Abaklizki,

/genre/{ID}/movies doesn't support primary_release_year. You'll want to move your query over to /discover/movie for this:

https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=27&primary_release_year=1999&sort_by=vote_average.desc

Cheers.

Hi Travis, thanks for the reply. I just hoped that i dont have to do this step :D

Bests

Hi Alex,

The results from /genre/{ID}/movies are the same as /discover/movie, it's just that discover supports a lot more filters and options. There's no extra step, same steps required no matter which way you go at it ;)

Cheers.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

লগইন