---
title: "Bilibili 動画コメント API (V2)"
description: "AIDで識別されたBilibili動画のコメントを取得します。最新または人気順にソートし、オプションでカーソルページングを行います。視聴者の議論をレビューしたり、コメントページを遡ったり、コメントのモデレーションと分析をサポートするために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# Bilibili 動画コメント API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/bilibili/get-video-comment/v2\"")'
  :summary='JSON.parse("\"動画コメント (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/bilibili/video-comments-v2-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"APIのアクセストークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"aid\",\"in\":\"query\",\"description\":\"BilibiliアーカイブID (AID)。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"同じAIDとソート順に対する前回の応答からのページングカーソル。ソート順を変更する場合は最初のページから開始するために省略してください。\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"sortBy\",\"in\":\"query\",\"description\":\"最新のコメントまたはBilibiliの人気順でソートします。デフォルトは最新です。\\n利用可能な値：\\n- `newest`: 最新のコメントからソートします。\\n- `hot`: Bilibiliの人気順でランク付けされたコメント。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"newest\",\"description\":\"Bilibili動画コメントのソート順。\",\"enum\":[\"newest\",\"hot\"]}}]")'
  :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の応答。\",\"properties\":{\"code\":{\"type\":\"integer\",\"description\":\"コメント応答のBilibiliステータスコード。\"},\"message\":{\"type\":\"string\",\"description\":\"コメント応答からのBilibiliからのステータスメッセージ。\"},\"data\":{\"type\":\"object\",\"description\":\"コメントページ、ページング情報、およびピンされたコメント（存在する場合）。\",\"properties\":{\"cursor\":{\"type\":\"object\",\"description\":\"トップレベルコメントリストのページング状態。\",\"properties\":{\"is_begin\":{\"type\":\"boolean\",\"description\":\"これがトップレベルコメントの最初のページかどうか。\"},\"is_end\":{\"type\":\"boolean\",\"description\":\"Bilibiliがこれを最後のコメントページとしてマークしているかどうか。\"},\"prev\":{\"type\":\"integer\",\"description\":\"Bilibiliから報告される前のページの数値インジケータ。\"},\"next\":{\"type\":\"integer\",\"description\":\"Bilibiliから報告される次のページの数値インジケータ。\"},\"all_count\":{\"type\":\"integer\",\"description\":\"ページング状態と共に報告される全コメント数。\"},\"mode\":{\"type\":\"integer\",\"description\":\"このページのコメントソートモードが報告される。\"},\"mode_text\":{\"type\":\"string\",\"description\":\"コメントソートモードの表示テキスト。\"},\"pagination_reply\":{\"type\":\"object\",\"description\":\"次のコメントページの続きの詳細。\",\"properties\":{\"next_offset\":{\"type\":\"string\",\"description\":\"不透明な続きの値。when is_endがfalseでこの値が利用可能な場合、同じaidとsortByを持つカーソルとして変更なく渡します。\"}}}}},\"replies\":{\"type\":\"array\",\"description\":\"返されるページ内のトップレベルコメント。\",\"items\":{\"type\":\"object\",\"description\":\"トップレベルのコメント一つ。\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"数値のBilibiliコメントID。\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"BilibiliコメントIDの文字列表現。\"},\"oid\":{\"type\":\"integer\",\"description\":\"議論されている動画の数値のBilibiliアーカイブID。\"},\"oid_str\":{\"type\":\"string\",\"description\":\"動画アーカイブIDの文字列表現。\"},\"mid\":{\"type\":\"integer\",\"description\":\"コメント作者の数値のBilibiliアカウントID。\"},\"mid_str\":{\"type\":\"string\",\"description\":\"コメント作者のアカウントIDの文字列表現。\"},\"root\":{\"type\":\"integer\",\"description\":\"返信のトップレベルコメントのID。トップレベルコメントは0を報告する。\"},\"root_str\":{\"type\":\"string\",\"description\":\"ルートコメントIDフィールドの文字列表現。\"},\"parent\":{\"type\":\"integer\",\"description\":\"直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。\"},\"parent_str\":{\"type\":\"string\",\"description\":\"親コメントIDフィールドの文字列表現。\"},\"type\":{\"type\":\"integer\",\"description\":\"コメントされているコンテンツの種類に対応するBilibiliコード。\"},\"ctime\":{\"type\":\"integer\",\"description\":\"コメントの公開時間がUnixタイムスタンプ（秒）で返されます。\"},\"like\":{\"type\":\"integer\",\"description\":\"コメントのいいね数（報告値）。\"},\"count\":{\"type\":\"integer\",\"description\":\"このコメントに対する返信数の報告値。\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。\"},\"dialog\":{\"type\":\"integer\",\"description\":\"返信に対する会話識別子の報告値。\"},\"dialog_str\":{\"type\":\"string\",\"description\":\"会話識別子フィールドの文字列表現。\"},\"up_action\":{\"type\":\"object\",\"description\":\"動画アップロード者による相互作用の情報。\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントを気に入ったかどうか。\"},\"reply\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントに返信したかどうか。\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"コメントに表示される公開時間と場所のラベル。\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"コメントに表示される時間ラベル。\"},\"location\":{\"type\":\"string\",\"description\":\"Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。\"}}},\"content\":{\"type\":\"object\",\"description\":\"コメントテキストと利用可能なリッチコンテンツ。\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"コメントのテキスト。\"},\"members\":{\"type\":\"array\",\"description\":\"コメントテキストに記載されているアカウント。\",\"items\":{\"type\":\"object\",\"description\":\"コメントに記載されている一つのアカウント。\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"記載されているアカウントIDの文字列表現。\"},\"uname\":{\"type\":\"string\",\"description\":\"メンション先アカウントの表示名。\"},\"avatar\":{\"type\":\"string\",\"description\":\"メンション先アカウントのプロフィール画像 URL。\"}}}},\"at_name_to_mid\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"言及名に対応する数値のBilibiliアカウントID。\"},\"description\":\"言及名が対応する数値のBilibiliアカウントIDにマッピングされること。\"},\"at_name_to_mid_str\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"言及名に対応するBilibiliアカウントIDの文字列表現。\"},\"description\":\"言及名がBilibiliアカウントIDの文字列表現にマッピングされること。\"},\"emote\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"description\":\"コメントで参照されている一つのエモート。\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"エモートの識別子。\"},\"package_id\":{\"type\":\"integer\",\"description\":\"エモートパックの識別子。\"},\"text\":{\"type\":\"string\",\"description\":\"エモートに表示されるテキストコード。\"},\"url\":{\"type\":\"string\",\"description\":\"エモートの画像URL。\"},\"type\":{\"type\":\"integer\",\"description\":\"Bilibiliが報告したエモートのタイプコード。\"},\"mtime\":{\"type\":\"integer\",\"description\":\"Unixタイムスタンプ（秒）で表されたエモートの変更時間。\"},\"meta\":{\"type\":\"object\",\"description\":\"エモートの追加メタデータ。\",\"properties\":{\"size\":{\"type\":\"integer\",\"description\":\"エモートの表示サイズコード。\"}}}}},\"description\":\"コメントテキスト内のエモートコードに基づくエモートの詳細。\"},\"pictures\":{\"type\":\"array\",\"description\":\"コメントに添付されている画像（存在する場合）。\",\"items\":{\"type\":\"object\",\"description\":\"添付されているコメント画像一枚。\",\"properties\":{\"img_src\":{\"type\":\"string\",\"description\":\"添付画像の URL。\"},\"img_width\":{\"type\":\"integer\",\"description\":\"添付画像の幅（ピクセル）。\"},\"img_height\":{\"type\":\"integer\",\"description\":\"添付画像の高さ（ピクセル）。\"},\"img_size\":{\"type\":\"number\",\"description\":\"添付画像のファイルサイズ値。\"}}}}}},\"member\":{\"type\":\"object\",\"description\":\"コメント投稿者が表示される公開プロフィールの詳細。\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"コメント投稿者のBilibiliアカウントIDの文字列表現。\"},\"uname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"avatar\":{\"type\":\"string\",\"description\":\"コメント投稿者のプロフィール画像 URL。\"},\"sign\":{\"type\":\"string\",\"description\":\"コメント投稿者の公開プロフィール紹介。\"},\"level_info\":{\"type\":\"object\",\"description\":\"公開アカウントレベルの詳細。\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"投稿者の現在のアカウントレベル。\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"投稿者の公開検証詳細。\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"投稿者の検証タイプコード。\"},\"desc\":{\"type\":\"string\",\"description\":\"投稿者の検証説明。\"}}},\"vip\":{\"type\":\"object\",\"description\":\"投稿者の公開メンバーシップバッジ情報。\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップタイプコード。\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップステータスコード。\"}}},\"fans_detail\":{\"type\":[\"object\",\"null\"],\"description\":\"この投稿者に表示される公開ファンメダルの詳細。\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"表示されるファンメダルの識別子。\"},\"medal_name\":{\"type\":\"string\",\"description\":\"ファンメダルの表示名。\"},\"level\":{\"type\":\"integer\",\"description\":\"表示されているファンメダルのレベル。\"}}},\"pendant\":{\"type\":\"object\",\"description\":\"投稿者のプロフィールアバターペンダントの詳細。\",\"properties\":{\"pid\":{\"type\":\"integer\",\"description\":\"表示されるアバターペンダントの識別子。\"},\"name\":{\"type\":\"string\",\"description\":\"プロフィール画像の装飾の表示名。\"},\"image\":{\"type\":\"string\",\"description\":\"プロフィール画像の装飾の画像 URL。\"}}},\"nameplate\":{\"type\":\"object\",\"description\":\"著者のプロフィール名板の詳細。\",\"properties\":{\"nid\":{\"type\":\"integer\",\"description\":\"表示されるプロフィール名板の識別子。\"},\"name\":{\"type\":\"string\",\"description\":\"プロフィール名板の表示名。\"},\"image\":{\"type\":\"string\",\"description\":\"プロフィール名板の画像URL。\"},\"level\":{\"type\":\"string\",\"description\":\"プロフィール名板の表示レベル。\"}}}}},\"replies\":{\"type\":[\"array\",\"null\"],\"description\":\"このトップレベルコメントへの返信のプレビュー。プレビューが含まれていない場合はnullとなる。\",\"items\":{\"type\":\"object\",\"description\":\"プレビューに含まれる一つの返信。\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"数値のBilibiliコメントID。\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"BilibiliコメントIDの文字列表現。\"},\"oid\":{\"type\":\"integer\",\"description\":\"議論されている動画の数値のBilibiliアーカイブID。\"},\"oid_str\":{\"type\":\"string\",\"description\":\"動画アーカイブIDの文字列表現。\"},\"mid\":{\"type\":\"integer\",\"description\":\"コメント作者の数値のBilibiliアカウントID。\"},\"mid_str\":{\"type\":\"string\",\"description\":\"コメント作者のアカウントIDの文字列表現。\"},\"root\":{\"type\":\"integer\",\"description\":\"返信のトップレベルコメントのID。トップレベルコメントは0を報告する。\"},\"root_str\":{\"type\":\"string\",\"description\":\"ルートコメントIDフィールドの文字列表現。\"},\"parent\":{\"type\":\"integer\",\"description\":\"直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。\"},\"parent_str\":{\"type\":\"string\",\"description\":\"親コメントIDフィールドの文字列表現。\"},\"type\":{\"type\":\"integer\",\"description\":\"コメントされているコンテンツの種類に対応するBilibiliコード。\"},\"ctime\":{\"type\":\"integer\",\"description\":\"コメントの公開時間がUnixタイムスタンプ（秒）で返されます。\"},\"like\":{\"type\":\"integer\",\"description\":\"コメントのいいね数（報告値）。\"},\"count\":{\"type\":\"integer\",\"description\":\"このコメントに対する返信数の報告値。\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。\"},\"dialog\":{\"type\":\"integer\",\"description\":\"返信に対する会話識別子の報告値。\"},\"dialog_str\":{\"type\":\"string\",\"description\":\"会話識別子フィールドの文字列表現。\"},\"up_action\":{\"type\":\"object\",\"description\":\"動画アップロード者による相互作用の情報。\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントを気に入ったかどうか。\"},\"reply\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントに返信したかどうか。\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"コメントに表示される公開時間と場所のラベル。\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"コメントに表示される時間ラベル。\"},\"location\":{\"type\":\"string\",\"description\":\"Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。\"}}},\"content\":{\"type\":\"object\",\"description\":\"コメントテキストと利用可能なリッチコンテンツ。\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"コメントのテキスト。\"},\"members\":{\"type\":\"array\",\"description\":\"コメントテキストに記載されているアカウント。\",\"items\":{\"type\":\"object\",\"description\":\"コメントに記載されている一つのアカウント。\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"記載されているアカウントIDの文字列表現。\"},\"uname\":{\"type\":\"string\",\"description\":\"メンション先アカウントの表示名。\"},\"avatar\":{\"type\":\"string\",\"description\":\"メンション先アカウントのプロフィール画像 URL。\"}}}},\"at_name_to_mid\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"言及名に対応する数値のBilibiliアカウントID。\"},\"description\":\"言及名が対応する数値のBilibiliアカウントIDにマッピングされること。\"},\"at_name_to_mid_str\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"言及名に対応するBilibiliアカウントIDの文字列表現。\"},\"description\":\"言及名がBilibiliアカウントIDの文字列表現にマッピングされること。\"},\"emote\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"description\":\"コメントで参照されている一つのエモート。\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"エモートの識別子。\"},\"package_id\":{\"type\":\"integer\",\"description\":\"エモートパックの識別子。\"},\"text\":{\"type\":\"string\",\"description\":\"エモートに表示されるテキストコード。\"},\"url\":{\"type\":\"string\",\"description\":\"エモートの画像URL。\"},\"type\":{\"type\":\"integer\",\"description\":\"Bilibiliが報告したエモートのタイプコード。\"},\"mtime\":{\"type\":\"integer\",\"description\":\"Unixタイムスタンプ（秒）で表されたエモートの変更時間。\"},\"meta\":{\"type\":\"object\",\"description\":\"エモートの追加メタデータ。\",\"properties\":{\"size\":{\"type\":\"integer\",\"description\":\"エモートの表示サイズコード。\"}}}}},\"description\":\"コメントテキスト内のエモートコードに基づくエモートの詳細。\"}}},\"member\":{\"type\":\"object\",\"description\":\"コメント投稿者が表示される公開プロフィールの詳細。\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"コメント投稿者のBilibiliアカウントIDの文字列表現。\"},\"uname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"avatar\":{\"type\":\"string\",\"description\":\"コメント投稿者のプロフィール画像 URL。\"},\"sign\":{\"type\":\"string\",\"description\":\"コメント投稿者の公開プロフィール紹介。\"},\"level_info\":{\"type\":\"object\",\"description\":\"公開アカウントレベルの詳細。\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"投稿者の現在のアカウントレベル。\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"投稿者の公開検証詳細。\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"投稿者の検証タイプコード。\"},\"desc\":{\"type\":\"string\",\"description\":\"投稿者の検証説明。\"}}},\"vip\":{\"type\":\"object\",\"description\":\"投稿者の公開メンバーシップバッジ情報。\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップタイプコード。\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップステータスコード。\"}}},\"fans_detail\":{\"type\":[\"object\",\"null\"],\"description\":\"この投稿者に表示される公開ファンメダルの詳細。\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"表示されるファンメダルの識別子。\"},\"medal_name\":{\"type\":\"string\",\"description\":\"ファンメダルの表示名。\"},\"level\":{\"type\":\"integer\",\"description\":\"表示されているファンメダルのレベル。\"}}},\"pendant\":{\"type\":\"object\",\"description\":\"投稿者のプロフィールアバターペンダントの詳細。\",\"properties\":{\"pid\":{\"type\":\"integer\",\"description\":\"表示されるアバターペンダントの識別子。\"},\"name\":{\"type\":\"string\",\"description\":\"プロフィール画像の装飾の表示名。\"},\"image\":{\"type\":\"string\",\"description\":\"プロフィール画像の装飾の画像 URL。\"}}},\"nameplate\":{\"type\":\"object\",\"description\":\"著者のプロフィール名板の詳細。\",\"properties\":{\"nid\":{\"type\":\"integer\",\"description\":\"表示されるプロフィール名板の識別子。\"},\"name\":{\"type\":\"string\",\"description\":\"プロフィール名板の表示名。\"},\"image\":{\"type\":\"string\",\"description\":\"プロフィール名板の画像URL。\"},\"level\":{\"type\":\"string\",\"description\":\"プロフィール名板の表示レベル。\"}}}}}}}}}}},\"top_replies\":{\"type\":[\"array\",\"null\"],\"description\":\"このページで返されるピンされたコメント（利用可能な場合）。\",\"items\":{\"type\":\"object\",\"description\":\"ピンされたリストからの一つのコメント。\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"数値のBilibiliコメントID。\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"BilibiliコメントIDの文字列表現。\"},\"oid\":{\"type\":\"integer\",\"description\":\"議論されている動画の数値のBilibiliアーカイブID。\"},\"oid_str\":{\"type\":\"string\",\"description\":\"動画アーカイブIDの文字列表現。\"},\"mid\":{\"type\":\"integer\",\"description\":\"コメント作者の数値のBilibiliアカウントID。\"},\"mid_str\":{\"type\":\"string\",\"description\":\"コメント作者のアカウントIDの文字列表現。\"},\"root\":{\"type\":\"integer\",\"description\":\"返信のトップレベルコメントのID。トップレベルコメントは0を報告する。\"},\"root_str\":{\"type\":\"string\",\"description\":\"ルートコメントIDフィールドの文字列表現。\"},\"parent\":{\"type\":\"integer\",\"description\":\"直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。\"},\"parent_str\":{\"type\":\"string\",\"description\":\"親コメントIDフィールドの文字列表現。\"},\"type\":{\"type\":\"integer\",\"description\":\"コメントされているコンテンツの種類に対応するBilibiliコード。\"},\"ctime\":{\"type\":\"integer\",\"description\":\"コメントの公開時間がUnixタイムスタンプ（秒）で返されます。\"},\"like\":{\"type\":\"integer\",\"description\":\"コメントのいいね数（報告値）。\"},\"count\":{\"type\":\"integer\",\"description\":\"このコメントに対する返信数の報告値。\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。\"},\"up_action\":{\"type\":\"object\",\"description\":\"動画アップロード者による相互作用の情報。\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントを気に入ったかどうか。\"},\"reply\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントに返信したかどうか。\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"コメントに表示される公開時間と場所のラベル。\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"コメントに表示される時間ラベル。\"},\"location\":{\"type\":\"string\",\"description\":\"Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。\"},\"is_up_top\":{\"type\":\"boolean\",\"description\":\"ビデオアップロード者がコメントをピンに表示しているかどうか。\"}}},\"content\":{\"type\":\"object\",\"description\":\"コメントテキストと利用可能なリッチコンテンツ。\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"コメントのテキスト。\"}}},\"member\":{\"type\":\"object\",\"description\":\"コメント投稿者が表示される公開プロフィールの詳細。\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"コメント投稿者のBilibiliアカウントIDの文字列表現。\"},\"uname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"avatar\":{\"type\":\"string\",\"description\":\"コメント投稿者のプロフィール画像 URL。\"},\"sign\":{\"type\":\"string\",\"description\":\"コメント投稿者の公開プロフィール紹介。\"},\"level_info\":{\"type\":\"object\",\"description\":\"公開アカウントレベルの詳細。\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"投稿者の現在のアカウントレベル。\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"投稿者の公開検証詳細。\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"投稿者の検証タイプコード。\"},\"desc\":{\"type\":\"string\",\"description\":\"投稿者の検証説明。\"}}},\"vip\":{\"type\":\"object\",\"description\":\"投稿者の公開メンバーシップバッジ情報。\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップタイプコード。\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップステータスコード。\"}}},\"fans_detail\":{\"type\":\"object\",\"description\":\"この投稿者に表示される公開ファンメダルの詳細。\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"表示されるファンメダルの識別子。\"},\"medal_name\":{\"type\":\"string\",\"description\":\"ファンメダルの表示名。\"},\"level\":{\"type\":\"integer\",\"description\":\"表示されているファンメダルのレベル。\"}}}}}}}},\"top\":{\"type\":\"object\",\"description\":\"Bilibiliから返されるピンされたコメントスロット。\",\"properties\":{\"upper\":{\"type\":[\"object\",\"null\"],\"description\":\"ビデオアップロード者がピンにしたコメント（返される場合）。top_repliesにも表示されることがある。\",\"properties\":{\"rpid\":{\"type\":\"integer\",\"description\":\"数値のBilibiliコメントID。\"},\"rpid_str\":{\"type\":\"string\",\"description\":\"BilibiliコメントIDの文字列表現。\"},\"oid\":{\"type\":\"integer\",\"description\":\"議論されている動画の数値のBilibiliアーカイブID。\"},\"oid_str\":{\"type\":\"string\",\"description\":\"動画アーカイブIDの文字列表現。\"},\"mid\":{\"type\":\"integer\",\"description\":\"コメント作者の数値のBilibiliアカウントID。\"},\"mid_str\":{\"type\":\"string\",\"description\":\"コメント作者のアカウントIDの文字列表現。\"},\"root\":{\"type\":\"integer\",\"description\":\"返信のトップレベルコメントのID。トップレベルコメントは0を報告する。\"},\"root_str\":{\"type\":\"string\",\"description\":\"ルートコメントIDフィールドの文字列表現。\"},\"parent\":{\"type\":\"integer\",\"description\":\"直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。\"},\"parent_str\":{\"type\":\"string\",\"description\":\"親コメントIDフィールドの文字列表現。\"},\"type\":{\"type\":\"integer\",\"description\":\"コメントされているコンテンツの種類に対応するBilibiliコード。\"},\"ctime\":{\"type\":\"integer\",\"description\":\"コメントの公開時間がUnixタイムスタンプ（秒）で返されます。\"},\"like\":{\"type\":\"integer\",\"description\":\"コメントのいいね数（報告値）。\"},\"count\":{\"type\":\"integer\",\"description\":\"このコメントに対する返信数の報告値。\"},\"rcount\":{\"type\":\"integer\",\"description\":\"Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。\"},\"up_action\":{\"type\":\"object\",\"description\":\"動画アップロード者による相互作用の情報。\",\"properties\":{\"like\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントを気に入ったかどうか。\"},\"reply\":{\"type\":\"boolean\",\"description\":\"動画アップロード者がコメントに返信したかどうか。\"}}},\"reply_control\":{\"type\":\"object\",\"description\":\"コメントに表示される公開時間と場所のラベル。\",\"properties\":{\"time_desc\":{\"type\":\"string\",\"description\":\"コメントに表示される時間ラベル。\"},\"location\":{\"type\":\"string\",\"description\":\"Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。\"},\"is_up_top\":{\"type\":\"boolean\",\"description\":\"ビデオアップロード者がコメントをピンに表示しているかどうか。\"}}},\"content\":{\"type\":\"object\",\"description\":\"コメントテキストと利用可能なリッチコンテンツ。\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"コメントのテキスト。\"}}},\"member\":{\"type\":\"object\",\"description\":\"コメント投稿者が表示される公開プロフィールの詳細。\",\"properties\":{\"mid\":{\"type\":\"string\",\"description\":\"コメント投稿者のBilibiliアカウントIDの文字列表現。\"},\"uname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"avatar\":{\"type\":\"string\",\"description\":\"コメント投稿者のプロフィール画像 URL。\"},\"sign\":{\"type\":\"string\",\"description\":\"コメント投稿者の公開プロフィール紹介。\"},\"level_info\":{\"type\":\"object\",\"description\":\"公開アカウントレベルの詳細。\",\"properties\":{\"current_level\":{\"type\":\"integer\",\"description\":\"投稿者の現在のアカウントレベル。\"}}},\"official_verify\":{\"type\":\"object\",\"description\":\"投稿者の公開検証詳細。\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"投稿者の検証タイプコード。\"},\"desc\":{\"type\":\"string\",\"description\":\"投稿者の検証説明。\"}}},\"vip\":{\"type\":\"object\",\"description\":\"投稿者の公開メンバーシップバッジ情報。\",\"properties\":{\"vipType\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップタイプコード。\"},\"vipStatus\":{\"type\":\"integer\",\"description\":\"投稿者のメンバーシップステータスコード。\"}}},\"fans_detail\":{\"type\":\"object\",\"description\":\"この投稿者に表示される公開ファンメダルの詳細。\",\"properties\":{\"medal_id\":{\"type\":\"integer\",\"description\":\"表示されるファンメダルの識別子。\"},\"medal_name\":{\"type\":\"string\",\"description\":\"ファンメダルの表示名。\"},\"level\":{\"type\":\"integer\",\"description\":\"表示されているファンメダルのレベル。\"}}}}}}}}},\"upper\":{\"type\":\"object\",\"description\":\"ビデオの公開アップロード者識別子。\",\"properties\":{\"mid\":{\"type\":\"integer\",\"description\":\"ビデオアップロード者のBilibiliアカウントID（数値）。\"}}}}}}}}},\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"有効でないリクエストパラメータまたはボディ。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"有効でないまたは無効なアクセストークン。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"権限拒否。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"リクエストレートまたは日次クォーターリミットを超過。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"内部サーバーエラー。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"サービスが一時的に利用できない。\",\"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\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"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\":\"グローバルプロダクションAPI（デフォルト）\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>AIDで識別されたBilibili動画のコメントを取得します。最新または人気順にソートし、オプションでカーソルページングを行います。視聴者の議論をレビューしたり、コメントページを遡ったり、コメントのモデレーションと分析をサポートするために使用します。</p>

