---
title: "Douyin (TikTok ประเทศจีน) คำแสดงความคิดเห็นในวิดีโอ API (V1)"
description: "ค้นหาคำแสดงความคิดเห็นระดับสูงสุดของวิดีโอ Douyin (TikTok China) โดยใช้ ID aweme พร้อมการแสดงผลแบบหน้า ใช้เพื่อตรวจสอบความคิดเห็นจากผู้ชมหรือวิเคราะห์การอภิปรายรอบๆ วิดีโอที่รู้จัก。"
lastUpdated: false
aiUsagePrompt: true
---

# Douyin \(TikTok ประเทศจีน\) คำแสดงความคิดเห็นในวิดีโอ API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/get-video-comment/v1\"")'
  :summary='JSON.parse("\"คำแสดงความคิดเห็นในวิดีโอ (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-comments-v1-th.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"โทเค็นการเข้าถึงสำหรับบริการ API นี้\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"awemeId\",\"in\":\"query\",\"description\":\"ID ตัวตนของวิดีโอที่ไม่ซ้ำกัน (aweme_id)\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"หมายเลขหน้า (เริ่มต้นจาก 1).\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}}]")'
  :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\":\"หน้าแรกของความคิดเห็นระดับสูงสุดสำหรับวิดีโอ Douyin ที่ต้องการ\",\"properties\":{\"comments\":{\"type\":[\"array\",\"null\"],\"description\":\"คอมเมนต์ระดับสูงบนหน้าเว็บที่ถูกขอ หน้าเว็บที่ว่างเปล่าอาจส่งกลับค่า null คอมเมนต์อาจเกิดซ้ำกันในหน้าเว็บต่างๆ ใช้ cid เพื่อกำจัดคอมเมนต์ซ้ำ\",\"items\":{\"type\":\"object\",\"description\":\"คำอธิบายระดับสูงหนึ่งเกี่ยวกับวิดีโอ\",\"properties\":{\"cid\":{\"type\":\"string\",\"description\":\"ID ของคำอธิบายในรูปแบบข้อความ\"},\"aweme_id\":{\"type\":\"string\",\"description\":\"ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับคำอธิบายในรูปแบบข้อความ\"},\"text\":{\"type\":\"string\",\"description\":\"ข้อความของคำอธิบาย คำอธิบายที่มีไฟล์ media อาจมีข้อความว่างเปล่า\"},\"create_time\":{\"type\":\"integer\",\"description\":\"เวลาการเผยแพร่คำอธิบายในรูปแบบเวลา Unix ในหน่วยวินาที\"},\"digg_count\":{\"type\":\"integer\",\"description\":\"จำนวนครั้งที่มีคนชื่นชมคำอธิบายนี้\"},\"ip_label\":{\"type\":\"string\",\"description\":\"ป้ายกำกับของ IP ที่เผยแพร่คำอธิบาย หากมี\"},\"reply_comment_total\":{\"type\":\"integer\",\"description\":\"จำนวนครั้งที่มีคนตอบคำอธิบายนี้ ภาพตัวอย่างการตอบอาจครอบคลุมเพียงบางส่วนของจำนวนนั้น\"},\"reply_id\":{\"type\":\"string\",\"description\":\"ID คอมเมนต์หลักที่ถูกรายงาน คอมเมนต์ระดับสูงอาจส่งกลับค่า “0”\"},\"reply_to_reply_id\":{\"type\":\"string\",\"description\":\"ID ของเป้าหมายการตอบกลับ คำอธิบายนี้อาจเป็น “0”\"},\"user\":{\"type\":\"object\",\"description\":\"ข้อมูลบัญชีสาธารณะของผู้เขียนคำอธิบาย\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"ID บัญชี Douyin ในรูปแบบข้อความ\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ตัวระบุบัญชี Douyin สาธารณะที่ใช้ในลิงก์โปรไฟล์\"},\"short_id\":{\"type\":\"string\",\"description\":\"อุปกรณ์สั้นที่ดูyin รายงาน\"},\"unique_id\":{\"type\":\"string\",\"description\":\"Handle ของ Douyin สาธารณะ หากมี\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงของผู้เขียนความคิดเห็น\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"ไอคอนภาพหน้าปก\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}},\"avatar_medium\":{\"type\":\"object\",\"description\":\"ไอคอนขนาดกลาง\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}}}},\"reply_comment\":{\"type\":[\"array\",\"null\"],\"description\":\"ภาพตัวอย่างการตอบที่เลือกใช้กับคำอธิบายนี้ ใช้ endpoint Comment Replies เพื่อรับรายการการตอบที่แสดงเป็นหน้า\",\"items\":{\"type\":\"object\",\"description\":\"การตอบหนึ่งที่แสดงในภาพตัวอย่างคำอธิบาย\",\"properties\":{\"cid\":{\"type\":\"string\",\"description\":\"ID ของคำอธิบายในรูปแบบข้อความ\"},\"aweme_id\":{\"type\":\"string\",\"description\":\"ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับคำอธิบายในรูปแบบข้อความ\"},\"text\":{\"type\":\"string\",\"description\":\"ข้อความของคำอธิบาย คำอธิบายที่มีไฟล์ media อาจมีข้อความว่างเปล่า\"},\"create_time\":{\"type\":\"integer\",\"description\":\"เวลาการเผยแพร่คำอธิบายในรูปแบบเวลา Unix ในหน่วยวินาที\"},\"digg_count\":{\"type\":\"integer\",\"description\":\"จำนวนครั้งที่มีคนชื่นชมคำอธิบายนี้\"},\"reply_id\":{\"type\":\"string\",\"description\":\"ID คอมเมนต์หลักที่ถูกรายงาน คอมเมนต์ระดับสูงอาจส่งกลับค่า “0”\"},\"reply_to_reply_id\":{\"type\":\"string\",\"description\":\"ID ของเป้าหมายการตอบกลับ คำอธิบายนี้อาจเป็น “0”\"},\"is_author_digged\":{\"type\":\"boolean\",\"description\":\"ว่าผู้สร้างวิดีโอชื่นชมคำอธิบายนี้หรือไม่\"},\"label_text\":{\"type\":\"string\",\"description\":\"ข้อความป้ายกำกับของคำอธิบาย ซึ่งอาจว่างเปล่า\"},\"user\":{\"type\":\"object\",\"description\":\"ข้อมูลบัญชีสาธารณะของผู้เขียนโพสต์\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"ID บัญชี Douyin ในรูปแบบข้อความ\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ตัวระบุบัญชี Douyin สาธารณะที่ใช้ในลิงก์โปรไฟล์\"},\"short_id\":{\"type\":\"string\",\"description\":\"อุปกรณ์สั้นที่ดูyin รายงาน\"},\"unique_id\":{\"type\":\"string\",\"description\":\"Handle ของ Douyin สาธารณะ หากมี\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงของผู้เขียนความคิดเห็น\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"ไอคอนภาพหน้าปก\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}}}}}}},\"image_list\":{\"type\":[\"array\",\"null\"],\"description\":\"ภาพที่ถูกแนบมาพร้อมกับคอมเมนต์นี้ ฟิลด์นี้สามารถเป็น null ได้\",\"items\":{\"type\":\"object\",\"description\":\"ภาพหนึ่งพร้อมกับเวอร์ชันที่มีอยู่\",\"properties\":{\"origin_url\":{\"type\":\"object\",\"description\":\"เวอร์ชันภาพต้นฉบับ\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}},\"crop_url\":{\"type\":\"object\",\"description\":\"เวอร์ชันภาพที่ถูกตัดขนาด\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}},\"thumb_url\":{\"type\":\"object\",\"description\":\"เวอร์ชันภาพขนาดย่อ\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}},\"medium_url\":{\"type\":\"object\",\"description\":\"เวอร์ชันภาพขนาดกลาง\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}},\"download_url\":{\"type\":\"object\",\"description\":\"ทรัพยากรภาพที่ถูกระบุให้ดาวน์โหลด\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}}}}},\"sticker\":{\"type\":\"object\",\"description\":\"ตั๊กกี้ที่ถูกแนบมาพร้อมกับคอมเมนต์ หากมี\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"ID ตัวเลขของสติกเกอร์\"},\"id_str\":{\"type\":\"string\",\"description\":\"ID ของสติกเกอร์ในรูปแบบข้อความ\"},\"author_sec_uid\":{\"type\":\"string\",\"description\":\"ตัวระบุบัญชี Douyin สาธารณะของผู้สร้างสติกเกอร์\"},\"origin_package_id\":{\"type\":\"integer\",\"description\":\"ID ของแพ็คเกจต้นฉบับของสติกเกอร์\"},\"sticker_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทตัวเลขที่รายงานสำหรับสติกเกอร์\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"},\"static_url\":{\"type\":\"object\",\"description\":\"ทรัพยากรสติกเกอร์แบบคงที่\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}},\"animate_url\":{\"type\":\"object\",\"description\":\"ทรัพยากรสติกเกอร์แบบแอนิเมชัน\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้\",\"items\":{\"type\":\"string\",\"description\":\"URL หนึ่งสำหรับไอคอนนี้\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของไอคอนนี้ในพิกเซลที่รายงาน\"}}}}},\"text_extra\":{\"type\":\"array\",\"description\":\"คำอธิบายที่เกี่ยวข้องกับข้อความคอมเมนต์ เช่น การกล่าวถึงผู้ใช้\",\"items\":{\"type\":\"object\",\"description\":\"คำอธิบายหนึ่งในข้อความคอมเมนต์\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทตัวเลขที่รายงานสำหรับคำอธิบายข้อความ\"},\"start\":{\"type\":\"integer\",\"description\":\"ค่าความเคลื่อนที่เริ่มต้นที่รายงานสำหรับคำอธิบายในข้อความคอมเมนต์\"},\"end\":{\"type\":\"integer\",\"description\":\"ค่าความเคลื่อนที่สิ้นสุดที่รายงานสำหรับคำอธิบายในข้อความคอมเมนต์\"},\"user_id\":{\"type\":\"string\",\"description\":\"ID บัญชี Douyin ที่เกี่ยวข้องกับคำอธิบาย ถูกแสดงเป็นข้อความ\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ตัวระบุบัญชี Douyin สาธารณะที่เกี่ยวข้องกับคำอธิบาย\"}}}},\"content_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทเนื้อหาที่รายงานสำหรับคำอธิบายนี้\"},\"status\":{\"type\":\"integer\",\"description\":\"รหัสสถานะตัวเลขที่รายงานสำหรับคำอธิบายนี้\"},\"is_hot\":{\"type\":\"boolean\",\"description\":\"คำอธิบายว่าคำอธิบายนี้ถูกจัดให้เป็นคำอธิบายที่ได้รับความนิยมหรือไม่\"},\"is_folded\":{\"type\":\"boolean\",\"description\":\"คำอธิบายว่าคำอธิบายนี้ถูกจัดให้เป็นคำอธิบายที่ถูกพับหรือไม่\"},\"is_author_digged\":{\"type\":\"boolean\",\"description\":\"ว่าผู้สร้างวิดีโอชื่นชมคำอธิบายนี้หรือไม่\"},\"user_digged\":{\"type\":\"integer\",\"description\":\"สถานะตัวเลขที่รายงานสำหรับบริบทของผู้ชม\"},\"can_collect\":{\"type\":\"boolean\",\"description\":\"คำตอบที่ระบุว่าคำอธิบายนี้สามารถบันทึกหรือแชร์ได้หรือไม่\"},\"can_share\":{\"type\":\"boolean\",\"description\":\"รหัสประเภทตัวเลขที่รายงานสำหรับป้ายกำกับของคำอธิบาย\"},\"label_text\":{\"type\":\"string\",\"description\":\"ข้อความป้ายกำกับของคำอธิบาย ซึ่งอาจว่างเปล่า\"},\"label_type\":{\"type\":\"integer\",\"description\":\"รายการป้ายกำกับที่ส่งกลับมาพร้อมกับคำอธิบายนี้ ฟิลด์นี้อาจเป็น null\"},\"label_list\":{\"type\":[\"array\",\"null\"],\"description\":\"รายการป้ายกำกับที่ส่งกลับพร้อมความคิดเห็นนี้ ฟิลด์นี้อาจมีค่า null\",\"items\":{\"type\":\"object\",\"description\":\"ป้ายกำกับหนึ่งรายการที่แนบกับความคิดเห็น\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"รายการป้ายกำกับที่ส่งกลับมาพร้อมกับคำอธิบายนี้ ฟิลด์นี้อาจเป็น null\"},\"text\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงสำหรับแหล่งข้อมูลนี้\"}}}},\"item_comment_total\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นทั้งหมดที่แสดงในวิดีโอ รวมถึงความคิดเห็นนี้ด้วย\"}}}},\"status_code\":{\"type\":\"integer\",\"description\":\"รหัสสถานะภายในที่รายงานสำหรับหน้าแสดงความคิดเห็น\"},\"cursor\":{\"type\":\"integer\",\"description\":\"ตำแหน่งการแสดงผลแบบพาร์ติชันสำหรับการตอบกลับ รีบูตได้โดยการเพิ่มค่าพารามิเตอร์ page ของคำขอ\"},\"has_more\":{\"type\":\"integer\",\"description\":\"ตัวบ่งชี้การแสดงผลแบบพาร์ติชัน ค่า 1 หมายถึงหน้าอีกหน้า ค่า 0 หมายถึงจบ\"},\"total\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นทั้งหมดสำหรับหน้านี้ อาจแตกต่างจากจำนวนความคิดเห็นที่ได้รับจากหลายหน้า หน้าที่ว่างอาจรายงานเป็น 0\"},\"extra\":{\"type\":\"object\",\"description\":\"ข้อมูลเวลาเพิ่มเติมสำหรับหน้าแสดงความคิดเห็น\",\"properties\":{\"now\":{\"type\":\"integer\",\"description\":\"เวลาตอบกลับที่รายงานเป็นมิลลิวินาทีตาม Unix\"}}}}}}},\"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\":\"ท่อนำข้อมูลหรือ access token ที่ไม่ถูกต้องหรือไม่มีการใช้งาน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"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/douyin/get-video-comment/v1\"")' />

