---
title: "Saluran WeChat Komentar Sub Video API (V1)"
description: "Mengambil balasan di bawah komentar tingkat pertama video WeChat Channels menggunakan ID video dan ID komentar utama. Gunakan untuk melanjutkan diskusi komentar berantai dengan paginasi buffer."
lastUpdated: false
aiUsagePrompt: true
---

# Saluran WeChat Komentar Sub Video API \(V1\)

<ApiTester
  method="POST"
  :path='JSON.parse("\"/api/weixin-channels/get-video-sub-comment/v1\"")'
  :summary='JSON.parse("\"Komentar Sub Video (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/wechat-channels/video-sub-comments-v1-id.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\":\"Token akses untuk layanan API ini.\"},\"objectId\":{\"type\":\"string\",\"description\":\"ID objek video saluran WeChat yang digunakan untuk mengambil balasan komentar tingkat kedua.\"},\"rootCommentId\":{\"type\":\"string\",\"description\":\"ID komentar tingkat pertama utama yang dikembalikan oleh endpoint komentar video saluran WeChat.\"},\"last_buffer\":{\"type\":\"string\",\"default\":\"\",\"description\":\"Buffer untuk paginasi komentar tingkat kedua di saluran WeChat. Gunakan last_buffer dari komentar tingkat pertama untuk halaman pertama respons, jika tersedia. Untuk endpoint POST ini, kirimkan data dalam format body berbentuk application/x-www-form-urlencoded.\"}},\"required\":[\"objectId\",\"rootCommentId\",\"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\":\"Balasan untuk komentar root channel WeChat yang diminta dan informasi lanjutan.\",\"properties\":{\"comment_info\":{\"type\":\"array\",\"description\":\"Balasan yang dikembalikan pada halaman ini untuk komentar root yang diminta. Daftar ini bisa kosong.\",\"items\":{\"type\":\"object\",\"description\":\"Satu balasan yang disertakan pada halaman saat ini.\",\"properties\":{\"username\":{\"type\":\"string\",\"description\":\"Identifikasi akun channel WeChat yang dikembalikan untuk penulis balasan.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Nama samaran penulis balasan yang ditampilkan.\"},\"content\":{\"type\":\"string\",\"description\":\"Konten teks dari balasan.\"},\"comment_id\":{\"type\":\"string\",\"description\":\"Identifikasi channel WeChat untuk balasan ini.\"},\"reply_comment_id\":{\"type\":\"string\",\"description\":\"Identifikasi komentar yang ditanggapi oleh balasan ini.\"},\"head_url\":{\"type\":\"string\",\"description\":\"URL gambar avatar dikembalikan untuk penulis balasan.\"},\"level_two_comment\":{\"type\":\"array\",\"description\":\"Entri balasan terbungkus yang dikembalikan bersama balasan ini. Contoh yang terverifikasi mengembalikan daftar kosong.\"},\"createtime\":{\"type\":\"string\",\"description\":\"Waktu pembuatan balasan dalam satuan detik Unix, dikembalikan sebagai string.\"},\"like_count\":{\"type\":\"integer\",\"description\":\"Jumlah suka untuk balasan yang dilaporkan.\"},\"expand_comment_count\":{\"type\":\"integer\",\"description\":\"Jumlah komentar tambahan yang dilaporkan terkait entri ini.\"},\"reply_content\":{\"type\":\"string\",\"description\":\"Teks yang dikembalikan untuk komentar yang ditanggapi oleh balasan ini.\"},\"author_contact\":{\"type\":\"object\",\"description\":\"Informasi profil publik yang dikembalikan untuk penulis balasan.\",\"properties\":{\"username\":{\"type\":\"string\",\"description\":\"Identifikasi akun channel WeChat yang dikembalikan untuk pengguna ini.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Nama samaran yang ditampilkan untuk pengguna ini.\"},\"head_url\":{\"type\":\"string\",\"description\":\"URL gambar avatar yang dikembalikan untuk pengguna ini.\"}}},\"content_type\":{\"type\":\"integer\",\"description\":\"Kode jenis konten yang dilaporkan untuk balasan.\"},\"dislike_count\":{\"type\":\"integer\",\"description\":\"Jumlah dislike untuk balasan yang dilaporkan.\"},\"ip_region_info\":{\"type\":\"object\",\"description\":\"Informasi wilayah yang ditampilkan untuk balasan.\",\"properties\":{\"region_text\":{\"type\":\"string\",\"description\":\"Label wilayah IP yang ditampilkan bersama balasan.\"}}},\"search_keyword_info\":{\"type\":\"array\",\"description\":\"Entri kata kunci pencarian yang terkait dengan balasan. Sample yang terverifikasi mengembalikan daftar kosong.\"},\"mentioned_user_info\":{\"type\":\"array\",\"description\":\"Ucapan pengguna yang dilaporkan untuk balasan. Sample yang terverifikasi mengembalikan daftar kosong.\"},\"interaction_label_list\":{\"type\":\"array\",\"description\":\"Label interaksi yang dilaporkan untuk balasan. Sample yang terverifikasi mengembalikan daftar kosong.\"},\"reply_nickname\":{\"type\":\"string\",\"description\":\"Nama panggilan pengguna yang dituju oleh balasan ini, jika tersedia.\"},\"reply_username\":{\"type\":\"string\",\"description\":\"Identifikasi akun saluran WeChat untuk pengguna yang dituju oleh balasan ini, jika tersedia.\"},\"reply_contact\":{\"type\":\"object\",\"description\":\"Informasi profil publik yang dilaporkan untuk pengguna yang dituju oleh balasan ini.\",\"properties\":{\"username\":{\"type\":\"string\",\"description\":\"Identifikasi akun channel WeChat yang dikembalikan untuk pengguna ini.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Nama samaran yang ditampilkan untuk pengguna ini.\"},\"head_url\":{\"type\":\"string\",\"description\":\"URL gambar avatar yang dikembalikan untuk pengguna ini.\"}}}}}},\"last_buffer\":{\"type\":\"string\",\"description\":\"Buffer opak yang dilaporkan untuk halaman balasan ini. Jika down_continue_flag adalah 1, serahkan saja sebagai last_buffer dalam permintaan format berikut dengan objectId dan rootCommentId yang sama.\"},\"down_continue_flag\":{\"type\":\"integer\",\"description\":\"Flag kelanjutan untuk halaman balasan ini. Nilai yang terlihat adalah 1 ketika ada lebih banyak balasan yang tersedia, dan 0 di akhir.\"}}}}},\"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\":\"Parameter atau isi permintaan yang tidak valid\",\"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\":\"Token akses yang tidak valid atau tidak aktif\",\"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\":\"Izin ditolak\",\"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\":\"Laju permintaan atau batas kuota harian terlampaui\",\"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\":\"Kesalahan server internal\",\"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\":\"Layanan sementara tidak tersedia\",\"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 produksi global (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Mengambil balasan di bawah komentar tingkat pertama video WeChat Channels menggunakan ID video dan ID komentar utama. Gunakan untuk melanjutkan diskusi komentar berantai dengan paginasi buffer.</p>

