import{_ as t,c as D,b as s,a as e,e as o,w as p,d as l,r as c,o as r}from"./app-Dgsdh8A6.js";const i={};function u(y,n){const a=c("RouteLink");return r(),D("div",null,[n[202]||(n[202]=s("h1",{id:"评论区明细",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#评论区明细"},[s("span",null,"评论区明细")])],-1)),n[203]||(n[203]=s("h2",{id:"获取评论区明细-翻页加载",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#获取评论区明细-翻页加载"},[s("span",null,"获取评论区明细_翻页加载")])],-1)),n[204]||(n[204]=s("blockquote",null,[s("p",null,"https://api.bilibili.com/x/v2/reply")],-1)),n[205]||(n[205]=s("p",null,[s("em",null,"请求方式:GET")],-1)),n[206]||(n[206]=s("p",null,"认证方式:Cookie(SESSDATA)或APP",-1)),n[207]||(n[207]=s("p",null,[s("strong",null,"url参数:")],-1)),s("table",null,[n[11]||(n[11]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[n[5]||(n[5]=s("tr",null,[s("td",null,"access_key"),s("td",null,"str"),s("td",null,"APP 登录 Token"),s("td",null,"APP 方式必要"),s("td")],-1)),s("tr",null,[n[1]||(n[1]=s("td",null,"type",-1)),n[2]||(n[2]=s("td",null,"num",-1)),n[3]||(n[3]=s("td",null,"评论区类型代码",-1)),n[4]||(n[4]=s("td",null,"必要",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[0]||(n[0]=[l("类型代码见表")])),_:1,__:[0]})])]),n[6]||(n[6]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"必要"),s("td")],-1)),n[7]||(n[7]=s("tr",null,[s("td",null,"sort"),s("td",null,"num"),s("td",null,"排序方式"),s("td",null,"非必要"),s("td",null,[l("默认为0"),s("br"),l("0:按时间"),s("br"),l("1:按点赞数"),s("br"),l("2:按回复数")])],-1)),n[8]||(n[8]=s("tr",null,[s("td",null,"nohot"),s("td",null,"num"),s("td",null,"是否不显示热评"),s("td",null,"非必要"),s("td",null,[l("默认为0"),s("br"),l("1:不显示"),s("br"),l("0:显示")])],-1)),n[9]||(n[9]=s("tr",null,[s("td",null,"ps"),s("td",null,"num"),s("td",null,"每页项数"),s("td",null,"非必要"),s("td",null,[l("默认为20"),s("br"),l("定义域:1-20")])],-1)),n[10]||(n[10]=s("tr",null,[s("td",null,"pn"),s("td",null,"num"),s("td",null,"页码"),s("td",null,"非必要"),s("td",null,"默认为1")],-1))])]),n[208]||(n[208]=e("

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-400:请求错误
-404:无此项
12002:评论区已关闭
12009:评论主体的type不合法
messagestr错误信息默认为0
ttlnum1
data正确时:obj
错误时:null
数据本体

data对象:

字段类型内容备注
pageobj页信息
configobj评论区显示控制
replies禁用时:null
正常时:array
评论列表
hots禁用时:null
正常时:array
热评列表
upperobj置顶评论
topnull(?)
notice无效时:null
有效时:obj
评论区公告信息
votenum投票评论?
blacklistnum(?)
assistnum(?)
modenum评论区类型id
support_modearray评论区支持的类型id
folderobj折叠相关信息
lottery_cardnull(?)
show_bvidbool显示bvid?
controlobj评论区输入属性

data中的page对象:

字段类型内容备注
numnum当前页码
sizenum每页项数
countnum根评论条数
acountnum总计评论条数

data中的config对象:

字段类型内容备注
showadminnum是否显示管理置顶
showentrynum(?)
showfloornum是否显示楼层号
showtopicnum是否显示话题
show_up_flagbool是否显示“UP 觉得很赞”标志
read_onlybool是否只读评论区
show_del_logbool是否显示删除记录

data中的replies数组:

",10)),s("table",null,[n[18]||(n[18]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[13]||(n[13]=s("td",null,"0",-1)),n[14]||(n[14]=s("td",null,"obj",-1)),n[15]||(n[15]=s("td",null,"评论条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[12]||(n[12]=[l("对象定义见表")])),_:1,__:[12]})])]),n[16]||(n[16]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"评论条目 (n+1)"),s("td",null,"按照指定的顺序排列")],-1)),n[17]||(n[17]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[209]||(n[209]=s("p",null,[s("code",null,"data"),l("中的"),s("code",null,"hots"),l("数组:")],-1)),s("table",null,[n[25]||(n[25]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[20]||(n[20]=s("td",null,"0",-1)),n[21]||(n[21]=s("td",null,"obj",-1)),n[22]||(n[22]=s("td",null,"热评条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[19]||(n[19]=[l("对象定义见表")])),_:1,__:[19]})])]),n[23]||(n[23]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"热评条目 (n+1)"),s("td",null,"按照热评热度排列")],-1)),n[24]||(n[24]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[210]||(n[210]=s("p",null,[s("code",null,"data"),l("中的"),s("code",null,"upper"),l("对象:")],-1)),s("table",null,[n[32]||(n[32]=s("thead",null,[s("tr",null,[s("th",null,"字段"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[n[30]||(n[30]=s("tr",null,[s("td",null,"mid"),s("td",null,"num"),s("td",null,"UP 主 mid"),s("td")],-1)),s("tr",null,[n[27]||(n[27]=s("td",null,"top",-1)),n[28]||(n[28]=s("td",null,[l("有效时:obj"),s("br"),l("无效时:null")],-1)),n[29]||(n[29]=s("td",null,"置顶条目",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[26]||(n[26]=[l("对象定义见表")])),_:1,__:[26]})])]),n[31]||(n[31]=s("tr",null,[s("td",null,"vote"),s("td",null,[l("有效时:obj"),s("br"),l("无效时:null")]),s("td",null,"投票评论?"),s("td")],-1))])]),n[211]||(n[211]=e(`

data中的notice对象:

字段类型内容备注
contentstr公告正文
idnum公告 id
linkstr公告页面链接 url
titlestr公告标题

data中的folder对象:

字段类型内容备注
has_foldedbool评论区是否存在折叠评论
is_foldedbool是否折叠?
rulestr相关规则页面 url

data中的control对象:

字段类型内容备注
input_disablebool是否禁止新增评论用户涉及合约争议,锁定该用户所有稿件、动态的评论区,不允许新增评论,root_input_textchild_input_text值为“当前评论区不可新增评论”
root_input_textstr评论框文字
child_input_textstr评论框文字
bg_textstr空评论区文字
web_selectionbool评论是否筛选后可见false:无需筛选
true:需要筛选
answer_guide_textstr答题页面链接文字
answer_guide_icon_urlstr答题页面图标 url
answer_guide_ios_urlstr答题页面 ios url
answer_guide_android_urlstr答题页面安卓 url

示例:

获取视频av2的评论区明细,不显示热评,按照热度排序,每页5项,查看第1页

curl -G 'https://api.bilibili.com/x/v2/reply' \\
--data-urlencode 'type=1' \\
--data-urlencode 'oid=2' \\
--data-urlencode 'sort=1' \\
--data-urlencode 'ps=5' \\
--data-urlencode 'pn=1' \\
--data-urlencode 'nohot=1' \\
-b 'SESSDATA=xxx'
查看响应示例:
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "page": {
            "num": 1,
            "size": 5,
            "count": 60971,
            "acount": 76792
        },
        "config": {
            "showadmin": 1,
            "showentry": 1,
            "showfloor": 0,
            "showtopic": 1,
            "show_up_flag": true,
            "read_only": false,
            "show_del_log": false
        },
        "replies": [
            {
                "rpid": 104192624480,
                "oid": 2,
                "type": 1,
                "mid": 621197713,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1646205507,
                "rpid_str": "104192624480",
                "root_str": "0",
                "parent_str": "0",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "621197713",
                    "uname": "小鹿不跑路",
                    "sex": "保密",
                    "sign": "",
                    "avatar": "http://i1.hdslb.com/bfs/face/3e220c95ead8f2bc72bd2dcee72d195b723192fa.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 4,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1648051200000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 1,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "大会员",
                            "label_theme": "vip",
                            "text_color": "#FFFFFF",
                            "bg_style": 1,
                            "bg_color": "#FB7299",
                            "border_color": ""
                        },
                        "avatar_subscript": 1,
                        "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "我赶上了我们这个年龄段二次元的末班车,这一年,巨人出了最终季,诚哥的新作玲芽户缔(好像是叫这个)也要在今年秋上映,后悔没有早进入这个圈子,现在只好紧追慢赶,慢慢的补番,我小时候都在干什么啊[大哭]",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "emote": {
                        "[大哭]": {
                            "id": 5,
                            "package_id": 1,
                            "state": 0,
                            "type": 1,
                            "attr": 0,
                            "text": "[大哭]",
                            "url": "http://i0.hdslb.com/bfs/emote/2caafee2e5db4db72104650d87810cc2c123fc86.png",
                            "meta": {
                                "size": 1
                            },
                            "mtime": 1597738918,
                            "jump_title": "大哭"
                        }
                    },
                    "jump_url": {},
                    "max_line": 6
                },
                "replies": [],
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "6小时前发布"
                }
            },
            {
                "rpid": 104184937184,
                "oid": 2,
                "type": 1,
                "mid": 560450695,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1646199089,
                "rpid_str": "104184937184",
                "root_str": "0",
                "parent_str": "0",
                "like": 0,
                "action": 0,
                "member": {
                    "mid": "560450695",
                    "uname": "還講幾韆",
                    "sex": "保密",
                    "sign": "",
                    "avatar": "http://i1.hdslb.com/bfs/face/e8bcd1f3fed1a8b266e83f7e5952db525b692227.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 3,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 0,
                        "vipDueDate": 0,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "电视宇宙第二个视频[滑稽][滑稽][滑稽]",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "emote": {
                        "[滑稽]": {
                            "id": 27,
                            "package_id": 1,
                            "state": 0,
                            "type": 1,
                            "attr": 0,
                            "text": "[滑稽]",
                            "url": "http://i0.hdslb.com/bfs/emote/d15121545a99ac46774f1f4465b895fe2d1411c3.png",
                            "meta": {
                                "size": 1
                            },
                            "mtime": 1645206695,
                            "jump_title": "滑稽"
                        }
                    },
                    "jump_url": {},
                    "max_line": 6
                },
                "replies": [],
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "7小时前发布"
                }
            },
            {
                "rpid": 104179775904,
                "oid": 2,
                "type": 1,
                "mid": 1616523766,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1646195814,
                "rpid_str": "104179775904",
                "root_str": "0",
                "parent_str": "0",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "1616523766",
                    "uname": "关查者网",
                    "sex": "保密",
                    "sign": "",
                    "avatar": "http://i1.hdslb.com/bfs/face/8bb6aab1f6bcc960f4482aa97b8ca4e61cf81d0d.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 3,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1626451200000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "考古队已到达[doge]",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "emote": {
                        "[doge]": {
                            "id": 26,
                            "package_id": 1,
                            "state": 0,
                            "type": 1,
                            "attr": 0,
                            "text": "[doge]",
                            "url": "http://i0.hdslb.com/bfs/emote/3087d273a78ccaff4bb1e9972e2ba2a7583c9f11.png",
                            "meta": {
                                "size": 1
                            },
                            "mtime": 1645206695,
                            "jump_title": "doge"
                        }
                    },
                    "jump_url": {},
                    "max_line": 6
                },
                "replies": [],
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "8小时前发布"
                }
            },
            {
                "rpid": 104163851152,
                "oid": 2,
                "type": 1,
                "mid": 27553613,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1646183484,
                "rpid_str": "104163851152",
                "root_str": "0",
                "parent_str": "0",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "27553613",
                    "uname": "念晚心",
                    "sex": "男",
                    "sign": "",
                    "avatar": "http://i2.hdslb.com/bfs/face/8b8f32c22651904a23eeb83b048041b7c1c8ffd6.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 74,
                        "name": "大会员2018年度勋章",
                        "image": "http://i2.hdslb.com/bfs/face/421179426c929dfeaed4117461c83f5d07ffb148.png",
                        "image_small": "http://i0.hdslb.com/bfs/face/682001c2e1c2ae887bdf2a0e18eef61180c48f84.png",
                        "level": "稀有勋章",
                        "condition": "2018.6.26-7.8某一天是年度大会员"
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 2,
                        "vipDueDate": 1650470400000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 1,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "年度大会员",
                            "label_theme": "annual_vip",
                            "text_color": "#FFFFFF",
                            "bg_style": 1,
                            "bg_color": "#FB7299",
                            "border_color": ""
                        },
                        "avatar_subscript": 1,
                        "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                        "nickname_color": "#FB7299"
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": {
                            "id": 5476,
                            "name": "嘉然今天吃什么",
                            "image": "http://i0.hdslb.com/bfs/garb/item/4442641bd4001214518a81fa8f790ae7469d3cf7.png",
                            "jump_url": "https://www.bilibili.com/h5/mall/fans/recommend/5461?navhide=1&mid=27553613&from=reply",
                            "fan": {
                                "is_fan": 1,
                                "number": 14705,
                                "color": "#f76a6b",
                                "name": "嘉然今天吃什么",
                                "num_desc": "014705"
                            },
                            "type": "suit"
                        },
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "当时只看优酷和土豆",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 6
                },
                "replies": [],
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "12小时前发布"
                }
            },
            {
                "rpid": 104163545120,
                "oid": 2,
                "type": 1,
                "mid": 31937033,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1646183209,
                "rpid_str": "104163545120",
                "root_str": "0",
                "parent_str": "0",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "31937033",
                    "uname": "夜声已尽",
                    "sex": "男",
                    "sign": "六八四十二",
                    "avatar": "http://i2.hdslb.com/bfs/face/e35e81a00596883532ba47c58ca0434618fab3d0.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 33465,
                        "name": "乃琳Queen",
                        "image": "http://i2.hdslb.com/bfs/garb/item/4ad130e4068f88c54728ac510a172b97e187826f.png",
                        "expire": 0,
                        "image_enhance": "http://i2.hdslb.com/bfs/garb/item/4ad130e4068f88c54728ac510a172b97e187826f.png",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 62,
                        "name": "有爱大佬",
                        "image": "http://i0.hdslb.com/bfs/face/a10ee6b613e0d68d2dfdac8bbf71b94824e10408.png",
                        "image_small": "http://i2.hdslb.com/bfs/face/54f4c31ab9b1f1fa2c29dbbc967f66535699337e.png",
                        "level": "普通勋章",
                        "condition": "当前持有粉丝勋章最高等级>=15级"
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 2,
                        "vipDueDate": 1671465600000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 1,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "年度大会员",
                            "label_theme": "annual_vip",
                            "text_color": "#FFFFFF",
                            "bg_style": 1,
                            "bg_color": "#FB7299",
                            "border_color": ""
                        },
                        "avatar_subscript": 1,
                        "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                        "nickname_color": "#FB7299"
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": {
                            "id": 33465,
                            "name": "乃琳Queen",
                            "image": "http://i0.hdslb.com/bfs/garb/item/4ad130e4068f88c54728ac510a172b97e187826f.png",
                            "jump_url": "",
                            "type": "suit",
                            "image_enhance": "http://i0.hdslb.com/bfs/garb/item/4ad130e4068f88c54728ac510a172b97e187826f.png",
                            "image_enhance_frame": ""
                        },
                        "cardbg": {
                            "id": 33494,
                            "name": "乃琳Queen",
                            "image": "http://i0.hdslb.com/bfs/garb/item/34f8c1ef43332883f62e17fed44c1a70930e4811.png",
                            "jump_url": "https://www.bilibili.com/h5/mall/fans/recommend/33498?navhide=1&mid=31937033&from=reply",
                            "fan": {
                                "is_fan": 1,
                                "number": 50766,
                                "color": "#576690",
                                "name": "乃琳Queen",
                                "num_desc": "050766"
                            },
                            "type": "suit"
                        },
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "考古",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 6
                },
                "replies": [],
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "12小时前发布"
                }
            }
        ],
        "hots": [],
        "upper": {
            "mid": 2,
            "top": null,
            "vote": null
        },
        "top": null,
        "notice": null,
        "vote": 0,
        "blacklist": 0,
        "assist": 0,
        "mode": 3,
        "support_mode": [
            1,
            2,
            3
        ],
        "folder": {
            "has_folded": false,
            "is_folded": false,
            "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
        },
        "lottery_card": null,
        "show_bvid": false,
        "control": {
            "input_disable": false,
            "root_input_text": "发一条友善的评论",
            "child_input_text": "",
            "giveup_input_text": "不发没关系,请继续友善哦~",
            "bg_text": "看看下面~来发评论吧",
            "web_selection": false,
            "answer_guide_text": "需要升级成为lv2会员后才可以评论,先去答题转正吧!",
            "answer_guide_icon_url": "http://i0.hdslb.com/bfs/emote/96940d16602cacbbac796245b7bb99fa9b5c970c.png",
            "answer_guide_ios_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=12",
            "answer_guide_android_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=6",
            "show_type": 1,
            "show_text": "",
            "disable_jump_emote": false
        }
    }
}