## パラメータ

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

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | APIのアクセストークン。 |
| <code>aid</code> | query | <code>string</code> | はい | - | BilibiliアーカイブID (AID)。 |
| <code>cursor</code> | query | <code>string</code> | いいえ | - | 同じAIDとソート順に対する前回の応答からのページングカーソル。ソート順を変更する場合は最初のページから開始するために省略してください。 |
| <code>sortBy</code> | query | <code>string</code> | いいえ | <code>newest</code> | 最新のコメントまたはBilibiliの人気順でソートします。デフォルトは最新です。<br /><br>利用可能な値：<br /><br>- <code>newest</code>: 最新のコメントからソートします。<br /><br>- <code>hot</code>: Bilibiliの人気順でランク付けされたコメント。 |

</div>

## コードサンプル

::: 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プロンプト]
私はJustOneAPIの"動画コメント (V2)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE
APIエンドポイント: BASE_URL + /api/bilibili/get-video-comment/v2?token=YOUR_API_KEY&aid=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/bilibili/video-comments-v2-ja.json

パラメーター:
- token (query): APIのアクセストークン。 (必須)
- aid (query): BilibiliアーカイブID (AID)。 (必須)
- cursor (query): 同じAIDとソート順に対する前回の応答からのページングカーソル。ソート順を変更する場合は最初のページから開始するために省略してください。
- sortBy (query): 最新のコメントまたはBilibiliの人気順でソートします。デフォルトは最新です。
利用可能な値：
- `newest`: 最新のコメントからソートします。
- `hot`: Bilibiliの人気順でランク付けされたコメント。