## Body Permintaan

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

| Nama | Lokasi | Jenis | Wajib | Bawaan | Deskripsi |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | form | <code>string</code> | Ya | - | Token akses untuk layanan API ini. |
| <code>objectId</code> | form | <code>string</code> | Ya | - | ID objek video saluran WeChat yang digunakan untuk mengambil balasan komentar tingkat kedua. |
| <code>rootCommentId</code> | form | <code>string</code> | Ya | - | ID komentar tingkat pertama utama yang dikembalikan oleh endpoint komentar video saluran WeChat. |
| <code>last_buffer</code> | form | <code>string</code> | Tidak | <code></code> | Buffer untuk paginasi komentar tingkat kedua di saluran WeChat. Gunakan last_buffer dari komentar tingkat pertama untuk halaman pertama respons, jika tersedia. Untuk endpoint POST ini, kirimkan data dalam format body berbentuk application/x-www-form-urlencoded. |

</div>

## Contoh Kode

::: code-group

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

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Komentar Sub Video (V1)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/weixin-channels/get-video-sub-comment/v1
Endpoint API: BASE_URL + /api/weixin-channels/get-video-sub-comment/v1
Metode HTTP: POST
Autentikasi: Kirimkan "token" sebagai field body dalam format application/x-www-form-urlencoded.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/wechat-channels/video-sub-comments-v1-id.json
Header permintaan:
- Content-Type: application/x-www-form-urlencoded

