The Movie Database サポート

Hey,

Since the v3 api has a different endpoint for movie vs collection, is it possible to figure out if an ID is for a movie vs a collection? Do movie id's overlap with collection ids or will that never be the case?

Also, would it be possible to automatically redirect and return json results for a collection instead of movie based on the ID we pass you (assuming the ids do not overlap for movies and collection).

The above would be for both info and images...b/c right now the only way to tell the difference would be to hit the movie api with the id and if I get a 404 hit the collection api and see if I get a result.

Take Care

1 reply (on page 1 of 1)

Jump to last post

is it possible to figure out if an ID is for a movie vs a collection?

Only by detecting a 404 on movie and then trying a collection.

Do movie id's overlap with collection ids or will that never be the case?

They currently share the same numeric space so they would never overlap.

Also, would it be possible to automatically redirect and return json results for a collection instead of movie based on the ID we pass you (assuming the ids do not overlap for movies and collection).

It's unlikely we would do this. If you request a movie ID that doesn't exist, it should always 404.

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

全般

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

メディアのページ

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

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

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

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

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

全ての画像のページ

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

全ての編集ページ

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

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

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

設定

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

ログイン

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

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