获取评论区明细_懒加载

https://api.bilibili.com/x/v2/reply/wbi/main

https://api.bilibili.com/x/v2/reply/main

请求方式:GET

`,14)),s("p",null,[n[34]||(n[34]=l("鉴权方式:")),o(a,{to:"/docs/misc/sign/wbi.html"},{default:p(()=>n[33]||(n[33]=[l("Wbi 签名")])),_:1,__:[33]})]),n[212]||(n[212]=s("p",null,"注: Wbi 签名错误时返回 -403 而非 -352",-1)),n[213]||(n[213]=s("p",null,[s("strong",null,"url参数:")],-1)),s("table",null,[n[48]||(n[48]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[n[40]||(n[40]=s("tr",null,[s("td",null,"access_key"),s("td",null,"str"),s("td",null,"APP 登录 Token"),s("td",null,"APP 方式必要"),s("td")],-1)),s("tr",null,[n[36]||(n[36]=s("td",null,"type",-1)),n[37]||(n[37]=s("td",null,"num",-1)),n[38]||(n[38]=s("td",null,"评论区类型代码",-1)),n[39]||(n[39]=s("td",null,"必要",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[35]||(n[35]=[l("类型代码见表")])),_:1,__:[35]})])]),n[41]||(n[41]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"必要"),s("td")],-1)),n[42]||(n[42]=s("tr",null,[s("td",null,"mode"),s("td",null,"num"),s("td",null,"排序方式"),s("td",null,"非必要"),s("td",null,[l("默认为 3"),s("br"),l("0 3:仅按热度"),s("br"),l("1:按热度+按时间"),s("br"),l("2:仅按时间")])],-1)),n[43]||(n[43]=s("tr",null,[s("td",null,"next"),s("td",null,"num"),s("td",null,"翻页"),s("td",null,"非必要"),s("td",null,[l("不推荐, 已弃用, 优先级比 "),s("code",null,"pagination_str"),l(" 高")])],-1)),n[44]||(n[44]=s("tr",null,[s("td",null,"pagination_str"),s("td",null,"obj"),s("td",null,"分页信息"),s("td",null,"非必要"),s("td",null,"见下")],-1)),n[45]||(n[45]=s("tr",null,[s("td",null,"plat"),s("td",null,"num"),s("td",null,"平台类型"),s("td",null,"非必要"),s("td",null,[l("如 "),s("code",null,"1")])],-1)),n[46]||(n[46]=s("tr",null,[s("td",null,"seek_rpid"),s("td",null,"str"),s("td",null,"空"),s("td",null,"非必要"),s("td",null,"当获取第一页评论时存在")],-1)),n[47]||(n[47]=s("tr",null,[s("td",null,"web_location"),s("td",null,"str"),s("td",null,"1315875"),s("td",null,"非必要"),s("td")],-1))])]),n[214]||(n[214]=e("

pagination_str:

参数名类型内容备注
offsetstr一个套着字符串皮的 JSON Object上次响应 data.cursor.pagination_reply.next_offset 的值, 获取第一页时为空, 其余见下参考

pagination_str 中的 offset:

参数名类型内容备注
typenum类型当 URL 参数 mode 为 2 时, 此项为 3
当 URL 参数 mode 为 3 时, 此项为 1
directionnum方向1: 正序(默认)
2: 倒序
dataobj分页数据当 type 为 1 时存在
Dataobj分页数据当 type 为 3 时存在

offset 中的 data (type=1):

参数名类型内容备注
pnnum页码 (上次响应 data.cursor.next 的值)

offset 中的 Data (type=3):

参数名类型内容备注
cursornum上次响应 data.cursor.next 的值

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-400:请求错误
-404:无此项
12002:评论区已关闭
12009:评论主体的type不合法
messagestr错误信息默认为0
ttlnum1
data正确时:obj
错误时:null
数据本体

data对象:

",12)),s("table",null,[n[76]||(n[76]=s("thead",null,[s("tr",null,[s("th",null,"字段"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[n[53]||(n[53]=s("tr",null,[s("td",null,"cursor"),s("td",null,"obj"),s("td",null,"游标信息"),s("td")],-1)),n[54]||(n[54]=s("tr",null,[s("td",null,"hots"),s("td",null,[l("禁用时:null"),s("br"),l("正常时:array")]),s("td",null,"热评列表"),s("td")],-1)),n[55]||(n[55]=s("tr",null,[s("td",null,"notice"),s("td",null,[l("无效时:null"),s("br"),l("有效时:obj")]),s("td",null,"评论区公告信息"),s("td")],-1)),n[56]||(n[56]=s("tr",null,[s("td",null,"replies"),s("td",null,[l("禁用时:null"),s("br"),l("正常时:array")]),s("td",null,"评论列表"),s("td")],-1)),n[57]||(n[57]=s("tr",null,[s("td",null,"top"),s("td",null,"obj"),s("td",null,"置顶信息"),s("td")],-1)),s("tr",null,[n[50]||(n[50]=s("td",null,"top_replies",-1)),n[51]||(n[51]=s("td",null,"obj",-1)),n[52]||(n[52]=s("td",null,"置顶评论",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[49]||(n[49]=[l("对象定义见表")])),_:1,__:[49]})])]),n[58]||(n[58]=s("tr",null,[s("td",null,"lottery_card"),s("td",null,"null"),s("td",null,"抽奖评论"),s("td")],-1)),n[59]||(n[59]=s("tr",null,[s("td",null,"folder"),s("td",null,"obj"),s("td",null,"评论折叠信息"),s("td")],-1)),n[60]||(n[60]=s("tr",null,[s("td",null,"up_selection"),s("td",null,"obj"),s("td",null,"(?)"),s("td")],-1)),n[61]||(n[61]=s("tr",null,[s("td",null,"cm"),s("td",null,"obj"),s("td",null,"广告"),s("td")],-1)),n[62]||(n[62]=s("tr",null,[s("td",null,"cm_info"),s("td",null,"obj"),s("td",null,"广告控制"),s("td")],-1)),n[63]||(n[63]=s("tr",null,[s("td",null,"effects"),s("td",null,"obj"),s("td",null,"(?)"),s("td")],-1)),n[64]||(n[64]=s("tr",null,[s("td",null,"assist"),s("td",null,"num"),s("td",null,"(?)"),s("td")],-1)),n[65]||(n[65]=s("tr",null,[s("td",null,"blacklist"),s("td",null,"num"),s("td",null,"(?)"),s("td")],-1)),n[66]||(n[66]=s("tr",null,[s("td",null,"vote"),s("td",null,"num"),s("td",null,"(?)"),s("td")],-1)),n[67]||(n[67]=s("tr",null,[s("td",null,"lottery"),s("td",null,"num"),s("td",null,"(?)"),s("td")],-1)),n[68]||(n[68]=s("tr",null,[s("td",null,"config"),s("td",null,"obj"),s("td",null,"评论区显示控制"),s("td")],-1)),n[69]||(n[69]=s("tr",null,[s("td",null,"upper"),s("td",null,"obj"),s("td",null,"UP主信息"),s("td")],-1)),n[70]||(n[70]=s("tr",null,[s("td",null,"show_bvid"),s("td",null,"bool"),s("td",null,"显示 bvid?"),s("td")],-1)),n[71]||(n[71]=s("tr",null,[s("td",null,"control"),s("td",null,"obj"),s("td",null,"评论区输入属性"),s("td")],-1)),n[72]||(n[72]=s("tr",null,[s("td",null,"note"),s("td",null,"num"),s("td",null,"1"),s("td")],-1)),n[73]||(n[73]=s("tr",null,[s("td",null,"esports_grade_card"),s("td",null,"null"),s("td"),s("td")],-1)),n[74]||(n[74]=s("tr",null,[s("td",null,"callbacks"),s("td",null,"null"),s("td"),s("td")],-1)),n[75]||(n[75]=s("tr",null,[s("td",null,"context_feature"),s("td",null,"str"),s("td"),s("td")],-1))])]),n[215]||(n[215]=e("

data中的cursor对象:

字段类型内容备注
all_countnum全部评论条数
is_beginbool是否为第一页false:否
true:是
prevnum上页页码
nextnum下页页码
is_endbool是否为最后页false:否
true:是
modenum排序方式
support_modearray支持的排序方式
namestr评论区类型名
pagination_replystr用于下一次请求的偏移信息
session_idstr

cursor中的pagination_reply对象:

字段类型内容备注
next_offsetstr用于下一次请求的偏移信息
prev_offsetstr用于本次请求的偏移信息

data中的config对象:

字段类型内容备注
showadminnum是否显示管理置顶
showentrynum
showfloornum是否显示楼层号
showtopicnum是否显示话题
show_up_flagbool是否显示“UP 觉得很赞”标志
read_onlybool是否只读评论区
show_del_logbool是否显示删除记录

data中的hots数组:

",7)),s("table",null,[n[83]||(n[83]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[78]||(n[78]=s("td",null,"0",-1)),n[79]||(n[79]=s("td",null,"obj",-1)),n[80]||(n[80]=s("td",null,"热评条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[77]||(n[77]=[l("对象定义见表")])),_:1,__:[77]})])]),n[81]||(n[81]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"热评条目 (n+1)"),s("td",null,"按照热评热度排列")],-1)),n[82]||(n[82]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[216]||(n[216]=s("p",null,[s("code",null,"data"),l("中的"),s("code",null,"replies"),l("数组:")],-1)),s("table",null,[n[90]||(n[90]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[85]||(n[85]=s("td",null,"0",-1)),n[86]||(n[86]=s("td",null,"obj",-1)),n[87]||(n[87]=s("td",null,"评论条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[84]||(n[84]=[l("对象定义见表")])),_:1,__:[84]})])]),n[88]||(n[88]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"评论条目 (n+1)"),s("td",null,"按照指定的顺序排列")],-1)),n[89]||(n[89]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[217]||(n[217]=s("p",null,[s("code",null,"data"),l("中的"),s("code",null,"top"),l("对象:")],-1)),s("table",null,[n[103]||(n[103]=s("thead",null,[s("tr",null,[s("th",null,"字段"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[92]||(n[92]=s("td",null,"admin",-1)),n[93]||(n[93]=s("td",null,[l("有效时:obj"),s("br"),l("无效时:null")],-1)),n[94]||(n[94]=s("td",null,"管理员置顶条目",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[91]||(n[91]=[l("对象定义见表")])),_:1,__:[91]})])]),s("tr",null,[n[96]||(n[96]=s("td",null,"upper",-1)),n[97]||(n[97]=s("td",null,[l("有效时:obj"),s("br"),l("无效时:null")],-1)),n[98]||(n[98]=s("td",null,"UP 主置顶条目",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[95]||(n[95]=[l("对象定义见表")])),_:1,__:[95]})])]),s("tr",null,[n[100]||(n[100]=s("td",null,"vote",-1)),n[101]||(n[101]=s("td",null,[l("有效时:obj"),s("br"),l("无效时:null")],-1)),n[102]||(n[102]=s("td",null,"投票置顶条目",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[99]||(n[99]=[l("对象定义见表")])),_:1,__:[99]})])])])]),n[218]||(n[218]=e(`

