---
title: "Xiaohongshu (RedNote) ความคิดเห็นในโน้ต API (V2)"
description: "ดึงความคิดเห็นสำหรับบันทึกของ Xiaohongshu (RedNote) โดยใช้การแสดงผลแบบจำนวนเคอร์เซอร์และการจัดเรียงแบบปกติ、ล่าสุด หรือแบบค้นหาแบบคล้ายกัน ใช้เพื่อสนับสนุนการตรวจสอบความคิดเห็น การวิเคราะห์การอภิปราย และการควบคุมความคิดเห็น"
lastUpdated: false
aiUsagePrompt: true
---

# Xiaohongshu \(RedNote\) ความคิดเห็นในโน้ต API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/xiaohongshu/get-note-comment/v2\"")'
  :summary='JSON.parse("\"ความคิดเห็นในโน้ต (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/xiaohongshu-rednote/note-comments-v2-th.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"โทเค็นการเข้าถึงสำหรับบริการ API นี้\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"noteId\",\"in\":\"query\",\"description\":\"ID ของบันทึกบน Xiaohongshu หรือ URL ของการสำรวจที่มี /explore/\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"lastCursor\",\"in\":\"query\",\"description\":\"คอร์เซอร์การแสดงผลหน้าเดิม (ใช้ค่าคอร์เซอร์ที่ส่งกลับมาจากการตอบกลับครั้งสุดท้าย)\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"sort\",\"in\":\"query\",\"description\":\"กลยุทธ์การจัดเรียงผลลัพธ์\\n\\nค่าที่มีให้:\\n- `normal`: ปกติ\\n- `latest`: ล่าสุด\\n- `like_count`: จำนวนคนชื่นชม\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"latest\",\"description\":\"การจัดเรียงข้อความคอมเมนต์ใน Xiaohongshu V3\",\"enum\":[\"normal\",\"latest\",\"like_count\"]}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"description\":\"ฟิลด์ที่ถูกส่งกลับมาเมื่อการตอบกลับมีหน้าแสดงความคิดเห็นของบันทึก Xiaohongshu\",\"properties\":{\"comments\":{\"type\":\"array\",\"description\":\"ความคิดเห็นระดับสูงสุดบนหน้าแสดงความคิดเห็นที่ถูกส่งกลับมา\",\"items\":{\"type\":\"object\",\"description\":\"ความคิดเห็นระดับสูงสุดเกี่ยวกับบันทึก\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ความคิดเห็น Xiaohongshu ที่เป็นเอกลักษณ์\"},\"note_id\":{\"type\":\"string\",\"description\":\"ID ของบันทึกที่เกี่ยวข้องกับความคิดเห็นนี้\"},\"content\":{\"type\":\"string\",\"description\":\"ข้อความความคิดเห็นที่ Xiaohongshu ส่งกลับมา\"},\"time\":{\"type\":\"integer\",\"description\":\"เวลาการสร้างความคิดเห็นเป็นเวลาในเทรดเดอร์ไอซ์ในหน่วยวินาที\"},\"ip_location\":{\"type\":\"string\",\"description\":\"ป้ายกำกับตำแหน่ง IP ของความคิดเห็น หากถูกส่งกลับมา\"},\"like_count\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นที่ได้รับการชื่นชม\"},\"liked\":{\"type\":\"boolean\",\"description\":\"ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ได้รับความชื่นชมหรือไม่ในบริบทของการตอบกลับ\"},\"downvoted\":{\"type\":\"boolean\",\"description\":\"ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ถูกวิจารณ์หรือไม่ในบริบทของการตอบกลับ\"},\"collected\":{\"type\":\"boolean\",\"description\":\"ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ถูกบันทึกหรือไม่ในบริบทของการตอบกลับ\"},\"hidden\":{\"type\":\"boolean\",\"description\":\"ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ถูกซ่อนหรือไม่\"},\"status\":{\"type\":\"integer\",\"description\":\"ค่าโทรศัพท์ที่ถูกส่งกลับมาสำหรับความคิดเห็น\"},\"comment_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทความคิดเห็นของตลาด\"},\"show_type\":{\"type\":\"string\",\"description\":\"รหัสประเภทการแสดงผลที่ถูกส่งกลับมาสำหรับความคิดเห็น\"},\"score\":{\"type\":\"integer\",\"description\":\"คะแนนความคิดเห็นที่ตลาดรายงาน\"},\"track_id\":{\"type\":\"string\",\"description\":\"ตัวระบุเส้นทางที่ Xiaohongshu ติดต่อกับความคิดเห็น\"},\"translation_strategy\":{\"type\":\"integer\",\"description\":\"รหัสของตลาดสำหรับพฤติกรรมการแปลความคิดเห็น\"},\"share_strategy\":{\"type\":\"integer\",\"description\":\"โค้ดของแพลตฟอร์มสำหรับพฤติกรรมการแสดงความคิดเห็น\"},\"friend_liked_msg\":{\"type\":\"string\",\"description\":\"ข้อความของแพลตฟอร์มเกี่ยวกับการกดไลค์โดยเพื่อน ซึ่งอาจว่างเปล่า\"},\"user\":{\"type\":\"object\",\"description\":\"ผู้เขียนความคิดเห็นระดับสูงสุดนี้\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"ID ของผู้ใช้ Xiaohongshu ของบัญชีนี้\"},\"red_id\":{\"type\":\"string\",\"description\":\"ID ของบัญชี Xiaohongshu ที่สามารถมองเห็นได้ ซึ่งอาจว่างเปล่า\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของบัญชีนี้\"},\"images\":{\"type\":\"string\",\"description\":\"URL ของภาพโปรไฟล์ที่ส่งกลับมาให้บัญชีนี้\"},\"current_user\":{\"type\":\"string\",\"description\":\"ตัวชี้วัดผู้ใช้ปัจจุบันของแพลตฟอร์ม ซึ่งส่งกลับมาในรูปแบบสตริง\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"ว่าฟีเจอร์นี้ของแพลตฟอร์มจะจัดให้บัญชีนี้เป็น AI agent หรือไม่\"},\"level\":{\"type\":\"object\",\"description\":\"ข้อมูลระดับที่ส่งกลับมาให้บัญชีนี้\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"ภาพที่ส่งกลับมาให้กับระดับของบัญชีนี้\"}}},\"additional_tags\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับบัญชีเพิ่มเติม ซึ่งอาจว่างเปล่าได้\"}}},\"at_users\":{\"type\":\"array\",\"description\":\"บัญชีที่ถูกกล่าวถึงในความคิดเห็นนี้\",\"items\":{\"type\":\"object\",\"description\":\"บัญชีที่ถูกกล่าวถึงในความคิดเห็นนี้\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"ID ผู้ใช้ Xiaohongshu ของบัญชีที่ถูกกล่าวถึง\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของบัญชีที่ถูกกล่าวถึง\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"ว่าฟีเจอร์ของแพลตฟอร์มจะจัดประเภทบัญชีที่กล่าวถึงว่าเป็น AI agent หรือไม่\"},\"level\":{\"type\":\"object\",\"description\":\"ข้อมูลระดับของบัญชีที่ถูกกล่าวถึง\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"ภาพที่ส่งกลับมาให้กับระดับของบัญชีที่ถูกกล่าวถึง\"}}}}}},\"hash_tags\":{\"type\":\"array\",\"description\":\"ฮาสตาร์ที่เกี่ยวข้องกับความคิดเห็นนี้ หากส่งกลับมา\",\"items\":{\"type\":\"object\",\"description\":\"ฮาสตาร์ที่เกี่ยวข้องกับความคิดเห็นนี้\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของฮาสตาร์นี้\"},\"link\":{\"type\":\"string\",\"description\":\"ลิงก์ที่เกี่ยวข้องกับฮาสตาร์นี้\"},\"type\":{\"type\":\"string\",\"description\":\"โค้ดประเภทฮาสตาร์ของแพลตฟอร์ม\"},\"disable_jump\":{\"type\":\"boolean\",\"description\":\"ว่าแพลตฟอร์มจะปิดการนำทางจากฮาสตาร์นี้หรือไม่\"}}}},\"show_tags\":{\"type\":\"array\",\"description\":\"ฮาสตาร์ที่ปรากฏในความคิดเห็น ซึ่งสามารถเป็นอันว่างเปล่าได้\"},\"show_tags_v2\":{\"type\":\"array\",\"description\":\"หมวดหมู่แท็กที่ส่งกลับสำหรับความคิดเห็น\",\"items\":{\"type\":\"object\",\"description\":\"แท็กที่มีโครงสร้าง\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"รหัสประเภทแพลตฟอร์มสำหรับแท็ก\"},\"text\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงสำหรับแท็ก\"},\"style_id\":{\"type\":\"string\",\"description\":\"ตัวระบุสไตล์การแสดงสำหรับแท็ก\"},\"pos\":{\"type\":\"string\",\"description\":\"รหัสตำแหน่งการแสดงสำหรับแท็ก\"}}}},\"biz_label\":{\"type\":\"object\",\"description\":\"ตัวบ่งชี้สำหรับธุรกิจและข้อความประเภทพิเศษสำหรับความคิดเห็น\",\"properties\":{\"product_review\":{\"type\":\"boolean\",\"description\":\"ว่าประเภทแพลตฟอร์มจะจัดให้รายการนี้เป็นรีวิวสินค้าหรือไม่\"},\"group_invite\":{\"type\":\"string\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับการเชิญกลุ่มที่ส่งกลับมาในรูปแบบสตริง\"},\"rich_text\":{\"type\":\"string\",\"description\":\"ข้อมูลเมตาดาต้าแบบ Rich-text ที่ส่งกลับมาในรูปแบบสตริง\"}}},\"pictures\":{\"type\":\"array\",\"description\":\"ไฟล์หรือสติกเกอร์ที่ส่งกลับมา\",\"items\":{\"type\":\"object\",\"description\":\"ไฟล์หรือสติกเกอร์ที่แนบมาสำหรับความคิดเห็น\",\"properties\":{\"file_id\":{\"type\":\"string\",\"description\":\"รหัส ID ของไฟล์สำหรับไฟล์ที่แนบมา\"},\"url\":{\"type\":\"string\",\"description\":\"URL ของไฟล์ที่แนบมาเพื่อการแสดง\"},\"origin_url\":{\"type\":\"string\",\"description\":\"URL ของไฟล์ต้นฉบับที่แพลตฟอร์มส่งกลับมา\"},\"width\":{\"type\":\"integer\",\"description\":\"ค่าความกว้างที่ส่งกลับสำหรับไฟล์ที่แนบมา\"},\"height\":{\"type\":\"integer\",\"description\":\"ค่าความสูงที่ส่งกลับสำหรับไฟล์ที่แนบมา\"},\"box_w\":{\"type\":\"integer\",\"description\":\"ค่าความกว้างของกล่องแสดงผลสำหรับไฟล์ที่แนบมา\"},\"box_h\":{\"type\":\"integer\",\"description\":\"ค่าความสูงของกล่องแสดงผลสำหรับไฟล์ที่แนบมา\"},\"meme_package\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับสติกเกอร์หรือมิเมที่เกี่ยวข้องกับเอกสารแนบ\",\"properties\":{\"meme_id\":{\"type\":\"string\",\"description\":\"รหัส ID ของสติกเกอร์หรือมิمเมื่อส่งกลับมา\"},\"image_url\":{\"type\":\"string\",\"description\":\"URL ของสติกเกอร์หรือมิมเมื่อส่งกลับมา\"},\"width\":{\"type\":\"integer\",\"description\":\"ค่าความกว้างที่ส่งกลับสำหรับสติกเกอร์หรือมิม\"},\"height\":{\"type\":\"integer\",\"description\":\"ค่าความสูงที่ส่งกลับสำหรับสติกเกอร์หรือมิม\"}}}}}},\"media_source_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทแหล่งข้อมูลของแพลตฟอร์มสำหรับไฟล์ที่แนบมา\"},\"sub_comment_count\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นที่รายงานสำหรับความคิดเห็นระดับสูงนี้\"},\"sub_comment_cursor\":{\"type\":\"string\",\"description\":\"ข้อมูลเสริมสำหรับแบ่งหน้ารายการตอบกลับของความคิดเห็นระดับบนนี้ เอนด์พอยต์สำหรับดึงการตอบกลับจะให้เคอร์เซอร์สำหรับหน้าถัดไปของตนเอง\"},\"sub_comments\":{\"type\":\"array\",\"description\":\"คำตอบที่ฝังอยู่ในหน้าแสดงความคิดเห็น ลิสต์นี้อาจไม่สมบูรณ์หรือว่างเปล่าได้ แม้ว่า sub_comment_count จะเป็นค่าที่เป็นบวกก็ตาม\",\"items\":{\"type\":\"object\",\"description\":\"ความคิดเห็นที่ฝังอยู่ใต้ความคิดเห็นระดับสูง\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ของ Xiaohongshu ของความคิดเห็น\"},\"note_id\":{\"type\":\"string\",\"description\":\"ID ของบันทึกที่เกี่ยวข้องกับความคิดเห็นนี้\"},\"content\":{\"type\":\"string\",\"description\":\"ข้อความตอบกลับที่ Xiaohongshu ส่งกลับมา\"},\"time\":{\"type\":\"integer\",\"description\":\"เวลาการสร้างความคิดเห็นเป็นเวลา Unix ในหน่วยวินาที\"},\"ip_location\":{\"type\":\"string\",\"description\":\"ป้ายกำกับตำแหน่ง IP ที่แสดงสำหรับความคิดเห็น หากมีการ return\"},\"like_count\":{\"type\":\"integer\",\"description\":\"จำนวนความชื่นชมที่รายงานสำหรับความคิดเห็น\"},\"liked\":{\"type\":\"boolean\",\"description\":\"ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นความชื่นชมในบริบทการตอบกลับหรือไม่\"},\"downvoted\":{\"type\":\"boolean\",\"description\":\"ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นการลงคะแนนเสียงในทางลบในบริบทการตอบกลับหรือไม่\"},\"collected\":{\"type\":\"boolean\",\"description\":\"ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นความคงเหลือในบริบทการตอบกลับหรือไม่\"},\"hidden\":{\"type\":\"boolean\",\"description\":\"ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นความลับในบริบทการตอบกลับหรือไม่\"},\"status\":{\"type\":\"integer\",\"description\":\"รหัสสถานะที่ return สำหรับความคิดเห็น\"},\"comment_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทความคิดเห็นของมาตรฐาน\"},\"show_type\":{\"type\":\"string\",\"description\":\"รหัสประเภทการแสดงผลที่ return สำหรับความคิดเห็น\"},\"score\":{\"type\":\"integer\",\"description\":\"คะแนนความคิดเห็นที่มาตรฐานรายงาน\"},\"translation_strategy\":{\"type\":\"integer\",\"description\":\"รหัสของมาตรฐานสำหรับพฤติกรรมการแปลความคิดเห็น\"},\"share_strategy\":{\"type\":\"integer\",\"description\":\"รหัสของมาตรฐานสำหรับพฤติกรรมการแชร์ความคิดเห็น\"},\"friend_liked_msg\":{\"type\":\"string\",\"description\":\"ข้อความของแพลตฟอร์มเกี่ยวกับการกดไลค์โดยเพื่อน ซึ่งอาจว่างเปล่า\"},\"at_users\":{\"type\":\"array\",\"description\":\"บัญชีที่กล่าวถึงในความคิดเห็น ชุดข้อมูลอาจว่างเปล่า\"},\"show_tags\":{\"type\":\"array\",\"description\":\"ป้ายกำกับการแสดงผลที่ return สำหรับความคิดเห็น ชุดข้อมูลอาจว่างเปล่า\"},\"show_tags_v2\":{\"type\":\"array\",\"description\":\"ป้ายกำกับการแสดงผลที่มีโครงสร้างสำหรับความคิดเห็น\",\"items\":{\"type\":\"object\",\"description\":\"แท็กที่มีโครงสร้าง\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"รหัสประเภทแพลตฟอร์มสำหรับแท็ก\"},\"text\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงสำหรับแท็ก\"},\"style_id\":{\"type\":\"string\",\"description\":\"ตัวระบุสไตล์การแสดงสำหรับแท็ก\"},\"pos\":{\"type\":\"string\",\"description\":\"รหัสตำแหน่งการแสดงสำหรับแท็ก\"}}}},\"biz_label\":{\"type\":\"object\",\"description\":\"ตัวระบุธุรกิจและข้อความที่มีความซับซ้อนสำหรับความคิดเห็น\",\"properties\":{\"product_review\":{\"type\":\"boolean\",\"description\":\"ว่าประเภทแพลตฟอร์มจะจัดให้รายการนี้เป็นรีวิวสินค้าหรือไม่\"},\"group_invite\":{\"type\":\"string\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับการเชิญกลุ่มที่ส่งกลับมาในรูปแบบสตริง\"},\"rich_text\":{\"type\":\"string\",\"description\":\"ข้อมูลเมตาดาต้าแบบ Rich-text ที่ส่งกลับมาในรูปแบบสตริง\"}}},\"user\":{\"type\":\"object\",\"description\":\"ผู้เขียนของความคิดเห็นที่ฝังอยู่\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"ID ของผู้ใช้ Xiaohongshu ของบัญชีนี้\"},\"red_id\":{\"type\":\"string\",\"description\":\"ID ของบัญชี Xiaohongshu ที่สามารถมองเห็นได้ ซึ่งอาจว่างเปล่า\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของบัญชีนี้\"},\"images\":{\"type\":\"string\",\"description\":\"URL ของภาพโปรไฟล์ที่ส่งกลับมาให้บัญชีนี้\"},\"current_user\":{\"type\":\"string\",\"description\":\"ตัวชี้วัดผู้ใช้ปัจจุบันของแพลตฟอร์ม ซึ่งส่งกลับมาในรูปแบบสตริง\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"ว่าฟีเจอร์นี้ของแพลตฟอร์มจะจัดให้บัญชีนี้เป็น AI agent หรือไม่\"},\"level\":{\"type\":\"object\",\"description\":\"ข้อมูลระดับที่ส่งกลับมาให้บัญชีนี้\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"ภาพที่ส่งกลับมาให้กับระดับของบัญชีนี้\"}}},\"additional_tags\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับบัญชีเพิ่มเติม ซึ่งอาจว่างเปล่าได้\"}}},\"target_comment\":{\"type\":\"object\",\"description\":\"ข้อมูลเกี่ยวกับความคิดเห็นที่คำตอบนี้ตอบกลับ\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ของความคิดเห็นที่ได้รับการตอบกลับ\"},\"status\":{\"type\":\"integer\",\"description\":\"รหัสสถานะที่ส่งกลับสำหรับความคิดเห็นที่ได้รับการตอบกลับ\"},\"user\":{\"type\":\"object\",\"description\":\"ผู้เขียนของความคิดเห็นที่ได้รับการตอบกลับ\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"ID ของผู้ใช้ Xiaohongshu ของบัญชีนี้\"},\"red_id\":{\"type\":\"string\",\"description\":\"ID ของบัญชี Xiaohongshu ที่สามารถมองเห็นได้ ซึ่งอาจว่างเปล่า\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของบัญชีนี้\"},\"images\":{\"type\":\"string\",\"description\":\"URL ของภาพโปรไฟล์ที่ส่งกลับมาให้บัญชีนี้\"},\"current_user\":{\"type\":\"string\",\"description\":\"ตัวชี้วัดผู้ใช้ปัจจุบันของแพลตฟอร์ม ซึ่งส่งกลับมาในรูปแบบสตริง\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"ว่าฟีเจอร์นี้ของแพลตฟอร์มจะจัดให้บัญชีนี้เป็น AI agent หรือไม่\"},\"level\":{\"type\":\"object\",\"description\":\"ข้อมูลระดับที่ส่งกลับมาให้บัญชีนี้\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"ภาพที่ส่งกลับมาให้กับระดับของบัญชีนี้\"}}},\"additional_tags\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับบัญชีเพิ่มเติม ซึ่งอาจว่างเปล่าได้\"}}}}}}}}}}},\"user_id\":{\"type\":\"string\",\"description\":\"ID ผู้ใช้ Xiaohongshu ของผู้เขียนโพสต์\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นโดยรวมที่ Xiaohongshu รายงานสำหรับบันทึก\"},\"comment_count_l1\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นระดับบนสุดที่รายงานในหน้าแห่งนั้น\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"คำตอบนี้รายงานหน้าแห่งอื่นของความคิดเห็นระดับบนสุดหรือไม่\"},\"cursor\":{\"type\":\"string\",\"description\":\"คอร์เซอร์สำหรับความคิดเห็นระดับบนสุด หากมี ให้ส่งต่อโดยไม่เปลี่ยนแปลงเป็น lastCursor สำหรับบันทึกเดียวกัน และมีการจัดเรียง อาจว่างหรือไม่มีอยู่ในตอนท้าย\"},\"page_context\":{\"type\":\"string\",\"description\":\"บริบทหน้าเว็บที่ไม่ชัดเจนที่ Xiaohongshu ส่งกลับมา\"},\"current_sort_strategy\":{\"type\":\"string\",\"description\":\"รหัสกลยุทธ์การจัดเรียงที่รายงานพร้อมกับคำตอบ ค่านี้อาจแตกต่างจากค่าการจัดเรียงที่ต้องการ\"},\"all_sort_strategies\":{\"type\":\"array\",\"description\":\"ตัวเลือกการจัดเรียงที่รายงานพร้อมกับหน้านี้ หากมีการส่งกลับมา\",\"items\":{\"type\":\"object\",\"description\":\"ตัวเลือกการจัดเรียงที่รายงานพร้อมกับหน้านี้\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"รหัสตัวเลือกการจัดเรียงที่ Xiaohongshu ส่งกลับมา\"},\"optional_name\":{\"type\":\"string\",\"description\":\"ชื่อแสดงผลหลักสำหรับตัวเลือกการจัดเรียง\"},\"suffix_name\":{\"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\":\"ท่อนำข้อมูลหรือ 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/xiaohongshu/get-note-comment/v2\"")' />

