---
title: "Reddit คำแสดงความคิดเห็นเกี่ยวกับโพสต์ API (V1)"
description: "สืบค้นความคิดเห็นของโพสต์บน Reddit ที่รองรับการแบ่งหน้า ใช้เพื่อทบทวนการอภิปรายในหัวข้อหรือสืบค้นความคิดเห็นเพิ่มเติมสำหรับโพสต์ที่รู้จัก"
lastUpdated: false
aiUsagePrompt: true
---

# Reddit คำแสดงความคิดเห็นเกี่ยวกับโพสต์ API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/reddit/get-post-comments/v1\"")'
  :summary='JSON.parse("\"คำแสดงความคิดเห็นเกี่ยวกับโพสต์ (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/reddit/post-comments-v1-th.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"โทเค็นการเข้าถึงสำหรับบริการ API นี้\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"postId\",\"in\":\"query\",\"description\":\"ตัวระบุเฉพาะของโพสต์ Reddit.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"โทเค็นการแบ่งหน้าสำหรับผลลัพธ์หน้าถัดไป\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}}]")'
  :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\":\"คอมเมนต์ในโพสต์ของ Reddit พร้อมข้อมูลเมทาดิโอของกระทู้นั้นและข้อมูลการต่อเนื่องของบทความ.\",\"properties\":{\"postInfoById\":{\"type\":\"object\",\"description\":\"ข้อมูลของโพสต์และคอมเมนต์ที่ส่งกลับมาสำหรับตัวระบุโพสต์ที่ต้องการ.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ตัวระบุโพสต์ของ Reddit.\"},\"title\":{\"type\":\"string\",\"description\":\"ชื่อของโพสต์ใน Reddit.\"},\"commentCount\":{\"type\":\"integer\",\"description\":\"จำนวนคอมเมนต์ทั้งหมดที่รายงานสำหรับโพสต์นั้น.\"},\"commentForest\":{\"type\":\"object\",\"description\":\"รายการแถวเรียงลำดับของคอมเมนต์และข้อมูลการต่อเนื่องที่เชื่อมโยงโดยตัวระบุพ่อ.\",\"properties\":{\"pageInfo\":{\"type\":\"object\",\"description\":\"ข้อมูลการแสดงผลการแสดงผลที่ส่งกลับมาพร้อมกับข้อมูลของคอมเมนต์.\",\"properties\":{\"commentCount\":{\"type\":[\"integer\",\"null\"],\"description\":\"จำนวนคอมเมนต์ที่รายงานสำหรับข้อมูลของคอมเมนต์ หรือ null หากไม่มีข้อมูล.\"},\"hasNextPage\":{\"type\":\"boolean\",\"description\":\"ว่ามีการรายงานผลลัพธ์เพิ่มเติมสำหรับข้อมูลของคอมเมนต์หรือไม่.\"}}},\"trees\":{\"type\":\"array\",\"description\":\"รายการที่เรียงลำดับในข้อมูลของคอมเมนต์. แต่ละรายการอาจมีโหนดคอมเมนต์หรือเครื่องหมายการต่อเนื่อง.\",\"items\":{\"type\":\"object\",\"description\":\"คอมเมนต์หนึ่งหรือรายการการต่อเนื่องในข้อมูลของคอมเมนต์.\",\"properties\":{\"childCount\":{\"type\":\"integer\",\"description\":\"จำนวนคอมเมนต์ลูกที่รายงานสำหรับรายการนี้.\"},\"depth\":{\"type\":\"integer\",\"description\":\"ความลึกในเธรดความคิดเห็น รายการระดับบนสุดมีความลึกเท่ากับศูนย์\"},\"parentId\":{\"type\":[\"string\",\"null\"],\"description\":\"ตัวระบุคอมเมนต์พ่อ. รายการระดับบนสุดอาจส่งกลับ null.\"},\"node\":{\"type\":[\"object\",\"null\"],\"description\":\"เนื้อหาคอมเมนต์และข้อมูลเมทาดิโอสาธารณะสำหรับรายการนี้ หรือ null สำหรับเครื่องหมายการต่อเนื่อง.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ตัวระบุคอมเมนต์ของ Reddit.\"},\"createdAt\":{\"type\":\"string\",\"description\":\"เวลาการสร้างคอมเมนต์เป็นข้อความเวลา ISO.\"},\"editedAt\":{\"description\":\"ข้อมูลเวลาสำหรับการแก้ไขคอมเมนต์ล่าสุด. ตัวอย่างที่ได้รับการยืนยันส่งกลับ null.\"},\"permalink\":{\"type\":\"string\",\"description\":\"เส้นทางลิงก์ที่ใช้สำหรับการสร้างบันทึกใน Reddit.\"},\"content\":{\"type\":\"object\",\"description\":\"รูปแบบเนื้อหาที่ให้มาสำหรับบันทึกนี้.\",\"properties\":{\"markdown\":{\"type\":\"string\",\"description\":\"ข้อความบันทึกที่ถูกส่งกลับมาในรูปแบบ Markdown.\"},\"preview\":{\"type\":\"string\",\"description\":\"ข้อความตัวอย่างที่ถูกส่งกลับมาสำหรับบันทึก.\"},\"richtext\":{\"type\":\"string\",\"description\":\"เอกสารรูปแบบพัฒนา (Rich-text) ที่ถูกสืบเนื่องในรูปแบบสตริง JSON.\"},\"richtextMedia\":{\"type\":\"array\",\"description\":\"เนื้อหาภาพที่ถูกอ้างอิงโดยเอกสารรูปแบบพัฒนา. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับรายการว่าง.\"},\"typeHint\":{\"type\":\"string\",\"description\":\"ข้อมูลบ่งชี้ประเภทเนื้อหาที่รายงานสำหรับข้อความบันทึก.\"},\"translationInfo\":{\"type\":\"object\",\"description\":\"ข้อมูลสถานะการแปลสำหรับเนื้อหาบันทึก.\",\"properties\":{\"isTranslated\":{\"type\":\"boolean\",\"description\":\"ว่าข้อความบันทึกที่ส่งกลับมาถูกระบุว่าได้รับการแปลหรือไม่.\"},\"translatedLanguage\":{\"description\":\"ข้อมูลภาษาสำหรับเนื้อหาบันทึกที่ได้รับการแปล. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับ null.\"}}}}},\"score\":{\"type\":\"integer\",\"description\":\"คะแนนบันทึกที่รายงานโดย Reddit.\"},\"isScoreHidden\":{\"type\":\"boolean\",\"description\":\"ว่าคะแนนบันทึกถูกระบุว่าเป็นคะแนนที่ถูกซ่อนหรือไม่.\"},\"isAdminTakedown\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าได้รับการลบโดยผู้ดูแลระบบ Reddit หรือไม่.\"},\"isArchived\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่ถูกจัดเก็บไว้หรือไม่.\"},\"isCommercialCommunication\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าเป็นการสื่อสารเชิงพาณิชย์หรือไม่.\"},\"isLocked\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่ถูกล็อกหรือไม่.\"},\"isRemoved\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าได้รับการลบหรือไม่.\"},\"isStickied\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่ถูกติดแท็กหรือไม่.\"},\"isTranslatable\":{\"type\":\"boolean\",\"description\":\"ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่สามารถแปลได้หรือไม่.\"},\"languageCode\":{\"type\":[\"string\",\"null\"],\"description\":\"รหัสภาษาที่รายงานสำหรับบันทึก, หรือ null เมื่อไม่มีข้อมูล.\"},\"removedByCategory\":{\"description\":\"ข้อมูลประเภทการลบที่ส่งกลับมาสำหรับบันทึก. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับ null.\"},\"distinguishedAs\":{\"description\":\"ข้อมูลการแบ่งบทบาทที่ส่งกลับมาสำหรับบันทึก. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับ null.\"},\"authorInfo\":{\"type\":\"object\",\"description\":\"ข้อมูลบัญชี Reddit ที่เป็นสาธารณะของผู้เขียนบันทึก.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ตัวระบุบัญชี Reddit ของผู้เขียนบันทึก.\"},\"name\":{\"type\":\"string\",\"description\":\"ชื่อบัญชีสาธารณะที่แสดงสำหรับผู้เขียนบันทึก.\"},\"accountType\":{\"type\":\"string\",\"description\":\"ประเภทบัญชีที่ส่งกลับมาสำหรับผู้เขียนความคิดเห็น\"},\"iconSmall\":{\"type\":\"object\",\"description\":\"ภาพ avatar ขนาดเล็กที่ส่งกลับมาสำหรับผู้เขียน\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"ขนาดของภาพในพิกเซล\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"}}},\"url\":{\"type\":\"string\",\"description\":\"URL ของภาพ avatar ที่เป็นสาธารณะสำหรับผู้เขียน\"}}},\"newIcon\":{\"type\":\"object\",\"description\":\"ภาพ avatar ที่ส่งกลับมาในฟิลด์ “new-icon”\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"ขนาดของภาพในพิกเซล\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"}}},\"url\":{\"type\":\"string\",\"description\":\"URL ของภาพ avatar ที่เป็นสาธารณะสำหรับผู้เขียน\"}}},\"snoovatarIcon\":{\"type\":[\"object\",\"null\"],\"description\":\"ภาพ Snoovatar ที่ส่งกลับมาสำหรับผู้เขียน หรือ null หากไม่มี\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"ขนาดของภาพในพิกเซล\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"}}},\"url\":{\"type\":\"string\",\"description\":\"URL ของภาพ avatar ที่เป็นสาธารณะสำหรับผู้เขียน\"}}},\"isCakeDayNow\":{\"type\":\"boolean\",\"description\":\"ว่าบัญชีของผู้เขียนได้รับการระบุว่าเป็นวันครบรอบของ Reddit หรือไม่\"},\"profile\":{\"type\":\"object\",\"description\":\"คุณสมบัติของโปรไฟล์สาธารณะสำหรับผู้เขียนความคิดเห็น\",\"properties\":{\"isNsfw\":{\"type\":\"boolean\",\"description\":\"ว่าประวัติของผู้เขียนได้รับการระบุว่าเป็น NSFW หรือไม่\"}}}}},\"authorCommunityBadge\":{\"type\":[\"object\",\"null\"],\"description\":\"ข้อมูลของเครื่องหมายยืมสำหรับผู้เขียนความคิดเห็น หรือ null หากไม่มี\",\"properties\":{\"accessibilityLabel\":{\"type\":\"string\",\"description\":\"คำอธิบายเกี่ยวกับการเข้าถึงสำหรับเครื่องหมายยืม\"},\"label\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงสำหรับเครื่องหมายยืม\"},\"image\":{\"type\":\"object\",\"description\":\"ข้อมูลเกี่ยวกับภาพสำหรับเครื่องหมายยืม\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL ของภาพที่เป็นสาธารณะสำหรับเครื่องหมายยืม\"}}}}},\"authorFlair\":{\"type\":[\"object\",\"null\"],\"description\":\"ฟีเลิร์ดที่เป็นสาธารณะสำหรับผู้เขียนความคิดเห็น หรือ null หากไม่มี\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงสำหรับฟีเลิร์ดของผู้เขียน\"}}}}},\"more\":{\"type\":[\"object\",\"null\"],\"description\":\"ข้อมูลเมตาดาต้าเพื่อการดำเนินการต่อของสาขานี้ หรือ null หากไม่มี\",\"properties\":{\"count\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นที่ได้รับรายงานสำหรับการดำเนินการต่อนี้\"},\"cursor\":{\"type\":\"string\",\"description\":\"คอร์เซอร์สำหรับการดำเนินการต่อของสาขานี้ ให้ส่งต่อโดยไม่เปลี่ยนแปลงในฐานะพารามิเตอร์คำขอพร้อมกับ postId เดียวกัน\"},\"isTooDeepForCount\":{\"type\":\"boolean\",\"description\":\"ว่าสาขานี้ถูกรายงานว่า “ลึกเกินไป” ไม่สามารถให้จำนวนได้หรือไม่\"}}}}}}}},\"subreddit\":{\"type\":\"object\",\"description\":\"ข้อมูลของชุมชนสำหรับโพสต์\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ตัวระบุชุมชนของ Reddit\"},\"name\":{\"type\":\"string\",\"description\":\"ชื่อของชุมชน Reddit\"},\"prefixedName\":{\"type\":\"string\",\"description\":\"ชื่อชุมชนพร้อมสัญลักษณ์ Reddit\"},\"isQuarantined\":{\"type\":\"boolean\",\"description\":\"ว่าชุมชนนี้ได้รับการระบุว่าเป็นชุมชนที่ถูกกักกันหรือไม่\"},\"allowedMediaInComments\":{\"type\":\"array\",\"description\":\"ประเภทของสื่อที่ได้รับการรายงานว่าได้รับอนุญาตในความคิดเห็นของชุมชน\",\"items\":{\"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/reddit/get-post-comments/v1\"")' />