data中的upper对象:

字段类型内容备注
midnumUP 主 mid

data中的notice对象:

字段类型内容备注
contentstr公告正文
idnum公告 id
linkstr公告页面链接 url
titlestr公告标题

data中的folder对象:

字段类型内容备注
has_foldedbool评论区是否存在折叠评论
is_foldedbool是否折叠?
rulestr相关规则页面 url

data中的control对象:

字段类型内容备注
input_disablebool(?)
root_input_textstr评论框文字
child_input_textstr评论框文字
bg_textstr空评论区文字
web_selectionbool评论是否筛选后可见false:无需筛选
true:需要筛选
answer_guide_textstr答题页面链接文字
answer_guide_icon_urlstr答题页面图标 url
answer_guide_ios_urlstr答题页面 ios url
answer_guide_android_urlstr答题页面安卓 url

示例:

获取视频av2的评论区明细, 按时间排序, 第一页

curl -G 'https://api.bilibili.com/x/v2/reply/wbi/main' \\
--data-urlencode 'oid=2' \\
--data-urlencode 'type=1' \\
--data-urlencode 'mode=2' \\
--data-urlencode 'w_rid=xxx' \\
--data-urlencode 'wts=xxx'
查看响应示例:
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "cursor": {
      "is_begin": true,
      "prev": 71880,
      "next": 71859,
      "is_end": false,
      "mode": 2,
      "mode_text": "",
      "all_count": 86234,
      "support_mode": [
        2,
        3
      ],
      "name": "最新评论",
      "pagination_reply": {
        "next_offset": "{\\"type\\":3,\\"direction\\":1,\\"Data\\":{\\"cursor\\":71859}}"
      },
      "session_id": ""
    },
    "replies": [
      {
        "rpid": 237740291920,
        "oid": 2,
        "type": 1,
        "mid": 1201423076,
        "root": 0,
        "parent": 0,
        "dialog": 0,
        "count": 0,
        "rcount": 0,
        "state": 0,
        "fansgrade": 0,
        "attr": 0,
        "ctime": 1723639342,
        "mid_str": "1201423076",
        "oid_str": "2",
        "rpid_str": "237740291920",
        "root_str": "0",
        "parent_str": "0",
        "dialog_str": "0",
        "like": 0,
        "action": 0,
        "member": {
          "mid": "1201423076",
          "uname": "天堂いyoulin",
          "sex": "保密",
          "sign": "",
          "avatar": "https://i2.hdslb.com/bfs/face/d0925e782198cadc0c400a3ed4fbdf94142357fb.jpg",
          "rank": "10000",
          "face_nft_new": 0,
          "is_senior_member": 0,
          "senior": {},
          "level_info": {
            "current_level": 4,
            "current_min": 0,
            "current_exp": 0,
            "next_exp": 0
          },
          "pendant": {
            "pid": 0,
            "name": "",
            "image": "",
            "expire": 0,
            "image_enhance": "",
            "image_enhance_frame": "",
            "n_pid": 0
          },
          "nameplate": {
            "nid": 0,
            "name": "",
            "image": "",
            "image_small": "",
            "level": "",
            "condition": ""
          },
          "official_verify": {
            "type": -1,
            "desc": ""
          },
          "vip": {
            "vipType": 0,
            "vipDueDate": 0,
            "dueRemark": "",
            "accessStatus": 0,
            "vipStatus": 0,
            "vipStatusWarn": "",
            "themeType": 0,
            "label": {
              "path": "",
              "text": "",
              "label_theme": "",
              "text_color": "",
              "bg_style": 0,
              "bg_color": "",
              "border_color": "",
              "use_img_label": true,
              "img_label_uri_hans": "",
              "img_label_uri_hant": "",
              "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png",
              "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png"
            },
            "avatar_subscript": 0,
            "nickname_color": ""
          },
          "fans_detail": null,
          "user_sailing": {
            "pendant": null,
            "cardbg": null,
            "cardbg_with_focus": null
          },
          "user_sailing_v2": {},
          "is_contractor": false,
          "contract_desc": "",
          "nft_interaction": null,
          "avatar_item": {
            "container_size": {
              "width": 1.8,
              "height": 1.8
            },
            "fallback_layers": {
              "layers": [
                {
                  "visible": true,
                  "general_spec": {
                    "pos_spec": {
                      "coordinate_pos": 2,
                      "axis_x": 0.9,
                      "axis_y": 0.9
                    },
                    "size_spec": {
                      "width": 1,
                      "height": 1
                    },
                    "render_spec": {
                      "opacity": 1
                    }
                  },
                  "layer_config": {
                    "tags": {
                      "AVATAR_LAYER": {}
                    },
                    "is_critical": true,
                    "layer_mask": {
                      "general_spec": {
                        "pos_spec": {
                          "coordinate_pos": 2,
                          "axis_x": 0.9,
                          "axis_y": 0.9
                        },
                        "size_spec": {
                          "width": 1,
                          "height": 1
                        },
                        "render_spec": {
                          "opacity": 1
                        }
                      },
                      "mask_src": {
                        "src_type": 3,
                        "draw": {
                          "draw_type": 1,
                          "fill_mode": 1,
                          "color_config": {
                            "day": {
                              "argb": "#FF000000"
                            }
                          }
                        }
                      }
                    }
                  },
                  "resource": {
                    "res_type": 3,
                    "res_image": {
                      "image_src": {
                        "src_type": 1,
                        "placeholder": 6,
                        "remote": {
                          "url": "https://i2.hdslb.com/bfs/face/d0925e782198cadc0c400a3ed4fbdf94142357fb.jpg",
                          "bfs_style": "widget-layer-avatar"
                        }
                      }
                    }
                  }
                }
              ],
              "is_critical_group": true
            },
            "mid": "1201423076"
          }
        },
        "content": {
          "message": "好多20年和18年的[辣眼睛]",
          "members": [],
          "emote": {
            "[辣眼睛]": {
              "id": 2374,
              "package_id": 1,
              "state": 0,
              "type": 1,
              "attr": 0,
              "text": "[辣眼睛]",
              "url": "https://i0.hdslb.com/bfs/emote/35d62c496d1e4ea9e091243fa812866f5fecc101.png",
              "meta": {
                "size": 1,
                "suggest": [
                  ""
                ]
              },
              "mtime": 1668688325,
              "jump_title": "辣眼睛"
            }
          },
          "jump_url": {},
          "max_line": 6
        },
        "replies": [],
        "assist": 0,
        "up_action": {
          "like": false,
          "reply": false
        },
        "invisible": false,
        "reply_control": {
          "max_line": 6,
          "time_desc": "21分钟前发布",
          "location": "IP属地:河北"
        },
        "folder": {
          "has_folded": false,
          "is_folded": false,
          "rule": ""
        },
        "dynamic_id_str": "0",
        "note_cvid_str": "0",
        "track_info": ""
      },
      // ...
      {
        "rpid": 237689432448,
        "oid": 2,
        "type": 1,
        "mid": 1647250883,
        "root": 0,
        "parent": 0,
        "dialog": 0,
        "count": 0,
        "rcount": 0,
        "state": 0,
        "fansgrade": 0,
        "attr": 0,
        "ctime": 1723624563,
        "mid_str": "1647250883",
        "oid_str": "2",
        "rpid_str": "237689432448",
        "root_str": "0",
        "parent_str": "0",
        "dialog_str": "0",
        "like": 1,
        "action": 0,
        "member": {
          "mid": "1647250883",
          "uname": "小烟同学424",
          "sex": "保密",
          "sign": "墓前玩使命,墓前暑假",
          "avatar": "https://i2.hdslb.com/bfs/face/930661ca1bcacf8005efcca499b7380dcd4c2716.jpg",
          "rank": "10000",
          "face_nft_new": 0,
          "is_senior_member": 0,
          "senior": {},
          "level_info": {
            "current_level": 5,
            "current_min": 0,
            "current_exp": 0,
            "next_exp": 0
          },
          "pendant": {
            "pid": 0,
            "name": "",
            "image": "",
            "expire": 0,
            "image_enhance": "",
            "image_enhance_frame": "",
            "n_pid": 0
          },
          "nameplate": {
            "nid": 0,
            "name": "",
            "image": "",
            "image_small": "",
            "level": "",
            "condition": ""
          },
          "official_verify": {
            "type": -1,
            "desc": ""
          },
          "vip": {
            "vipType": 0,
            "vipDueDate": 0,
            "dueRemark": "",
            "accessStatus": 0,
            "vipStatus": 0,
            "vipStatusWarn": "",
            "themeType": 0,
            "label": {
              "path": "",
              "text": "",
              "label_theme": "",
              "text_color": "",
              "bg_style": 0,
              "bg_color": "",
              "border_color": "",
              "use_img_label": true,
              "img_label_uri_hans": "",
              "img_label_uri_hant": "",
              "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png",
              "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png"
            },
            "avatar_subscript": 0,
            "nickname_color": ""
          },
          "fans_detail": null,
          "user_sailing": {
            "pendant": null,
            "cardbg": null,
            "cardbg_with_focus": null
          },
          "user_sailing_v2": {},
          "is_contractor": false,
          "contract_desc": "",
          "nft_interaction": null,
          "avatar_item": {
            "container_size": {
              "width": 1.8,
              "height": 1.8
            },
            "fallback_layers": {
              "layers": [
                {
                  "visible": true,
                  "general_spec": {
                    "pos_spec": {
                      "coordinate_pos": 2,
                      "axis_x": 0.9,
                      "axis_y": 0.9
                    },
                    "size_spec": {
                      "width": 1,
                      "height": 1
                    },
                    "render_spec": {
                      "opacity": 1
                    }
                  },
                  "layer_config": {
                    "tags": {
                      "AVATAR_LAYER": {}
                    },
                    "is_critical": true,
                    "layer_mask": {
                      "general_spec": {
                        "pos_spec": {
                          "coordinate_pos": 2,
                          "axis_x": 0.9,
                          "axis_y": 0.9
                        },
                        "size_spec": {
                          "width": 1,
                          "height": 1
                        },
                        "render_spec": {
                          "opacity": 1
                        }
                      },
                      "mask_src": {
                        "src_type": 3,
                        "draw": {
                          "draw_type": 1,
                          "fill_mode": 1,
                          "color_config": {
                            "day": {
                              "argb": "#FF000000"
                            }
                          }
                        }
                      }
                    }
                  },
                  "resource": {
                    "res_type": 3,
                    "res_image": {
                      "image_src": {
                        "src_type": 1,
                        "placeholder": 6,
                        "remote": {
                          "url": "https://i2.hdslb.com/bfs/face/930661ca1bcacf8005efcca499b7380dcd4c2716.jpg",
                          "bfs_style": "widget-layer-avatar"
                        }
                      }
                    }
                  }
                }
              ],
              "is_critical_group": true
            },
            "mid": "1647250883"
          }
        },
        "content": {
          "message": "还。。。有人吗?",
          "members": [],
          "jump_url": {},
          "max_line": 6
        },
        "replies": [],
        "assist": 0,
        "up_action": {
          "like": false,
          "reply": false
        },
        "invisible": false,
        "reply_control": {
          "max_line": 6,
          "time_desc": "4小时前发布",
          "location": "IP属地:陕西"
        },
        "folder": {
          "has_folded": false,
          "is_folded": false,
          "rule": ""
        },
        "dynamic_id_str": "0",
        "note_cvid_str": "0",
        "track_info": ""
      }
    ],
    "top": {
      "admin": null,
      "upper": null,
      "vote": null
    },
    "top_replies": [],
    "up_selection": {
      "pending_count": 0,
      "ignore_count": 0
    },
    "effects": {
      "preloading": ""
    },
    "assist": 0,
    "blacklist": 0,
    "vote": 0,
    "config": {
      "showtopic": 1,
      "show_up_flag": true,
      "read_only": false
    },
    "upper": {
      "mid": 2
    },
    "control": {
      "input_disable": false,
      "root_input_text": "你渴望拥有力量吗?评论让力量更强大",
      "child_input_text": "你渴望拥有力量吗?评论让力量更强大",
      "giveup_input_text": "不发没关系,请继续友善哦~",
      "screenshot_icon_state": 1,
      "upload_picture_icon_state": 1,
      "answer_guide_text": "需要升级成为lv2会员后才可以评论,先去答题转正吧!",
      "answer_guide_icon_url": "http://i0.hdslb.com/bfs/emote/96940d16602cacbbac796245b7bb99fa9b5c970c.png",
      "answer_guide_ios_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=12",
      "answer_guide_android_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=6",
      "bg_text": "",
      "empty_page": null,
      "show_type": 1,
      "show_text": "",
      "web_selection": false,
      "disable_jump_emote": false,
      "enable_charged": false,
      "enable_cm_biz_helper": false,
      "preload_resources": null
    },
    "note": 1,
    "esports_grade_card": null,
    "callbacks": null,
    "context_feature": ""
  }
}

