The Movie Database Support

Hello,
I would like to know if it is possible to sort movie_credits by release_date like for discover/movies.
By default, i think movie_credits are sorted in the order of entrance in the database (in all case i don't see any logical sort).
I tried this kind of url :
https://api.themoviedb.org/3/person/4135/movie_credits?sort_by=release_date.desc&api_key=xxxxxxxxx
but nothing changed. Order is still the same than without the sort_by
Thanks

2 replies (on page 1 of 1)

• Jump to last post

@michelweb said:

Hello,
I would like to know if it is possible to sort movie_credits by release_date like for discover/movies.
By default, i think movie_credits are sorted in the order of entrance in the database (in all case i don't see any logical sort).
I tried this kind of url :
https://api.themoviedb.org/3/person/4135/movie_credits?sort_by=release_date.desc&api_key=xxxxxxxxx
but nothing changed. Order is still the same than without the sort_by
Thanks

sort_by= is not available for this API Request.
But you can use Discover with sort_by=.
Example with Robert Redford, ID 4135.

Cast
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=primary_release_date.desc&page=1&with_cast=4135
Crew
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=primary_release_date.desc&page=1&with_crew=4135
Cast and Crew
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=primary_release_date.desc&page=1&with_people=4135

Thanks but i don't like the results. My page is a total filmography of a celebrity. With this url many movies disappear. I will try another solution. I guess a PHP script can give me what I am looking for. But thanks for your answer

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

Want to rate or add this item to a list?

Login