The Movie Database 支持

Hi.

https://developers.themoviedb.org/3/search/search-collections

I get the collection code in this link.

https://api.themoviedb.org/3/search/collection?api_key="key"&language=en-US&query=9485&page=1

The final version of the link is like this. But it finds no results.

6 回复(第 1 页,共 1 页)

Jump to last post

This API query try to find a collection that include the "9485" text in its name.

If you want to find the collection "The Fast and the Furious Collection" which have the Id 9485, you need to put the name of the collection or a part of it (URI encoded) to search for it.

Or, if you want directly obtain the detail of this collection directly use the collection method with the Id, instead of the search collection.

Can you give an example?

Also, can we search for collections by ID number?

@melihonline said:

Can you give an example?

https://api.themoviedb.org/3/collection/9485?api_key="key"&language=en-US

Also, can we search for collections by ID number?

No, you can't search for collections by ID number, as the main use of the search is to obtain the Id Number of the collection.

Thanks for your reply, @superboy97. I also have the same need as @melihonline. So, as of today, you confirm that there is no way to get collections in which a film is included by searching for the film ID?

@Wiccio said:

So, as of today, you confirm that there is no way to get collections in which a film is included by searching for the film ID?

Why do you want to do a search if you already have the movie Id ?

The above discussion was about searching a collection with the collection Id.

As explained in this previous discussion, the collection it belongs to is directly available in the movie details.

Because I'm writing a bot for Wikidata, which cycles through all the film IDs in TMDb. Uh, thanks for this link and this information; I didn't realise that the collection ID is listed on the films page accessible via the API. In that case, I've solved it, thank you very much! ;-)

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区