获取指定评论的回复

https://api.bilibili.com/x/v2/reply/reply

请求方式:GET

认证方式:Cookie(SESSDATA)或APP

按照回复顺序排序

url参数:

`,18)),s("table",null,[n[114]||(n[114]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[n[109]||(n[109]=s("tr",null,[s("td",null,"access_key"),s("td",null,"str"),s("td",null,"APP登录 Token"),s("td",null,"APP 方式必要"),s("td")],-1)),s("tr",null,[n[105]||(n[105]=s("td",null,"type",-1)),n[106]||(n[106]=s("td",null,"num",-1)),n[107]||(n[107]=s("td",null,"评论区类型代码",-1)),n[108]||(n[108]=s("td",null,"必要",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[104]||(n[104]=[l("类型代码见表")])),_:1,__:[104]})])]),n[110]||(n[110]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"必要"),s("td")],-1)),n[111]||(n[111]=s("tr",null,[s("td",null,"root"),s("td",null,"num"),s("td",null,"根回复 rpid"),s("td",null,"必要"),s("td")],-1)),n[112]||(n[112]=s("tr",null,[s("td",null,"ps"),s("td",null,"num"),s("td",null,"每页项数"),s("td",null,"非必要"),s("td",null,[l("默认为20"),s("br"),l("定义域:1-49 "),s("br"),l(" 但 data_replies 的最大内容数为20,因此设置为49其实也只会有20条回复被返回")])],-1)),n[113]||(n[113]=s("tr",null,[s("td",null,"pn"),s("td",null,"num"),s("td",null,"页码"),s("td",null,"非必要"),s("td",null,"默认为1")],-1))])]),n[219]||(n[219]=e("

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-400:请求错误
-404:无此项
12002:评论区已关闭
12009:评论主体的type不合法
messagestr错误信息默认为0
ttlnum1
data正确时:obj
错误时:null
数据本体

data对象:

",4)),s("table",null,[n[127]||(n[127]=s("thead",null,[s("tr",null,[s("th",null,"字段"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[n[119]||(n[119]=s("tr",null,[s("td",null,"config"),s("td",null,"obj"),s("td",null,"评论区显示控制"),s("td")],-1)),n[120]||(n[120]=s("tr",null,[s("td",null,"control"),s("td",null,"obj"),s("td",null,"评论区输入属性"),s("td")],-1)),n[121]||(n[121]=s("tr",null,[s("td",null,"page"),s("td",null,"obj"),s("td",null,"页面信息"),s("td")],-1)),n[122]||(n[122]=s("tr",null,[s("td",null,"replies"),s("td",null,"array"),s("td",null,"评论对话树列表"),s("td",null,"最大内容数为20")],-1)),s("tr",null,[n[116]||(n[116]=s("td",null,"root",-1)),n[117]||(n[117]=s("td",null,"obj",-1)),n[118]||(n[118]=s("td",null,"根评论信息",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[115]||(n[115]=[l("对象定义见表")])),_:1,__:[115]})])]),n[123]||(n[123]=s("tr",null,[s("td",null,"show_bvid"),s("td",null,"bool"),s("td",null,"显示 bvid?"),s("td")],-1)),n[124]||(n[124]=s("tr",null,[s("td",null,"show_text"),s("td",null,"str"),s("td",null,"(?)"),s("td")],-1)),n[125]||(n[125]=s("tr",null,[s("td",null,"show_type"),s("td",null,"num"),s("td",null,"(?)"),s("td")],-1)),n[126]||(n[126]=s("tr",null,[s("td",null,"upper"),s("td",null,"obj"),s("td",null,"UP主 mid"),s("td")],-1))])]),n[220]||(n[220]=e("

data中的config对象:

字段类型内容备注
showadminnum是否显示管理置顶
showentrynum
showfloornum是否显示楼层号
showtopicnum是否显示话题
show_up_flagbool是否显示“UP觉得很赞”标志
read_onlybool是否只读评论区
show_del_logbool是否显示删除记录

data中的control对象:

字段类型内容备注
input_disablebool(?)
root_input_textstr评论框文字
child_input_textstr评论框文字
bg_textstr空评论区文字
web_selectionbool评论是否筛选后可见false:无需筛选
true:需要筛选
answer_guide_textstr答题页面链接文字
answer_guide_icon_urlstr答题页面图标 url
answer_guide_ios_urlstr答题页面 ios url
answer_guide_android_urlstr答题页面安卓 url

data中的page对象:

字段类型内容备注
countnum二级评论数
numnum当前页码
sizenum每页项数

data中的replies数组:

",7)),s("table",null,[n[134]||(n[134]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[129]||(n[129]=s("td",null,"0",-1)),n[130]||(n[130]=s("td",null,"obj",-1)),n[131]||(n[131]=s("td",null,"对话评论条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[128]||(n[128]=[l("对象定义见表")])),_:1,__:[128]})])]),n[132]||(n[132]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"对话评论条目 (n+1)"),s("td",null,"按照回复顺序排列")],-1)),n[133]||(n[133]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[221]||(n[221]=e(`

