The Movie Database サポート

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

映画やテレビ番組が見つかりませんか?ログインして作成してください。

全般

s 検索バーに移動する
p プロファイルメニューを開く
esc 開いているウィンドウを閉じる
? キーボードショートカットウィンドウを開く

メディアのページ

b 戻る(または該当する場合は親に)
e 編集ページに行く

テレビ番組のシーズンのページ

(右矢印)次のシーズンに行く
(左矢印)前のシーズンに戻る

テレビ番組のエピソードのページ

(右矢印)次のエピソードに進む
(左矢印)前のエピソードに戻る

全ての画像のページ

a 画像追加ウィンドウを開く

全ての編集ページ

t 翻訳選択を開く
ctrl+ s フォームを送信する

ディスカッションのページ

n 新しいディスカッションを作成する
w 監視ステータスを切り替える
p 公開/非公開を切り替える
c 閉じる/開くを切り替える
a アクティビティを開く
r ディスカッションに返信
l 最後の返事に行く
ctrl+ enter メッセージを送信する
(右矢印)次のページ
(左矢印)前のページ

設定

このアイテムを評価したり、リストに追加したりしたいですか?

ログイン

メンバーではありませんか?

登録してコミュニティに参加