The Movie Database サポート

I am trying to create a film search portal through the API. The issue I am having is I am receiving results that include collections even though I am using the movies search endpoint. Any easy way to exclude collections?

3 replies (on page 1 of 1)

Jump to last post

@nmotamedi said:
Search movies and block collections
I am trying to create a film search portal through the API.
The issue I am having is I am receiving results that include collections even though I am using the movies search endpoint.
Any easy way to exclude collections?

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

await fetch( https://api.themoviedb.org/3/search/movie?query=polar%20express&include_adult=false&language=en-US&page=1, {headers: { Authorization: Bearer <TMDB_TOKEN>, }}, );

When I make this request, I receive the Polar Express Collection as a result as well, which it causing some issues when displaying those details since the TMDbID for the collection won't work when populating detail results.

@nmotamedi said:

await fetch(
https://api.themoviedb.org/3/search/movie?query=polar%20express&include_adult=false&language=en-US&page=1,
{headers: {
Authorization: Bearer <TMDB_TOKEN>,
}},
);

When I make this request, I receive the Polar Express Collection as a result as well, which it causing some issues when displaying those details since the TMDbID for the collection won't work when populating detail results.

Hummm
I believe it is not possible to filter/eliminate the collection in the response.
Movies and collections are in the same DB.
Maybe Travis Bell, the admin, has a solution for this.
Let's wait for him to come by.

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

全般

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

メディアのページ

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

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

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

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

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

全ての画像のページ

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

全ての編集ページ

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

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

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

設定

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

ログイン

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

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