data中的upper对象:

字段类型内容备注
midnumUP 主 mid

示例:

获取视频av201022189下评论rpid=3030790837的回复,每页5项,获取第1页

curl -G 'https://api.bilibili.com/x/v2/reply/reply' \\
--data-urlencode 'type=1' \\
--data-urlencode 'oid=201022189' \\
--data-urlencode 'root=3030790837' \\
--data-urlencode 'ps=5' \\
--data-urlencode 'pn=1' \\
-b 'SESSDATA=xxx'
查看响应示例:
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "config": {
            "showadmin": 0,
            "showentry": 0,
            "showfloor": 0,
            "showtopic": 0,
            "show_up_flag": false,
            "read_only": false,
            "show_del_log": false
        },
        "control": {
            "input_disable": false,
            "root_input_text": "发一条友善的评论",
            "child_input_text": "",
            "giveup_input_text": "不发没关系,请继续友善哦~",
            "bg_text": "看看下面~来发评论吧",
            "web_selection": false,
            "answer_guide_text": "需要升级成为lv2会员后才可以评论,先去答题转正吧!",
            "answer_guide_icon_url": "http://i0.hdslb.com/bfs/emote/96940d16602cacbbac796245b7bb99fa9b5c970c.png",
            "answer_guide_ios_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=12",
            "answer_guide_android_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=6",
            "show_type": 1,
            "show_text": "",
            "disable_jump_emote": false
        },
        "page": {
            "count": 230,
            "num": 1,
            "size": 5
        },
        "replies": [
            {
                "rpid": 3030802207,
                "oid": 201022189,
                "type": 1,
                "mid": 172604528,
                "root": 3030790837,
                "parent": 3030790837,
                "dialog": 3030802207,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592018067,
                "rpid_str": "3030802207",
                "root_str": "3030790837",
                "parent_str": "3030790837",
                "like": 41,
                "action": 0,
                "member": {
                    "mid": "172604528",
                    "uname": "超高校级的认真",
                    "sex": "男",
                    "sign": "just do it for yourself",
                    "avatar": "http://i2.hdslb.com/bfs/face/d0d957faa6162388467cb0750a9d33cf616e73e9.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 5,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1626364800000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "怎么上p站呀,翻吗",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "627天前发布"
                }
            },
            {
                "rpid": 3030810089,
                "oid": 201022189,
                "type": 1,
                "mid": 342581997,
                "root": 3030790837,
                "parent": 3030802207,
                "dialog": 3030802207,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592018123,
                "rpid_str": "3030810089",
                "root_str": "3030790837",
                "parent_str": "3030802207",
                "like": 7,
                "action": 0,
                "member": {
                    "mid": "342581997",
                    "uname": "VAN样斯基",
                    "sex": "保密",
                    "sign": "",
                    "avatar": "http://i0.hdslb.com/bfs/face/bc9c6d37b5a4c8b3b0a3cd483fd66e63b1ae0cec.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 5,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1626364800000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "回复 @中等校级的努力 :是啊",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "627天前发布"
                }
            },
            {
                "rpid": 3030843245,
                "oid": 201022189,
                "type": 1,
                "mid": 92586428,
                "root": 3030790837,
                "parent": 3030790837,
                "dialog": 3030843245,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592018688,
                "rpid_str": "3030843245",
                "root_str": "3030790837",
                "parent_str": "3030790837",
                "like": 588,
                "action": 0,
                "member": {
                    "mid": "92586428",
                    "uname": "浪潮工作室",
                    "sex": "保密",
                    "sign": "洞见时代的浪潮。",
                    "avatar": "http://i2.hdslb.com/bfs/face/67f183f13f8fe3afb374916d32f9810df8ef042a.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": 0,
                        "desc": "专栏优质UP主"
                    },
                    "vip": {
                        "vipType": 0,
                        "vipDueDate": 0,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "不会吧不会吧,不会真的有人上P站不是为了学习吧",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "627天前发布"
                }
            },
            {
                "rpid": 3030881609,
                "oid": 201022189,
                "type": 1,
                "mid": 393121222,
                "root": 3030790837,
                "parent": 3030802207,
                "dialog": 3030802207,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592019208,
                "rpid_str": "3030881609",
                "root_str": "3030790837",
                "parent_str": "3030802207",
                "like": 110,
                "action": 0,
                "member": {
                    "mid": "393121222",
                    "uname": "鱼氏博物馆",
                    "sex": "保密",
                    "sign": "",
                    "avatar": "http://i1.hdslb.com/bfs/face/f61a8ea36828884d760d855293136a838fa9e848.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 5,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1602691200000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "回复 @中等校级的努力 :p是什么,当然是plane啦,plane站其实就是✈场[doge]所以去p站就是去✈场啦",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "emote": {
                        "[doge]": {
                            "id": 26,
                            "package_id": 1,
                            "state": 0,
                            "type": 1,
                            "attr": 0,
                            "text": "[doge]",
                            "url": "http://i0.hdslb.com/bfs/emote/3087d273a78ccaff4bb1e9972e2ba2a7583c9f11.png",
                            "meta": {
                                "size": 1
                            },
                            "mtime": 1645206695,
                            "jump_title": "doge"
                        }
                    },
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "627天前发布"
                }
            },
            {
                "rpid": 3030978856,
                "oid": 201022189,
                "type": 1,
                "mid": 11814633,
                "root": 3030790837,
                "parent": 3030790837,
                "dialog": 3030978856,
                "count": 0,
                "rcount": 0,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592020635,
                "rpid_str": "3030978856",
                "root_str": "3030790837",
                "parent_str": "3030790837",
                "like": 60,
                "action": 0,
                "member": {
                    "mid": "11814633",
                    "uname": "我到四川省来",
                    "sex": "保密",
                    "sign": "保持内心的平静",
                    "avatar": "http://i0.hdslb.com/bfs/face/1c7cad967633c718ddef302f4aa39efaed53a2e4.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 1885,
                        "name": "公主连结凯露",
                        "image": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                        "expire": 0,
                        "image_enhance": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 3,
                        "name": "白银殿堂",
                        "image": "http://i0.hdslb.com/bfs/face/f6a31275029365ae5dc710006585ddcf1139bde1.png",
                        "image_small": "http://i0.hdslb.com/bfs/face/b09cdb4c119c467cf2d15db5263b4f539fa6e30b.png",
                        "level": "高级勋章",
                        "condition": "单个自制视频总播放数>=10万"
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 2,
                        "vipDueDate": 1715270400000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 1,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "年度大会员",
                            "label_theme": "annual_vip",
                            "text_color": "#FFFFFF",
                            "bg_style": 1,
                            "bg_color": "#FB7299",
                            "border_color": ""
                        },
                        "avatar_subscript": 1,
                        "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                        "nickname_color": "#FB7299"
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": {
                            "id": 1885,
                            "name": "公主连结凯露",
                            "image": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                            "jump_url": "",
                            "type": "vip",
                            "image_enhance": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                            "image_enhance_frame": ""
                        },
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "看有机化学考研视频",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "627天前发布"
                }
            }
        ],
        "root": {
            "rpid": 3030790837,
            "oid": 201022189,
            "type": 1,
            "mid": 342581997,
            "root": 0,
            "parent": 0,
            "dialog": 0,
            "count": 268,
            "rcount": 230,
            "state": 0,
            "fansgrade": 0,
            "attr": 768,
            "ctime": 1592017909,
            "rpid_str": "3030790837",
            "root_str": "0",
            "parent_str": "0",
            "like": 8018,
            "action": 0,
            "member": {
                "mid": "342581997",
                "uname": "VAN样斯基",
                "sex": "保密",
                "sign": "",
                "avatar": "http://i0.hdslb.com/bfs/face/bc9c6d37b5a4c8b3b0a3cd483fd66e63b1ae0cec.jpg",
                "rank": "10000",
                "DisplayRank": "0",
                "face_nft_new": 0,
                "is_senior_member": 0,
                "level_info": {
                    "current_level": 5,
                    "current_min": 0,
                    "current_exp": 0,
                    "next_exp": 0
                },
                "pendant": {
                    "pid": 0,
                    "name": "",
                    "image": "",
                    "expire": 0,
                    "image_enhance": "",
                    "image_enhance_frame": ""
                },
                "nameplate": {
                    "nid": 0,
                    "name": "",
                    "image": "",
                    "image_small": "",
                    "level": "",
                    "condition": ""
                },
                "official_verify": {
                    "type": -1,
                    "desc": ""
                },
                "vip": {
                    "vipType": 1,
                    "vipDueDate": 1626364800000,
                    "dueRemark": "",
                    "accessStatus": 0,
                    "vipStatus": 0,
                    "vipStatusWarn": "",
                    "themeType": 0,
                    "label": {
                        "path": "",
                        "text": "",
                        "label_theme": "",
                        "text_color": "",
                        "bg_style": 0,
                        "bg_color": "",
                        "border_color": ""
                    },
                    "avatar_subscript": 0,
                    "nickname_color": ""
                },
                "fans_detail": null,
                "following": 0,
                "is_followed": 0,
                "user_sailing": {
                    "pendant": null,
                    "cardbg": null,
                    "cardbg_with_focus": null
                },
                "is_contractor": false,
                "contract_desc": ""
            },
            "content": {
                "message": "去P站当然只是为了学习啊[doge]",
                "plat": 0,
                "device": "",
                "members": [],
                "emote": {
                    "[doge]": {
                        "id": 26,
                        "package_id": 1,
                        "state": 0,
                        "type": 1,
                        "attr": 0,
                        "text": "[doge]",
                        "url": "http://i0.hdslb.com/bfs/emote/3087d273a78ccaff4bb1e9972e2ba2a7583c9f11.png",
                        "meta": {
                            "size": 1
                        },
                        "mtime": 1645206695,
                        "jump_title": "doge"
                    }
                },
                "jump_url": {},
                "max_line": 999
            },
            "replies": null,
            "assist": 0,
            "folder": {
                "has_folded": false,
                "is_folded": false,
                "rule": "https://www.bilibili.com/blackboard/foldingreply.html"
            },
            "up_action": {
                "like": true,
                "reply": true
            },
            "show_follow": false,
            "invisible": false,
            "card_label": [
                {
                    "rpid": 3030790837,
                    "text_content": "UP主觉得很赞",
                    "text_color_day": "#757575",
                    "text_color_night": "#939393",
                    "label_color_day": "#F4F4F4",
                    "label_color_night": "#1E1E1E",
                    "image": "",
                    "type": 0,
                    "background": "",
                    "background_width": 0,
                    "background_height": 0,
                    "jump_url": ""
                }
            ],
            "reply_control": {
                "up_reply": true,
                "sub_reply_entry_text": "共230条回复",
                "sub_reply_title_text": "相关回复共230条",
                "time_desc": "627天前发布"
            }
        },
        "show_bvid": true,
        "show_text": "",
        "show_type": 2,
        "upper": {
            "mid": 92586428
        }
    }
}

