The Movie Database Support

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&language=en-US&region=US&sort_by=release_date.asc&include_adult=false&include_video=false&page=1&release_date.gte=2019-11-17&release_date.lte=2019-12-17&with_release_type=3

I really wish this would actually return the correct order of movies based on the release type. I understand movies have all different releases, but the fact that in this call I am specifying the release type and asking it to be sorted by release type and I get an order of movies all out of order because its looking at what I can only guess is another release type release date.

Only solutions I've came up with so far, for this issue is to to make smaller release window calls (so all movies fit on a single page), or to call all pages (one after another) then manually sort the data, but those additional calls don't always succeed.

6 replies (on page 1 of 1)

Jump to last post

I didn't quite understand what the problem is.
I believe Google Translate didn't work correctly.
But...
Maybe if you use primary_release_date the result is what you want.

@ticao2 said:

I didn't quite understand what the problem is.
I believe Google Translate didn't work correctly.
But...
Maybe if you use primary_release_date the result is what you want.

no both result in the movies being in the wrong order.

if you try (with a valid api key):

https://api.themoviedb.org/3/discover/movie?api_key={API_KEY}&language=en-US-US&region=US&sort_by=release_date.asc&include_adult=false&include_video=false&page=1&release_date.gte=2019-11-17&release_date.lte=2019-12-17&with_release_type=3

You can quickly see the order by release dates is not looking at the release_type to order the releases. It is going by the premiere date, which for some movies can be multiple weeks before they major public release.

Hi @brianminor,

I think I know why this is happening. I don't have time to look into this right away but I've created a ticket for it here.

Awesome thanks, this has definitely been the biggest hurdle Ive had with the API, right now I am just calling all the pages of movies for an entire year at a time and manually displaying the order. Biggest issue with that is so many unneeded calls for some users and sometimes calls fail and I have to setups check and do recalls.

Hey Brian,

I think I just corrected this. How's it look for you?

Travis,

Sorry for the delay and thanks so much this is working perfectly cant wait to get an update of my app out with it included.

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