The Movie Database 支持

https://developer.themoviedb.org/reference/account-add-to-watchlist i am not sure what kind of body data i need to pass to this api

https://api.themoviedb.org/3/account/${id}/watchlist

below is my provide BODY PARAMS but it not work

body: JSON.stringify({
    adult: false,
    backdrop_path: '/znUYFf0Sez5lUmxPr3Cby7TVJ6c.jpg',
    genre_ids: [12, 10751, 14, 10749],
    id: 447277,
    original_language: 'en',
    original_title: 'The Little Mermaid',
    overview: 'The youngest of King Triton’s daughters, and the most defiant, Ariel longs to find out more about the world beyond the sea, and while visiting the surface, falls for the dashing Prince Eric. With mermaids forbidden to interact with humans, Ariel makes a deal with the evil sea witch, Ursula, which gives her a chance to experience life on land, but ultimately places her life – and her father’s crown – in jeopardy.',
    popularity: 4350.022,
    poster_path: '/ym1dxyOk4jFcSl4Q2zmRrA5BEEN.jpg',
    release_date: '2023-05-18',
    title: 'The Little Mermaid',
    video: false,
    vote_average: 6.391,
    vote_count: 1154
  })
};

can you provide BODY PARAMS data example really thanks

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

Jump to last post

Hi @chunwen, to see examples on the doc page, look at the dark "Try It!" box on the right and select Examples->Request Example.

big thanks i am trying to call add-to-watchlist api

  data: {media_type: 'movie', media_id: 11, watchlist: true}

may i know where to get this field value?

media_id

i am trying to find media_id by this api response https://api.themoviedb.org/3/movie/{movie_id}

but cannot get any idea

It is the tmdb id for the movie or tv series you are trying to add. So in your case it is the "{movie_id}" itself.

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区