<p>ดึงความคิดเห็นสำหรับบันทึกของ Xiaohongshu (RedNote) โดยใช้การแสดงผลแบบจำนวนเคอร์เซอร์และการจัดเรียงแบบปกติ、ล่าสุด หรือแบบค้นหาแบบคล้ายกัน ใช้เพื่อสนับสนุนการตรวจสอบความคิดเห็น การวิเคราะห์การอภิปราย และการควบคุมความคิดเห็น</p>

## สิ่งที่น่าสนใจ

::: tip คำแนะนำ
<p>เราแนะนำให้ใช้ <code>latest</code> เป็นการจัดเรียงข้อมูลโดยค่าเริ่มต้น. หากไม่สามารถดาวน์โหลดความคิดเห็นสำหรับบันทึกที่ใช้ <code>latest</code> ได้ ลองใช้ <code>normal</code> อีกครั้ง.</p>
:::

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

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

| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
| <code>noteId</code> | query | <code>string</code> | ใช่ | - | ID ของบันทึกบน Xiaohongshu หรือ URL ของการสำรวจที่มี /explore/ |
| <code>lastCursor</code> | query | <code>string</code> | ไม่ใช่ | - | คอร์เซอร์การแสดงผลหน้าเดิม (ใช้ค่าคอร์เซอร์ที่ส่งกลับมาจากการตอบกลับครั้งสุดท้าย) |
| <code>sort</code> | query | <code>string</code> | ไม่ใช่ | <code>latest</code> | กลยุทธ์การจัดเรียงผลลัพธ์<br /><br><br>ค่าที่มีให้:<br /><br>- <code>normal</code>: ปกติ<br /><br>- <code>latest</code>: ล่าสุด<br /><br>- <code>like_count</code>: จำนวนคนชื่นชม |

