import{_ as t,c as a,a as l,o as n}from"./app-Dgsdh8A6.js";const e={};function o(d,s){return n(),a("div",null,s[0]||(s[0]=[l(`

追番相关

追番

https://api.bilibili.com/pgc/web/follow/add

请求方式:POST

鉴权方式:Cookie(SESSDATA)

url参数:

参数名类型内容必要性备注
season_idstr剧集ssid必要
csrfstrcsrf token(位于cookies中的bili_jct)必要

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-111:csrf校验失败
messagestr信息成功时:success
resultobj见下表

根对象中的result对象:

字段类型内容备注
fmidnum0
relationboolfalse
statusnum2
toaststr自己追的番就要好好看完哟^o^

示例:

追番ssid=41410的番剧

curl -G 'https://api.bilibili.com/pgc/web/follow/add' \\
--data-urlencode 'season_id=41410' \\
--data-urlencode 'csrf=xxx' \\
查看响应示例:
{
  "code": 0,
  "message": "success",
  "result": {
    "fmid": 0,
    "relation": false,
    "status": 2,
    "toast": "自己追的番就要好好看完哟^o^"
  }
}

取消追番

https://api.bilibili.com/pgc/web/follow/del

请求方式:POST

鉴权方式:Cookie(SESSDATA)

url参数:

参数名类型内容必要性备注
season_idstr剧集ssid必要
csrfstrcsrf token(位于cookies中的bili_jct)必要

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-111:csrf校验失败
messagestr信息成功时:success
resultobj见下表

根对象中的result对象:

字段类型内容备注
fmidnum0
relationbooltrue
statusnum0
toaststr已取消追番

示例:

取消ssid=41410的追番

curl -G 'https://api.bilibili.com/pgc/web/follow/del' \\
--data-urlencode 'season_id=41410' \\
--data-urlencode 'csrf=xxx' \\
查看响应示例:
{
  "code": 0,
  "message": "success",
  "result": {
    "fmid": 0,
    "relation": false,
    "status": 0,
    "toast": "已取消追番"
  }
}
`,31)]))}const p=t(e,[["render",o]]),c=JSON.parse('{"path":"/docs/bangumi/follow.html","title":"追番相关","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1677124138000,"contributors":[{"name":"SocialSisterYi","username":"SocialSisterYi","email":"1440239038@qq.com","commits":2,"url":"https://github.com/SocialSisterYi"}],"changelog":[{"hash":"f6760f4be38d5b592d396b211e48c666286524de","time":1677124138000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🔨remove header index"},{"hash":"7d89ece2ac46425810647c4ac92acf5f3721cb68","time":1676998806000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🚀调整项目结构"}]},"filePathRelative":"docs/bangumi/follow.md"}');export{p as comp,c as data};