<p>สืบค้นความคิดเห็นของโพสต์บน Reddit ที่รองรับการแบ่งหน้า ใช้เพื่อทบทวนการอภิปรายในหัวข้อหรือสืบค้นความคิดเห็นเพิ่มเติมสำหรับโพสต์ที่รู้จัก</p>

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

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

| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
| <code>postId</code> | query | <code>string</code> | ใช่ | - | ตัวระบุเฉพาะของโพสต์ Reddit. |
| <code>cursor</code> | query | <code>string</code> | ไม่ใช่ | <code></code> | โทเค็นการแบ่งหน้าสำหรับผลลัพธ์หน้าถัดไป |

</div>

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

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/reddit/get-post-comments/v1?token=YOUR_API_KEY&postId=VALUE'
```

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

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- postId (query): ตัวระบุเฉพาะของโพสต์ Reddit. (จำเป็น)
- cursor (query): โทเค็นการแบ่งหน้าสำหรับผลลัพธ์หน้าถัดไป

รูปแบบที่ส่งกลับ: จัดการ 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/reddit/get-post-comments/v1?token=YOUR_API_KEY&postId=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/reddit/get-post-comments/v1?token=YOUR_API_KEY&postId=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/reddit/get-post-comments/v1?token=YOUR_API_KEY&postId=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/reddit/get-post-comments/v1?token=YOUR_API_KEY&postId=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/reddit/get-post-comments/v1?token=YOUR_API_KEY&postId=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/reddit/post-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> | คอมเมนต์ในโพสต์ของ Reddit พร้อมข้อมูลเมทาดิโอของกระทู้นั้นและข้อมูลการต่อเนื่องของบทความ. |
| <code>data.postInfoById</code> | <code>object</code> | ข้อมูลของโพสต์และคอมเมนต์ที่ส่งกลับมาสำหรับตัวระบุโพสต์ที่ต้องการ. |
| <code>data.postInfoById.id</code> | <code>string</code> | ตัวระบุโพสต์ของ Reddit. |
| <code>data.postInfoById.title</code> | <code>string</code> | ชื่อของโพสต์ใน Reddit. |
| <code>data.postInfoById.commentCount</code> | <code>integer</code> | จำนวนคอมเมนต์ทั้งหมดที่รายงานสำหรับโพสต์นั้น. |
| <code>data.postInfoById.commentForest</code> | <code>object</code> | รายการแถวเรียงลำดับของคอมเมนต์และข้อมูลการต่อเนื่องที่เชื่อมโยงโดยตัวระบุพ่อ. |
| <code>data.postInfoById.commentForest.pageInfo</code> | <code>object</code> | ข้อมูลการแสดงผลการแสดงผลที่ส่งกลับมาพร้อมกับข้อมูลของคอมเมนต์. |
| <code>data.postInfoById.commentForest.pageInfo.commentCount</code> | <code>integer &#124; null</code> | จำนวนคอมเมนต์ที่รายงานสำหรับข้อมูลของคอมเมนต์ หรือ null หากไม่มีข้อมูล. |
| <code>data.postInfoById.commentForest.pageInfo.hasNextPage</code> | <code>boolean</code> | ว่ามีการรายงานผลลัพธ์เพิ่มเติมสำหรับข้อมูลของคอมเมนต์หรือไม่. |
| <code>data.postInfoById.commentForest.trees</code> | <code>array</code> | รายการที่เรียงลำดับในข้อมูลของคอมเมนต์. แต่ละรายการอาจมีโหนดคอมเมนต์หรือเครื่องหมายการต่อเนื่อง. |
| <code>data.postInfoById.commentForest.trees[]</code> | <code>object</code> | คอมเมนต์หนึ่งหรือรายการการต่อเนื่องในข้อมูลของคอมเมนต์. |
| <code>data.postInfoById.commentForest.trees[].childCount</code> | <code>integer</code> | จำนวนคอมเมนต์ลูกที่รายงานสำหรับรายการนี้. |
| <code>data.postInfoById.commentForest.trees[].depth</code> | <code>integer</code> | ความลึกในเธรดความคิดเห็น รายการระดับบนสุดมีความลึกเท่ากับศูนย์ |
| <code>data.postInfoById.commentForest.trees[].parentId</code> | <code>string &#124; null</code> | ตัวระบุคอมเมนต์พ่อ. รายการระดับบนสุดอาจส่งกลับ null. |
| <code>data.postInfoById.commentForest.trees[].node</code> | <code>object &#124; null</code> | เนื้อหาคอมเมนต์และข้อมูลเมทาดิโอสาธารณะสำหรับรายการนี้ หรือ null สำหรับเครื่องหมายการต่อเนื่อง. |
| <code>data.postInfoById.commentForest.trees[].node.id</code> | <code>string</code> | ตัวระบุคอมเมนต์ของ Reddit. |
| <code>data.postInfoById.commentForest.trees[].node.createdAt</code> | <code>string</code> | เวลาการสร้างคอมเมนต์เป็นข้อความเวลา ISO. |
| <code>data.postInfoById.commentForest.trees[].node.editedAt</code> | - | ข้อมูลเวลาสำหรับการแก้ไขคอมเมนต์ล่าสุด. ตัวอย่างที่ได้รับการยืนยันส่งกลับ null. |
| <code>data.postInfoById.commentForest.trees[].node.permalink</code> | <code>string</code> | เส้นทางลิงก์ที่ใช้สำหรับการสร้างบันทึกใน Reddit. |
| <code>data.postInfoById.commentForest.trees[].node.content</code> | <code>object</code> | รูปแบบเนื้อหาที่ให้มาสำหรับบันทึกนี้. |
| <code>data.postInfoById.commentForest.trees[].node.content.markdown</code> | <code>string</code> | ข้อความบันทึกที่ถูกส่งกลับมาในรูปแบบ Markdown. |
| <code>data.postInfoById.commentForest.trees[].node.content.preview</code> | <code>string</code> | ข้อความตัวอย่างที่ถูกส่งกลับมาสำหรับบันทึก. |
| <code>data.postInfoById.commentForest.trees[].node.content.richtext</code> | <code>string</code> | เอกสารรูปแบบพัฒนา (Rich-text) ที่ถูกสืบเนื่องในรูปแบบสตริง JSON. |
| <code>data.postInfoById.commentForest.trees[].node.content.richtextMedia</code> | <code>array</code> | เนื้อหาภาพที่ถูกอ้างอิงโดยเอกสารรูปแบบพัฒนา. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับรายการว่าง. |
| <code>data.postInfoById.commentForest.trees[].node.content.typeHint</code> | <code>string</code> | ข้อมูลบ่งชี้ประเภทเนื้อหาที่รายงานสำหรับข้อความบันทึก. |
| <code>data.postInfoById.commentForest.trees[].node.content.translationInfo</code> | <code>object</code> | ข้อมูลสถานะการแปลสำหรับเนื้อหาบันทึก. |
| <code>data.postInfoById.commentForest.trees[].node.content.translationInfo.isTranslated</code> | <code>boolean</code> | ว่าข้อความบันทึกที่ส่งกลับมาถูกระบุว่าได้รับการแปลหรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.content.translationInfo.translatedLanguage</code> | - | ข้อมูลภาษาสำหรับเนื้อหาบันทึกที่ได้รับการแปล. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับ null. |
| <code>data.postInfoById.commentForest.trees[].node.score</code> | <code>integer</code> | คะแนนบันทึกที่รายงานโดย Reddit. |
| <code>data.postInfoById.commentForest.trees[].node.isScoreHidden</code> | <code>boolean</code> | ว่าคะแนนบันทึกถูกระบุว่าเป็นคะแนนที่ถูกซ่อนหรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isAdminTakedown</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าได้รับการลบโดยผู้ดูแลระบบ Reddit หรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isArchived</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่ถูกจัดเก็บไว้หรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isCommercialCommunication</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าเป็นการสื่อสารเชิงพาณิชย์หรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isLocked</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่ถูกล็อกหรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isRemoved</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าได้รับการลบหรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isStickied</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่ถูกติดแท็กหรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.isTranslatable</code> | <code>boolean</code> | ว่าบันทึกนี้ถูกระบุว่าเป็นบันทึกที่สามารถแปลได้หรือไม่. |
| <code>data.postInfoById.commentForest.trees[].node.languageCode</code> | <code>string &#124; null</code> | รหัสภาษาที่รายงานสำหรับบันทึก, หรือ null เมื่อไม่มีข้อมูล. |
| <code>data.postInfoById.commentForest.trees[].node.removedByCategory</code> | - | ข้อมูลประเภทการลบที่ส่งกลับมาสำหรับบันทึก. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับ null. |
| <code>data.postInfoById.commentForest.trees[].node.distinguishedAs</code> | - | ข้อมูลการแบ่งบทบาทที่ส่งกลับมาสำหรับบันทึก. ตัวอย่างที่ได้รับการตรวจสอบจะส่งกลับ null. |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo</code> | <code>object</code> | ข้อมูลบัญชี Reddit ที่เป็นสาธารณะของผู้เขียนบันทึก. |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.id</code> | <code>string</code> | ตัวระบุบัญชี Reddit ของผู้เขียนบันทึก. |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.name</code> | <code>string</code> | ชื่อบัญชีสาธารณะที่แสดงสำหรับผู้เขียนบันทึก. |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.accountType</code> | <code>string</code> | ประเภทบัญชีที่ส่งกลับมาสำหรับผู้เขียนความคิดเห็น |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.iconSmall</code> | <code>object</code> | ภาพ avatar ขนาดเล็กที่ส่งกลับมาสำหรับผู้เขียน |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.iconSmall.dimensions</code> | <code>object</code> | ขนาดของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.iconSmall.dimensions.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.iconSmall.dimensions.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.iconSmall.url</code> | <code>string</code> | URL ของภาพ avatar ที่เป็นสาธารณะสำหรับผู้เขียน |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.newIcon</code> | <code>object</code> | ภาพ avatar ที่ส่งกลับมาในฟิลด์ “new-icon” |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.newIcon.dimensions</code> | <code>object</code> | ขนาดของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.newIcon.dimensions.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.newIcon.dimensions.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.newIcon.url</code> | <code>string</code> | URL ของภาพ avatar ที่เป็นสาธารณะสำหรับผู้เขียน |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.snoovatarIcon</code> | <code>object &#124; null</code> | ภาพ Snoovatar ที่ส่งกลับมาสำหรับผู้เขียน หรือ null หากไม่มี |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.snoovatarIcon.dimensions</code> | <code>object</code> | ขนาดของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.snoovatarIcon.dimensions.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.snoovatarIcon.dimensions.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.snoovatarIcon.url</code> | <code>string</code> | URL ของภาพ avatar ที่เป็นสาธารณะสำหรับผู้เขียน |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.isCakeDayNow</code> | <code>boolean</code> | ว่าบัญชีของผู้เขียนได้รับการระบุว่าเป็นวันครบรอบของ Reddit หรือไม่ |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.profile</code> | <code>object</code> | คุณสมบัติของโปรไฟล์สาธารณะสำหรับผู้เขียนความคิดเห็น |
| <code>data.postInfoById.commentForest.trees[].node.authorInfo.profile.isNsfw</code> | <code>boolean</code> | ว่าประวัติของผู้เขียนได้รับการระบุว่าเป็น NSFW หรือไม่ |
| <code>data.postInfoById.commentForest.trees[].node.authorCommunityBadge</code> | <code>object &#124; null</code> | ข้อมูลของเครื่องหมายยืมสำหรับผู้เขียนความคิดเห็น หรือ null หากไม่มี |
| <code>data.postInfoById.commentForest.trees[].node.authorCommunityBadge.accessibilityLabel</code> | <code>string</code> | คำอธิบายเกี่ยวกับการเข้าถึงสำหรับเครื่องหมายยืม |
| <code>data.postInfoById.commentForest.trees[].node.authorCommunityBadge.label</code> | <code>string</code> | ข้อความที่แสดงสำหรับเครื่องหมายยืม |
| <code>data.postInfoById.commentForest.trees[].node.authorCommunityBadge.image</code> | <code>object</code> | ข้อมูลเกี่ยวกับภาพสำหรับเครื่องหมายยืม |
| <code>data.postInfoById.commentForest.trees[].node.authorCommunityBadge.image.url</code> | <code>string</code> | URL ของภาพที่เป็นสาธารณะสำหรับเครื่องหมายยืม |
| <code>data.postInfoById.commentForest.trees[].node.authorFlair</code> | <code>object &#124; null</code> | ฟีเลิร์ดที่เป็นสาธารณะสำหรับผู้เขียนความคิดเห็น หรือ null หากไม่มี |
| <code>data.postInfoById.commentForest.trees[].node.authorFlair.text</code> | <code>string</code> | ข้อความที่แสดงสำหรับฟีเลิร์ดของผู้เขียน |
| <code>data.postInfoById.commentForest.trees[].more</code> | <code>object &#124; null</code> | ข้อมูลเมตาดาต้าเพื่อการดำเนินการต่อของสาขานี้ หรือ null หากไม่มี |
| <code>data.postInfoById.commentForest.trees[].more.count</code> | <code>integer</code> | จำนวนความคิดเห็นที่ได้รับรายงานสำหรับการดำเนินการต่อนี้ |
| <code>data.postInfoById.commentForest.trees[].more.cursor</code> | <code>string</code> | คอร์เซอร์สำหรับการดำเนินการต่อของสาขานี้ ให้ส่งต่อโดยไม่เปลี่ยนแปลงในฐานะพารามิเตอร์คำขอพร้อมกับ postId เดียวกัน |
| <code>data.postInfoById.commentForest.trees[].more.isTooDeepForCount</code> | <code>boolean</code> | ว่าสาขานี้ถูกรายงานว่า “ลึกเกินไป” ไม่สามารถให้จำนวนได้หรือไม่ |
| <code>data.postInfoById.subreddit</code> | <code>object</code> | ข้อมูลของชุมชนสำหรับโพสต์ |
| <code>data.postInfoById.subreddit.id</code> | <code>string</code> | ตัวระบุชุมชนของ Reddit |
| <code>data.postInfoById.subreddit.name</code> | <code>string</code> | ชื่อของชุมชน Reddit |
| <code>data.postInfoById.subreddit.prefixedName</code> | <code>string</code> | ชื่อชุมชนพร้อมสัญลักษณ์ Reddit |
| <code>data.postInfoById.subreddit.isQuarantined</code> | <code>boolean</code> | ว่าชุมชนนี้ได้รับการระบุว่าเป็นชุมชนที่ถูกกักกันหรือไม่ |
| <code>data.postInfoById.subreddit.allowedMediaInComments</code> | <code>array</code> | ประเภทของสื่อที่ได้รับการรายงานว่าได้รับอนุญาตในความคิดเห็นของชุมชน |
| <code>data.postInfoById.subreddit.allowedMediaInComments[]</code> | <code>string</code> | ประเภทของสื่อหนึ่งที่ได้รับการรายงานว่าได้รับอนุญาตในความคิดเห็น |

</div>

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

<ApiExampleSection :api='JSON.parse("\"/api/reddit/get-post-comments/v1\"")' />