获取指定评论对话树

https://api.bilibili.com/x/v2/reply/dialog/cursor

请求方式:GET

认证方式:Cookie(SESSDATA)或APP

按照对话链排列

url参数:

`,12)),s("table",null,[n[146]||(n[146]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[n[140]||(n[140]=s("tr",null,[s("td",null,"access_key"),s("td",null,"str"),s("td",null,"APP登录 Token"),s("td",null,"APP 方式必要"),s("td")],-1)),s("tr",null,[n[136]||(n[136]=s("td",null,"type",-1)),n[137]||(n[137]=s("td",null,"num",-1)),n[138]||(n[138]=s("td",null,"评论区类型代码",-1)),n[139]||(n[139]=s("td",null,"必要",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[135]||(n[135]=[l("类型代码见表")])),_:1,__:[135]})])]),n[141]||(n[141]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"必要"),s("td")],-1)),n[142]||(n[142]=s("tr",null,[s("td",null,"root"),s("td",null,"num"),s("td",null,"根回复 rpid"),s("td",null,"必要"),s("td")],-1)),n[143]||(n[143]=s("tr",null,[s("td",null,"dialog"),s("td",null,"num"),s("td",null,"对话树根 rpid"),s("td",null,"必要"),s("td")],-1)),n[144]||(n[144]=s("tr",null,[s("td",null,"size"),s("td",null,"num"),s("td",null,"每页最大项数"),s("td",null,"必要"),s("td")],-1)),n[145]||(n[145]=s("tr",null,[s("td",null,"min_floor"),s("td",null,"num"),s("td",null,"(?)"),s("td",null,"非必要"),s("td")],-1))])]),n[222]||(n[222]=e("

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-400:请求错误
-404:无此项
12002:评论区已关闭
12009:评论主体的type不合法
messagestr错误信息默认为0
ttlnum1
data正确时:obj
错误时:null
数据本体

data对象:

字段类型内容备注
cursorobj页楼层信息
dialogobj对话楼层信息
repliesarray评论对话树列表
assistnum(?)
blacklistnum(?)
votenum(?)
lotterynum(?)
configobj评论区显示控制
upperobjUP主 mid
show_bvidbool显示 bvid?
controlobj评论区输入属性
notenum(?)

data中的cursor对象:

字段类型内容备注
min_floornum本页最低对话楼层
max_floornum本页最高对话楼层
sizenum本页项数

data中的dialog对象:

字段类型内容备注
min_floornum二级评论最低对话楼层
max_floornum二级评论最高对话楼层

data中的replies数组:

",10)),s("table",null,[n[153]||(n[153]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[148]||(n[148]=s("td",null,"0",-1)),n[149]||(n[149]=s("td",null,"obj",-1)),n[150]||(n[150]=s("td",null,"对话评论条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[147]||(n[147]=[l("对象定义见表")])),_:1,__:[147]})])]),n[151]||(n[151]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"对话评论条目 (n+1)"),s("td",null,"按照对话链排列")],-1)),n[152]||(n[152]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[223]||(n[223]=e(`

data中的config对象:

字段类型内容备注
showadminnum是否显示管理置顶
showentrynum
showfloornum是否显示楼层号
showtopicnum是否显示话题
show_up_flagbool是否显示“UP 觉得很赞”标志
read_onlybool是否只读评论区
show_del_logbool是否显示删除记录

data中的upper对象:

字段类型内容备注
midnumUP 主 mid

data中的control对象:

字段类型内容备注
input_disablebool(?)
root_input_textstr评论框文字
child_input_textstr评论框文字
bg_textstr空评论区文字
web_selectionbool评论是否筛选后可见false:无需筛选
true:需要筛选
answer_guide_textstr答题页面链接文字
answer_guide_icon_urlstr答题页面图标 url
answer_guide_ios_urlstr答题页面 ios url
answer_guide_android_urlstr答题页面安卓 url

示例:

获取视频av201022189下评论rpid=3030790837的对话rpid=3030978856,每页最大5项

curl -G 'https://api.bilibili.com/x/v2/reply/dialog/cursor' \\
--data-urlencode 'type=1' \\
--data-urlencode 'oid=201022189' \\
--data-urlencode 'root=3030790837' \\
--data-urlencode 'dialog=3030978856' \\
--data-urlencode 'size=5' \\
-b 'SESSDATA=xxx'
查看响应示例:
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "cursor": {
            "min_floor": 5,
            "max_floor": 99,
            "size": 5
        },
        "dialog": {
            "min_floor": 0,
            "max_floor": 243
        },
        "replies": [
            {
                "rpid": 3030978856,
                "oid": 201022189,
                "type": 1,
                "mid": 11814633,
                "root": 3030790837,
                "parent": 3030790837,
                "dialog": 3030978856,
                "count": 0,
                "rcount": 0,
                "floor": 5,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592020635,
                "rpid_str": "3030978856",
                "root_str": "3030790837",
                "parent_str": "3030790837",
                "like": 60,
                "action": 0,
                "member": {
                    "mid": "11814633",
                    "uname": "我到四川省来",
                    "sex": "保密",
                    "sign": "保持内心的平静",
                    "avatar": "http://i0.hdslb.com/bfs/face/1c7cad967633c718ddef302f4aa39efaed53a2e4.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 1885,
                        "name": "公主连结凯露",
                        "image": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                        "expire": 0,
                        "image_enhance": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 3,
                        "name": "白银殿堂",
                        "image": "http://i2.hdslb.com/bfs/face/f6a31275029365ae5dc710006585ddcf1139bde1.png",
                        "image_small": "http://i0.hdslb.com/bfs/face/b09cdb4c119c467cf2d15db5263b4f539fa6e30b.png",
                        "level": "高级勋章",
                        "condition": "单个自制视频总播放数>=10万"
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 2,
                        "vipDueDate": 1715270400000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 1,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "年度大会员",
                            "label_theme": "annual_vip",
                            "text_color": "#FFFFFF",
                            "bg_style": 1,
                            "bg_color": "#FB7299",
                            "border_color": ""
                        },
                        "avatar_subscript": 1,
                        "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                        "nickname_color": "#FB7299"
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": {
                            "id": 1885,
                            "name": "公主连结凯露",
                            "image": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                            "jump_url": "",
                            "type": "vip",
                            "image_enhance": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                            "image_enhance_frame": ""
                        },
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "看有机化学考研视频",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "627天前发布"
                }
            },
            {
                "rpid": 3049044835,
                "oid": 201022189,
                "type": 1,
                "mid": 34598825,
                "root": 3030790837,
                "parent": 3032092982,
                "dialog": 3030978856,
                "count": 0,
                "rcount": 0,
                "floor": 54,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592368714,
                "rpid_str": "3049044835",
                "root_str": "3030790837",
                "parent_str": "3032092982",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "34598825",
                    "uname": "人宇君sayo",
                    "sex": "男",
                    "sign": "",
                    "avatar": "http://i2.hdslb.com/bfs/face/bf61490cabaedd8e98740f2c98a342ac6d2c607d.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1629561600000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "回复 @緑箭口香糖 :牛的",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "623天前发布"
                }
            },
            {
                "rpid": 3049581999,
                "oid": 201022189,
                "type": 1,
                "mid": 479083152,
                "root": 3030790837,
                "parent": 3030978856,
                "dialog": 3030978856,
                "count": 0,
                "rcount": 0,
                "floor": 93,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592378703,
                "rpid_str": "3049581999",
                "root_str": "3030790837",
                "parent_str": "3030978856",
                "like": 2,
                "action": 0,
                "member": {
                    "mid": "479083152",
                    "uname": "人间多了许茫然",
                    "sex": "保密",
                    "sign": "无聊...\\n",
                    "avatar": "http://i0.hdslb.com/bfs/face/6e7ee177b5cc681b9609c07f8d5eb574b52d409c.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 5,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 0,
                        "name": "",
                        "image": "",
                        "expire": 0,
                        "image_enhance": "",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1632240000000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": null,
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "回复 @我到四川省来 :哈哈,考研不考化学吧",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "623天前发布"
                }
            },
            {
                "rpid": 3049578129,
                "oid": 201022189,
                "type": 1,
                "mid": 11814633,
                "root": 3030790837,
                "parent": 3049581999,
                "dialog": 3030978856,
                "count": 0,
                "rcount": 0,
                "floor": 94,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592378760,
                "rpid_str": "3049578129",
                "root_str": "3030790837",
                "parent_str": "3049581999",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "11814633",
                    "uname": "我到四川省来",
                    "sex": "保密",
                    "sign": "保持内心的平静",
                    "avatar": "http://i0.hdslb.com/bfs/face/1c7cad967633c718ddef302f4aa39efaed53a2e4.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 6,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 1885,
                        "name": "公主连结凯露",
                        "image": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                        "expire": 0,
                        "image_enhance": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 3,
                        "name": "白银殿堂",
                        "image": "http://i2.hdslb.com/bfs/face/f6a31275029365ae5dc710006585ddcf1139bde1.png",
                        "image_small": "http://i0.hdslb.com/bfs/face/b09cdb4c119c467cf2d15db5263b4f539fa6e30b.png",
                        "level": "高级勋章",
                        "condition": "单个自制视频总播放数>=10万"
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 2,
                        "vipDueDate": 1715270400000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 1,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "年度大会员",
                            "label_theme": "annual_vip",
                            "text_color": "#FFFFFF",
                            "bg_style": 1,
                            "bg_color": "#FB7299",
                            "border_color": ""
                        },
                        "avatar_subscript": 1,
                        "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                        "nickname_color": "#FB7299"
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": {
                            "id": 1885,
                            "name": "公主连结凯露",
                            "image": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                            "jump_url": "",
                            "type": "vip",
                            "image_enhance": "http://i0.hdslb.com/bfs/garb/item/ecf1b11044845abc92e576dfdf93ad4f5e5a0958.png",
                            "image_enhance_frame": ""
                        },
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "回复 @转手告别旧生活 :专业课 考啊",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "623天前发布"
                }
            },
            {
                "rpid": 3049748009,
                "oid": 201022189,
                "type": 1,
                "mid": 39891232,
                "root": 3030790837,
                "parent": 3032092982,
                "dialog": 3030978856,
                "count": 0,
                "rcount": 0,
                "floor": 99,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1592382373,
                "rpid_str": "3049748009",
                "root_str": "3030790837",
                "parent_str": "3032092982",
                "like": 1,
                "action": 0,
                "member": {
                    "mid": "39891232",
                    "uname": "夏次一町and庵野一洋",
                    "sex": "保密",
                    "sign": "嘚儿~驾!",
                    "avatar": "http://i1.hdslb.com/bfs/face/79fbbc56271053565f6dd4395cd77120bad7c568.jpg",
                    "rank": "10000",
                    "DisplayRank": "0",
                    "face_nft_new": 0,
                    "is_senior_member": 0,
                    "level_info": {
                        "current_level": 5,
                        "current_min": 0,
                        "current_exp": 0,
                        "next_exp": 0
                    },
                    "pendant": {
                        "pid": 452,
                        "name": "灵笼",
                        "image": "http://i1.hdslb.com/bfs/face/9c5f14d6749daded668f3f66998baf4a50e7d8da.png",
                        "expire": 0,
                        "image_enhance": "http://i1.hdslb.com/bfs/face/9c5f14d6749daded668f3f66998baf4a50e7d8da.png",
                        "image_enhance_frame": ""
                    },
                    "nameplate": {
                        "nid": 0,
                        "name": "",
                        "image": "",
                        "image_small": "",
                        "level": "",
                        "condition": ""
                    },
                    "official_verify": {
                        "type": -1,
                        "desc": ""
                    },
                    "vip": {
                        "vipType": 1,
                        "vipDueDate": 1628870400000,
                        "dueRemark": "",
                        "accessStatus": 0,
                        "vipStatus": 0,
                        "vipStatusWarn": "",
                        "themeType": 0,
                        "label": {
                            "path": "",
                            "text": "",
                            "label_theme": "",
                            "text_color": "",
                            "bg_style": 0,
                            "bg_color": "",
                            "border_color": ""
                        },
                        "avatar_subscript": 0,
                        "nickname_color": ""
                    },
                    "fans_detail": null,
                    "following": 0,
                    "is_followed": 0,
                    "user_sailing": {
                        "pendant": {
                            "id": 452,
                            "name": "灵笼",
                            "image": "http://i0.hdslb.com/bfs/face/9c5f14d6749daded668f3f66998baf4a50e7d8da.png",
                            "jump_url": "",
                            "type": "vip",
                            "image_enhance": "http://i0.hdslb.com/bfs/face/9c5f14d6749daded668f3f66998baf4a50e7d8da.png",
                            "image_enhance_frame": ""
                        },
                        "cardbg": null,
                        "cardbg_with_focus": null
                    },
                    "is_contractor": false,
                    "contract_desc": ""
                },
                "content": {
                    "message": "回复 @緑箭口香糖 :不收费啊",
                    "plat": 0,
                    "device": "",
                    "members": [],
                    "jump_url": {},
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {
                    "time_desc": "623天前发布"
                }
            }
        ],
        "assist": 0,
        "blacklist": 0,
        "vote": 0,
        "lottery": 0,
        "config": {
            "showadmin": 1,
            "showentry": 1,
            "showfloor": 0,
            "showtopic": 1,
            "show_up_flag": true,
            "read_only": false,
            "show_del_log": true
        },
        "upper": {
            "mid": 92586428
        },
        "show_bvid": false,
        "control": {
            "input_disable": false,
            "root_input_text": "发一条友善的评论",
            "child_input_text": "",
            "giveup_input_text": "不发没关系,请继续友善哦~",
            "bg_text": "看看下面~来发评论吧",
            "web_selection": false,
            "answer_guide_text": "需要升级成为lv2会员后才可以评论,先去答题转正吧!",
            "answer_guide_icon_url": "http://i0.hdslb.com/bfs/emote/96940d16602cacbbac796245b7bb99fa9b5c970c.png",
            "answer_guide_ios_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=12",
            "answer_guide_android_url": "https://www.bilibili.com/h5/newbie/entry?navhide=1&re_src=6",
            "show_type": 1,
            "show_text": "",
            "disable_jump_emote": false
        },
        "note": 1
    }
}

