---
title: "WeChatチャンネル 動画コメント API (V1)"
description: "オブジェクトIDを使用して、WeChatチャンネルのビデオの第一レベルのコメントを取得します。continuation-bufferのページネリングを使用して、既知のビデオコンテンツに関する視聴者の議論をレビューします。"
lastUpdated: false
aiUsagePrompt: true
---

# WeChatチャンネル 動画コメント API \(V1\)

<ApiTester
  method="POST"
  :path='JSON.parse("\"/api/weixin-channels/get-video-comment/v1\"")'
  :summary='JSON.parse("\"動画コメント (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/wechat-channels/video-comments-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[]")'
  :requestBody='JSON.parse("{\"content\":{\"application/x-www-form-urlencoded\":{\"schema\":{\"type\":\"object\",\"properties\":{\"token\":{\"type\":\"string\",\"description\":\"このAPIサービスのアクセストークン。\"},\"objectId\":{\"type\":\"string\",\"description\":\"トップレベルのコメントを取得する WeChat チャンネル動画のオブジェクト ID。動画検索結果から取得した exportId しかない場合は、先に /api/weixin-channels/convert-export-id/v1 のエクスポート ID 変換 (V1) を呼び出して objectId に変換してください。\"},\"objectNonceId\":{\"type\":\"string\",\"default\":\"\",\"description\":\"WeChatチャンネルのオブジェクトnonce IDはオプションです。\"},\"last_buffer\":{\"type\":\"string\",\"default\":\"\",\"description\":\"前の第一級WeChatチャンネルコメント応答から返されるページングバッファです。最初のページの場合は空にしてください。このPOSTエンドポイントでは、application/x-www-form-urlencoded形式のボディで送信してください。\"}},\"required\":[\"objectId\",\"token\"]}}},\"required\":true}")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"WeChatチャンネル動画の第一級コメントとページング情報。\",\"properties\":{\"last_buffer\":{\"type\":\"string\",\"description\":\"次の第一級コメントページの不透明バッファ。down_continue_flagが1の場合、この文字列を変更せずに次のフォームリクエストのlast_bufferフィールドに渡す。\"},\"down_continue_flag\":{\"type\":\"integer\",\"description\":\"第一級ページングフラグ。別のページが利用可能な場合は1、最後には0。バッファは最後にも存在する可能性がある。\"},\"comment_info\":{\"type\":\"array\",\"description\":\"要求されたページに対して返される第一級コメント。ページには空のリストが含まれることがある。\",\"items\":{\"type\":\"object\",\"description\":\"要求された動画に関する第一級コメント一件。\",\"properties\":{\"comment_id\":{\"type\":\"string\",\"description\":\"このコメントのWeChatチャンネル識別子。\"},\"username\":{\"type\":\"string\",\"description\":\"コメント作成者のWeChatチャンネルアカウント識別子。\"},\"nickname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"content\":{\"type\":\"string\",\"description\":\"コメントのテキスト。\"},\"createtime\":{\"type\":\"string\",\"description\":\"コメントの作成時間がUnix秒で文字列としてエンコードされた値。\"},\"head_url\":{\"type\":\"string\",\"description\":\"コメント投稿者のアバター画像URL。\"},\"like_count\":{\"type\":\"integer\",\"description\":\"コメントのいいね数（報告値）。\"},\"dislike_count\":{\"type\":\"integer\",\"description\":\"コメントの低評価数（報告値）。\"},\"content_type\":{\"type\":\"integer\",\"description\":\"コメントに関する数値コンテンツタイプの報告値。\"},\"ip_region_info\":{\"type\":\"object\",\"description\":\"コメントと共に返される地域ラベル情報。\",\"properties\":{\"region_text\":{\"type\":\"string\",\"description\":\"提供された場合、コメントのIP地域ラベルの報告値。\"}}},\"author_contact\":{\"type\":\"object\",\"description\":\"コメントと共に返される投稿者情報。\",\"properties\":{\"username\":{\"type\":\"string\",\"description\":\"コメント作成者のWeChatチャンネルアカウント識別子。\"},\"nickname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"head_url\":{\"type\":\"string\",\"description\":\"コメント投稿者のアバター画像URL。\"}}},\"reply_comment_id\":{\"type\":\"string\",\"description\":\"親コメントの識別子フィールド。トップレベルのコメントがこの文字列「0」を返した場合。\"},\"expand_comment_count\":{\"type\":\"integer\",\"description\":\"このコメント下の返信数の報告値。レスポンスには返信のプレビューのみが含まれることがあります。\"},\"continue_flag\":{\"type\":\"integer\",\"description\":\"このコメントへの返信に対する続行フラグの報告値。\"},\"content_info\":{\"type\":\"object\",\"description\":\"このコメントに添付されている構造化スタンプ情報がある場合。\",\"properties\":{\"emoticon_infos\":{\"type\":\"array\",\"description\":\"コメントに表示されるスタンプ。\",\"items\":{\"type\":\"object\",\"description\":\"コメントに添付されているスタンプ一つ。\",\"properties\":{\"desc\":{\"type\":\"string\",\"description\":\"スタンプの表示説明。\"},\"width\":{\"type\":\"integer\",\"description\":\"スタンプ画像のピクセル幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"スタンプ画像のピクセル高さ。\"},\"emoticon_info\":{\"type\":\"object\",\"description\":\"このスタンプの表示アセット。\",\"properties\":{\"Url\":{\"type\":\"string\",\"description\":\"スタンプ画像のURL。\"},\"ThumbUrl\":{\"type\":\"string\",\"description\":\"スタンプのサムネイルURL。\"}}}}}}}},\"author_reaction_info\":{\"type\":\"object\",\"description\":\"提供された場合、ビデオ投稿者からの反応情報。\",\"properties\":{\"author_like_time\":{\"type\":\"integer\",\"description\":\"ビデオ投稿者がコメントを「いいね」した時刻（ユニックス秒）。\"}}},\"level_two_comment\":{\"type\":\"array\",\"description\":\"トップレベルコメントで返される返信のプレビュー。この配列は空になることがあります。\",\"items\":{\"type\":\"object\",\"description\":\"トップレベルコメントに含まれる返信一つ。\",\"properties\":{\"comment_id\":{\"type\":\"string\",\"description\":\"このコメントのWeChatチャンネル識別子。\"},\"username\":{\"type\":\"string\",\"description\":\"コメント作成者のWeChatチャンネルアカウント識別子。\"},\"nickname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"content\":{\"type\":\"string\",\"description\":\"コメントのテキスト。\"},\"createtime\":{\"type\":\"string\",\"description\":\"コメントの作成時間がUnix秒で文字列としてエンコードされた値。\"},\"head_url\":{\"type\":\"string\",\"description\":\"コメント投稿者のアバター画像URL。\"},\"like_count\":{\"type\":\"integer\",\"description\":\"コメントのいいね数（報告値）。\"},\"dislike_count\":{\"type\":\"integer\",\"description\":\"コメントの低評価数（報告値）。\"},\"content_type\":{\"type\":\"integer\",\"description\":\"コメントに関する数値コンテンツタイプの報告値。\"},\"ip_region_info\":{\"type\":\"object\",\"description\":\"コメントと共に返される地域ラベル情報。\",\"properties\":{\"region_text\":{\"type\":\"string\",\"description\":\"提供された場合、コメントのIP地域ラベルの報告値。\"}}},\"author_contact\":{\"type\":\"object\",\"description\":\"コメントと共に返される投稿者情報。\",\"properties\":{\"username\":{\"type\":\"string\",\"description\":\"コメント作成者のWeChatチャンネルアカウント識別子。\"},\"nickname\":{\"type\":\"string\",\"description\":\"コメント投稿者の表示名。\"},\"head_url\":{\"type\":\"string\",\"description\":\"コメント投稿者のアバター画像URL。\"}}},\"reply_comment_id\":{\"type\":\"string\",\"description\":\"この返信のプレビューに対する親コメントの識別子。\"},\"reply_content\":{\"type\":\"string\",\"description\":\"返信されているコメントの引用テキスト。\"}}}}}}},\"data\":{\"type\":\"string\",\"description\":\"コメントリストがない確認済みの成功レスポンスで、文字列として返される空のマーカー。\"}}}}},\"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/weixin-channels/get-video-comment/v1\"")' />

