The Movie Database Support

Hi, I would like to know how to get the differents parameters of sorts for : https://api.themoviedb.org/3/movie/now_playing and https://api.themoviedb.org/3/movie/upcoming (to make a sort by release date asc)

Thanks

4 replies (on page 1 of 1)

Jump to last post

The only parameters for these API calls are your API key, the language, the region and the page.

If you want to do something else, a sort for example, you need to use the discover call.

Thanks. I will use a php code to sort them then

@michelweb said:

Hi, I would like to know how to get the differents parameters of sorts for : https://api.themoviedb.org/3/movie/now_playing and https://api.themoviedb.org/3/movie/upcoming (to make a sort by release date asc)

Thanks

As note mention on the blue section, the endpoint for now playing and upcoming "just a discover call behind the scenes". Then add sort_by=primary_release_date.asc

Upcoming, primary_release_date.gte=2024-08-20

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&include_adult=false&include_video=false&language=en-US&primary_release_date.gte=2024-08-20&watch_region=US&page=1&with_release_type=2|3&sort_by=primary_release_date.asc

For now playing. Generally, most movies will stay in theaters for at least four weeks. So i put primary_release_date.gte=2024-07-21 till primary_release_date.lte=2024-08-21

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&include_adult=false&include_video=false&language=en-US&primary_release_date.gte=2024-07-21&primary_release_date.lte=2024-08-21&watch_region=US&page=1&with_release_type=2|3&sort_by=primary_release_date.asc

Thanks a lot but finally I sorted the results with a php code. It is a sort code and it works great with all the types of API calls. For me it is fixed

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?

உள் நுழை