---
title: "Bilibili Video Comments API (V2)"
description: "Retrieves comments for a Bilibili video identified by AID, with optional cursor pagination. Use it to review audience discussion, continue through comment pages, or support comment moderation and analysis."
aiUsagePrompt: true
---

# Bilibili Video Comments API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/bilibili/get-video-comment/v2\"")'
  :summary='JSON.parse("\"Video Comments (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/bilibili/video-comments-v2-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for the API.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"aid\",\"in\":\"query\",\"description\":\"Bilibili Archive ID (AID).\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"Pagination cursor.\",\"required\":false,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Bilibili&#39;s response for the requested video comments.\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"Bilibili status code for the comment response.\"},\"message\":{\"type\":\"string\",\"description\":\"Status message from Bilibili for the comment response.\"},\"data\":{\"type\":\"object\",\"description\":\"Comment page, pagination information, and pinned comments when present.\",\"properties\":{\"cursor\":{\"type\":\"object\",\"description\":\"Pagination state for the top-level comment list.\",\"properties\":{\"is_begin\":{\"type\":\"boolean\",\"description\":\"Whether this is the first page of top-level comments.\"},\"is_end\":{\"type\":\"boolean\",\"description\":\"Whether Bilibili marks this as the last comment page.\"},\"prev\":{\"type\":\"integer\",\"description\":\"Previous-page numeric indicator reported by Bilibili.\"},\"next\":{\"type\":\"integer\",\"description\":\"Next-page numeric indicator reported by Bilibili.\"},\"all_count\":{\"type\":\"integer\",\"description\":\"Overall comment count reported with the pagination state.\"},\"mode\":{\"type\":\"integer\",\"description\":\"Comment sorting mode reported for this page.\"},\"mode_text\":{\"type\":\"string\",\"description\":\"Display text for the comment sorting mode.\"},\"pagination_reply\":{\"type\":\"object\",\"description\":\"Continuation details for the next comment page.\",\"properties\":{\"next_offset\":{\"type\":\"string\",\"description\":\"Opaque continuation value. When is_end is false and this value is available, pass it unchanged as cursor with the same aid.\"}}}}},\"replies\":{\"type\":\"array\",\"description\":\"Top-level comments in the returned page.\",\"items\":{\"type\":\"object\",\"description\":\"One top-level comment.\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili comment ID.\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"String representation of the Bilibili comment ID.\"},\"oid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili archive ID of the video being discussed.\"},\"oid_str\":{\"type\":\"string\",\"description\":\"String representation of the video archive ID.\"},\"mid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID of the comment author.\"},\"mid_str\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s account ID.\"},\"root\":{\"type\":\"integer\",\"description\":\"ID of the top-level comment for a reply. Observed top-level comments report 0.\"},\"root_str\":{\"type\":\"string\",\"description\":\"String representation of the root comment ID field.\"},\"parent\":{\"type\":\"integer\",\"description\":\"ID of the comment directly being replied to. Observed top-level comments report 0.\"},\"parent_str\":{\"type\":\"string\",\"description\":\"String representation of the parent comment ID field.\"},\"type\":{\"type\":\"integer\",\"description\":\"Bilibili code for the type of content being commented on.\"},\"ctime\":{\"type\":\"integer\",\"description\":\"Comment publication time as a Unix timestamp in seconds.\"},\"like\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the comment.\"},\"count\":{\"type\":\"integer\",\"description\":\"Reply count reported for this comment.\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Additional reply count reported by Bilibili. The included preview can contain fewer replies.\"},\"dialog\":{\"type\":\"integer\",\"description\":\"Conversation identifier reported for the reply.\"},\"dialog_str\":{\"type\":\"string\",\"description\":\"String representation of the conversation identifier field.\"},\"up_action\":{\"type\":\"object\",\"description\":\"Interactions attributed to the video uploader.\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader liked the comment.\"},\"reply\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader replied to the comment.\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"Public time and location labels displayed with the comment.\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"Time label displayed with the comment.\"},\"location\":{\"type\":\"string\",\"description\":\"Location label displayed by Bilibili for this comment, when present.\"}}},\"content\":{\"type\":\"object\",\"description\":\"Comment text and available rich content.\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"Text of the comment.\"},\"members\":{\"type\":\"array\",\"description\":\"Accounts mentioned in the comment text.\",\"items\":{\"type\":\"object\",\"description\":\"One account mentioned in the comment.\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"String representation of the mentioned account ID.\"},\"uname\":{\"type\":\"string\",\"description\":\"Display name of the mentioned account.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Avatar URL of the mentioned account.\"}}}},\"at_name_to_mid\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID for the mention name.\"},\"description\":\"Mention names mapped to numeric Bilibili account IDs.\"},\"at_name_to_mid_str\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"String representation of the Bilibili account ID for the mention name.\"},\"description\":\"Mention names mapped to string representations of Bilibili account IDs.\"},\"emote\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"description\":\"One emote referenced in the comment.\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"Identifier of the emote.\"},\"package_id\":{\"type\":\"integer\",\"description\":\"Identifier of the emote pack.\"},\"text\":{\"type\":\"string\",\"description\":\"Text code displayed for the emote.\"},\"url\":{\"type\":\"string\",\"description\":\"Image URL of the emote.\"},\"type\":{\"type\":\"integer\",\"description\":\"Emote type code reported by Bilibili.\"},\"mtime\":{\"type\":\"integer\",\"description\":\"Reported emote modification time as a Unix timestamp in seconds.\"},\"meta\":{\"type\":\"object\",\"description\":\"Additional emote metadata.\",\"properties\":{\"size\":{\"type\":\"integer\",\"description\":\"Display size code reported for the emote.\"}}}}},\"description\":\"Emote details keyed by the emote code in the comment text.\"},\"pictures\":{\"type\":\"array\",\"description\":\"Images attached to the comment, when present.\",\"items\":{\"type\":\"object\",\"description\":\"One attached comment image.\",\"properties\":{\"img_src\":{\"type\":\"string\",\"description\":\"URL of the attached image.\"},\"img_width\":{\"type\":\"integer\",\"description\":\"Width reported for the attached image, in pixels.\"},\"img_height\":{\"type\":\"integer\",\"description\":\"Height reported for the attached image, in pixels.\"},\"img_size\":{\"type\":\"number\",\"description\":\"File size value reported for the attached image.\"}}}}}},\"member\":{\"type\":\"object\",\"description\":\"Public profile details displayed for the comment author.\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s Bilibili account ID.\"},\"uname\":{\"type\":\"string\",\"description\":\"Display name of the comment author.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Avatar URL for the comment author.\"},\"sign\":{\"type\":\"string\",\"description\":\"Public profile introduction of the comment author.\"},\"level_info\":{\"type\":\"object\",\"description\":\"Public account level details.\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"Current account level displayed for the author.\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"Public verification details shown for the author.\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Verification type code reported for the author.\"},\"desc\":{\"type\":\"string\",\"description\":\"Verification description displayed for the author.\"}}},\"vip\":{\"type\":\"object\",\"description\":\"Public membership badge information shown for the author.\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"Membership type code shown for the author.\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"Membership status code shown for the author.\"}}},\"fans_detail\":{\"type\":[\"object\",\"null\"],\"description\":\"Public fan medal details when displayed for this author.\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed fan medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the fan medal.\"},\"level\":{\"type\":\"integer\",\"description\":\"Level of the displayed fan medal.\"}}},\"pendant\":{\"type\":\"object\",\"description\":\"Profile avatar pendant details shown for the author.\",\"properties\":{\"pid\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed avatar pendant.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the avatar pendant.\"},\"image\":{\"type\":\"string\",\"description\":\"Image URL of the avatar pendant.\"}}},\"nameplate\":{\"type\":\"object\",\"description\":\"Profile nameplate details shown for the author.\",\"properties\":{\"nid\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed nameplate.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the profile nameplate.\"},\"image\":{\"type\":\"string\",\"description\":\"Image URL for the profile nameplate.\"},\"level\":{\"type\":\"string\",\"description\":\"Display level of the profile nameplate.\"}}}}},\"replies\":{\"type\":[\"array\",\"null\"],\"description\":\"Preview of replies to this top-level comment. It can be null when no preview is included.\",\"items\":{\"type\":\"object\",\"description\":\"One reply included in the preview.\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili comment ID.\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"String representation of the Bilibili comment ID.\"},\"oid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili archive ID of the video being discussed.\"},\"oid_str\":{\"type\":\"string\",\"description\":\"String representation of the video archive ID.\"},\"mid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID of the comment author.\"},\"mid_str\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s account ID.\"},\"root\":{\"type\":\"integer\",\"description\":\"ID of the top-level comment for a reply. Observed top-level comments report 0.\"},\"root_str\":{\"type\":\"string\",\"description\":\"String representation of the root comment ID field.\"},\"parent\":{\"type\":\"integer\",\"description\":\"ID of the comment directly being replied to. Observed top-level comments report 0.\"},\"parent_str\":{\"type\":\"string\",\"description\":\"String representation of the parent comment ID field.\"},\"type\":{\"type\":\"integer\",\"description\":\"Bilibili code for the type of content being commented on.\"},\"ctime\":{\"type\":\"integer\",\"description\":\"Comment publication time as a Unix timestamp in seconds.\"},\"like\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the comment.\"},\"count\":{\"type\":\"integer\",\"description\":\"Reply count reported for this comment.\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Additional reply count reported by Bilibili. The included preview can contain fewer replies.\"},\"dialog\":{\"type\":\"integer\",\"description\":\"Conversation identifier reported for the reply.\"},\"dialog_str\":{\"type\":\"string\",\"description\":\"String representation of the conversation identifier field.\"},\"up_action\":{\"type\":\"object\",\"description\":\"Interactions attributed to the video uploader.\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader liked the comment.\"},\"reply\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader replied to the comment.\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"Public time and location labels displayed with the comment.\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"Time label displayed with the comment.\"},\"location\":{\"type\":\"string\",\"description\":\"Location label displayed by Bilibili for this comment, when present.\"}}},\"content\":{\"type\":\"object\",\"description\":\"Comment text and available rich content.\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"Text of the comment.\"},\"members\":{\"type\":\"array\",\"description\":\"Accounts mentioned in the comment text.\",\"items\":{\"type\":\"object\",\"description\":\"One account mentioned in the comment.\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"String representation of the mentioned account ID.\"},\"uname\":{\"type\":\"string\",\"description\":\"Display name of the mentioned account.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Avatar URL of the mentioned account.\"}}}},\"at_name_to_mid\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID for the mention name.\"},\"description\":\"Mention names mapped to numeric Bilibili account IDs.\"},\"at_name_to_mid_str\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"String representation of the Bilibili account ID for the mention name.\"},\"description\":\"Mention names mapped to string representations of Bilibili account IDs.\"},\"emote\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"description\":\"One emote referenced in the comment.\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"Identifier of the emote.\"},\"package_id\":{\"type\":\"integer\",\"description\":\"Identifier of the emote pack.\"},\"text\":{\"type\":\"string\",\"description\":\"Text code displayed for the emote.\"},\"url\":{\"type\":\"string\",\"description\":\"Image URL of the emote.\"},\"type\":{\"type\":\"integer\",\"description\":\"Emote type code reported by Bilibili.\"},\"mtime\":{\"type\":\"integer\",\"description\":\"Reported emote modification time as a Unix timestamp in seconds.\"},\"meta\":{\"type\":\"object\",\"description\":\"Additional emote metadata.\",\"properties\":{\"size\":{\"type\":\"integer\",\"description\":\"Display size code reported for the emote.\"}}}}},\"description\":\"Emote details keyed by the emote code in the comment text.\"}}},\"member\":{\"type\":\"object\",\"description\":\"Public profile details displayed for the comment author.\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s Bilibili account ID.\"},\"uname\":{\"type\":\"string\",\"description\":\"Display name of the comment author.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Avatar URL for the comment author.\"},\"sign\":{\"type\":\"string\",\"description\":\"Public profile introduction of the comment author.\"},\"level_info\":{\"type\":\"object\",\"description\":\"Public account level details.\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"Current account level displayed for the author.\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"Public verification details shown for the author.\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Verification type code reported for the author.\"},\"desc\":{\"type\":\"string\",\"description\":\"Verification description displayed for the author.\"}}},\"vip\":{\"type\":\"object\",\"description\":\"Public membership badge information shown for the author.\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"Membership type code shown for the author.\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"Membership status code shown for the author.\"}}},\"fans_detail\":{\"type\":[\"object\",\"null\"],\"description\":\"Public fan medal details when displayed for this author.\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed fan medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the fan medal.\"},\"level\":{\"type\":\"integer\",\"description\":\"Level of the displayed fan medal.\"}}},\"pendant\":{\"type\":\"object\",\"description\":\"Profile avatar pendant details shown for the author.\",\"properties\":{\"pid\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed avatar pendant.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the avatar pendant.\"},\"image\":{\"type\":\"string\",\"description\":\"Image URL of the avatar pendant.\"}}},\"nameplate\":{\"type\":\"object\",\"description\":\"Profile nameplate details shown for the author.\",\"properties\":{\"nid\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed nameplate.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the profile nameplate.\"},\"image\":{\"type\":\"string\",\"description\":\"Image URL for the profile nameplate.\"},\"level\":{\"type\":\"string\",\"description\":\"Display level of the profile nameplate.\"}}}}}}}}}}},\"top_replies\":{\"type\":[\"array\",\"null\"],\"description\":\"Pinned comments returned for this page, if available.\",\"items\":{\"type\":\"object\",\"description\":\"One comment from the pinned list.\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili comment ID.\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"String representation of the Bilibili comment ID.\"},\"oid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili archive ID of the video being discussed.\"},\"oid_str\":{\"type\":\"string\",\"description\":\"String representation of the video archive ID.\"},\"mid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID of the comment author.\"},\"mid_str\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s account ID.\"},\"root\":{\"type\":\"integer\",\"description\":\"ID of the top-level comment for a reply. Observed top-level comments report 0.\"},\"root_str\":{\"type\":\"string\",\"description\":\"String representation of the root comment ID field.\"},\"parent\":{\"type\":\"integer\",\"description\":\"ID of the comment directly being replied to. Observed top-level comments report 0.\"},\"parent_str\":{\"type\":\"string\",\"description\":\"String representation of the parent comment ID field.\"},\"type\":{\"type\":\"integer\",\"description\":\"Bilibili code for the type of content being commented on.\"},\"ctime\":{\"type\":\"integer\",\"description\":\"Comment publication time as a Unix timestamp in seconds.\"},\"like\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the comment.\"},\"count\":{\"type\":\"integer\",\"description\":\"Reply count reported for this comment.\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Additional reply count reported by Bilibili. The included preview can contain fewer replies.\"},\"up_action\":{\"type\":\"object\",\"description\":\"Interactions attributed to the video uploader.\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader liked the comment.\"},\"reply\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader replied to the comment.\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"Public time and location labels displayed with the comment.\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"Time label displayed with the comment.\"},\"location\":{\"type\":\"string\",\"description\":\"Location label displayed by Bilibili for this comment, when present.\"},\"is_up_top\":{\"type\":\"boolean\",\"description\":\"Whether the comment is shown as pinned by the video uploader.\"}}},\"content\":{\"type\":\"object\",\"description\":\"Comment text and available rich content.\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"Text of the comment.\"}}},\"member\":{\"type\":\"object\",\"description\":\"Public profile details displayed for the comment author.\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s Bilibili account ID.\"},\"uname\":{\"type\":\"string\",\"description\":\"Display name of the comment author.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Avatar URL for the comment author.\"},\"sign\":{\"type\":\"string\",\"description\":\"Public profile introduction of the comment author.\"},\"level_info\":{\"type\":\"object\",\"description\":\"Public account level details.\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"Current account level displayed for the author.\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"Public verification details shown for the author.\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Verification type code reported for the author.\"},\"desc\":{\"type\":\"string\",\"description\":\"Verification description displayed for the author.\"}}},\"vip\":{\"type\":\"object\",\"description\":\"Public membership badge information shown for the author.\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"Membership type code shown for the author.\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"Membership status code shown for the author.\"}}},\"fans_detail\":{\"type\":\"object\",\"description\":\"Public fan medal details when displayed for this author.\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed fan medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the fan medal.\"},\"level\":{\"type\":\"integer\",\"description\":\"Level of the displayed fan medal.\"}}}}}}}},\"top\":{\"type\":\"object\",\"description\":\"Pinned-comment slots returned by Bilibili.\",\"properties\":{\"upper\":{\"type\":[\"object\",\"null\"],\"description\":\"Comment pinned by the video uploader, when returned. It can also appear in top_replies.\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili comment ID.\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"String representation of the Bilibili comment ID.\"},\"oid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili archive ID of the video being discussed.\"},\"oid_str\":{\"type\":\"string\",\"description\":\"String representation of the video archive ID.\"},\"mid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID of the comment author.\"},\"mid_str\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s account ID.\"},\"root\":{\"type\":\"integer\",\"description\":\"ID of the top-level comment for a reply. Observed top-level comments report 0.\"},\"root_str\":{\"type\":\"string\",\"description\":\"String representation of the root comment ID field.\"},\"parent\":{\"type\":\"integer\",\"description\":\"ID of the comment directly being replied to. Observed top-level comments report 0.\"},\"parent_str\":{\"type\":\"string\",\"description\":\"String representation of the parent comment ID field.\"},\"type\":{\"type\":\"integer\",\"description\":\"Bilibili code for the type of content being commented on.\"},\"ctime\":{\"type\":\"integer\",\"description\":\"Comment publication time as a Unix timestamp in seconds.\"},\"like\":{\"type\":\"integer\",\"description\":\"Number of likes reported for the comment.\"},\"count\":{\"type\":\"integer\",\"description\":\"Reply count reported for this comment.\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Additional reply count reported by Bilibili. The included preview can contain fewer replies.\"},\"up_action\":{\"type\":\"object\",\"description\":\"Interactions attributed to the video uploader.\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader liked the comment.\"},\"reply\":{\"type\":\"boolean\",\"description\":\"Whether the video uploader replied to the comment.\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"Public time and location labels displayed with the comment.\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"Time label displayed with the comment.\"},\"location\":{\"type\":\"string\",\"description\":\"Location label displayed by Bilibili for this comment, when present.\"},\"is_up_top\":{\"type\":\"boolean\",\"description\":\"Whether the comment is shown as pinned by the video uploader.\"}}},\"content\":{\"type\":\"object\",\"description\":\"Comment text and available rich content.\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"Text of the comment.\"}}},\"member\":{\"type\":\"object\",\"description\":\"Public profile details displayed for the comment author.\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"String representation of the comment author&#39;s Bilibili account ID.\"},\"uname\":{\"type\":\"string\",\"description\":\"Display name of the comment author.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Avatar URL for the comment author.\"},\"sign\":{\"type\":\"string\",\"description\":\"Public profile introduction of the comment author.\"},\"level_info\":{\"type\":\"object\",\"description\":\"Public account level details.\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"Current account level displayed for the author.\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"Public verification details shown for the author.\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Verification type code reported for the author.\"},\"desc\":{\"type\":\"string\",\"description\":\"Verification description displayed for the author.\"}}},\"vip\":{\"type\":\"object\",\"description\":\"Public membership badge information shown for the author.\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"Membership type code shown for the author.\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"Membership status code shown for the author.\"}}},\"fans_detail\":{\"type\":\"object\",\"description\":\"Public fan medal details when displayed for this author.\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"Identifier of the displayed fan medal.\"},\"medal_name\":{\"type\":\"string\",\"description\":\"Display name of the fan medal.\"},\"level\":{\"type\":\"integer\",\"description\":\"Level of the displayed fan medal.\"}}}}}}}}},\"upper\":{\"type\":\"object\",\"description\":\"Public uploader identifier for the video.\",\"properties\":{\"mid\":{\"type\":\"integer\",\"description\":\"Numeric Bilibili account ID of the video uploader.\"}}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/bilibili/get-video-comment/v2\"")' />