<p>オブジェクトIDを使用して、WeChatチャンネルのビデオの第一レベルのコメントを取得します。continuation-bufferのページネリングを使用して、既知のビデオコンテンツに関する視聴者の議論をレビューします。</p>

## リクエストボディ

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

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | form | <code>string</code> | はい | - | このAPIサービスのアクセストークン。 |
| <code>objectId</code> | form | <code>string</code> | はい | - | トップレベルのコメントを取得する WeChat チャンネル動画のオブジェクト ID。動画検索結果から取得した exportId しかない場合は、先に /api/weixin-channels/convert-export-id/v1 のエクスポート ID 変換 (V1) を呼び出して objectId に変換してください。 |
| <code>objectNonceId</code> | form | <code>string</code> | いいえ | <code></code> | WeChatチャンネルのオブジェクトnonce IDはオプションです。 |
| <code>last_buffer</code> | form | <code>string</code> | いいえ | <code></code> | 前の第一級WeChatチャンネルコメント応答から返されるページングバッファです。最初のページの場合は空にしてください。このPOSTエンドポイントでは、application/x-www-form-urlencoded形式のボディで送信してください。 |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X POST 'https://api.justoneapi.com/api/weixin-channels/get-video-comment/v1' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer='
```

```text [🤖 AIプロンプト]
私はJustOneAPIの"動画コメント (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/weixin-channels/get-video-comment/v1
APIエンドポイント: BASE_URL + /api/weixin-channels/get-video-comment/v1
HTTPメソッド: POST
認証: "token"をapplication/x-www-form-urlencodedボディフィールドとして送信します。
OpenAPI定義: https://docs.justoneapi.com/openapi/wechat-channels/video-comments-v1-ja.json
リクエストヘッダー:
- Content-Type: application/x-www-form-urlencoded

