The Movie Database Support

Is there a way to search and sort at the same time? Appears search is /search and sort is /discover? Why not just have one ring to rule them all ;)?

3 replies (on page 1 of 1)

Jump to last post

@mangeletti said:
Sort AND Search
Is there a way to search and sort at the same time?

No.
It is not possible to use Sort as a parameter in a Search API Request.

Appears search is /search and sort is /discover?

Yes.
Sort is one of the possible parameters used in a Discover API Request.

Why not just have one ring to rule them all ;)?

I think you use Search to find a movie or a person you know the title or name.
Of course, there are homonyms or names that are very similar.
So I'm not really sure what criteria you want to use to Sort the items in the answer.
Can you give us an example?

Can i give an example? Of course, plenty of examples to choose from: Show me TV shows that have 'dog' in their title and sort them by ratings. Show me 'Chris Nolan' movies sorted by rating.

@mangeletti said:
Can i give an example? Of course, plenty of examples to choose from:
1 Show me TV shows that have 'dog' in their title and sort them by ratings.
2 Show me 'Chris Nolan' movies sorted by rating.

Your first example I believe is not possible.
In Discovry I don't know how to filter by title.
But the second example I believe is possible.
Let's assume that the Chris Nolan you're referring to is Christopher Nolan, this:
https://www.themoviedb.org/person/525-christopher-nolan
Then we can make the following API Request:
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=vote_average.desc&page=1&with_people=525
There are other options for sort_by.

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?

Login