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
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط superboy97
در تاریخ اوت 21, 2024 ساعت 6:30 ق.ض
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.
پاسخ توسط InfosCine.com
در تاریخ اوت 21, 2024 ساعت 6:36 ق.ض
Thanks. I will use a php code to sort them then
پاسخ توسط Waffiq
در تاریخ اوت 21, 2024 ساعت 6:56 ق.ض
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
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
tillprimary_release_date.lte=2024-08-21
پاسخ توسط InfosCine.com
در تاریخ اوت 21, 2024 ساعت 7:09 ق.ض
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