返信形式：実際のContent-Typeに応じて、JSONまたはテキストを安全に処理する。

レスポンスの処理とエラーコード：
1. API の処理結果はレスポンス本文の「code」フィールドで判定します。code が 0 なら成功です。
2. 推奨タイムアウト：リクエストのタイムアウトは 120 秒に設定してください。120 秒が長すぎる場合でも、最低 60 秒を確保してください。一部のリクエストは、結果を受け取る前にタイムアウトすることがあります。
3. 処理結果コード：
   - 0: 成功
   - 100: 無効または停止中のトークン
   - 301: データの取得に失敗しました。再試行してください。
   - 302: 呼び出し頻度の上限を超えました
   - 303: 日次の利用上限を超えました
   - 400: パラメーターが無効です
   - 500: サーバー内部エラー
   - 600: アクセス権限がありません
   - 601: 残高不足
   - 602: トークンの予算上限に達しました
4. コード 601 はアカウントの共有残高不足を示します。コード 602 は使用中の API トークン固有の累積予算上限に達したことを示します。トークンに予算上限を設定しても、共有残高から資金が移動することはありません。

お手伝いください。私が好むプログラミング言語でこのAPIを呼び出し、レスポンスを処理するスクリプトを作成してください。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # オープンAPIサーバーによって提供される

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"; // オープンAPIサーバーによって提供される
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"; // オープンAPIサーバーによって提供される
        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" // オープンAPIサーバーによって提供される

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'; // オープンAPIサーバーによって提供される
$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-ja.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI定義 (JSON)]</a>
</div>