获取评论区热评

https://api.bilibili.com/x/v2/reply/hot

请求方式:GET

认证方式:Cookie(SESSDATA)或APP

按照热评排列

url参数:

`,16)),s("table",null,[n[164]||(n[164]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[n[159]||(n[159]=s("tr",null,[s("td",null,"access_key"),s("td",null,"str"),s("td",null,"APP登录 Token"),s("td",null,"APP 方式必要"),s("td")],-1)),s("tr",null,[n[155]||(n[155]=s("td",null,"type",-1)),n[156]||(n[156]=s("td",null,"num",-1)),n[157]||(n[157]=s("td",null,"评论区类型代码",-1)),n[158]||(n[158]=s("td",null,"必要",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[154]||(n[154]=[l("类型代码见表")])),_:1,__:[154]})])]),n[160]||(n[160]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"必要"),s("td")],-1)),n[161]||(n[161]=s("tr",null,[s("td",null,"root"),s("td",null,"num"),s("td",null,"根回复 rpid"),s("td",null,"必要"),s("td")],-1)),n[162]||(n[162]=s("tr",null,[s("td",null,"ps"),s("td",null,"num"),s("td",null,"每页项数"),s("td",null,"非必要"),s("td",null,[l("默认为20"),s("br"),l("定义域:1-49")])],-1)),n[163]||(n[163]=s("tr",null,[s("td",null,"pn"),s("td",null,"num"),s("td",null,"页码"),s("td",null,"非必要"),s("td",null,"默认为1")],-1))])]),n[224]||(n[224]=e("

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-400:请求错误
-404:无此项
12002:评论区已关闭
12009:评论主体的type不合法
messagestr错误信息默认为0
ttlnum1
data正确时:obj
错误时:null
数据本体

data对象:

字段类型内容备注
pageobj页面信息
repliesobj热评列表

data中的page对象:

字段类型内容备注
acountnum总评论数
countnum热评数
numnum当前页码
sizenum每页项数

data中的replies数组:

",8)),s("table",null,[n[171]||(n[171]=s("thead",null,[s("tr",null,[s("th",null,"项"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[166]||(n[166]=s("td",null,"0",-1)),n[167]||(n[167]=s("td",null,"obj",-1)),n[168]||(n[168]=s("td",null,"热评条目 1",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[165]||(n[165]=[l("对象定义见表")])),_:1,__:[165]})])]),n[169]||(n[169]=s("tr",null,[s("td",null,"n"),s("td",null,"obj"),s("td",null,"热评条目 (n+1)"),s("td",null,"按照热评排列")],-1)),n[170]||(n[170]=s("tr",null,[s("td",null,"……"),s("td",null,"obj"),s("td",null,"……"),s("td",null,"……")],-1))])]),n[225]||(n[225]=e(`

示例:

获取视频av2的评论区热评,每页5项,查看第1页