<p>Retrieves comments for a Bilibili video identified by AID, with optional cursor pagination. Use it to review audience discussion, continue through comment pages, or support comment moderation and analysis.</p>

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for the API. |
| <code>aid</code> | query | <code>string</code> | Yes | - | Bilibili Archive ID (AID). |
| <code>cursor</code> | query | <code>string</code> | No | - | Pagination cursor. |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Video Comments (V2)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE
API Endpoint: BASE_URL + /api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/bilibili/video-comments-v2-en.json

Parameters:
- token (query): Access token for the API. (Required)
- aid (query): Bilibili Archive ID (AID). (Required)
- cursor (query): Pagination cursor.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/bilibili/video-comments-v2-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Bilibili's response for the requested video comments. |
| <code>data.code</code> | <code>integer</code> | Bilibili status code for the comment response. |
| <code>data.message</code> | <code>string</code> | Status message from Bilibili for the comment response. |
| <code>data.data</code> | <code>object</code> | Comment page, pagination information, and pinned comments when present. |
| <code>data.data.cursor</code> | <code>object</code> | Pagination state for the top-level comment list. |
| <code>data.data.cursor.is_begin</code> | <code>boolean</code> | Whether this is the first page of top-level comments. |
| <code>data.data.cursor.is_end</code> | <code>boolean</code> | Whether Bilibili marks this as the last comment page. |
| <code>data.data.cursor.prev</code> | <code>integer</code> | Previous-page numeric indicator reported by Bilibili. |
| <code>data.data.cursor.next</code> | <code>integer</code> | Next-page numeric indicator reported by Bilibili. |
| <code>data.data.cursor.all_count</code> | <code>integer</code> | Overall comment count reported with the pagination state. |
| <code>data.data.cursor.mode</code> | <code>integer</code> | Comment sorting mode reported for this page. |
| <code>data.data.cursor.mode_text</code> | <code>string</code> | Display text for the comment sorting mode. |
| <code>data.data.cursor.pagination_reply</code> | <code>object</code> | Continuation details for the next comment page. |
| <code>data.data.cursor.pagination_reply.next_offset</code> | <code>string</code> | Opaque continuation value. When is_end is false and this value is available, pass it unchanged as cursor with the same aid. |
| <code>data.data.replies</code> | <code>array</code> | Top-level comments in the returned page. |
| <code>data.data.replies[]</code> | <code>object</code> | One top-level comment. |
| <code>data.data.replies[].rpid</code> | <code>integer</code> | Numeric Bilibili comment ID. |
| <code>data.data.replies[].rpid_str</code> | <code>string</code> | String representation of the Bilibili comment ID. |
| <code>data.data.replies[].oid</code> | <code>integer</code> | Numeric Bilibili archive ID of the video being discussed. |
| <code>data.data.replies[].oid_str</code> | <code>string</code> | String representation of the video archive ID. |
| <code>data.data.replies[].mid</code> | <code>integer</code> | Numeric Bilibili account ID of the comment author. |
| <code>data.data.replies[].mid_str</code> | <code>string</code> | String representation of the comment author's account ID. |
| <code>data.data.replies[].root</code> | <code>integer</code> | ID of the top-level comment for a reply. Observed top-level comments report 0. |
| <code>data.data.replies[].root_str</code> | <code>string</code> | String representation of the root comment ID field. |
| <code>data.data.replies[].parent</code> | <code>integer</code> | ID of the comment directly being replied to. Observed top-level comments report 0. |
| <code>data.data.replies[].parent_str</code> | <code>string</code> | String representation of the parent comment ID field. |
| <code>data.data.replies[].type</code> | <code>integer</code> | Bilibili code for the type of content being commented on. |
| <code>data.data.replies[].ctime</code> | <code>integer</code> | Comment publication time as a Unix timestamp in seconds. |
| <code>data.data.replies[].like</code> | <code>integer</code> | Number of likes reported for the comment. |
| <code>data.data.replies[].count</code> | <code>integer</code> | Reply count reported for this comment. |
| <code>data.data.replies[].rcount</code> | <code>integer</code> | Additional reply count reported by Bilibili. The included preview can contain fewer replies. |
| <code>data.data.replies[].dialog</code> | <code>integer</code> | Conversation identifier reported for the reply. |
| <code>data.data.replies[].dialog_str</code> | <code>string</code> | String representation of the conversation identifier field. |
| <code>data.data.replies[].up_action</code> | <code>object</code> | Interactions attributed to the video uploader. |
| <code>data.data.replies[].up_action.like</code> | <code>boolean</code> | Whether the video uploader liked the comment. |
| <code>data.data.replies[].up_action.reply</code> | <code>boolean</code> | Whether the video uploader replied to the comment. |
| <code>data.data.replies[].reply_control</code> | <code>object</code> | Public time and location labels displayed with the comment. |
| <code>data.data.replies[].reply_control.time_desc</code> | <code>string</code> | Time label displayed with the comment. |
| <code>data.data.replies[].reply_control.location</code> | <code>string</code> | Location label displayed by Bilibili for this comment, when present. |
| <code>data.data.replies[].content</code> | <code>object</code> | Comment text and available rich content. |
| <code>data.data.replies[].content.message</code> | <code>string</code> | Text of the comment. |
| <code>data.data.replies[].content.members</code> | <code>array</code> | Accounts mentioned in the comment text. |
| <code>data.data.replies[].content.members[]</code> | <code>object</code> | One account mentioned in the comment. |
| <code>data.data.replies[].content.members[].mid</code> | <code>string</code> | String representation of the mentioned account ID. |
| <code>data.data.replies[].content.members[].uname</code> | <code>string</code> | Display name of the mentioned account. |
| <code>data.data.replies[].content.members[].avatar</code> | <code>string</code> | Avatar URL of the mentioned account. |
| <code>data.data.replies[].content.at_name_to_mid</code> | <code>object</code> | Mention names mapped to numeric Bilibili account IDs. |
| <code>data.data.replies[].content.at_name_to_mid.{key}</code> | <code>integer</code> | Numeric Bilibili account ID for the mention name. |
| <code>data.data.replies[].content.at_name_to_mid_str</code> | <code>object</code> | Mention names mapped to string representations of Bilibili account IDs. |
| <code>data.data.replies[].content.at_name_to_mid_str.{key}</code> | <code>string</code> | String representation of the Bilibili account ID for the mention name. |
| <code>data.data.replies[].content.emote</code> | <code>object</code> | Emote details keyed by the emote code in the comment text. |
| <code>data.data.replies[].content.emote.{key}</code> | <code>object</code> | One emote referenced in the comment. |
| <code>data.data.replies[].content.emote.{key}.id</code> | <code>integer</code> | Identifier of the emote. |
| <code>data.data.replies[].content.emote.{key}.package_id</code> | <code>integer</code> | Identifier of the emote pack. |
| <code>data.data.replies[].content.emote.{key}.text</code> | <code>string</code> | Text code displayed for the emote. |
| <code>data.data.replies[].content.emote.{key}.url</code> | <code>string</code> | Image URL of the emote. |
| <code>data.data.replies[].content.emote.{key}.type</code> | <code>integer</code> | Emote type code reported by Bilibili. |
| <code>data.data.replies[].content.emote.{key}.mtime</code> | <code>integer</code> | Reported emote modification time as a Unix timestamp in seconds. |
| <code>data.data.replies[].content.emote.{key}.meta</code> | <code>object</code> | Additional emote metadata. |
| <code>data.data.replies[].content.emote.{key}.meta.size</code> | <code>integer</code> | Display size code reported for the emote. |
| <code>data.data.replies[].content.pictures</code> | <code>array</code> | Images attached to the comment, when present. |
| <code>data.data.replies[].content.pictures[]</code> | <code>object</code> | One attached comment image. |
| <code>data.data.replies[].content.pictures[].img_src</code> | <code>string</code> | URL of the attached image. |
| <code>data.data.replies[].content.pictures[].img_width</code> | <code>integer</code> | Width reported for the attached image, in pixels. |
| <code>data.data.replies[].content.pictures[].img_height</code> | <code>integer</code> | Height reported for the attached image, in pixels. |
| <code>data.data.replies[].content.pictures[].img_size</code> | <code>number</code> | File size value reported for the attached image. |
| <code>data.data.replies[].member</code> | <code>object</code> | Public profile details displayed for the comment author. |
| <code>data.data.replies[].member.mid</code> | <code>string</code> | String representation of the comment author's Bilibili account ID. |
| <code>data.data.replies[].member.uname</code> | <code>string</code> | Display name of the comment author. |
| <code>data.data.replies[].member.avatar</code> | <code>string</code> | Avatar URL for the comment author. |
| <code>data.data.replies[].member.sign</code> | <code>string</code> | Public profile introduction of the comment author. |
| <code>data.data.replies[].member.level_info</code> | <code>object</code> | Public account level details. |
| <code>data.data.replies[].member.level_info.current_level</code> | <code>integer</code> | Current account level displayed for the author. |
| <code>data.data.replies[].member.official_verify</code> | <code>object</code> | Public verification details shown for the author. |
| <code>data.data.replies[].member.official_verify.type</code> | <code>integer</code> | Verification type code reported for the author. |
| <code>data.data.replies[].member.official_verify.desc</code> | <code>string</code> | Verification description displayed for the author. |
| <code>data.data.replies[].member.vip</code> | <code>object</code> | Public membership badge information shown for the author. |
| <code>data.data.replies[].member.vip.vipType</code> | <code>integer</code> | Membership type code shown for the author. |
| <code>data.data.replies[].member.vip.vipStatus</code> | <code>integer</code> | Membership status code shown for the author. |
| <code>data.data.replies[].member.fans_detail</code> | <code>object &#124; null</code> | Public fan medal details when displayed for this author. |
| <code>data.data.replies[].member.fans_detail.medal_id</code> | <code>integer</code> | Identifier of the displayed fan medal. |
| <code>data.data.replies[].member.fans_detail.medal_name</code> | <code>string</code> | Display name of the fan medal. |
| <code>data.data.replies[].member.fans_detail.level</code> | <code>integer</code> | Level of the displayed fan medal. |
| <code>data.data.replies[].member.pendant</code> | <code>object</code> | Profile avatar pendant details shown for the author. |
| <code>data.data.replies[].member.pendant.pid</code> | <code>integer</code> | Identifier of the displayed avatar pendant. |
| <code>data.data.replies[].member.pendant.name</code> | <code>string</code> | Display name of the avatar pendant. |
| <code>data.data.replies[].member.pendant.image</code> | <code>string</code> | Image URL of the avatar pendant. |
| <code>data.data.replies[].member.nameplate</code> | <code>object</code> | Profile nameplate details shown for the author. |
| <code>data.data.replies[].member.nameplate.nid</code> | <code>integer</code> | Identifier of the displayed nameplate. |
| <code>data.data.replies[].member.nameplate.name</code> | <code>string</code> | Display name of the profile nameplate. |
| <code>data.data.replies[].member.nameplate.image</code> | <code>string</code> | Image URL for the profile nameplate. |
| <code>data.data.replies[].member.nameplate.level</code> | <code>string</code> | Display level of the profile nameplate. |
| <code>data.data.replies[].replies</code> | <code>array &#124; null</code> | Preview of replies to this top-level comment. It can be null when no preview is included. |
| <code>data.data.replies[].replies[]</code> | <code>object</code> | One reply included in the preview. |
| <code>data.data.replies[].replies[].rpid</code> | <code>integer</code> | Numeric Bilibili comment ID. |
| <code>data.data.replies[].replies[].rpid_str</code> | <code>string</code> | String representation of the Bilibili comment ID. |
| <code>data.data.replies[].replies[].oid</code> | <code>integer</code> | Numeric Bilibili archive ID of the video being discussed. |
| <code>data.data.replies[].replies[].oid_str</code> | <code>string</code> | String representation of the video archive ID. |
| <code>data.data.replies[].replies[].mid</code> | <code>integer</code> | Numeric Bilibili account ID of the comment author. |
| <code>data.data.replies[].replies[].mid_str</code> | <code>string</code> | String representation of the comment author's account ID. |
| <code>data.data.replies[].replies[].root</code> | <code>integer</code> | ID of the top-level comment for a reply. Observed top-level comments report 0. |
| <code>data.data.replies[].replies[].root_str</code> | <code>string</code> | String representation of the root comment ID field. |
| <code>data.data.replies[].replies[].parent</code> | <code>integer</code> | ID of the comment directly being replied to. Observed top-level comments report 0. |
| <code>data.data.replies[].replies[].parent_str</code> | <code>string</code> | String representation of the parent comment ID field. |
| <code>data.data.replies[].replies[].type</code> | <code>integer</code> | Bilibili code for the type of content being commented on. |
| <code>data.data.replies[].replies[].ctime</code> | <code>integer</code> | Comment publication time as a Unix timestamp in seconds. |
| <code>data.data.replies[].replies[].like</code> | <code>integer</code> | Number of likes reported for the comment. |
| <code>data.data.replies[].replies[].count</code> | <code>integer</code> | Reply count reported for this comment. |
| <code>data.data.replies[].replies[].rcount</code> | <code>integer</code> | Additional reply count reported by Bilibili. The included preview can contain fewer replies. |
| <code>data.data.replies[].replies[].dialog</code> | <code>integer</code> | Conversation identifier reported for the reply. |
| <code>data.data.replies[].replies[].dialog_str</code> | <code>string</code> | String representation of the conversation identifier field. |
| <code>data.data.replies[].replies[].up_action</code> | <code>object</code> | Interactions attributed to the video uploader. |
| <code>data.data.replies[].replies[].up_action.like</code> | <code>boolean</code> | Whether the video uploader liked the comment. |
| <code>data.data.replies[].replies[].up_action.reply</code> | <code>boolean</code> | Whether the video uploader replied to the comment. |
| <code>data.data.replies[].replies[].reply_control</code> | <code>object</code> | Public time and location labels displayed with the comment. |
| <code>data.data.replies[].replies[].reply_control.time_desc</code> | <code>string</code> | Time label displayed with the comment. |
| <code>data.data.replies[].replies[].reply_control.location</code> | <code>string</code> | Location label displayed by Bilibili for this comment, when present. |
| <code>data.data.replies[].replies[].content</code> | <code>object</code> | Comment text and available rich content. |
| <code>data.data.replies[].replies[].content.message</code> | <code>string</code> | Text of the comment. |
| <code>data.data.replies[].replies[].content.members</code> | <code>array</code> | Accounts mentioned in the comment text. |
| <code>data.data.replies[].replies[].content.members[]</code> | <code>object</code> | One account mentioned in the comment. |
| <code>data.data.replies[].replies[].content.members[].mid</code> | <code>string</code> | String representation of the mentioned account ID. |
| <code>data.data.replies[].replies[].content.members[].uname</code> | <code>string</code> | Display name of the mentioned account. |
| <code>data.data.replies[].replies[].content.members[].avatar</code> | <code>string</code> | Avatar URL of the mentioned account. |
| <code>data.data.replies[].replies[].content.at_name_to_mid</code> | <code>object</code> | Mention names mapped to numeric Bilibili account IDs. |
| <code>data.data.replies[].replies[].content.at_name_to_mid.{key}</code> | <code>integer</code> | Numeric Bilibili account ID for the mention name. |
| <code>data.data.replies[].replies[].content.at_name_to_mid_str</code> | <code>object</code> | Mention names mapped to string representations of Bilibili account IDs. |
| <code>data.data.replies[].replies[].content.at_name_to_mid_str.{key}</code> | <code>string</code> | String representation of the Bilibili account ID for the mention name. |
| <code>data.data.replies[].replies[].content.emote</code> | <code>object</code> | Emote details keyed by the emote code in the comment text. |
| <code>data.data.replies[].replies[].content.emote.{key}</code> | <code>object</code> | One emote referenced in the comment. |
| <code>data.data.replies[].replies[].content.emote.{key}.id</code> | <code>integer</code> | Identifier of the emote. |
| <code>data.data.replies[].replies[].content.emote.{key}.package_id</code> | <code>integer</code> | Identifier of the emote pack. |
| <code>data.data.replies[].replies[].content.emote.{key}.text</code> | <code>string</code> | Text code displayed for the emote. |
| <code>data.data.replies[].replies[].content.emote.{key}.url</code> | <code>string</code> | Image URL of the emote. |
| <code>data.data.replies[].replies[].content.emote.{key}.type</code> | <code>integer</code> | Emote type code reported by Bilibili. |
| <code>data.data.replies[].replies[].content.emote.{key}.mtime</code> | <code>integer</code> | Reported emote modification time as a Unix timestamp in seconds. |
| <code>data.data.replies[].replies[].content.emote.{key}.meta</code> | <code>object</code> | Additional emote metadata. |
| <code>data.data.replies[].replies[].content.emote.{key}.meta.size</code> | <code>integer</code> | Display size code reported for the emote. |
| <code>data.data.replies[].replies[].member</code> | <code>object</code> | Public profile details displayed for the comment author. |
| <code>data.data.replies[].replies[].member.mid</code> | <code>string</code> | String representation of the comment author's Bilibili account ID. |
| <code>data.data.replies[].replies[].member.uname</code> | <code>string</code> | Display name of the comment author. |
| <code>data.data.replies[].replies[].member.avatar</code> | <code>string</code> | Avatar URL for the comment author. |
| <code>data.data.replies[].replies[].member.sign</code> | <code>string</code> | Public profile introduction of the comment author. |
| <code>data.data.replies[].replies[].member.level_info</code> | <code>object</code> | Public account level details. |
| <code>data.data.replies[].replies[].member.level_info.current_level</code> | <code>integer</code> | Current account level displayed for the author. |
| <code>data.data.replies[].replies[].member.official_verify</code> | <code>object</code> | Public verification details shown for the author. |
| <code>data.data.replies[].replies[].member.official_verify.type</code> | <code>integer</code> | Verification type code reported for the author. |
| <code>data.data.replies[].replies[].member.official_verify.desc</code> | <code>string</code> | Verification description displayed for the author. |
| <code>data.data.replies[].replies[].member.vip</code> | <code>object</code> | Public membership badge information shown for the author. |
| <code>data.data.replies[].replies[].member.vip.vipType</code> | <code>integer</code> | Membership type code shown for the author. |
| <code>data.data.replies[].replies[].member.vip.vipStatus</code> | <code>integer</code> | Membership status code shown for the author. |
| <code>data.data.replies[].replies[].member.fans_detail</code> | <code>object &#124; null</code> | Public fan medal details when displayed for this author. |
| <code>data.data.replies[].replies[].member.fans_detail.medal_id</code> | <code>integer</code> | Identifier of the displayed fan medal. |
| <code>data.data.replies[].replies[].member.fans_detail.medal_name</code> | <code>string</code> | Display name of the fan medal. |
| <code>data.data.replies[].replies[].member.fans_detail.level</code> | <code>integer</code> | Level of the displayed fan medal. |
| <code>data.data.replies[].replies[].member.pendant</code> | <code>object</code> | Profile avatar pendant details shown for the author. |
| <code>data.data.replies[].replies[].member.pendant.pid</code> | <code>integer</code> | Identifier of the displayed avatar pendant. |
| <code>data.data.replies[].replies[].member.pendant.name</code> | <code>string</code> | Display name of the avatar pendant. |
| <code>data.data.replies[].replies[].member.pendant.image</code> | <code>string</code> | Image URL of the avatar pendant. |
| <code>data.data.replies[].replies[].member.nameplate</code> | <code>object</code> | Profile nameplate details shown for the author. |
| <code>data.data.replies[].replies[].member.nameplate.nid</code> | <code>integer</code> | Identifier of the displayed nameplate. |
| <code>data.data.replies[].replies[].member.nameplate.name</code> | <code>string</code> | Display name of the profile nameplate. |
| <code>data.data.replies[].replies[].member.nameplate.image</code> | <code>string</code> | Image URL for the profile nameplate. |
| <code>data.data.replies[].replies[].member.nameplate.level</code> | <code>string</code> | Display level of the profile nameplate. |
| <code>data.data.top_replies</code> | <code>array &#124; null</code> | Pinned comments returned for this page, if available. |
| <code>data.data.top_replies[]</code> | <code>object</code> | One comment from the pinned list. |
| <code>data.data.top_replies[].rpid</code> | <code>integer</code> | Numeric Bilibili comment ID. |
| <code>data.data.top_replies[].rpid_str</code> | <code>string</code> | String representation of the Bilibili comment ID. |
| <code>data.data.top_replies[].oid</code> | <code>integer</code> | Numeric Bilibili archive ID of the video being discussed. |
| <code>data.data.top_replies[].oid_str</code> | <code>string</code> | String representation of the video archive ID. |
| <code>data.data.top_replies[].mid</code> | <code>integer</code> | Numeric Bilibili account ID of the comment author. |
| <code>data.data.top_replies[].mid_str</code> | <code>string</code> | String representation of the comment author's account ID. |
| <code>data.data.top_replies[].root</code> | <code>integer</code> | ID of the top-level comment for a reply. Observed top-level comments report 0. |
| <code>data.data.top_replies[].root_str</code> | <code>string</code> | String representation of the root comment ID field. |
| <code>data.data.top_replies[].parent</code> | <code>integer</code> | ID of the comment directly being replied to. Observed top-level comments report 0. |
| <code>data.data.top_replies[].parent_str</code> | <code>string</code> | String representation of the parent comment ID field. |
| <code>data.data.top_replies[].type</code> | <code>integer</code> | Bilibili code for the type of content being commented on. |
| <code>data.data.top_replies[].ctime</code> | <code>integer</code> | Comment publication time as a Unix timestamp in seconds. |
| <code>data.data.top_replies[].like</code> | <code>integer</code> | Number of likes reported for the comment. |
| <code>data.data.top_replies[].count</code> | <code>integer</code> | Reply count reported for this comment. |
| <code>data.data.top_replies[].rcount</code> | <code>integer</code> | Additional reply count reported by Bilibili. The included preview can contain fewer replies. |
| <code>data.data.top_replies[].up_action</code> | <code>object</code> | Interactions attributed to the video uploader. |
| <code>data.data.top_replies[].up_action.like</code> | <code>boolean</code> | Whether the video uploader liked the comment. |
| <code>data.data.top_replies[].up_action.reply</code> | <code>boolean</code> | Whether the video uploader replied to the comment. |
| <code>data.data.top_replies[].reply_control</code> | <code>object</code> | Public time and location labels displayed with the comment. |
| <code>data.data.top_replies[].reply_control.time_desc</code> | <code>string</code> | Time label displayed with the comment. |
| <code>data.data.top_replies[].reply_control.location</code> | <code>string</code> | Location label displayed by Bilibili for this comment, when present. |
| <code>data.data.top_replies[].reply_control.is_up_top</code> | <code>boolean</code> | Whether the comment is shown as pinned by the video uploader. |
| <code>data.data.top_replies[].content</code> | <code>object</code> | Comment text and available rich content. |
| <code>data.data.top_replies[].content.message</code> | <code>string</code> | Text of the comment. |
| <code>data.data.top_replies[].member</code> | <code>object</code> | Public profile details displayed for the comment author. |
| <code>data.data.top_replies[].member.mid</code> | <code>string</code> | String representation of the comment author's Bilibili account ID. |
| <code>data.data.top_replies[].member.uname</code> | <code>string</code> | Display name of the comment author. |
| <code>data.data.top_replies[].member.avatar</code> | <code>string</code> | Avatar URL for the comment author. |
| <code>data.data.top_replies[].member.sign</code> | <code>string</code> | Public profile introduction of the comment author. |
| <code>data.data.top_replies[].member.level_info</code> | <code>object</code> | Public account level details. |
| <code>data.data.top_replies[].member.level_info.current_level</code> | <code>integer</code> | Current account level displayed for the author. |
| <code>data.data.top_replies[].member.official_verify</code> | <code>object</code> | Public verification details shown for the author. |
| <code>data.data.top_replies[].member.official_verify.type</code> | <code>integer</code> | Verification type code reported for the author. |
| <code>data.data.top_replies[].member.official_verify.desc</code> | <code>string</code> | Verification description displayed for the author. |
| <code>data.data.top_replies[].member.vip</code> | <code>object</code> | Public membership badge information shown for the author. |
| <code>data.data.top_replies[].member.vip.vipType</code> | <code>integer</code> | Membership type code shown for the author. |
| <code>data.data.top_replies[].member.vip.vipStatus</code> | <code>integer</code> | Membership status code shown for the author. |
| <code>data.data.top_replies[].member.fans_detail</code> | <code>object</code> | Public fan medal details when displayed for this author. |
| <code>data.data.top_replies[].member.fans_detail.medal_id</code> | <code>integer</code> | Identifier of the displayed fan medal. |
| <code>data.data.top_replies[].member.fans_detail.medal_name</code> | <code>string</code> | Display name of the fan medal. |
| <code>data.data.top_replies[].member.fans_detail.level</code> | <code>integer</code> | Level of the displayed fan medal. |
| <code>data.data.top</code> | <code>object</code> | Pinned-comment slots returned by Bilibili. |
| <code>data.data.top.upper</code> | <code>object &#124; null</code> | Comment pinned by the video uploader, when returned. It can also appear in top_replies. |
| <code>data.data.top.upper.rpid</code> | <code>integer</code> | Numeric Bilibili comment ID. |
| <code>data.data.top.upper.rpid_str</code> | <code>string</code> | String representation of the Bilibili comment ID. |
| <code>data.data.top.upper.oid</code> | <code>integer</code> | Numeric Bilibili archive ID of the video being discussed. |
| <code>data.data.top.upper.oid_str</code> | <code>string</code> | String representation of the video archive ID. |
| <code>data.data.top.upper.mid</code> | <code>integer</code> | Numeric Bilibili account ID of the comment author. |
| <code>data.data.top.upper.mid_str</code> | <code>string</code> | String representation of the comment author's account ID. |
| <code>data.data.top.upper.root</code> | <code>integer</code> | ID of the top-level comment for a reply. Observed top-level comments report 0. |
| <code>data.data.top.upper.root_str</code> | <code>string</code> | String representation of the root comment ID field. |
| <code>data.data.top.upper.parent</code> | <code>integer</code> | ID of the comment directly being replied to. Observed top-level comments report 0. |
| <code>data.data.top.upper.parent_str</code> | <code>string</code> | String representation of the parent comment ID field. |
| <code>data.data.top.upper.type</code> | <code>integer</code> | Bilibili code for the type of content being commented on. |
| <code>data.data.top.upper.ctime</code> | <code>integer</code> | Comment publication time as a Unix timestamp in seconds. |
| <code>data.data.top.upper.like</code> | <code>integer</code> | Number of likes reported for the comment. |
| <code>data.data.top.upper.count</code> | <code>integer</code> | Reply count reported for this comment. |
| <code>data.data.top.upper.rcount</code> | <code>integer</code> | Additional reply count reported by Bilibili. The included preview can contain fewer replies. |
| <code>data.data.top.upper.up_action</code> | <code>object</code> | Interactions attributed to the video uploader. |
| <code>data.data.top.upper.up_action.like</code> | <code>boolean</code> | Whether the video uploader liked the comment. |
| <code>data.data.top.upper.up_action.reply</code> | <code>boolean</code> | Whether the video uploader replied to the comment. |
| <code>data.data.top.upper.reply_control</code> | <code>object</code> | Public time and location labels displayed with the comment. |
| <code>data.data.top.upper.reply_control.time_desc</code> | <code>string</code> | Time label displayed with the comment. |
| <code>data.data.top.upper.reply_control.location</code> | <code>string</code> | Location label displayed by Bilibili for this comment, when present. |
| <code>data.data.top.upper.reply_control.is_up_top</code> | <code>boolean</code> | Whether the comment is shown as pinned by the video uploader. |
| <code>data.data.top.upper.content</code> | <code>object</code> | Comment text and available rich content. |
| <code>data.data.top.upper.content.message</code> | <code>string</code> | Text of the comment. |
| <code>data.data.top.upper.member</code> | <code>object</code> | Public profile details displayed for the comment author. |
| <code>data.data.top.upper.member.mid</code> | <code>string</code> | String representation of the comment author's Bilibili account ID. |
| <code>data.data.top.upper.member.uname</code> | <code>string</code> | Display name of the comment author. |
| <code>data.data.top.upper.member.avatar</code> | <code>string</code> | Avatar URL for the comment author. |
| <code>data.data.top.upper.member.sign</code> | <code>string</code> | Public profile introduction of the comment author. |
| <code>data.data.top.upper.member.level_info</code> | <code>object</code> | Public account level details. |
| <code>data.data.top.upper.member.level_info.current_level</code> | <code>integer</code> | Current account level displayed for the author. |
| <code>data.data.top.upper.member.official_verify</code> | <code>object</code> | Public verification details shown for the author. |
| <code>data.data.top.upper.member.official_verify.type</code> | <code>integer</code> | Verification type code reported for the author. |
| <code>data.data.top.upper.member.official_verify.desc</code> | <code>string</code> | Verification description displayed for the author. |
| <code>data.data.top.upper.member.vip</code> | <code>object</code> | Public membership badge information shown for the author. |
| <code>data.data.top.upper.member.vip.vipType</code> | <code>integer</code> | Membership type code shown for the author. |
| <code>data.data.top.upper.member.vip.vipStatus</code> | <code>integer</code> | Membership status code shown for the author. |
| <code>data.data.top.upper.member.fans_detail</code> | <code>object</code> | Public fan medal details when displayed for this author. |
| <code>data.data.top.upper.member.fans_detail.medal_id</code> | <code>integer</code> | Identifier of the displayed fan medal. |
| <code>data.data.top.upper.member.fans_detail.medal_name</code> | <code>string</code> | Display name of the fan medal. |
| <code>data.data.top.upper.member.fans_detail.level</code> | <code>integer</code> | Level of the displayed fan medal. |
| <code>data.data.upper</code> | <code>object</code> | Public uploader identifier for the video. |
| <code>data.data.upper.mid</code> | <code>integer</code> | Numeric Bilibili account ID of the video uploader. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/bilibili/get-video-comment/v2\"")' />