## レスポンスフィールド

成功したレスポンスのキーフィールド（`code = 0`）。

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

| フィールドパス | タイプ | 説明 |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | 要求された動画コメントに対するBilibiliの応答。 |
| <code>data.code</code> | <code>integer</code> | コメント応答のBilibiliステータスコード。 |
| <code>data.message</code> | <code>string</code> | コメント応答からのBilibiliからのステータスメッセージ。 |
| <code>data.data</code> | <code>object</code> | コメントページ、ページング情報、およびピンされたコメント（存在する場合）。 |
| <code>data.data.cursor</code> | <code>object</code> | トップレベルコメントリストのページング状態。 |
| <code>data.data.cursor.is_begin</code> | <code>boolean</code> | これがトップレベルコメントの最初のページかどうか。 |
| <code>data.data.cursor.is_end</code> | <code>boolean</code> | Bilibiliがこれを最後のコメントページとしてマークしているかどうか。 |
| <code>data.data.cursor.prev</code> | <code>integer</code> | Bilibiliから報告される前のページの数値インジケータ。 |
| <code>data.data.cursor.next</code> | <code>integer</code> | Bilibiliから報告される次のページの数値インジケータ。 |
| <code>data.data.cursor.all_count</code> | <code>integer</code> | ページング状態と共に報告される全コメント数。 |
| <code>data.data.cursor.mode</code> | <code>integer</code> | このページのコメントソートモードが報告される。 |
| <code>data.data.cursor.mode_text</code> | <code>string</code> | コメントソートモードの表示テキスト。 |
| <code>data.data.cursor.pagination_reply</code> | <code>object</code> | 次のコメントページの続きの詳細。 |
| <code>data.data.cursor.pagination_reply.next_offset</code> | <code>string</code> | 不透明な続きの値。when is_endがfalseでこの値が利用可能な場合、同じaidとsortByを持つカーソルとして変更なく渡します。 |
| <code>data.data.replies</code> | <code>array</code> | 返されるページ内のトップレベルコメント。 |
| <code>data.data.replies[]</code> | <code>object</code> | トップレベルのコメント一つ。 |
| <code>data.data.replies[].rpid</code> | <code>integer</code> | 数値のBilibiliコメントID。 |
| <code>data.data.replies[].rpid_str</code> | <code>string</code> | BilibiliコメントIDの文字列表現。 |
| <code>data.data.replies[].oid</code> | <code>integer</code> | 議論されている動画の数値のBilibiliアーカイブID。 |
| <code>data.data.replies[].oid_str</code> | <code>string</code> | 動画アーカイブIDの文字列表現。 |
| <code>data.data.replies[].mid</code> | <code>integer</code> | コメント作者の数値のBilibiliアカウントID。 |
| <code>data.data.replies[].mid_str</code> | <code>string</code> | コメント作者のアカウントIDの文字列表現。 |
| <code>data.data.replies[].root</code> | <code>integer</code> | 返信のトップレベルコメントのID。トップレベルコメントは0を報告する。 |
| <code>data.data.replies[].root_str</code> | <code>string</code> | ルートコメントIDフィールドの文字列表現。 |
| <code>data.data.replies[].parent</code> | <code>integer</code> | 直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。 |
| <code>data.data.replies[].parent_str</code> | <code>string</code> | 親コメントIDフィールドの文字列表現。 |
| <code>data.data.replies[].type</code> | <code>integer</code> | コメントされているコンテンツの種類に対応するBilibiliコード。 |
| <code>data.data.replies[].ctime</code> | <code>integer</code> | コメントの公開時間がUnixタイムスタンプ（秒）で返されます。 |
| <code>data.data.replies[].like</code> | <code>integer</code> | コメントのいいね数（報告値）。 |
| <code>data.data.replies[].count</code> | <code>integer</code> | このコメントに対する返信数の報告値。 |
| <code>data.data.replies[].rcount</code> | <code>integer</code> | Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。 |
| <code>data.data.replies[].dialog</code> | <code>integer</code> | 返信に対する会話識別子の報告値。 |
| <code>data.data.replies[].dialog_str</code> | <code>string</code> | 会話識別子フィールドの文字列表現。 |
| <code>data.data.replies[].up_action</code> | <code>object</code> | 動画アップロード者による相互作用の情報。 |
| <code>data.data.replies[].up_action.like</code> | <code>boolean</code> | 動画アップロード者がコメントを気に入ったかどうか。 |
| <code>data.data.replies[].up_action.reply</code> | <code>boolean</code> | 動画アップロード者がコメントに返信したかどうか。 |
| <code>data.data.replies[].reply_control</code> | <code>object</code> | コメントに表示される公開時間と場所のラベル。 |
| <code>data.data.replies[].reply_control.time_desc</code> | <code>string</code> | コメントに表示される時間ラベル。 |
| <code>data.data.replies[].reply_control.location</code> | <code>string</code> | Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。 |
| <code>data.data.replies[].content</code> | <code>object</code> | コメントテキストと利用可能なリッチコンテンツ。 |
| <code>data.data.replies[].content.message</code> | <code>string</code> | コメントのテキスト。 |
| <code>data.data.replies[].content.members</code> | <code>array</code> | コメントテキストに記載されているアカウント。 |
| <code>data.data.replies[].content.members[]</code> | <code>object</code> | コメントに記載されている一つのアカウント。 |
| <code>data.data.replies[].content.members[].mid</code> | <code>string</code> | 記載されているアカウントIDの文字列表現。 |
| <code>data.data.replies[].content.members[].uname</code> | <code>string</code> | メンション先アカウントの表示名。 |
| <code>data.data.replies[].content.members[].avatar</code> | <code>string</code> | メンション先アカウントのプロフィール画像 URL。 |
| <code>data.data.replies[].content.at_name_to_mid</code> | <code>object</code> | 言及名が対応する数値のBilibiliアカウントIDにマッピングされること。 |
| <code>data.data.replies[].content.at_name_to_mid.{key}</code> | <code>integer</code> | 言及名に対応する数値のBilibiliアカウントID。 |
| <code>data.data.replies[].content.at_name_to_mid_str</code> | <code>object</code> | 言及名がBilibiliアカウントIDの文字列表現にマッピングされること。 |
| <code>data.data.replies[].content.at_name_to_mid_str.{key}</code> | <code>string</code> | 言及名に対応するBilibiliアカウントIDの文字列表現。 |
| <code>data.data.replies[].content.emote</code> | <code>object</code> | コメントテキスト内のエモートコードに基づくエモートの詳細。 |
| <code>data.data.replies[].content.emote.{key}</code> | <code>object</code> | コメントで参照されている一つのエモート。 |
| <code>data.data.replies[].content.emote.{key}.id</code> | <code>integer</code> | エモートの識別子。 |
| <code>data.data.replies[].content.emote.{key}.package_id</code> | <code>integer</code> | エモートパックの識別子。 |
| <code>data.data.replies[].content.emote.{key}.text</code> | <code>string</code> | エモートに表示されるテキストコード。 |
| <code>data.data.replies[].content.emote.{key}.url</code> | <code>string</code> | エモートの画像URL。 |
| <code>data.data.replies[].content.emote.{key}.type</code> | <code>integer</code> | Bilibiliが報告したエモートのタイプコード。 |
| <code>data.data.replies[].content.emote.{key}.mtime</code> | <code>integer</code> | Unixタイムスタンプ（秒）で表されたエモートの変更時間。 |
| <code>data.data.replies[].content.emote.{key}.meta</code> | <code>object</code> | エモートの追加メタデータ。 |
| <code>data.data.replies[].content.emote.{key}.meta.size</code> | <code>integer</code> | エモートの表示サイズコード。 |
| <code>data.data.replies[].content.pictures</code> | <code>array</code> | コメントに添付されている画像（存在する場合）。 |
| <code>data.data.replies[].content.pictures[]</code> | <code>object</code> | 添付されているコメント画像一枚。 |
| <code>data.data.replies[].content.pictures[].img_src</code> | <code>string</code> | 添付画像の URL。 |
| <code>data.data.replies[].content.pictures[].img_width</code> | <code>integer</code> | 添付画像の幅（ピクセル）。 |
| <code>data.data.replies[].content.pictures[].img_height</code> | <code>integer</code> | 添付画像の高さ（ピクセル）。 |
| <code>data.data.replies[].content.pictures[].img_size</code> | <code>number</code> | 添付画像のファイルサイズ値。 |
| <code>data.data.replies[].member</code> | <code>object</code> | コメント投稿者が表示される公開プロフィールの詳細。 |
| <code>data.data.replies[].member.mid</code> | <code>string</code> | コメント投稿者のBilibiliアカウントIDの文字列表現。 |
| <code>data.data.replies[].member.uname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.data.replies[].member.avatar</code> | <code>string</code> | コメント投稿者のプロフィール画像 URL。 |
| <code>data.data.replies[].member.sign</code> | <code>string</code> | コメント投稿者の公開プロフィール紹介。 |
| <code>data.data.replies[].member.level_info</code> | <code>object</code> | 公開アカウントレベルの詳細。 |
| <code>data.data.replies[].member.level_info.current_level</code> | <code>integer</code> | 投稿者の現在のアカウントレベル。 |
| <code>data.data.replies[].member.official_verify</code> | <code>object</code> | 投稿者の公開検証詳細。 |
| <code>data.data.replies[].member.official_verify.type</code> | <code>integer</code> | 投稿者の検証タイプコード。 |
| <code>data.data.replies[].member.official_verify.desc</code> | <code>string</code> | 投稿者の検証説明。 |
| <code>data.data.replies[].member.vip</code> | <code>object</code> | 投稿者の公開メンバーシップバッジ情報。 |
| <code>data.data.replies[].member.vip.vipType</code> | <code>integer</code> | 投稿者のメンバーシップタイプコード。 |
| <code>data.data.replies[].member.vip.vipStatus</code> | <code>integer</code> | 投稿者のメンバーシップステータスコード。 |
| <code>data.data.replies[].member.fans_detail</code> | <code>object &#124; null</code> | この投稿者に表示される公開ファンメダルの詳細。 |
| <code>data.data.replies[].member.fans_detail.medal_id</code> | <code>integer</code> | 表示されるファンメダルの識別子。 |
| <code>data.data.replies[].member.fans_detail.medal_name</code> | <code>string</code> | ファンメダルの表示名。 |
| <code>data.data.replies[].member.fans_detail.level</code> | <code>integer</code> | 表示されているファンメダルのレベル。 |
| <code>data.data.replies[].member.pendant</code> | <code>object</code> | 投稿者のプロフィールアバターペンダントの詳細。 |
| <code>data.data.replies[].member.pendant.pid</code> | <code>integer</code> | 表示されるアバターペンダントの識別子。 |
| <code>data.data.replies[].member.pendant.name</code> | <code>string</code> | プロフィール画像の装飾の表示名。 |
| <code>data.data.replies[].member.pendant.image</code> | <code>string</code> | プロフィール画像の装飾の画像 URL。 |
| <code>data.data.replies[].member.nameplate</code> | <code>object</code> | 著者のプロフィール名板の詳細。 |
| <code>data.data.replies[].member.nameplate.nid</code> | <code>integer</code> | 表示されるプロフィール名板の識別子。 |
| <code>data.data.replies[].member.nameplate.name</code> | <code>string</code> | プロフィール名板の表示名。 |
| <code>data.data.replies[].member.nameplate.image</code> | <code>string</code> | プロフィール名板の画像URL。 |
| <code>data.data.replies[].member.nameplate.level</code> | <code>string</code> | プロフィール名板の表示レベル。 |
| <code>data.data.replies[].replies</code> | <code>array &#124; null</code> | このトップレベルコメントへの返信のプレビュー。プレビューが含まれていない場合はnullとなる。 |
| <code>data.data.replies[].replies[]</code> | <code>object</code> | プレビューに含まれる一つの返信。 |
| <code>data.data.replies[].replies[].rpid</code> | <code>integer</code> | 数値のBilibiliコメントID。 |
| <code>data.data.replies[].replies[].rpid_str</code> | <code>string</code> | BilibiliコメントIDの文字列表現。 |
| <code>data.data.replies[].replies[].oid</code> | <code>integer</code> | 議論されている動画の数値のBilibiliアーカイブID。 |
| <code>data.data.replies[].replies[].oid_str</code> | <code>string</code> | 動画アーカイブIDの文字列表現。 |
| <code>data.data.replies[].replies[].mid</code> | <code>integer</code> | コメント作者の数値のBilibiliアカウントID。 |
| <code>data.data.replies[].replies[].mid_str</code> | <code>string</code> | コメント作者のアカウントIDの文字列表現。 |
| <code>data.data.replies[].replies[].root</code> | <code>integer</code> | 返信のトップレベルコメントのID。トップレベルコメントは0を報告する。 |
| <code>data.data.replies[].replies[].root_str</code> | <code>string</code> | ルートコメントIDフィールドの文字列表現。 |
| <code>data.data.replies[].replies[].parent</code> | <code>integer</code> | 直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。 |
| <code>data.data.replies[].replies[].parent_str</code> | <code>string</code> | 親コメントIDフィールドの文字列表現。 |
| <code>data.data.replies[].replies[].type</code> | <code>integer</code> | コメントされているコンテンツの種類に対応するBilibiliコード。 |
| <code>data.data.replies[].replies[].ctime</code> | <code>integer</code> | コメントの公開時間がUnixタイムスタンプ（秒）で返されます。 |
| <code>data.data.replies[].replies[].like</code> | <code>integer</code> | コメントのいいね数（報告値）。 |
| <code>data.data.replies[].replies[].count</code> | <code>integer</code> | このコメントに対する返信数の報告値。 |
| <code>data.data.replies[].replies[].rcount</code> | <code>integer</code> | Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。 |
| <code>data.data.replies[].replies[].dialog</code> | <code>integer</code> | 返信に対する会話識別子の報告値。 |
| <code>data.data.replies[].replies[].dialog_str</code> | <code>string</code> | 会話識別子フィールドの文字列表現。 |
| <code>data.data.replies[].replies[].up_action</code> | <code>object</code> | 動画アップロード者による相互作用の情報。 |
| <code>data.data.replies[].replies[].up_action.like</code> | <code>boolean</code> | 動画アップロード者がコメントを気に入ったかどうか。 |
| <code>data.data.replies[].replies[].up_action.reply</code> | <code>boolean</code> | 動画アップロード者がコメントに返信したかどうか。 |
| <code>data.data.replies[].replies[].reply_control</code> | <code>object</code> | コメントに表示される公開時間と場所のラベル。 |
| <code>data.data.replies[].replies[].reply_control.time_desc</code> | <code>string</code> | コメントに表示される時間ラベル。 |
| <code>data.data.replies[].replies[].reply_control.location</code> | <code>string</code> | Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。 |
| <code>data.data.replies[].replies[].content</code> | <code>object</code> | コメントテキストと利用可能なリッチコンテンツ。 |
| <code>data.data.replies[].replies[].content.message</code> | <code>string</code> | コメントのテキスト。 |
| <code>data.data.replies[].replies[].content.members</code> | <code>array</code> | コメントテキストに記載されているアカウント。 |
| <code>data.data.replies[].replies[].content.members[]</code> | <code>object</code> | コメントに記載されている一つのアカウント。 |
| <code>data.data.replies[].replies[].content.members[].mid</code> | <code>string</code> | 記載されているアカウントIDの文字列表現。 |
| <code>data.data.replies[].replies[].content.members[].uname</code> | <code>string</code> | メンション先アカウントの表示名。 |
| <code>data.data.replies[].replies[].content.members[].avatar</code> | <code>string</code> | メンション先アカウントのプロフィール画像 URL。 |
| <code>data.data.replies[].replies[].content.at_name_to_mid</code> | <code>object</code> | 言及名が対応する数値のBilibiliアカウントIDにマッピングされること。 |
| <code>data.data.replies[].replies[].content.at_name_to_mid.{key}</code> | <code>integer</code> | 言及名に対応する数値のBilibiliアカウントID。 |
| <code>data.data.replies[].replies[].content.at_name_to_mid_str</code> | <code>object</code> | 言及名がBilibiliアカウントIDの文字列表現にマッピングされること。 |
| <code>data.data.replies[].replies[].content.at_name_to_mid_str.{key}</code> | <code>string</code> | 言及名に対応するBilibiliアカウントIDの文字列表現。 |
| <code>data.data.replies[].replies[].content.emote</code> | <code>object</code> | コメントテキスト内のエモートコードに基づくエモートの詳細。 |
| <code>data.data.replies[].replies[].content.emote.{key}</code> | <code>object</code> | コメントで参照されている一つのエモート。 |
| <code>data.data.replies[].replies[].content.emote.{key}.id</code> | <code>integer</code> | エモートの識別子。 |
| <code>data.data.replies[].replies[].content.emote.{key}.package_id</code> | <code>integer</code> | エモートパックの識別子。 |
| <code>data.data.replies[].replies[].content.emote.{key}.text</code> | <code>string</code> | エモートに表示されるテキストコード。 |
| <code>data.data.replies[].replies[].content.emote.{key}.url</code> | <code>string</code> | エモートの画像URL。 |
| <code>data.data.replies[].replies[].content.emote.{key}.type</code> | <code>integer</code> | Bilibiliが報告したエモートのタイプコード。 |
| <code>data.data.replies[].replies[].content.emote.{key}.mtime</code> | <code>integer</code> | Unixタイムスタンプ（秒）で表されたエモートの変更時間。 |
| <code>data.data.replies[].replies[].content.emote.{key}.meta</code> | <code>object</code> | エモートの追加メタデータ。 |
| <code>data.data.replies[].replies[].content.emote.{key}.meta.size</code> | <code>integer</code> | エモートの表示サイズコード。 |
| <code>data.data.replies[].replies[].member</code> | <code>object</code> | コメント投稿者が表示される公開プロフィールの詳細。 |
| <code>data.data.replies[].replies[].member.mid</code> | <code>string</code> | コメント投稿者のBilibiliアカウントIDの文字列表現。 |
| <code>data.data.replies[].replies[].member.uname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.data.replies[].replies[].member.avatar</code> | <code>string</code> | コメント投稿者のプロフィール画像 URL。 |
| <code>data.data.replies[].replies[].member.sign</code> | <code>string</code> | コメント投稿者の公開プロフィール紹介。 |
| <code>data.data.replies[].replies[].member.level_info</code> | <code>object</code> | 公開アカウントレベルの詳細。 |
| <code>data.data.replies[].replies[].member.level_info.current_level</code> | <code>integer</code> | 投稿者の現在のアカウントレベル。 |
| <code>data.data.replies[].replies[].member.official_verify</code> | <code>object</code> | 投稿者の公開検証詳細。 |
| <code>data.data.replies[].replies[].member.official_verify.type</code> | <code>integer</code> | 投稿者の検証タイプコード。 |
| <code>data.data.replies[].replies[].member.official_verify.desc</code> | <code>string</code> | 投稿者の検証説明。 |
| <code>data.data.replies[].replies[].member.vip</code> | <code>object</code> | 投稿者の公開メンバーシップバッジ情報。 |
| <code>data.data.replies[].replies[].member.vip.vipType</code> | <code>integer</code> | 投稿者のメンバーシップタイプコード。 |
| <code>data.data.replies[].replies[].member.vip.vipStatus</code> | <code>integer</code> | 投稿者のメンバーシップステータスコード。 |
| <code>data.data.replies[].replies[].member.fans_detail</code> | <code>object &#124; null</code> | この投稿者に表示される公開ファンメダルの詳細。 |
| <code>data.data.replies[].replies[].member.fans_detail.medal_id</code> | <code>integer</code> | 表示されるファンメダルの識別子。 |
| <code>data.data.replies[].replies[].member.fans_detail.medal_name</code> | <code>string</code> | ファンメダルの表示名。 |
| <code>data.data.replies[].replies[].member.fans_detail.level</code> | <code>integer</code> | 表示されているファンメダルのレベル。 |
| <code>data.data.replies[].replies[].member.pendant</code> | <code>object</code> | 投稿者のプロフィールアバターペンダントの詳細。 |
| <code>data.data.replies[].replies[].member.pendant.pid</code> | <code>integer</code> | 表示されるアバターペンダントの識別子。 |
| <code>data.data.replies[].replies[].member.pendant.name</code> | <code>string</code> | プロフィール画像の装飾の表示名。 |
| <code>data.data.replies[].replies[].member.pendant.image</code> | <code>string</code> | プロフィール画像の装飾の画像 URL。 |
| <code>data.data.replies[].replies[].member.nameplate</code> | <code>object</code> | 著者のプロフィール名板の詳細。 |
| <code>data.data.replies[].replies[].member.nameplate.nid</code> | <code>integer</code> | 表示されるプロフィール名板の識別子。 |
| <code>data.data.replies[].replies[].member.nameplate.name</code> | <code>string</code> | プロフィール名板の表示名。 |
| <code>data.data.replies[].replies[].member.nameplate.image</code> | <code>string</code> | プロフィール名板の画像URL。 |
| <code>data.data.replies[].replies[].member.nameplate.level</code> | <code>string</code> | プロフィール名板の表示レベル。 |
| <code>data.data.top_replies</code> | <code>array &#124; null</code> | このページで返されるピンされたコメント（利用可能な場合）。 |
| <code>data.data.top_replies[]</code> | <code>object</code> | ピンされたリストからの一つのコメント。 |
| <code>data.data.top_replies[].rpid</code> | <code>integer</code> | 数値のBilibiliコメントID。 |
| <code>data.data.top_replies[].rpid_str</code> | <code>string</code> | BilibiliコメントIDの文字列表現。 |
| <code>data.data.top_replies[].oid</code> | <code>integer</code> | 議論されている動画の数値のBilibiliアーカイブID。 |
| <code>data.data.top_replies[].oid_str</code> | <code>string</code> | 動画アーカイブIDの文字列表現。 |
| <code>data.data.top_replies[].mid</code> | <code>integer</code> | コメント作者の数値のBilibiliアカウントID。 |
| <code>data.data.top_replies[].mid_str</code> | <code>string</code> | コメント作者のアカウントIDの文字列表現。 |
| <code>data.data.top_replies[].root</code> | <code>integer</code> | 返信のトップレベルコメントのID。トップレベルコメントは0を報告する。 |
| <code>data.data.top_replies[].root_str</code> | <code>string</code> | ルートコメントIDフィールドの文字列表現。 |
| <code>data.data.top_replies[].parent</code> | <code>integer</code> | 直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。 |
| <code>data.data.top_replies[].parent_str</code> | <code>string</code> | 親コメントIDフィールドの文字列表現。 |
| <code>data.data.top_replies[].type</code> | <code>integer</code> | コメントされているコンテンツの種類に対応するBilibiliコード。 |
| <code>data.data.top_replies[].ctime</code> | <code>integer</code> | コメントの公開時間がUnixタイムスタンプ（秒）で返されます。 |
| <code>data.data.top_replies[].like</code> | <code>integer</code> | コメントのいいね数（報告値）。 |
| <code>data.data.top_replies[].count</code> | <code>integer</code> | このコメントに対する返信数の報告値。 |
| <code>data.data.top_replies[].rcount</code> | <code>integer</code> | Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。 |
| <code>data.data.top_replies[].up_action</code> | <code>object</code> | 動画アップロード者による相互作用の情報。 |
| <code>data.data.top_replies[].up_action.like</code> | <code>boolean</code> | 動画アップロード者がコメントを気に入ったかどうか。 |
| <code>data.data.top_replies[].up_action.reply</code> | <code>boolean</code> | 動画アップロード者がコメントに返信したかどうか。 |
| <code>data.data.top_replies[].reply_control</code> | <code>object</code> | コメントに表示される公開時間と場所のラベル。 |
| <code>data.data.top_replies[].reply_control.time_desc</code> | <code>string</code> | コメントに表示される時間ラベル。 |
| <code>data.data.top_replies[].reply_control.location</code> | <code>string</code> | Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。 |
| <code>data.data.top_replies[].reply_control.is_up_top</code> | <code>boolean</code> | ビデオアップロード者がコメントをピンに表示しているかどうか。 |
| <code>data.data.top_replies[].content</code> | <code>object</code> | コメントテキストと利用可能なリッチコンテンツ。 |
| <code>data.data.top_replies[].content.message</code> | <code>string</code> | コメントのテキスト。 |
| <code>data.data.top_replies[].member</code> | <code>object</code> | コメント投稿者が表示される公開プロフィールの詳細。 |
| <code>data.data.top_replies[].member.mid</code> | <code>string</code> | コメント投稿者のBilibiliアカウントIDの文字列表現。 |
| <code>data.data.top_replies[].member.uname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.data.top_replies[].member.avatar</code> | <code>string</code> | コメント投稿者のプロフィール画像 URL。 |
| <code>data.data.top_replies[].member.sign</code> | <code>string</code> | コメント投稿者の公開プロフィール紹介。 |
| <code>data.data.top_replies[].member.level_info</code> | <code>object</code> | 公開アカウントレベルの詳細。 |
| <code>data.data.top_replies[].member.level_info.current_level</code> | <code>integer</code> | 投稿者の現在のアカウントレベル。 |
| <code>data.data.top_replies[].member.official_verify</code> | <code>object</code> | 投稿者の公開検証詳細。 |
| <code>data.data.top_replies[].member.official_verify.type</code> | <code>integer</code> | 投稿者の検証タイプコード。 |
| <code>data.data.top_replies[].member.official_verify.desc</code> | <code>string</code> | 投稿者の検証説明。 |
| <code>data.data.top_replies[].member.vip</code> | <code>object</code> | 投稿者の公開メンバーシップバッジ情報。 |
| <code>data.data.top_replies[].member.vip.vipType</code> | <code>integer</code> | 投稿者のメンバーシップタイプコード。 |
| <code>data.data.top_replies[].member.vip.vipStatus</code> | <code>integer</code> | 投稿者のメンバーシップステータスコード。 |
| <code>data.data.top_replies[].member.fans_detail</code> | <code>object</code> | この投稿者に表示される公開ファンメダルの詳細。 |
| <code>data.data.top_replies[].member.fans_detail.medal_id</code> | <code>integer</code> | 表示されるファンメダルの識別子。 |
| <code>data.data.top_replies[].member.fans_detail.medal_name</code> | <code>string</code> | ファンメダルの表示名。 |
| <code>data.data.top_replies[].member.fans_detail.level</code> | <code>integer</code> | 表示されているファンメダルのレベル。 |
| <code>data.data.top</code> | <code>object</code> | Bilibiliから返されるピンされたコメントスロット。 |
| <code>data.data.top.upper</code> | <code>object &#124; null</code> | ビデオアップロード者がピンにしたコメント（返される場合）。top_repliesにも表示されることがある。 |
| <code>data.data.top.upper.rpid</code> | <code>integer</code> | 数値のBilibiliコメントID。 |
| <code>data.data.top.upper.rpid_str</code> | <code>string</code> | BilibiliコメントIDの文字列表現。 |
| <code>data.data.top.upper.oid</code> | <code>integer</code> | 議論されている動画の数値のBilibiliアーカイブID。 |
| <code>data.data.top.upper.oid_str</code> | <code>string</code> | 動画アーカイブIDの文字列表現。 |
| <code>data.data.top.upper.mid</code> | <code>integer</code> | コメント作者の数値のBilibiliアカウントID。 |
| <code>data.data.top.upper.mid_str</code> | <code>string</code> | コメント作者のアカウントIDの文字列表現。 |
| <code>data.data.top.upper.root</code> | <code>integer</code> | 返信のトップレベルコメントのID。トップレベルコメントは0を報告する。 |
| <code>data.data.top.upper.root_str</code> | <code>string</code> | ルートコメントIDフィールドの文字列表現。 |
| <code>data.data.top.upper.parent</code> | <code>integer</code> | 直接返信されるコメントのID。トップレベルのコメント報告では0と表示されます。 |
| <code>data.data.top.upper.parent_str</code> | <code>string</code> | 親コメントIDフィールドの文字列表現。 |
| <code>data.data.top.upper.type</code> | <code>integer</code> | コメントされているコンテンツの種類に対応するBilibiliコード。 |
| <code>data.data.top.upper.ctime</code> | <code>integer</code> | コメントの公開時間がUnixタイムスタンプ（秒）で返されます。 |
| <code>data.data.top.upper.like</code> | <code>integer</code> | コメントのいいね数（報告値）。 |
| <code>data.data.top.upper.count</code> | <code>integer</code> | このコメントに対する返信数の報告値。 |
| <code>data.data.top.upper.rcount</code> | <code>integer</code> | Bilibiliが報告する追加の返信数。含まれるプレビューには少ない返信数が含まれる場合があります。 |
| <code>data.data.top.upper.up_action</code> | <code>object</code> | 動画アップロード者による相互作用の情報。 |
| <code>data.data.top.upper.up_action.like</code> | <code>boolean</code> | 動画アップロード者がコメントを気に入ったかどうか。 |
| <code>data.data.top.upper.up_action.reply</code> | <code>boolean</code> | 動画アップロード者がコメントに返信したかどうか。 |
| <code>data.data.top.upper.reply_control</code> | <code>object</code> | コメントに表示される公開時間と場所のラベル。 |
| <code>data.data.top.upper.reply_control.time_desc</code> | <code>string</code> | コメントに表示される時間ラベル。 |
| <code>data.data.top.upper.reply_control.location</code> | <code>string</code> | Bilibiliがこのコメントに対して表示する場所ラベル（存在する場合）。 |
| <code>data.data.top.upper.reply_control.is_up_top</code> | <code>boolean</code> | ビデオアップロード者がコメントをピンに表示しているかどうか。 |
| <code>data.data.top.upper.content</code> | <code>object</code> | コメントテキストと利用可能なリッチコンテンツ。 |
| <code>data.data.top.upper.content.message</code> | <code>string</code> | コメントのテキスト。 |
| <code>data.data.top.upper.member</code> | <code>object</code> | コメント投稿者が表示される公開プロフィールの詳細。 |
| <code>data.data.top.upper.member.mid</code> | <code>string</code> | コメント投稿者のBilibiliアカウントIDの文字列表現。 |
| <code>data.data.top.upper.member.uname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.data.top.upper.member.avatar</code> | <code>string</code> | コメント投稿者のプロフィール画像 URL。 |
| <code>data.data.top.upper.member.sign</code> | <code>string</code> | コメント投稿者の公開プロフィール紹介。 |
| <code>data.data.top.upper.member.level_info</code> | <code>object</code> | 公開アカウントレベルの詳細。 |
| <code>data.data.top.upper.member.level_info.current_level</code> | <code>integer</code> | 投稿者の現在のアカウントレベル。 |
| <code>data.data.top.upper.member.official_verify</code> | <code>object</code> | 投稿者の公開検証詳細。 |
| <code>data.data.top.upper.member.official_verify.type</code> | <code>integer</code> | 投稿者の検証タイプコード。 |
| <code>data.data.top.upper.member.official_verify.desc</code> | <code>string</code> | 投稿者の検証説明。 |
| <code>data.data.top.upper.member.vip</code> | <code>object</code> | 投稿者の公開メンバーシップバッジ情報。 |
| <code>data.data.top.upper.member.vip.vipType</code> | <code>integer</code> | 投稿者のメンバーシップタイプコード。 |
| <code>data.data.top.upper.member.vip.vipStatus</code> | <code>integer</code> | 投稿者のメンバーシップステータスコード。 |
| <code>data.data.top.upper.member.fans_detail</code> | <code>object</code> | この投稿者に表示される公開ファンメダルの詳細。 |
| <code>data.data.top.upper.member.fans_detail.medal_id</code> | <code>integer</code> | 表示されるファンメダルの識別子。 |
| <code>data.data.top.upper.member.fans_detail.medal_name</code> | <code>string</code> | ファンメダルの表示名。 |
| <code>data.data.top.upper.member.fans_detail.level</code> | <code>integer</code> | 表示されているファンメダルのレベル。 |
| <code>data.data.upper</code> | <code>object</code> | ビデオの公開アップロード者識別子。 |
| <code>data.data.upper.mid</code> | <code>integer</code> | ビデオアップロード者のBilibiliアカウントID（数値）。 |

</div>

## レスポンス例

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

