当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

指定评论的回复列表

取单条根评论下的楼中楼回复;整个评论区的列表用 `comments`。

GET
/api/bilibili/fetch_comment_reply

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

oid*string

目标对象 ID,视频稿件填 avid

Length1 <= length
type*number

评论区类型代码:1 视频稿件(oid=avid)、11 相簿/图片动态、12 专栏(cvid)、17 动态等;完整对照表见 bilibili-API-collect「评论区类型代码」

root*string

根评论 ID,即要展开的一级评论

Length1 <= length
number?integer

该根评论下的回复条数,不翻页,默认 20

Range0 < value <= 9007199254740991
Default20

Response Body

application/json

application/json

curl -X GET "https://example.com/api/bilibili/fetch_comment_reply?oid=string&type=0&root=string"
{  "success": true,  "data": {    "code": 0,    "data": {      "config": {        "read_only": true,        "show_up_flag": true,        "showtopic": 0      },      "control": {        "answer_guide_android_url": "string",        "answer_guide_icon_url": "string",        "answer_guide_ios_url": "string",        "answer_guide_text": "string",        "bg_text": "string",        "child_input_text": "string",        "disable_jump_emote": true,        "empty_page": null,        "enable_charged": true,        "enable_cm_biz_helper": true,        "giveup_input_text": "string",        "input_disable": true,        "preload_resources": null,        "root_input_text": "string",        "screenshot_icon_state": 0,        "show_text": "string",        "show_type": 0,        "upload_picture_icon_state": 0,        "web_selection": true      },      "page": {        "count": 0,        "num": 0,        "size": 0      },      "replies": [        {          "action": 0,          "assist": 0,          "attr": 0,          "content": {            "emote": {              "[冷]": {                "attr": 0,                "id": 0,                "jump_title": "string",                "meta": {                  "size": 0,                  "suggest": [                    "string"                  ]                },                "mtime": 0,                "package_id": 0,                "state": 0,                "text": "string",                "type": 0,                "url": "string"              },              "[笑哭]": {                "attr": 0,                "id": 0,                "jump_title": "string",                "meta": {                  "size": 0,                  "suggest": [                    "string"                  ]                },                "mtime": 0,                "package_id": 0,                "state": 0,                "text": "string",                "type": 0,                "url": "string"              }            },            "jump_url": {},            "max_line": 0,            "members": [              null            ],            "message": "string"          },          "count": 0,          "ctime": 0,          "dialog": 0,          "dialog_str": "string",          "dynamic_id_str": "string",          "fansgrade": 0,          "folder": {            "has_folded": true,            "is_folded": true,            "rule": "string"          },          "invisible": true,          "like": 0,          "member": {            "avatar": "string",            "avatar_item": {              "container_size": {                "height": 0,                "width": 0              },              "fallback_layers": {                "is_critical_group": true,                "layers": [                  {                    "general_spec": {                      "pos_spec": {                        "axis_x": 0,                        "axis_y": 0,                        "coordinate_pos": 0                      },                      "render_spec": {                        "opacity": 0                      },                      "size_spec": {                        "height": 0,                        "width": 0                      }                    },                    "layer_config": {                      "is_critical": true,                      "layer_mask": {                        "general_spec": {                          "pos_spec": {                            "axis_x": 0,                            "axis_y": 0,                            "coordinate_pos": 0                          },                          "render_spec": {                            "opacity": 0                          },                          "size_spec": {                            "height": 0,                            "width": 0                          }                        },                        "mask_src": {                          "draw": {                            "color_config": {},                            "draw_type": 0,                            "fill_mode": 0                          },                          "src_type": 0                        }                      },                      "tags": {                        "AVATAR_LAYER": {},                        "ICON_LAYER": {},                        "PENDENT_LAYER": {}                      }                    },                    "resource": {                      "res_animation": {                        "webp_src": {                          "remote": {                            "bfs_style": "string",                            "url": "string"                          },                          "src_type": 0                        }                      },                      "res_image": {                        "image_src": {                          "placeholder": 0,                          "remote": {                            "bfs_style": "string",                            "url": "string"                          },                          "src_type": 0                        }                      },                      "res_native_draw": {                        "draw_src": {                          "draw": {                            "color_config": {},                            "draw_type": 0,                            "fill_mode": 0                          },                          "src_type": 0                        }                      },                      "res_type": 0                    },                    "visible": true                  }                ]              },              "mid": "string"            },            "contract_desc": "string",            "face_nft_new": 0,            "fans_detail": {              "guard_icon": "string",              "guard_level": 0,              "honor_icon": "string",              "intimacy": 0,              "is_receive": 0,              "level": 0,              "master_status": 0,              "medal_color": 0,              "medal_color_border": 0,              "medal_color_end": 0,              "medal_color_level": 0,              "medal_color_name": 0,              "medal_id": 0,              "medal_level_bg_color": 0,              "medal_name": "string",              "score": 0,              "uid": 0            },            "handle": "string",            "is_contractor": true,            "is_senior_member": 0,            "level_info": {              "current_exp": 0,              "current_level": 0,              "current_min": 0,              "next_exp": 0            },            "mid": "string",            "nameplate": {              "condition": "string",              "image": "string",              "image_small": "string",              "level": "string",              "name": "string",              "nid": 0            },            "nft_interaction": null,            "official_verify": {              "desc": "string",              "type": 0            },            "pendant": {              "expire": 0,              "image": "string",              "image_enhance": "string",              "image_enhance_frame": "string",              "n_pid": 0,              "name": "string",              "pid": 0            },            "rank": "string",            "senior": {              "status": 0            },            "sex": "string",            "sign": "string",            "uname": "string",            "user_sailing": {              "cardbg": {                "fan": {                  "color": "string",                  "color_format": {                    "colors": [                      "string"                    ],                    "end_point": "string",                    "gradients": [                      0                    ],                    "start_point": "string"                  },                  "is_fan": 0,                  "name": "string",                  "num_desc": "string",                  "num_prefix": "string",                  "number": 0                },                "id": 0,                "image": "string",                "image_group": null,                "jump_url": "string",                "name": "string",                "type": "string"              },              "cardbg_with_focus": null,              "pendant": {                "id": 0,                "image": "string",                "image_enhance": "string",                "image_enhance_frame": "string",                "jump_url": "string",                "name": "string",                "type": "string"              }            },            "user_sailing_v2": {              "card_bg": {                "fan": {                  "color": "string",                  "color_format": {                    "colors": [                      "string"                    ],                    "end_point": "string",                    "gradients": [                      0                    ],                    "start_point": "string"                  },                  "is_fan": 0,                  "name": "string",                  "num_desc": "string",                  "num_prefix": "string",                  "number": 0                },                "id": 0,                "image": "string",                "jump_url": "string",                "name": "string",                "type": "string"              },              "pendant": {                "id": 0,                "image": "string",                "image_enhance": "string",                "image_enhance_frame": "string",                "name": "string",                "type": "string"              }            },            "vip": {              "accessStatus": 0,              "avatar_subscript": 0,              "dueRemark": "string",              "label": {                "bg_color": "string",                "bg_style": 0,                "border_color": "string",                "img_label_uri_hans": "string",                "img_label_uri_hans_static": "string",                "img_label_uri_hant": "string",                "img_label_uri_hant_static": "string",                "img_label_uri_i18n": "string",                "img_label_uri_i18n_static": "string",                "label_goto": {                  "mobile": "string",                  "pc_web": "string"                },                "label_id": 0,                "label_theme": "string",                "label_type": 0,                "path": "string",                "text": "string",                "text_color": "string",                "use_img_label": true              },              "nickname_color": "string",              "themeType": 0,              "vipDueDate": 0,              "vipStatus": 0,              "vipStatusWarn": "string",              "vipType": 0            }          },          "mid": 0,          "mid_str": "string",          "note_cvid_str": "string",          "oid": 0,          "oid_str": "string",          "parent": 0,          "parent_str": "string",          "rcount": 0,          "replies": null,          "reply_control": {            "max_line": 0,            "support_share": true,            "time_desc": "string",            "translation_switch": 0          },          "root": 0,          "root_str": "string",          "rpid": 0,          "rpid_str": "string",          "state": 0,          "track_info": "string",          "type": 0,          "up_action": {            "like": true,            "reply": true          }        }      ],      "root": {        "action": 0,        "assist": 0,        "attr": 0,        "content": {          "emote": {            "[笑哭]": {              "attr": 0,              "id": 0,              "jump_title": "string",              "meta": {                "size": 0,                "suggest": [                  "string"                ]              },              "mtime": 0,              "package_id": 0,              "state": 0,              "text": "string",              "type": 0,              "url": "string"            }          },          "jump_url": {},          "max_line": 0,          "members": [            null          ],          "message": "string",          "picture_scale": 0,          "pictures": [            {              "img_height": 0,              "img_size": 0,              "img_src": "string",              "img_width": 0            }          ]        },        "count": 0,        "ctime": 0,        "dialog": 0,        "dialog_str": "string",        "dynamic_id": 0,        "dynamic_id_str": "string",        "fansgrade": 0,        "folder": {          "has_folded": true,          "is_folded": true,          "rule": "string"        },        "invisible": true,        "like": 0,        "member": {          "avatar": "string",          "avatar_item": {            "container_size": {              "height": 0,              "width": 0            },            "fallback_layers": {              "is_critical_group": true,              "layers": [                {                  "general_spec": {                    "pos_spec": {                      "axis_x": 0,                      "axis_y": 0,                      "coordinate_pos": 0                    },                    "render_spec": {                      "opacity": 0                    },                    "size_spec": {                      "height": 0,                      "width": 0                    }                  },                  "layer_config": {                    "is_critical": true,                    "layer_mask": {                      "general_spec": {                        "pos_spec": {                          "axis_x": 0,                          "axis_y": 0,                          "coordinate_pos": 0                        },                        "render_spec": {                          "opacity": 0                        },                        "size_spec": {                          "height": 0,                          "width": 0                        }                      },                      "mask_src": {                        "draw": {                          "color_config": {                            "day": {}                          },                          "draw_type": 0,                          "fill_mode": 0                        },                        "src_type": 0                      }                    },                    "tags": {                      "AVATAR_LAYER": {}                    }                  },                  "resource": {                    "res_image": {                      "image_src": {                        "placeholder": 0,                        "remote": {                          "bfs_style": "string",                          "url": "string"                        },                        "src_type": 0                      }                    },                    "res_type": 0                  },                  "visible": true                }              ]            },            "mid": "string"          },          "contract_desc": "string",          "face_nft_new": 0,          "fans_detail": null,          "handle": "string",          "is_contractor": true,          "is_senior_member": 0,          "level_info": {            "current_exp": 0,            "current_level": 0,            "current_min": 0,            "next_exp": 0          },          "mid": "string",          "nameplate": {            "condition": "string",            "image": "string",            "image_small": "string",            "level": "string",            "name": "string",            "nid": 0          },          "nft_interaction": null,          "official_verify": {            "desc": "string",            "type": 0          },          "pendant": {            "expire": 0,            "image": "string",            "image_enhance": "string",            "image_enhance_frame": "string",            "n_pid": 0,            "name": "string",            "pid": 0          },          "rank": "string",          "senior": {},          "sex": "string",          "sign": "string",          "uname": "string",          "user_sailing": {            "cardbg": null,            "cardbg_with_focus": null,            "pendant": null          },          "user_sailing_v2": {},          "vip": {            "accessStatus": 0,            "avatar_subscript": 0,            "dueRemark": "string",            "label": {              "bg_color": "string",              "bg_style": 0,              "border_color": "string",              "img_label_uri_hans": "string",              "img_label_uri_hans_static": "string",              "img_label_uri_hant": "string",              "img_label_uri_hant_static": "string",              "img_label_uri_i18n": "string",              "img_label_uri_i18n_static": "string",              "label_goto": null,              "label_id": 0,              "label_theme": "string",              "label_type": 0,              "path": "string",              "text": "string",              "text_color": "string",              "use_img_label": true            },            "nickname_color": "string",            "themeType": 0,            "vipDueDate": 0,            "vipStatus": 0,            "vipStatusWarn": "string",            "vipType": 0          }        },        "mid": 0,        "mid_str": "string",        "note_cvid_str": "string",        "oid": 0,        "oid_str": "string",        "parent": 0,        "parent_str": "string",        "rcount": 0,        "replies": null,        "reply_control": {          "biz_scene": "string",          "is_note_v2": true,          "max_line": 0,          "sub_reply_entry_text": "string",          "sub_reply_title_text": "string",          "support_share": true,          "time_desc": "string",          "translation_switch": 0        },        "root": 0,        "root_str": "string",        "rpid": 0,        "rpid_str": "string",        "state": 0,        "track_info": "string",        "type": 0,        "up_action": {          "like": true,          "reply": true        }      },      "upper": {        "mid": 0      }    },    "message": "string",    "ttl": 0  },  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}