The Movie Database サポート

Hi.

with_keywords - A comma separated list of keyword ID's. Only include movies that have one of the ID's added as a keyword.

I assume that means it will return any movie that has any of the keywords.

http://api.themoviedb.org/3/search/keyword?api_key=key&query=submarine 5 results

https://api.themoviedb.org/3/discover/movie?api_key=key&with_keywords=339,207656,222859,226474 0 results

https://api.themoviedb.org/3/discover/movie?api_key=key&with_keywords=226474 1 result

https://api.themoviedb.org/3/discover/movie?api_key=key&with_keywords=222859 2 results

https://api.themoviedb.org/3/discover/movie?api_key=key&with_keywords=222859,226474 0 results

If the parameter is interpreted as Keyword and Keyword, that makes it very difficult to obtains the correct ID.

2 replies (on page 1 of 1)

Jump to last post

As per the docs, comma separated values are an "and" query, while a pipe separated values is an "or". It sounds like you're looking for an "or".

https://api.themoviedb.org/3/discover/movie?api_key=key&with_keywords=339|207656|222859|226474

You rock, Travis!

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

全般

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

メディアのページ

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

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

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

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

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

全ての画像のページ

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

全ての編集ページ

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

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

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

設定

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

ログイン

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

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