</div>

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

::: code-group

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

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

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- noteId (query): ID ของบันทึกบน Xiaohongshu หรือ URL ของการสำรวจที่มี /explore/ (จำเป็น)
- lastCursor (query): คอร์เซอร์การแสดงผลหน้าเดิม (ใช้ค่าคอร์เซอร์ที่ส่งกลับมาจากการตอบกลับครั้งสุดท้าย)
- sort (query): กลยุทธ์การจัดเรียงผลลัพธ์

ค่าที่มีให้:
- `normal`: ปกติ
- `latest`: ล่าสุด
- `like_count`: จำนวนคนชื่นชม

รูปแบบที่ส่งกลับ: จัดการ 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/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=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/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=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/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=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/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=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/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=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/xiaohongshu-rednote/note-comments-v2-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> | - | ฟิลด์ที่ถูกส่งกลับมาเมื่อการตอบกลับมีหน้าแสดงความคิดเห็นของบันทึก Xiaohongshu |
| <code>data.comments</code> | <code>array</code> | ความคิดเห็นระดับสูงสุดบนหน้าแสดงความคิดเห็นที่ถูกส่งกลับมา |
| <code>data.comments[]</code> | <code>object</code> | ความคิดเห็นระดับสูงสุดเกี่ยวกับบันทึก |
| <code>data.comments[].id</code> | <code>string</code> | ID ความคิดเห็น Xiaohongshu ที่เป็นเอกลักษณ์ |
| <code>data.comments[].note_id</code> | <code>string</code> | ID ของบันทึกที่เกี่ยวข้องกับความคิดเห็นนี้ |
| <code>data.comments[].content</code> | <code>string</code> | ข้อความความคิดเห็นที่ Xiaohongshu ส่งกลับมา |
| <code>data.comments[].time</code> | <code>integer</code> | เวลาการสร้างความคิดเห็นเป็นเวลาในเทรดเดอร์ไอซ์ในหน่วยวินาที |
| <code>data.comments[].ip_location</code> | <code>string</code> | ป้ายกำกับตำแหน่ง IP ของความคิดเห็น หากถูกส่งกลับมา |
| <code>data.comments[].like_count</code> | <code>integer</code> | จำนวนความคิดเห็นที่ได้รับการชื่นชม |
| <code>data.comments[].liked</code> | <code>boolean</code> | ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ได้รับความชื่นชมหรือไม่ในบริบทของการตอบกลับ |
| <code>data.comments[].downvoted</code> | <code>boolean</code> | ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ถูกวิจารณ์หรือไม่ในบริบทของการตอบกลับ |
| <code>data.comments[].collected</code> | <code>boolean</code> | ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ถูกบันทึกหรือไม่ในบริบทของการตอบกลับ |
| <code>data.comments[].hidden</code> | <code>boolean</code> | ตลาดจะบันทึกความคิดเห็นนี้เป็นความคิดเห็นที่ถูกซ่อนหรือไม่ |
| <code>data.comments[].status</code> | <code>integer</code> | ค่าโทรศัพท์ที่ถูกส่งกลับมาสำหรับความคิดเห็น |
| <code>data.comments[].comment_type</code> | <code>integer</code> | รหัสประเภทความคิดเห็นของตลาด |
| <code>data.comments[].show_type</code> | <code>string</code> | รหัสประเภทการแสดงผลที่ถูกส่งกลับมาสำหรับความคิดเห็น |
| <code>data.comments[].score</code> | <code>integer</code> | คะแนนความคิดเห็นที่ตลาดรายงาน |
| <code>data.comments[].track_id</code> | <code>string</code> | ตัวระบุเส้นทางที่ Xiaohongshu ติดต่อกับความคิดเห็น |
| <code>data.comments[].translation_strategy</code> | <code>integer</code> | รหัสของตลาดสำหรับพฤติกรรมการแปลความคิดเห็น |
| <code>data.comments[].share_strategy</code> | <code>integer</code> | โค้ดของแพลตฟอร์มสำหรับพฤติกรรมการแสดงความคิดเห็น |
| <code>data.comments[].friend_liked_msg</code> | <code>string</code> | ข้อความของแพลตฟอร์มเกี่ยวกับการกดไลค์โดยเพื่อน ซึ่งอาจว่างเปล่า |
| <code>data.comments[].user</code> | <code>object</code> | ผู้เขียนความคิดเห็นระดับสูงสุดนี้ |
| <code>data.comments[].user.userid</code> | <code>string</code> | ID ของผู้ใช้ Xiaohongshu ของบัญชีนี้ |
| <code>data.comments[].user.red_id</code> | <code>string</code> | ID ของบัญชี Xiaohongshu ที่สามารถมองเห็นได้ ซึ่งอาจว่างเปล่า |
| <code>data.comments[].user.nickname</code> | <code>string</code> | ชื่อที่ปรากฏของบัญชีนี้ |
| <code>data.comments[].user.images</code> | <code>string</code> | URL ของภาพโปรไฟล์ที่ส่งกลับมาให้บัญชีนี้ |
| <code>data.comments[].user.current_user</code> | <code>string</code> | ตัวชี้วัดผู้ใช้ปัจจุบันของแพลตฟอร์ม ซึ่งส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].user.ai_agent</code> | <code>boolean</code> | ว่าฟีเจอร์นี้ของแพลตฟอร์มจะจัดให้บัญชีนี้เป็น AI agent หรือไม่ |
| <code>data.comments[].user.level</code> | <code>object</code> | ข้อมูลระดับที่ส่งกลับมาให้บัญชีนี้ |
| <code>data.comments[].user.level.image</code> | <code>string</code> | ภาพที่ส่งกลับมาให้กับระดับของบัญชีนี้ |
| <code>data.comments[].user.additional_tags</code> | <code>object</code> | ข้อมูลเมตาดาต้าเกี่ยวกับบัญชีเพิ่มเติม ซึ่งอาจว่างเปล่าได้ |
| <code>data.comments[].at_users</code> | <code>array</code> | บัญชีที่ถูกกล่าวถึงในความคิดเห็นนี้ |
| <code>data.comments[].at_users[]</code> | <code>object</code> | บัญชีที่ถูกกล่าวถึงในความคิดเห็นนี้ |
| <code>data.comments[].at_users[].userid</code> | <code>string</code> | ID ผู้ใช้ Xiaohongshu ของบัญชีที่ถูกกล่าวถึง |
| <code>data.comments[].at_users[].nickname</code> | <code>string</code> | ชื่อที่ปรากฏของบัญชีที่ถูกกล่าวถึง |
| <code>data.comments[].at_users[].ai_agent</code> | <code>boolean</code> | ว่าฟีเจอร์ของแพลตฟอร์มจะจัดประเภทบัญชีที่กล่าวถึงว่าเป็น AI agent หรือไม่ |
| <code>data.comments[].at_users[].level</code> | <code>object</code> | ข้อมูลระดับของบัญชีที่ถูกกล่าวถึง |
| <code>data.comments[].at_users[].level.image</code> | <code>string</code> | ภาพที่ส่งกลับมาให้กับระดับของบัญชีที่ถูกกล่าวถึง |
| <code>data.comments[].hash_tags</code> | <code>array</code> | ฮาสตาร์ที่เกี่ยวข้องกับความคิดเห็นนี้ หากส่งกลับมา |
| <code>data.comments[].hash_tags[]</code> | <code>object</code> | ฮาสตาร์ที่เกี่ยวข้องกับความคิดเห็นนี้ |
| <code>data.comments[].hash_tags[].name</code> | <code>string</code> | ชื่อที่ปรากฏของฮาสตาร์นี้ |
| <code>data.comments[].hash_tags[].link</code> | <code>string</code> | ลิงก์ที่เกี่ยวข้องกับฮาสตาร์นี้ |
| <code>data.comments[].hash_tags[].type</code> | <code>string</code> | โค้ดประเภทฮาสตาร์ของแพลตฟอร์ม |
| <code>data.comments[].hash_tags[].disable_jump</code> | <code>boolean</code> | ว่าแพลตฟอร์มจะปิดการนำทางจากฮาสตาร์นี้หรือไม่ |
| <code>data.comments[].show_tags</code> | <code>array</code> | ฮาสตาร์ที่ปรากฏในความคิดเห็น ซึ่งสามารถเป็นอันว่างเปล่าได้ |
| <code>data.comments[].show_tags_v2</code> | <code>array</code> | หมวดหมู่แท็กที่ส่งกลับสำหรับความคิดเห็น |
| <code>data.comments[].show_tags_v2[]</code> | <code>object</code> | แท็กที่มีโครงสร้าง |
| <code>data.comments[].show_tags_v2[].type</code> | <code>string</code> | รหัสประเภทแพลตฟอร์มสำหรับแท็ก |
| <code>data.comments[].show_tags_v2[].text</code> | <code>string</code> | ข้อความที่แสดงสำหรับแท็ก |
| <code>data.comments[].show_tags_v2[].style_id</code> | <code>string</code> | ตัวระบุสไตล์การแสดงสำหรับแท็ก |
| <code>data.comments[].show_tags_v2[].pos</code> | <code>string</code> | รหัสตำแหน่งการแสดงสำหรับแท็ก |
| <code>data.comments[].biz_label</code> | <code>object</code> | ตัวบ่งชี้สำหรับธุรกิจและข้อความประเภทพิเศษสำหรับความคิดเห็น |
| <code>data.comments[].biz_label.product_review</code> | <code>boolean</code> | ว่าประเภทแพลตฟอร์มจะจัดให้รายการนี้เป็นรีวิวสินค้าหรือไม่ |
| <code>data.comments[].biz_label.group_invite</code> | <code>string</code> | ข้อมูลเมตาดาต้าเกี่ยวกับการเชิญกลุ่มที่ส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].biz_label.rich_text</code> | <code>string</code> | ข้อมูลเมตาดาต้าแบบ Rich-text ที่ส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].pictures</code> | <code>array</code> | ไฟล์หรือสติกเกอร์ที่ส่งกลับมา |
| <code>data.comments[].pictures[]</code> | <code>object</code> | ไฟล์หรือสติกเกอร์ที่แนบมาสำหรับความคิดเห็น |
| <code>data.comments[].pictures[].file_id</code> | <code>string</code> | รหัส ID ของไฟล์สำหรับไฟล์ที่แนบมา |
| <code>data.comments[].pictures[].url</code> | <code>string</code> | URL ของไฟล์ที่แนบมาเพื่อการแสดง |
| <code>data.comments[].pictures[].origin_url</code> | <code>string</code> | URL ของไฟล์ต้นฉบับที่แพลตฟอร์มส่งกลับมา |
| <code>data.comments[].pictures[].width</code> | <code>integer</code> | ค่าความกว้างที่ส่งกลับสำหรับไฟล์ที่แนบมา |
| <code>data.comments[].pictures[].height</code> | <code>integer</code> | ค่าความสูงที่ส่งกลับสำหรับไฟล์ที่แนบมา |
| <code>data.comments[].pictures[].box_w</code> | <code>integer</code> | ค่าความกว้างของกล่องแสดงผลสำหรับไฟล์ที่แนบมา |
| <code>data.comments[].pictures[].box_h</code> | <code>integer</code> | ค่าความสูงของกล่องแสดงผลสำหรับไฟล์ที่แนบมา |
| <code>data.comments[].pictures[].meme_package</code> | <code>object</code> | ข้อมูลเมตาดาต้าเกี่ยวกับสติกเกอร์หรือมิเมที่เกี่ยวข้องกับเอกสารแนบ |
| <code>data.comments[].pictures[].meme_package.meme_id</code> | <code>string</code> | รหัส ID ของสติกเกอร์หรือมิمเมื่อส่งกลับมา |
| <code>data.comments[].pictures[].meme_package.image_url</code> | <code>string</code> | URL ของสติกเกอร์หรือมิมเมื่อส่งกลับมา |
| <code>data.comments[].pictures[].meme_package.width</code> | <code>integer</code> | ค่าความกว้างที่ส่งกลับสำหรับสติกเกอร์หรือมิม |
| <code>data.comments[].pictures[].meme_package.height</code> | <code>integer</code> | ค่าความสูงที่ส่งกลับสำหรับสติกเกอร์หรือมิม |
| <code>data.comments[].media_source_type</code> | <code>integer</code> | รหัสประเภทแหล่งข้อมูลของแพลตฟอร์มสำหรับไฟล์ที่แนบมา |
| <code>data.comments[].sub_comment_count</code> | <code>integer</code> | จำนวนความคิดเห็นที่รายงานสำหรับความคิดเห็นระดับสูงนี้ |
| <code>data.comments[].sub_comment_cursor</code> | <code>string</code> | ข้อมูลเสริมสำหรับแบ่งหน้ารายการตอบกลับของความคิดเห็นระดับบนนี้ เอนด์พอยต์สำหรับดึงการตอบกลับจะให้เคอร์เซอร์สำหรับหน้าถัดไปของตนเอง |
| <code>data.comments[].sub_comments</code> | <code>array</code> | คำตอบที่ฝังอยู่ในหน้าแสดงความคิดเห็น ลิสต์นี้อาจไม่สมบูรณ์หรือว่างเปล่าได้ แม้ว่า sub_comment_count จะเป็นค่าที่เป็นบวกก็ตาม |
| <code>data.comments[].sub_comments[]</code> | <code>object</code> | ความคิดเห็นที่ฝังอยู่ใต้ความคิดเห็นระดับสูง |
| <code>data.comments[].sub_comments[].id</code> | <code>string</code> | ID ของ Xiaohongshu ของความคิดเห็น |
| <code>data.comments[].sub_comments[].note_id</code> | <code>string</code> | ID ของบันทึกที่เกี่ยวข้องกับความคิดเห็นนี้ |
| <code>data.comments[].sub_comments[].content</code> | <code>string</code> | ข้อความตอบกลับที่ Xiaohongshu ส่งกลับมา |
| <code>data.comments[].sub_comments[].time</code> | <code>integer</code> | เวลาการสร้างความคิดเห็นเป็นเวลา Unix ในหน่วยวินาที |
| <code>data.comments[].sub_comments[].ip_location</code> | <code>string</code> | ป้ายกำกับตำแหน่ง IP ที่แสดงสำหรับความคิดเห็น หากมีการ return |
| <code>data.comments[].sub_comments[].like_count</code> | <code>integer</code> | จำนวนความชื่นชมที่รายงานสำหรับความคิดเห็น |
| <code>data.comments[].sub_comments[].liked</code> | <code>boolean</code> | ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นความชื่นชมในบริบทการตอบกลับหรือไม่ |
| <code>data.comments[].sub_comments[].downvoted</code> | <code>boolean</code> | ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นการลงคะแนนเสียงในทางลบในบริบทการตอบกลับหรือไม่ |
| <code>data.comments[].sub_comments[].collected</code> | <code>boolean</code> | ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นความคงเหลือในบริบทการตอบกลับหรือไม่ |
| <code>data.comments[].sub_comments[].hidden</code> | <code>boolean</code> | ว่ามาตรฐานจะจัดให้ความคิดเห็นเป็นความลับในบริบทการตอบกลับหรือไม่ |
| <code>data.comments[].sub_comments[].status</code> | <code>integer</code> | รหัสสถานะที่ return สำหรับความคิดเห็น |
| <code>data.comments[].sub_comments[].comment_type</code> | <code>integer</code> | รหัสประเภทความคิดเห็นของมาตรฐาน |
| <code>data.comments[].sub_comments[].show_type</code> | <code>string</code> | รหัสประเภทการแสดงผลที่ return สำหรับความคิดเห็น |
| <code>data.comments[].sub_comments[].score</code> | <code>integer</code> | คะแนนความคิดเห็นที่มาตรฐานรายงาน |
| <code>data.comments[].sub_comments[].translation_strategy</code> | <code>integer</code> | รหัสของมาตรฐานสำหรับพฤติกรรมการแปลความคิดเห็น |
| <code>data.comments[].sub_comments[].share_strategy</code> | <code>integer</code> | รหัสของมาตรฐานสำหรับพฤติกรรมการแชร์ความคิดเห็น |
| <code>data.comments[].sub_comments[].friend_liked_msg</code> | <code>string</code> | ข้อความของแพลตฟอร์มเกี่ยวกับการกดไลค์โดยเพื่อน ซึ่งอาจว่างเปล่า |
| <code>data.comments[].sub_comments[].at_users</code> | <code>array</code> | บัญชีที่กล่าวถึงในความคิดเห็น ชุดข้อมูลอาจว่างเปล่า |
| <code>data.comments[].sub_comments[].show_tags</code> | <code>array</code> | ป้ายกำกับการแสดงผลที่ return สำหรับความคิดเห็น ชุดข้อมูลอาจว่างเปล่า |
| <code>data.comments[].sub_comments[].show_tags_v2</code> | <code>array</code> | ป้ายกำกับการแสดงผลที่มีโครงสร้างสำหรับความคิดเห็น |
| <code>data.comments[].sub_comments[].show_tags_v2[]</code> | <code>object</code> | แท็กที่มีโครงสร้าง |
| <code>data.comments[].sub_comments[].show_tags_v2[].type</code> | <code>string</code> | รหัสประเภทแพลตฟอร์มสำหรับแท็ก |
| <code>data.comments[].sub_comments[].show_tags_v2[].text</code> | <code>string</code> | ข้อความที่แสดงสำหรับแท็ก |
| <code>data.comments[].sub_comments[].show_tags_v2[].style_id</code> | <code>string</code> | ตัวระบุสไตล์การแสดงสำหรับแท็ก |
| <code>data.comments[].sub_comments[].show_tags_v2[].pos</code> | <code>string</code> | รหัสตำแหน่งการแสดงสำหรับแท็ก |
| <code>data.comments[].sub_comments[].biz_label</code> | <code>object</code> | ตัวระบุธุรกิจและข้อความที่มีความซับซ้อนสำหรับความคิดเห็น |
| <code>data.comments[].sub_comments[].biz_label.product_review</code> | <code>boolean</code> | ว่าประเภทแพลตฟอร์มจะจัดให้รายการนี้เป็นรีวิวสินค้าหรือไม่ |
| <code>data.comments[].sub_comments[].biz_label.group_invite</code> | <code>string</code> | ข้อมูลเมตาดาต้าเกี่ยวกับการเชิญกลุ่มที่ส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].sub_comments[].biz_label.rich_text</code> | <code>string</code> | ข้อมูลเมตาดาต้าแบบ Rich-text ที่ส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].sub_comments[].user</code> | <code>object</code> | ผู้เขียนของความคิดเห็นที่ฝังอยู่ |
| <code>data.comments[].sub_comments[].user.userid</code> | <code>string</code> | ID ของผู้ใช้ Xiaohongshu ของบัญชีนี้ |
| <code>data.comments[].sub_comments[].user.red_id</code> | <code>string</code> | ID ของบัญชี Xiaohongshu ที่สามารถมองเห็นได้ ซึ่งอาจว่างเปล่า |
| <code>data.comments[].sub_comments[].user.nickname</code> | <code>string</code> | ชื่อที่ปรากฏของบัญชีนี้ |
| <code>data.comments[].sub_comments[].user.images</code> | <code>string</code> | URL ของภาพโปรไฟล์ที่ส่งกลับมาให้บัญชีนี้ |
| <code>data.comments[].sub_comments[].user.current_user</code> | <code>string</code> | ตัวชี้วัดผู้ใช้ปัจจุบันของแพลตฟอร์ม ซึ่งส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].sub_comments[].user.ai_agent</code> | <code>boolean</code> | ว่าฟีเจอร์นี้ของแพลตฟอร์มจะจัดให้บัญชีนี้เป็น AI agent หรือไม่ |
| <code>data.comments[].sub_comments[].user.level</code> | <code>object</code> | ข้อมูลระดับที่ส่งกลับมาให้บัญชีนี้ |
| <code>data.comments[].sub_comments[].user.level.image</code> | <code>string</code> | ภาพที่ส่งกลับมาให้กับระดับของบัญชีนี้ |
| <code>data.comments[].sub_comments[].user.additional_tags</code> | <code>object</code> | ข้อมูลเมตาดาต้าเกี่ยวกับบัญชีเพิ่มเติม ซึ่งอาจว่างเปล่าได้ |
| <code>data.comments[].sub_comments[].target_comment</code> | <code>object</code> | ข้อมูลเกี่ยวกับความคิดเห็นที่คำตอบนี้ตอบกลับ |
| <code>data.comments[].sub_comments[].target_comment.id</code> | <code>string</code> | ID ของความคิดเห็นที่ได้รับการตอบกลับ |
| <code>data.comments[].sub_comments[].target_comment.status</code> | <code>integer</code> | รหัสสถานะที่ส่งกลับสำหรับความคิดเห็นที่ได้รับการตอบกลับ |
| <code>data.comments[].sub_comments[].target_comment.user</code> | <code>object</code> | ผู้เขียนของความคิดเห็นที่ได้รับการตอบกลับ |
| <code>data.comments[].sub_comments[].target_comment.user.userid</code> | <code>string</code> | ID ของผู้ใช้ Xiaohongshu ของบัญชีนี้ |
| <code>data.comments[].sub_comments[].target_comment.user.red_id</code> | <code>string</code> | ID ของบัญชี Xiaohongshu ที่สามารถมองเห็นได้ ซึ่งอาจว่างเปล่า |
| <code>data.comments[].sub_comments[].target_comment.user.nickname</code> | <code>string</code> | ชื่อที่ปรากฏของบัญชีนี้ |
| <code>data.comments[].sub_comments[].target_comment.user.images</code> | <code>string</code> | URL ของภาพโปรไฟล์ที่ส่งกลับมาให้บัญชีนี้ |
| <code>data.comments[].sub_comments[].target_comment.user.current_user</code> | <code>string</code> | ตัวชี้วัดผู้ใช้ปัจจุบันของแพลตฟอร์ม ซึ่งส่งกลับมาในรูปแบบสตริง |
| <code>data.comments[].sub_comments[].target_comment.user.ai_agent</code> | <code>boolean</code> | ว่าฟีเจอร์นี้ของแพลตฟอร์มจะจัดให้บัญชีนี้เป็น AI agent หรือไม่ |
| <code>data.comments[].sub_comments[].target_comment.user.level</code> | <code>object</code> | ข้อมูลระดับที่ส่งกลับมาให้บัญชีนี้ |
| <code>data.comments[].sub_comments[].target_comment.user.level.image</code> | <code>string</code> | ภาพที่ส่งกลับมาให้กับระดับของบัญชีนี้ |
| <code>data.comments[].sub_comments[].target_comment.user.additional_tags</code> | <code>object</code> | ข้อมูลเมตาดาต้าเกี่ยวกับบัญชีเพิ่มเติม ซึ่งอาจว่างเปล่าได้ |
| <code>data.user_id</code> | <code>string</code> | ID ผู้ใช้ Xiaohongshu ของผู้เขียนโพสต์ |
| <code>data.comment_count</code> | <code>integer</code> | จำนวนความคิดเห็นโดยรวมที่ Xiaohongshu รายงานสำหรับบันทึก |
| <code>data.comment_count_l1</code> | <code>integer</code> | จำนวนความคิดเห็นระดับบนสุดที่รายงานในหน้าแห่งนั้น |
| <code>data.has_more</code> | <code>boolean</code> | คำตอบนี้รายงานหน้าแห่งอื่นของความคิดเห็นระดับบนสุดหรือไม่ |
| <code>data.cursor</code> | <code>string</code> | คอร์เซอร์สำหรับความคิดเห็นระดับบนสุด หากมี ให้ส่งต่อโดยไม่เปลี่ยนแปลงเป็น lastCursor สำหรับบันทึกเดียวกัน และมีการจัดเรียง อาจว่างหรือไม่มีอยู่ในตอนท้าย |
| <code>data.page_context</code> | <code>string</code> | บริบทหน้าเว็บที่ไม่ชัดเจนที่ Xiaohongshu ส่งกลับมา |
| <code>data.current_sort_strategy</code> | <code>string</code> | รหัสกลยุทธ์การจัดเรียงที่รายงานพร้อมกับคำตอบ ค่านี้อาจแตกต่างจากค่าการจัดเรียงที่ต้องการ |
| <code>data.all_sort_strategies</code> | <code>array</code> | ตัวเลือกการจัดเรียงที่รายงานพร้อมกับหน้านี้ หากมีการส่งกลับมา |
| <code>data.all_sort_strategies[]</code> | <code>object</code> | ตัวเลือกการจัดเรียงที่รายงานพร้อมกับหน้านี้ |
| <code>data.all_sort_strategies[].type</code> | <code>string</code> | รหัสตัวเลือกการจัดเรียงที่ Xiaohongshu ส่งกลับมา |
| <code>data.all_sort_strategies[].optional_name</code> | <code>string</code> | ชื่อแสดงผลหลักสำหรับตัวเลือกการจัดเรียง |
| <code>data.all_sort_strategies[].suffix_name</code> | <code>string</code> | ชื่อแสดงผลเสริมสำหรับตัวเลือกการจัดเรียง |

</div>

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

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