Body Permintaan (Formulir):
- token (form): Token akses untuk layanan API ini. (Wajib)
- objectId (form): ID objek video saluran WeChat yang digunakan untuk mengambil balasan komentar tingkat kedua. (Wajib)
- rootCommentId (form): ID komentar tingkat pertama utama yang dikembalikan oleh endpoint komentar video saluran WeChat. (Wajib)
- last_buffer (form): Buffer untuk paginasi komentar tingkat kedua di saluran WeChat. Gunakan last_buffer dari komentar tingkat pertama untuk halaman pertama respons, jika tersedia. Untuk endpoint POST ini, kirimkan data dalam format body berbentuk application/x-www-form-urlencoded.

Format Kembalian: tangani dengan aman JSON atau teks sesuai dengan Content-Type yang sebenarnya.

Penanganan respons dan kode kesalahan:
1. Tentukan hasil pemrosesan dari kolom "code" dalam isi respons (code 0 berarti berhasil).
2. Batas waktu yang disarankan: Atur batas waktu permintaan menjadi 120 detik. Jika 120 detik terlalu lama untuk kebutuhan Anda, gunakan setidaknya 60 detik. Sebagian kecil permintaan mungkin mencapai batas waktu sebelum hasil diterima.
3. Kode hasil:
   - 0: Berhasil
   - 100: Token tidak valid atau tidak aktif
   - 301: Gagal mengambil data. Silakan coba lagi.
   - 302: Batas frekuensi permintaan terlampaui
   - 303: Kuota harian terlampaui
   - 400: Parameter tidak valid
   - 500: Kesalahan internal server
   - 600: Akses ditolak
   - 601: Saldo tidak mencukupi
   - 602: Batas anggaran token tercapai
4. Kode 601 berarti saldo bersama akun tidak mencukupi. Kode 602 berarti token API yang digunakan telah mencapai batas anggaran kumulatifnya sendiri. Menetapkan batas anggaran token tidak memindahkan dana dari saldo bersama akun.

Tolong bantu saya menulis skrip dalam bahasa pemrograman favorit saya untuk memanggil API ini dan menangani responsnya.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Diberikan oleh server OpenAPI