<p>ค้นหาคำแสดงความคิดเห็นระดับสูงสุดของวิดีโอ Douyin (TikTok China) โดยใช้ ID aweme พร้อมการแสดงผลแบบหน้า ใช้เพื่อตรวจสอบความคิดเห็นจากผู้ชมหรือวิเคราะห์การอภิปรายรอบๆ วิดีโอที่รู้จัก。</p>

## พารามิเตอร์

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

| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
| <code>awemeId</code> | query | <code>string</code> | ใช่ | - | ID ตัวตนของวิดีโอที่ไม่ซ้ำกัน (aweme_id) |
| <code>page</code> | query | <code>integer</code> | ไม่ใช่ | <code>1</code> | หมายเลขหน้า (เริ่มต้นจาก 1). |

</div>

## ตัวอย่างโค้ด

::: code-group

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

```text [🤖 คำแนะนำสำหรับ AI]
ฉันต้องการใช้ API "คำแสดงความคิดเห็นในวิดีโอ (V1)" จาก JustOneAPI.
URL หลัก: https://api.justoneapi.com.
เส้นทาง API: /api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=VALUE
เอนด์พอยต์ API: BASE_URL + /api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=VALUE
เมธอด HTTP: GET
การยืนยันตัวตน: เพิ่มพารามิเตอร์ "token" เข้าไปใน URL.
คำนิยาม OpenAPI: https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-comments-v1-th.json

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- awemeId (query): ID ตัวตนของวิดีโอที่ไม่ซ้ำกัน (aweme_id) (จำเป็น)
- page (query): หมายเลขหน้า (เริ่มต้นจาก 1).

รูปแบบที่ส่งกลับ: จัดการ JSON หรือข้อความอย่างปลอดภัยตามค่า Content-Type ที่ได้รับจริง

การจัดการผลตอบกลับและรหัสข้อผิดพลาด:
1. ตรวจสอบผลการทำงานจากฟิลด์ "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"  # ให้โดยเซิร์ฟเวอร์ OpenAPI

url = BASE_URL + "/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=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"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
const url = BASE_URL + "/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=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"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
        final String url = BASE_URL + "/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=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" // ให้โดยเซิร์ฟเวอร์ OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=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'; // ให้โดยเซิร์ฟเวอร์ OpenAPI
$url = $BASE_URL . '/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=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/douyin-tiktok-china/video-comments-v1-th.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> | หน้าแรกของความคิดเห็นระดับสูงสุดสำหรับวิดีโอ Douyin ที่ต้องการ |
| <code>data.comments</code> | <code>array &#124; null</code> | คอมเมนต์ระดับสูงบนหน้าเว็บที่ถูกขอ หน้าเว็บที่ว่างเปล่าอาจส่งกลับค่า null คอมเมนต์อาจเกิดซ้ำกันในหน้าเว็บต่างๆ ใช้ cid เพื่อกำจัดคอมเมนต์ซ้ำ |
| <code>data.comments[]</code> | <code>object</code> | คำอธิบายระดับสูงหนึ่งเกี่ยวกับวิดีโอ |
| <code>data.comments[].cid</code> | <code>string</code> | ID ของคำอธิบายในรูปแบบข้อความ |
| <code>data.comments[].aweme_id</code> | <code>string</code> | ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับคำอธิบายในรูปแบบข้อความ |
| <code>data.comments[].text</code> | <code>string</code> | ข้อความของคำอธิบาย คำอธิบายที่มีไฟล์ media อาจมีข้อความว่างเปล่า |
| <code>data.comments[].create_time</code> | <code>integer</code> | เวลาการเผยแพร่คำอธิบายในรูปแบบเวลา Unix ในหน่วยวินาที |
| <code>data.comments[].digg_count</code> | <code>integer</code> | จำนวนครั้งที่มีคนชื่นชมคำอธิบายนี้ |
| <code>data.comments[].ip_label</code> | <code>string</code> | ป้ายกำกับของ IP ที่เผยแพร่คำอธิบาย หากมี |
| <code>data.comments[].reply_comment_total</code> | <code>integer</code> | จำนวนครั้งที่มีคนตอบคำอธิบายนี้ ภาพตัวอย่างการตอบอาจครอบคลุมเพียงบางส่วนของจำนวนนั้น |
| <code>data.comments[].reply_id</code> | <code>string</code> | ID คอมเมนต์หลักที่ถูกรายงาน คอมเมนต์ระดับสูงอาจส่งกลับค่า “0” |
| <code>data.comments[].reply_to_reply_id</code> | <code>string</code> | ID ของเป้าหมายการตอบกลับ คำอธิบายนี้อาจเป็น “0” |
| <code>data.comments[].user</code> | <code>object</code> | ข้อมูลบัญชีสาธารณะของผู้เขียนคำอธิบาย |
| <code>data.comments[].user.uid</code> | <code>string</code> | ID บัญชี Douyin ในรูปแบบข้อความ |
| <code>data.comments[].user.sec_uid</code> | <code>string</code> | ตัวระบุบัญชี Douyin สาธารณะที่ใช้ในลิงก์โปรไฟล์ |
| <code>data.comments[].user.short_id</code> | <code>string</code> | อุปกรณ์สั้นที่ดูyin รายงาน |
| <code>data.comments[].user.unique_id</code> | <code>string</code> | Handle ของ Douyin สาธารณะ หากมี |
| <code>data.comments[].user.nickname</code> | <code>string</code> | ชื่อที่แสดงของผู้เขียนความคิดเห็น |
| <code>data.comments[].user.avatar_thumb</code> | <code>object</code> | ไอคอนภาพหน้าปก |
| <code>data.comments[].user.avatar_thumb.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].user.avatar_thumb.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].user.avatar_thumb.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].user.avatar_thumb.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].user.avatar_thumb.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].user.avatar_medium</code> | <code>object</code> | ไอคอนขนาดกลาง |
| <code>data.comments[].user.avatar_medium.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].user.avatar_medium.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].user.avatar_medium.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].user.avatar_medium.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].user.avatar_medium.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].reply_comment</code> | <code>array &#124; null</code> | ภาพตัวอย่างการตอบที่เลือกใช้กับคำอธิบายนี้ ใช้ endpoint Comment Replies เพื่อรับรายการการตอบที่แสดงเป็นหน้า |
| <code>data.comments[].reply_comment[]</code> | <code>object</code> | การตอบหนึ่งที่แสดงในภาพตัวอย่างคำอธิบาย |
| <code>data.comments[].reply_comment[].cid</code> | <code>string</code> | ID ของคำอธิบายในรูปแบบข้อความ |
| <code>data.comments[].reply_comment[].aweme_id</code> | <code>string</code> | ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับคำอธิบายในรูปแบบข้อความ |
| <code>data.comments[].reply_comment[].text</code> | <code>string</code> | ข้อความของคำอธิบาย คำอธิบายที่มีไฟล์ media อาจมีข้อความว่างเปล่า |
| <code>data.comments[].reply_comment[].create_time</code> | <code>integer</code> | เวลาการเผยแพร่คำอธิบายในรูปแบบเวลา Unix ในหน่วยวินาที |
| <code>data.comments[].reply_comment[].digg_count</code> | <code>integer</code> | จำนวนครั้งที่มีคนชื่นชมคำอธิบายนี้ |
| <code>data.comments[].reply_comment[].reply_id</code> | <code>string</code> | ID คอมเมนต์หลักที่ถูกรายงาน คอมเมนต์ระดับสูงอาจส่งกลับค่า “0” |
| <code>data.comments[].reply_comment[].reply_to_reply_id</code> | <code>string</code> | ID ของเป้าหมายการตอบกลับ คำอธิบายนี้อาจเป็น “0” |
| <code>data.comments[].reply_comment[].is_author_digged</code> | <code>boolean</code> | ว่าผู้สร้างวิดีโอชื่นชมคำอธิบายนี้หรือไม่ |
| <code>data.comments[].reply_comment[].label_text</code> | <code>string</code> | ข้อความป้ายกำกับของคำอธิบาย ซึ่งอาจว่างเปล่า |
| <code>data.comments[].reply_comment[].user</code> | <code>object</code> | ข้อมูลบัญชีสาธารณะของผู้เขียนโพสต์ |
| <code>data.comments[].reply_comment[].user.uid</code> | <code>string</code> | ID บัญชี Douyin ในรูปแบบข้อความ |
| <code>data.comments[].reply_comment[].user.sec_uid</code> | <code>string</code> | ตัวระบุบัญชี Douyin สาธารณะที่ใช้ในลิงก์โปรไฟล์ |
| <code>data.comments[].reply_comment[].user.short_id</code> | <code>string</code> | อุปกรณ์สั้นที่ดูyin รายงาน |
| <code>data.comments[].reply_comment[].user.unique_id</code> | <code>string</code> | Handle ของ Douyin สาธารณะ หากมี |
| <code>data.comments[].reply_comment[].user.nickname</code> | <code>string</code> | ชื่อที่แสดงของผู้เขียนความคิดเห็น |
| <code>data.comments[].reply_comment[].user.avatar_thumb</code> | <code>object</code> | ไอคอนภาพหน้าปก |
| <code>data.comments[].reply_comment[].user.avatar_thumb.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].reply_comment[].user.avatar_thumb.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].reply_comment[].user.avatar_thumb.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].reply_comment[].user.avatar_thumb.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].reply_comment[].user.avatar_thumb.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list</code> | <code>array &#124; null</code> | ภาพที่ถูกแนบมาพร้อมกับคอมเมนต์นี้ ฟิลด์นี้สามารถเป็น null ได้ |
| <code>data.comments[].image_list[]</code> | <code>object</code> | ภาพหนึ่งพร้อมกับเวอร์ชันที่มีอยู่ |
| <code>data.comments[].image_list[].origin_url</code> | <code>object</code> | เวอร์ชันภาพต้นฉบับ |
| <code>data.comments[].image_list[].origin_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].origin_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].image_list[].origin_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].origin_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].origin_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].crop_url</code> | <code>object</code> | เวอร์ชันภาพที่ถูกตัดขนาด |
| <code>data.comments[].image_list[].crop_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].crop_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].image_list[].crop_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].crop_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].crop_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].thumb_url</code> | <code>object</code> | เวอร์ชันภาพขนาดย่อ |
| <code>data.comments[].image_list[].thumb_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].thumb_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].image_list[].thumb_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].thumb_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].thumb_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].medium_url</code> | <code>object</code> | เวอร์ชันภาพขนาดกลาง |
| <code>data.comments[].image_list[].medium_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].medium_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].image_list[].medium_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].medium_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].medium_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].download_url</code> | <code>object</code> | ทรัพยากรภาพที่ถูกระบุให้ดาวน์โหลด |
| <code>data.comments[].image_list[].download_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].download_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].image_list[].download_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].image_list[].download_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].image_list[].download_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].sticker</code> | <code>object</code> | ตั๊กกี้ที่ถูกแนบมาพร้อมกับคอมเมนต์ หากมี |
| <code>data.comments[].sticker.id</code> | <code>integer</code> | ID ตัวเลขของสติกเกอร์ |
| <code>data.comments[].sticker.id_str</code> | <code>string</code> | ID ของสติกเกอร์ในรูปแบบข้อความ |
| <code>data.comments[].sticker.author_sec_uid</code> | <code>string</code> | ตัวระบุบัญชี Douyin สาธารณะของผู้สร้างสติกเกอร์ |
| <code>data.comments[].sticker.origin_package_id</code> | <code>integer</code> | ID ของแพ็คเกจต้นฉบับของสติกเกอร์ |
| <code>data.comments[].sticker.sticker_type</code> | <code>integer</code> | รหัสประเภทตัวเลขที่รายงานสำหรับสติกเกอร์ |
| <code>data.comments[].sticker.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].sticker.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].sticker.static_url</code> | <code>object</code> | ทรัพยากรสติกเกอร์แบบคงที่ |
| <code>data.comments[].sticker.static_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].sticker.static_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].sticker.static_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].sticker.static_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].sticker.static_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].sticker.animate_url</code> | <code>object</code> | ทรัพยากรสติกเกอร์แบบแอนิเมชัน |
| <code>data.comments[].sticker.animate_url.uri</code> | <code>string</code> | ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับไอคอนนี้ |
| <code>data.comments[].sticker.animate_url.url_list</code> | <code>array</code> | URL ที่ถูกส่งกลับมาสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].sticker.animate_url.url_list[]</code> | <code>string</code> | URL หนึ่งสำหรับไอคอนนี้ |
| <code>data.comments[].sticker.animate_url.width</code> | <code>integer</code> | ความกว้างของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].sticker.animate_url.height</code> | <code>integer</code> | ความสูงของไอคอนนี้ในพิกเซลที่รายงาน |
| <code>data.comments[].text_extra</code> | <code>array</code> | คำอธิบายที่เกี่ยวข้องกับข้อความคอมเมนต์ เช่น การกล่าวถึงผู้ใช้ |
| <code>data.comments[].text_extra[]</code> | <code>object</code> | คำอธิบายหนึ่งในข้อความคอมเมนต์ |
| <code>data.comments[].text_extra[].type</code> | <code>integer</code> | รหัสประเภทตัวเลขที่รายงานสำหรับคำอธิบายข้อความ |
| <code>data.comments[].text_extra[].start</code> | <code>integer</code> | ค่าความเคลื่อนที่เริ่มต้นที่รายงานสำหรับคำอธิบายในข้อความคอมเมนต์ |
| <code>data.comments[].text_extra[].end</code> | <code>integer</code> | ค่าความเคลื่อนที่สิ้นสุดที่รายงานสำหรับคำอธิบายในข้อความคอมเมนต์ |
| <code>data.comments[].text_extra[].user_id</code> | <code>string</code> | ID บัญชี Douyin ที่เกี่ยวข้องกับคำอธิบาย ถูกแสดงเป็นข้อความ |
| <code>data.comments[].text_extra[].sec_uid</code> | <code>string</code> | ตัวระบุบัญชี Douyin สาธารณะที่เกี่ยวข้องกับคำอธิบาย |
| <code>data.comments[].content_type</code> | <code>integer</code> | รหัสประเภทเนื้อหาที่รายงานสำหรับคำอธิบายนี้ |
| <code>data.comments[].status</code> | <code>integer</code> | รหัสสถานะตัวเลขที่รายงานสำหรับคำอธิบายนี้ |
| <code>data.comments[].is_hot</code> | <code>boolean</code> | คำอธิบายว่าคำอธิบายนี้ถูกจัดให้เป็นคำอธิบายที่ได้รับความนิยมหรือไม่ |
| <code>data.comments[].is_folded</code> | <code>boolean</code> | คำอธิบายว่าคำอธิบายนี้ถูกจัดให้เป็นคำอธิบายที่ถูกพับหรือไม่ |
| <code>data.comments[].is_author_digged</code> | <code>boolean</code> | ว่าผู้สร้างวิดีโอชื่นชมคำอธิบายนี้หรือไม่ |
| <code>data.comments[].user_digged</code> | <code>integer</code> | สถานะตัวเลขที่รายงานสำหรับบริบทของผู้ชม |
| <code>data.comments[].can_collect</code> | <code>boolean</code> | คำตอบที่ระบุว่าคำอธิบายนี้สามารถบันทึกหรือแชร์ได้หรือไม่ |
| <code>data.comments[].can_share</code> | <code>boolean</code> | รหัสประเภทตัวเลขที่รายงานสำหรับป้ายกำกับของคำอธิบาย |
| <code>data.comments[].label_text</code> | <code>string</code> | ข้อความป้ายกำกับของคำอธิบาย ซึ่งอาจว่างเปล่า |
| <code>data.comments[].label_type</code> | <code>integer</code> | รายการป้ายกำกับที่ส่งกลับมาพร้อมกับคำอธิบายนี้ ฟิลด์นี้อาจเป็น null |
| <code>data.comments[].label_list</code> | <code>array &#124; null</code> | รายการป้ายกำกับที่ส่งกลับพร้อมความคิดเห็นนี้ ฟิลด์นี้อาจมีค่า null |
| <code>data.comments[].label_list[]</code> | <code>object</code> | ป้ายกำกับหนึ่งรายการที่แนบกับความคิดเห็น |
| <code>data.comments[].label_list[].type</code> | <code>integer</code> | รายการป้ายกำกับที่ส่งกลับมาพร้อมกับคำอธิบายนี้ ฟิลด์นี้อาจเป็น null |
| <code>data.comments[].label_list[].text</code> | <code>string</code> | ข้อความที่แสดงสำหรับแหล่งข้อมูลนี้ |
| <code>data.comments[].item_comment_total</code> | <code>integer</code> | จำนวนความคิดเห็นทั้งหมดที่แสดงในวิดีโอ รวมถึงความคิดเห็นนี้ด้วย |
| <code>data.status_code</code> | <code>integer</code> | รหัสสถานะภายในที่รายงานสำหรับหน้าแสดงความคิดเห็น |
| <code>data.cursor</code> | <code>integer</code> | ตำแหน่งการแสดงผลแบบพาร์ติชันสำหรับการตอบกลับ รีบูตได้โดยการเพิ่มค่าพารามิเตอร์ page ของคำขอ |
| <code>data.has_more</code> | <code>integer</code> | ตัวบ่งชี้การแสดงผลแบบพาร์ติชัน ค่า 1 หมายถึงหน้าอีกหน้า ค่า 0 หมายถึงจบ |
| <code>data.total</code> | <code>integer</code> | จำนวนความคิดเห็นทั้งหมดสำหรับหน้านี้ อาจแตกต่างจากจำนวนความคิดเห็นที่ได้รับจากหลายหน้า หน้าที่ว่างอาจรายงานเป็น 0 |
| <code>data.extra</code> | <code>object</code> | ข้อมูลเวลาเพิ่มเติมสำหรับหน้าแสดงความคิดเห็น |
| <code>data.extra.now</code> | <code>integer</code> | เวลาตอบกลับที่รายงานเป็นมิลลิวินาทีตาม Unix |

</div>

## ตัวอย่างผลการตอบกลับ

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