curl -G 'https://api.bilibili.com/x/v2/reply/hot' \\
--data-urlencode 'type=1' \\
--data-urlencode 'oid=2' \\
--data-urlencode 'ps=5' \\
--data-urlencode 'pn=1' \\
-b 'SESSDATA=xxx'
查看响应示例:
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "page": {
            "acount": 76796,
            "count": 60975,
            "num": 1,
            "size": 5
        },
        "replies": [
            {
                "rpid": 476670,
                "oid": 2,
                "type": 1,
                "mid": 58426,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 2733,
                "rcount": 2608,
                "floor": 2,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1291350931,
                "like": 90425,
                "action": 0,
                "member": null,
                "content": {
                    "message": "貌似没人来",
                    "plat": 0,
                    "device": "",
                    "members": null,
                    "jump_url": null,
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {}
            },
            {
                "rpid": 917945205,
                "oid": 2,
                "type": 1,
                "mid": 34762090,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 461,
                "rcount": 365,
                "floor": 17977,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1532071373,
                "like": 29795,
                "action": 0,
                "member": null,
                "content": {
                    "message": "7.20日,站长被封7天\\n\\n历史性留名[2233娘_卖萌]",
                    "plat": 0,
                    "device": "",
                    "members": null,
                    "jump_url": null,
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {}
            },
            {
                "rpid": 2576184175,
                "oid": 2,
                "type": 1,
                "mid": 24512285,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 1066,
                "rcount": 1000,
                "floor": 40932,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1584945297,
                "like": 44309,
                "action": 0,
                "member": null,
                "content": {
                    "message": "人类最古のav号(挂了的不算)也变成bv了[大哭][大哭][大哭]青春结束了",
                    "plat": 0,
                    "device": "",
                    "members": null,
                    "jump_url": null,
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {}
            },
            {
                "rpid": 495059,
                "oid": 2,
                "type": 1,
                "mid": 2,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 898,
                "rcount": 838,
                "floor": 5,
                "state": 2,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1291918239,
                "like": 34224,
                "action": 0,
                "member": null,
                "content": {
                    "message": "wwwww",
                    "plat": 0,
                    "device": "",
                    "members": null,
                    "jump_url": null,
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {}
            },
            {
                "rpid": 646408628,
                "oid": 2,
                "type": 1,
                "mid": 33066927,
                "root": 0,
                "parent": 0,
                "dialog": 0,
                "count": 173,
                "rcount": 160,
                "floor": 10914,
                "state": 0,
                "fansgrade": 0,
                "attr": 0,
                "ctime": 1519135750,
                "like": 7197,
                "action": 0,
                "member": null,
                "content": {
                    "message": "第一首:来夢緑 - kagome-kagome ~ 月の眷属達カラオケ\\n第二首:dBu music - 千年幻想郷 -Aurora sky edition-\\n第三首:Sensitive Heart - 千年幻想郷 ~ History of the Moon\\n第四首:Yellow-Zebra - 月の律动~Rhythm of the moon~(东方永夜抄 “千年幻想郷 ~ History of the Moon”)\\n第五首:工藤舞 - D.S.F.S(ヴォヤージュ1969)\\n第六首:Angelic Quasar - かの郷は永き幻の\\n第七首:東方永夜抄 - 黒髪のアマンダ\\n第八首:君の美術館 - 千年幻想郷 ~ History of the Moon\\n\\n------------------------\\n这些是av:2出现的音乐,应该不会缺少的喵~。(笑) 如果有需要有兴趣的话欢迎复制喵~~(`・ω・´)\\n复制的9818楼的\\n前排提示:本视频只有大会员能看",
                    "plat": 0,
                    "device": "",
                    "members": null,
                    "jump_url": null,
                    "max_line": 999
                },
                "replies": null,
                "assist": 0,
                "folder": {
                    "has_folded": false,
                    "is_folded": false,
                    "rule": ""
                },
                "up_action": {
                    "like": false,
                    "reply": false
                },
                "show_follow": false,
                "invisible": false,
                "reply_control": {}
            }
        ]
    }
}

获取指定评论信息

该接口已经弃用

`,6)),s("details",null,[n[188]||(n[188]=s("summary",null,"点击展开折叠内容:",-1)),n[189]||(n[189]=s("blockquote",null,[s("p",null,"https://api.bilibili.com/x/v2/reply/info")],-1)),n[190]||(n[190]=s("p",null,[s("em",null,"请求方式:GET")],-1)),n[191]||(n[191]=s("p",null,[s("strong",null,"url参数:")],-1)),s("table",null,[n[179]||(n[179]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[173]||(n[173]=s("td",null,"type",-1)),n[174]||(n[174]=s("td",null,"num",-1)),n[175]||(n[175]=s("td",null,"评论区类型代码",-1)),n[176]||(n[176]=s("td",null,"非必要",-1)),s("td",null,[s("strong",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[172]||(n[172]=[l("类型代码见表")])),_:1,__:[172]})])])]),n[177]||(n[177]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"非必要"),s("td")],-1)),n[178]||(n[178]=s("tr",null,[s("td",null,"rpid"),s("td",null,"num"),s("td",null,"目标评论 rpid"),s("td",null,"必要"),s("td")],-1))])]),n[192]||(n[192]=s("p",null,[s("strong",null,"json回复:")],-1)),n[193]||(n[193]=s("p",null,"根对象:",-1)),s("table",null,[n[187]||(n[187]=s("thead",null,[s("tr",null,[s("th",null,"字段"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"备注")])],-1)),s("tbody",null,[n[184]||(n[184]=s("tr",null,[s("td",null,"code"),s("td",null,"num"),s("td",null,"返回值"),s("td",null,[l("0:成功"),s("br"),l("-400:请求错误"),s("br"),l("-404:无此项")])],-1)),n[185]||(n[185]=s("tr",null,[s("td",null,"message"),s("td",null,"str"),s("td",null,"错误信息"),s("td",null,"默认为0")],-1)),n[186]||(n[186]=s("tr",null,[s("td",null,"ttl"),s("td",null,"num"),s("td",null,"1"),s("td")],-1)),s("tr",null,[n[181]||(n[181]=s("td",null,"data",-1)),n[182]||(n[182]=s("td",null,[l("正确时:obj"),s("br"),l("错误时:null")],-1)),n[183]||(n[183]=s("td",null,"评论条目",-1)),s("td",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E6%9D%A1%E7%9B%AE%E5%AF%B9%E8%B1%A1"},{default:p(()=>n[180]||(n[180]=[l("对象定义见表")])),_:1,__:[180]})])])])]),n[194]||(n[194]=e(`

示例:

获取视频av379743801评论区下rpid=95737567200的信息

curl -G 'https://api.bilibili.com/x/v2/reply/info' \\
--data-urlencode 'type=1' \\
--data-urlencode 'oid=379743801' \\
--data-urlencode 'rpid=95737567200' \\
-b 'SESSDATA=xxx'
查看响应示例:
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "rpid": 95737567200,
        "oid": 379743801,
        "type": 1,
        "mid": 293793435,
        "root": 0,
        "parent": 0,
        "dialog": 0,
        "count": 34,
        "rcount": 34,
        "floor": 382,
        "state": 0,
        "fansgrade": 0,
        "attr": 514,
        "ctime": 1639916028,
        "like": 154,
        "action": 0,
        "member": {
            "mid": "293793435",
            "uname": "社会易姐QwQ",
            "sex": "男",
            "sign": "普通带砖技术宅,爱好MC 编程 电子,是车万人也是术术人,粉丝群:1136462265,博客:shakianee.top",
            "avatar": "http://i0.hdslb.com/bfs/face/aebb2639a0d47f2ce1fec0631f412eaf53d4a0be.jpg",
            "rank": "10000",
            "DisplayRank": "0",
            "face_nft_new": 0,
            "is_senior_member": 0,
            "level_info": {
                "current_level": 6,
                "current_min": 0,
                "current_exp": 0,
                "next_exp": 0
            },
            "pendant": {
                "pid": 2511,
                "name": "初音未来13周年",
                "image": "http://i0.hdslb.com/bfs/garb/item/4f8f3f1f2d47f0dad84f66aa57acd4409ea46361.png",
                "expire": 0,
                "image_enhance": "http://i0.hdslb.com/bfs/garb/item/fe0b83b53e2342b16646f6e7a9370d8a867decdb.webp",
                "image_enhance_frame": "http://i0.hdslb.com/bfs/garb/item/127c507ec8448be30cf5f79500ecc6ef2fd32f2c.png"
            },
            "nameplate": {
                "nid": 4,
                "name": "青铜殿堂",
                "image": "http://i2.hdslb.com/bfs/face/2879cd5fb8518f7c6da75887994c1b2a7fe670bd.png",
                "image_small": "http://i0.hdslb.com/bfs/face/6707c120e00a3445933308fd9b7bd9fad99e9ec4.png",
                "level": "普通勋章",
                "condition": "单个自制视频总播放数>=1万"
            },
            "official_verify": {
                "type": -1,
                "desc": ""
            },
            "vip": {
                "vipType": 2,
                "vipDueDate": 1675785600000,
                "dueRemark": "",
                "accessStatus": 0,
                "vipStatus": 1,
                "vipStatusWarn": "",
                "themeType": 0,
                "label": {
                    "path": "",
                    "text": "年度大会员",
                    "label_theme": "annual_vip",
                    "text_color": "#FFFFFF",
                    "bg_style": 1,
                    "bg_color": "#FB7299",
                    "border_color": ""
                },
                "avatar_subscript": 1,
                "avatar_subscript_url": "http://i0.hdslb.com/bfs/vip/icon_Certification_big_member_22_3x.png",
                "nickname_color": "#FB7299"
            },
            "fans_detail": null,
            "following": 0,
            "is_followed": 0,
            "user_sailing": null,
            "is_contractor": false,
            "contract_desc": ""
        },
        "content": {
            "message": "这款机器背后发热超级严重。。。。。最烫的时候有60-70℃手不敢摸,而发烫后会降频,最低会降到0.6Ghz[笑哭][笑哭]\\n现在解决办法已经出来了https://b23.tv/suUd3g7",
            "plat": 0,
            "device": "",
            "members": null,
            "jump_url": null,
            "max_line": 999
        },
        "replies": null,
        "assist": 0,
        "folder": {
            "has_folded": false,
            "is_folded": false,
            "rule": ""
        },
        "up_action": {
            "like": false,
            "reply": false
        },
        "show_follow": false,
        "invisible": false,
        "reply_control": {}
    }
}
`,4))]),n[226]||(n[226]=s("h2",{id:"获取评论区评论总数",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#获取评论区评论总数"},[s("span",null,"获取评论区评论总数")])],-1)),n[227]||(n[227]=s("blockquote",null,[s("p",null,"https://api.bilibili.com/x/v2/reply/count")],-1)),n[228]||(n[228]=s("p",null,[s("em",null,"请求方式:GET")],-1)),n[229]||(n[229]=s("p",null,[s("strong",null,"url参数:")],-1)),s("table",null,[n[201]||(n[201]=s("thead",null,[s("tr",null,[s("th",null,"参数名"),s("th",null,"类型"),s("th",null,"内容"),s("th",null,"必要性"),s("th",null,"备注")])],-1)),s("tbody",null,[s("tr",null,[n[196]||(n[196]=s("td",null,"type",-1)),n[197]||(n[197]=s("td",null,"num",-1)),n[198]||(n[198]=s("td",null,"评论区类型代码",-1)),n[199]||(n[199]=s("td",null,"必要",-1)),s("td",null,[s("strong",null,[o(a,{to:"/docs/comment/#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81"},{default:p(()=>n[195]||(n[195]=[l("类型代码见表")])),_:1,__:[195]})])])]),n[200]||(n[200]=s("tr",null,[s("td",null,"oid"),s("td",null,"num"),s("td",null,"目标评论区 id"),s("td",null,"必要"),s("td")],-1))])]),n[230]||(n[230]=e(`

json回复:

根对象:

字段类型内容备注
codenum返回值0:成功
-400:请求错误
-404:无此项
12009:评论主体的type不合法
messagestr错误信息默认为0
ttlnum1
data正确时:obj
错误时:null
数据本体

data对象:

字段类型内容备注
countnum评论条数

示例:

获取视频av2的评论区总计评论条数

curl -G 'https://api.bilibili.com/x/v2/reply/count' \\
--data-urlencode 'type=1' \\
--data-urlencode 'oid=2'
查看响应示例:
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": {
        "count": 65521
    }
}
`,9))])}const C=t(i,[["render",u]]),q=JSON.parse('{"path":"/docs/comment/list.html","title":"评论区明细","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1726759053000,"contributors":[{"name":"SocialSisterYi","username":"SocialSisterYi","email":"1440239038@qq.com","commits":3,"url":"https://github.com/SocialSisterYi"},{"name":"welcomeworld","username":"welcomeworld","email":"1303854224@qq.com","commits":1,"url":"https://github.com/welcomeworld"},{"name":"LaMerChiang","username":"LaMerChiang","email":"catlair@qq.com","commits":1,"url":"https://github.com/LaMerChiang"},{"name":"SessionHu","username":"SessionHu","email":"102411014+SessionHu@users.noreply.github.com","commits":2,"url":"https://github.com/SessionHu"}],"changelog":[{"hash":"1e24c6b1889160c4c35c01416aa4239501accf5f","time":1726759053000,"email":"102411014+SessionHu@users.noreply.github.com","author":"Session小胡","message":"调整部分接口描述与错误修复 (#1088)","coAuthors":[{"name":"社会易姐QwQ","email":"45892418+SocialSisterYi@users.noreply.github.com"}]},{"hash":"60a0c5d1a2f44fe61335da04571305fa7727a968","time":1724238159000,"email":"102411014+SessionHu@users.noreply.github.com","author":"Session小胡","message":"feat: 各种接口补充与错误修正 (#1066)"},{"hash":"4dac6cc2d0013c06c5cdf397d9dfc72a1c3531c4","time":1696153717000,"email":"catlair@qq.com","author":"LaMerChiang","message":"标注部分 wbi 链接 (#827)"},{"hash":"55cd01c87da4d6ff21d562a3e8bf71dd894ef204","time":1691418862000,"email":"1303854224@qq.com","author":"welcomeworld","message":"Update list.md (#766)"},{"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/comment/list.md"}');export{C as comp,q as data};