リクエストボディ（フォーム）：
- token (form): このAPIサービスのアクセストークン。 (必須)
- objectId (form): トップレベルのコメントを取得する WeChat チャンネル動画のオブジェクト ID。動画検索結果から取得した exportId しかない場合は、先に /api/weixin-channels/convert-export-id/v1 のエクスポート ID 変換 (V1) を呼び出して objectId に変換してください。 (必須)
- objectNonceId (form): WeChatチャンネルのオブジェクトnonce IDはオプションです。
- last_buffer (form): 前の第一級WeChatチャンネルコメント応答から返されるページングバッファです。最初のページの場合は空にしてください。このPOSTエンドポイントでは、application/x-www-form-urlencoded形式のボディで送信してください。

返信形式：実際の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/weixin-channels/get-video-comment/v1"
headers = {
    "Content-Type": "application/x-www-form-urlencoded"
}
data = "token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer="
response = requests.post(url, headers=headers, data=data, 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/weixin-channels/get-video-comment/v1";

const response = await fetch(url, {
  method: "POST",
  headers: Object.fromEntries([
    ["Content-Type", "application/x-www-form-urlencoded"],
  ]),
  body: "token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer=",
  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/weixin-channels/get-video-comment/v1";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .header("Content-Type", "application/x-www-form-urlencoded")
            .method("POST", HttpRequest.BodyPublishers.ofString("token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer="));

        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/weixin-channels/get-video-comment/v1"
	var data = strings.NewReader("token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer=")
	req, _ := http.NewRequest("POST", url, data)
	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
	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/weixin-channels/get-video-comment/v1';

$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, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, 'token=YOUR_API_KEY&objectId=string&objectNonceId=&last_buffer=');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded',
]);
$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/wechat-channels/video-comments-v1-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> | WeChatチャンネル動画の第一級コメントとページング情報。 |
| <code>data.last_buffer</code> | <code>string</code> | 次の第一級コメントページの不透明バッファ。down_continue_flagが1の場合、この文字列を変更せずに次のフォームリクエストのlast_bufferフィールドに渡す。 |
| <code>data.down_continue_flag</code> | <code>integer</code> | 第一級ページングフラグ。別のページが利用可能な場合は1、最後には0。バッファは最後にも存在する可能性がある。 |
| <code>data.comment_info</code> | <code>array</code> | 要求されたページに対して返される第一級コメント。ページには空のリストが含まれることがある。 |
| <code>data.comment_info[]</code> | <code>object</code> | 要求された動画に関する第一級コメント一件。 |
| <code>data.comment_info[].comment_id</code> | <code>string</code> | このコメントのWeChatチャンネル識別子。 |
| <code>data.comment_info[].username</code> | <code>string</code> | コメント作成者のWeChatチャンネルアカウント識別子。 |
| <code>data.comment_info[].nickname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.comment_info[].content</code> | <code>string</code> | コメントのテキスト。 |
| <code>data.comment_info[].createtime</code> | <code>string</code> | コメントの作成時間がUnix秒で文字列としてエンコードされた値。 |
| <code>data.comment_info[].head_url</code> | <code>string</code> | コメント投稿者のアバター画像URL。 |
| <code>data.comment_info[].like_count</code> | <code>integer</code> | コメントのいいね数（報告値）。 |
| <code>data.comment_info[].dislike_count</code> | <code>integer</code> | コメントの低評価数（報告値）。 |
| <code>data.comment_info[].content_type</code> | <code>integer</code> | コメントに関する数値コンテンツタイプの報告値。 |
| <code>data.comment_info[].ip_region_info</code> | <code>object</code> | コメントと共に返される地域ラベル情報。 |
| <code>data.comment_info[].ip_region_info.region_text</code> | <code>string</code> | 提供された場合、コメントのIP地域ラベルの報告値。 |
| <code>data.comment_info[].author_contact</code> | <code>object</code> | コメントと共に返される投稿者情報。 |
| <code>data.comment_info[].author_contact.username</code> | <code>string</code> | コメント作成者のWeChatチャンネルアカウント識別子。 |
| <code>data.comment_info[].author_contact.nickname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.comment_info[].author_contact.head_url</code> | <code>string</code> | コメント投稿者のアバター画像URL。 |
| <code>data.comment_info[].reply_comment_id</code> | <code>string</code> | 親コメントの識別子フィールド。トップレベルのコメントがこの文字列「0」を返した場合。 |
| <code>data.comment_info[].expand_comment_count</code> | <code>integer</code> | このコメント下の返信数の報告値。レスポンスには返信のプレビューのみが含まれることがあります。 |
| <code>data.comment_info[].continue_flag</code> | <code>integer</code> | このコメントへの返信に対する続行フラグの報告値。 |
| <code>data.comment_info[].content_info</code> | <code>object</code> | このコメントに添付されている構造化スタンプ情報がある場合。 |
| <code>data.comment_info[].content_info.emoticon_infos</code> | <code>array</code> | コメントに表示されるスタンプ。 |
| <code>data.comment_info[].content_info.emoticon_infos[]</code> | <code>object</code> | コメントに添付されているスタンプ一つ。 |
| <code>data.comment_info[].content_info.emoticon_infos[].desc</code> | <code>string</code> | スタンプの表示説明。 |
| <code>data.comment_info[].content_info.emoticon_infos[].width</code> | <code>integer</code> | スタンプ画像のピクセル幅。 |
| <code>data.comment_info[].content_info.emoticon_infos[].height</code> | <code>integer</code> | スタンプ画像のピクセル高さ。 |
| <code>data.comment_info[].content_info.emoticon_infos[].emoticon_info</code> | <code>object</code> | このスタンプの表示アセット。 |
| <code>data.comment_info[].content_info.emoticon_infos[].emoticon_info.Url</code> | <code>string</code> | スタンプ画像のURL。 |
| <code>data.comment_info[].content_info.emoticon_infos[].emoticon_info.ThumbUrl</code> | <code>string</code> | スタンプのサムネイルURL。 |
| <code>data.comment_info[].author_reaction_info</code> | <code>object</code> | 提供された場合、ビデオ投稿者からの反応情報。 |
| <code>data.comment_info[].author_reaction_info.author_like_time</code> | <code>integer</code> | ビデオ投稿者がコメントを「いいね」した時刻（ユニックス秒）。 |
| <code>data.comment_info[].level_two_comment</code> | <code>array</code> | トップレベルコメントで返される返信のプレビュー。この配列は空になることがあります。 |
| <code>data.comment_info[].level_two_comment[]</code> | <code>object</code> | トップレベルコメントに含まれる返信一つ。 |
| <code>data.comment_info[].level_two_comment[].comment_id</code> | <code>string</code> | このコメントのWeChatチャンネル識別子。 |
| <code>data.comment_info[].level_two_comment[].username</code> | <code>string</code> | コメント作成者のWeChatチャンネルアカウント識別子。 |
| <code>data.comment_info[].level_two_comment[].nickname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.comment_info[].level_two_comment[].content</code> | <code>string</code> | コメントのテキスト。 |
| <code>data.comment_info[].level_two_comment[].createtime</code> | <code>string</code> | コメントの作成時間がUnix秒で文字列としてエンコードされた値。 |
| <code>data.comment_info[].level_two_comment[].head_url</code> | <code>string</code> | コメント投稿者のアバター画像URL。 |
| <code>data.comment_info[].level_two_comment[].like_count</code> | <code>integer</code> | コメントのいいね数（報告値）。 |
| <code>data.comment_info[].level_two_comment[].dislike_count</code> | <code>integer</code> | コメントの低評価数（報告値）。 |
| <code>data.comment_info[].level_two_comment[].content_type</code> | <code>integer</code> | コメントに関する数値コンテンツタイプの報告値。 |
| <code>data.comment_info[].level_two_comment[].ip_region_info</code> | <code>object</code> | コメントと共に返される地域ラベル情報。 |
| <code>data.comment_info[].level_two_comment[].ip_region_info.region_text</code> | <code>string</code> | 提供された場合、コメントのIP地域ラベルの報告値。 |
| <code>data.comment_info[].level_two_comment[].author_contact</code> | <code>object</code> | コメントと共に返される投稿者情報。 |
| <code>data.comment_info[].level_two_comment[].author_contact.username</code> | <code>string</code> | コメント作成者のWeChatチャンネルアカウント識別子。 |
| <code>data.comment_info[].level_two_comment[].author_contact.nickname</code> | <code>string</code> | コメント投稿者の表示名。 |
| <code>data.comment_info[].level_two_comment[].author_contact.head_url</code> | <code>string</code> | コメント投稿者のアバター画像URL。 |
| <code>data.comment_info[].level_two_comment[].reply_comment_id</code> | <code>string</code> | この返信のプレビューに対する親コメントの識別子。 |
| <code>data.comment_info[].level_two_comment[].reply_content</code> | <code>string</code> | 返信されているコメントの引用テキスト。 |
| <code>data.data</code> | <code>string</code> | コメントリストがない確認済みの成功レスポンスで、文字列として返される空のマーカー。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/weixin-channels/get-video-comment/v1\"")' />

