键盘快捷键
高级搜索
Hi there:
Is it possible to search for films that include multiple genres? For example, an action animation, or a comedy mystery? I played around a bit with the URI but couldn't get it working...
Hi jswiss,
Are you trying to use the website or API to do this?
Hey Travis:
I will be using the API. For testing purposes, I was playing around with the URI.
Ok, with the API you can use /discover/movie to do this. An example query to search for films that are both a animation AND action, you would do this:
https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=16,28
You can turn that into an OR query by switching the comma into a pipe:
https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=16|28
You can combine these filters with any others listed in the docs, including all of the many sort options.
Cheers.
Amazing! Thanks Travis, and sorry for all the beginner questions!
找不到电影或节目?登录并创建它吧。
登录
注册
想给这个条目评分或将其添加到片单中?
还不是会员?
注册加入社区
Travis Bell 的回复
于 2015 年 09 月 18 日 10:57上午
Hi jswiss,
Are you trying to use the website or API to do this?
jswiss 的回复
于 2015 年 09 月 18 日 4:09下午
Hey Travis:
I will be using the API. For testing purposes, I was playing around with the URI.
Travis Bell 的回复
于 2015 年 09 月 18 日 4:42下午
Hi jswiss,
Ok, with the API you can use /discover/movie to do this. An example query to search for films that are both a animation AND action, you would do this:
You can turn that into an OR query by switching the comma into a pipe:
You can combine these filters with any others listed in the docs, including all of the many sort options.
Cheers.
jswiss 的回复
于 2015 年 09 月 19 日 8:36上午
Amazing! Thanks Travis, and sorry for all the beginner questions!