url = BASE_URL + "/api/weixin-channels/get-video-sub-comment/v1"
headers = {
    "Content-Type": "application/x-www-form-urlencoded"
}
data = "token=YOUR_API_KEY&objectId=string&rootCommentId=string&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"; // Diberikan oleh server OpenAPI
const url = BASE_URL + "/api/weixin-channels/get-video-sub-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&rootCommentId=string&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"; // Diberikan oleh server OpenAPI
        final String url = BASE_URL + "/api/weixin-channels/get-video-sub-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&rootCommentId=string&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" // Diberikan oleh server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/weixin-channels/get-video-sub-comment/v1"
	var data = strings.NewReader("token=YOUR_API_KEY&objectId=string&rootCommentId=string&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'; // Diberikan oleh server OpenAPI
$url = $BASE_URL . '/api/weixin-channels/get-video-sub-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&rootCommentId=string&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-sub-comments-v1-id.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Definisi OpenAPI (JSON)]</a>
</div>

## Field Respons

Field Kunci dalam respons yang sukses (`code = 0`).

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

| Jalur Field | Jenis | Deskripsi |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Balasan untuk komentar root channel WeChat yang diminta dan informasi lanjutan. |
| <code>data.comment_info</code> | <code>array</code> | Balasan yang dikembalikan pada halaman ini untuk komentar root yang diminta. Daftar ini bisa kosong. |
| <code>data.comment_info[]</code> | <code>object</code> | Satu balasan yang disertakan pada halaman saat ini. |
| <code>data.comment_info[].username</code> | <code>string</code> | Identifikasi akun channel WeChat yang dikembalikan untuk penulis balasan. |
| <code>data.comment_info[].nickname</code> | <code>string</code> | Nama samaran penulis balasan yang ditampilkan. |
| <code>data.comment_info[].content</code> | <code>string</code> | Konten teks dari balasan. |
| <code>data.comment_info[].comment_id</code> | <code>string</code> | Identifikasi channel WeChat untuk balasan ini. |
| <code>data.comment_info[].reply_comment_id</code> | <code>string</code> | Identifikasi komentar yang ditanggapi oleh balasan ini. |
| <code>data.comment_info[].head_url</code> | <code>string</code> | URL gambar avatar dikembalikan untuk penulis balasan. |
| <code>data.comment_info[].level_two_comment</code> | <code>array</code> | Entri balasan terbungkus yang dikembalikan bersama balasan ini. Contoh yang terverifikasi mengembalikan daftar kosong. |
| <code>data.comment_info[].createtime</code> | <code>string</code> | Waktu pembuatan balasan dalam satuan detik Unix, dikembalikan sebagai string. |
| <code>data.comment_info[].like_count</code> | <code>integer</code> | Jumlah suka untuk balasan yang dilaporkan. |
| <code>data.comment_info[].expand_comment_count</code> | <code>integer</code> | Jumlah komentar tambahan yang dilaporkan terkait entri ini. |
| <code>data.comment_info[].reply_content</code> | <code>string</code> | Teks yang dikembalikan untuk komentar yang ditanggapi oleh balasan ini. |
| <code>data.comment_info[].author_contact</code> | <code>object</code> | Informasi profil publik yang dikembalikan untuk penulis balasan. |
| <code>data.comment_info[].author_contact.username</code> | <code>string</code> | Identifikasi akun channel WeChat yang dikembalikan untuk pengguna ini. |
| <code>data.comment_info[].author_contact.nickname</code> | <code>string</code> | Nama samaran yang ditampilkan untuk pengguna ini. |
| <code>data.comment_info[].author_contact.head_url</code> | <code>string</code> | URL gambar avatar yang dikembalikan untuk pengguna ini. |
| <code>data.comment_info[].content_type</code> | <code>integer</code> | Kode jenis konten yang dilaporkan untuk balasan. |
| <code>data.comment_info[].dislike_count</code> | <code>integer</code> | Jumlah dislike untuk balasan yang dilaporkan. |
| <code>data.comment_info[].ip_region_info</code> | <code>object</code> | Informasi wilayah yang ditampilkan untuk balasan. |
| <code>data.comment_info[].ip_region_info.region_text</code> | <code>string</code> | Label wilayah IP yang ditampilkan bersama balasan. |
| <code>data.comment_info[].search_keyword_info</code> | <code>array</code> | Entri kata kunci pencarian yang terkait dengan balasan. Sample yang terverifikasi mengembalikan daftar kosong. |
| <code>data.comment_info[].mentioned_user_info</code> | <code>array</code> | Ucapan pengguna yang dilaporkan untuk balasan. Sample yang terverifikasi mengembalikan daftar kosong. |
| <code>data.comment_info[].interaction_label_list</code> | <code>array</code> | Label interaksi yang dilaporkan untuk balasan. Sample yang terverifikasi mengembalikan daftar kosong. |
| <code>data.comment_info[].reply_nickname</code> | <code>string</code> | Nama panggilan pengguna yang dituju oleh balasan ini, jika tersedia. |
| <code>data.comment_info[].reply_username</code> | <code>string</code> | Identifikasi akun saluran WeChat untuk pengguna yang dituju oleh balasan ini, jika tersedia. |
| <code>data.comment_info[].reply_contact</code> | <code>object</code> | Informasi profil publik yang dilaporkan untuk pengguna yang dituju oleh balasan ini. |
| <code>data.comment_info[].reply_contact.username</code> | <code>string</code> | Identifikasi akun channel WeChat yang dikembalikan untuk pengguna ini. |
| <code>data.comment_info[].reply_contact.nickname</code> | <code>string</code> | Nama samaran yang ditampilkan untuk pengguna ini. |
| <code>data.comment_info[].reply_contact.head_url</code> | <code>string</code> | URL gambar avatar yang dikembalikan untuk pengguna ini. |
| <code>data.last_buffer</code> | <code>string</code> | Buffer opak yang dilaporkan untuk halaman balasan ini. Jika down_continue_flag adalah 1, serahkan saja sebagai last_buffer dalam permintaan format berikut dengan objectId dan rootCommentId yang sama. |
| <code>data.down_continue_flag</code> | <code>integer</code> | Flag kelanjutan untuk halaman balasan ini. Nilai yang terlihat adalah 1 ketika ada lebih banyak balasan yang tersedia, dan 0 di akhir. |

</div>

## Contoh Respons

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

