The Movie Database サポート

I'm looking at this collection using the API, by calling this endpoint:

https://api.themoviedb.org/3/collection/14890

and the results I'm getting don't match what I see on the website. What's on the website is correct:

  1. Bad Boys
  2. Bad Boys II
  3. Bad Boys for Life
  4. Bad Boys: Ride or Die

However, what I see from the API is not the same; here's a subset of the result:

[
  {
    "title": "Bad Boys for Life",
    "id": 38700
  },
  {
    "title": "Bad Boys",
    "id": 9737
  },
  {
    "title": "Bad Boys II",
    "id": 8961
  },
  {
    "title": "Bad Boys: Ride or Die",
    "id": 573435
  }
]

This is placing the third film — Bad Boys for Life as the first.

Since the website is correct, I guess this is just an API issue?

Thanks,
Clue Liss

2 replies (on page 1 of 1)

Jump to last post

Hey Casey,

I don't believe the results in the collection end point are explicitly ordered. My suggestion would be to sort by the release_date field locally, on your client.

TMDB does not store any order information about collection parts at this time (I have an open ticket for that), and we just sort by the release date as well.

😳 🤦🏻‍♂️

Whoopsie doopsie! That's my bad then; thanks for clarifying!

For what it's worth, may be worth adding a small clause to the API endpoint to make this explicit?

Thanks again, [No Longer] Clue Liss

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

全般

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

メディアのページ

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

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

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

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

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

全ての画像のページ

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

全ての編集ページ

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

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

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

設定

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

ログイン

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

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