---
title: "Xiaohongshu (RedNote) ถาม Dot AI API"
description: "สอบถามคำถามด้วยคีย์เวิร์ดกับ Xiaohongshu (RedNote) Ask Dots AI ใช้เพื่อรับคำตอบจาก AI สำหรับการวิจัยหัวข้อและการสำรวจคำถาม"
lastUpdated: false
aiUsagePrompt: true
---

# Xiaohongshu \(RedNote\) ถาม Dot AI API

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/xiaohongshu/ask-dots\"")'
  :summary='JSON.parse("\"ถาม Dot AI\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/xiaohongshu-rednote/ask-dots-ai-th.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"โทเค็นการเข้าถึงสำหรับบริการ API นี้\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"คำถามหรือคำสำคัญสำหรับการส่งไปให้ Ask Dots AI.\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :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\",\"null\"],\"description\":\"คำตอบที่ส่งกลับโดย Xiaohongshu Ask Dots พร้อมองค์ประกอบคำตอบและรายการแหล่งที่มา หากมี.\",\"properties\":{\"answer_status\":{\"type\":\"integer\",\"description\":\"รหัสสถานะที่รายงานสำหรับคำตอบที่สร้างขึ้น.\"},\"has_more_sources\":{\"type\":\"boolean\",\"description\":\"ว่าคำตอบมีรายการแหล่งที่มาอื่นๆ นอกเหนือจากที่ส่งกลับมาหรือไม่.\"},\"base_info\":{\"type\":\"object\",\"description\":\"ข้อมูลการแสดงและจำนวนรายการแหล่งที่มาสำหรับคำตอบ.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ตัวระบุคำตอบที่ส่งกลับมาในรูปแบบข้อความ.\"},\"long_id\":{\"type\":\"integer\",\"description\":\"ตัวระบุตัวเลขที่ส่งกลับมาพร้อมคำตอบ. ตัวเลขนี้สามารถเกินขอบเขตที่ปลอดภัยของ JavaScript ได้.\"},\"note_title\":{\"type\":\"string\",\"description\":\"ชื่อเรื่องที่ส่งกลับมาในข้อมูลคำตอบ.\"},\"text\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงพร้อมข้อมูลคำตอบ.\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงพร้อมคำตอบ.\"},\"avatar\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพอวาตาพร้อมคำตอบ.\"},\"dark_avatar\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพอวาตาสำหรับการแสดงในโหมดมืด หากมี.\"},\"total_count\":{\"type\":\"integer\",\"description\":\"จำนวนรายการแหล่งที่มาที่รายงานพร้อมคำตอบ. มันสามารถเกินจำนวนรายการแหล่งที่มาที่ส่งกลับมาได้.\"},\"totalCnt\":{\"type\":\"string\",\"description\":\"ป้ายกำกับจำนวนแหล่งที่มาเป็นข้อความแสดงผล. ป้ายกำกับนี้สามารถมีคำต่างๆ ได้.\"},\"source_avatars\":{\"type\":\"array\",\"description\":\"ภาพ avatar สำหรับแหล่งที่มาที่แสดงผลพร้อมกับคำตอบ.\",\"items\":{\"type\":\"string\",\"description\":\"URL ของภาพ avatar สำหรับแหล่งที่มาหนึ่งที่แสดงผล.\"}}}},\"elements\":{\"type\":\"array\",\"description\":\"บล็อกเนื้อหาในคำตอบที่สร้างขึ้น.\",\"items\":{\"type\":\"object\",\"description\":\"บล็อกคำตอบหนึ่ง. ฟิลด์เนื้อหาของมันขึ้นอยู่กับประเภทของบล็อก.\",\"properties\":{\"element_type\":{\"type\":\"string\",\"description\":\"ป้ายกำกับประเภทที่รายงานสำหรับบล็อกคำตอบ.\"},\"markdown\":{\"type\":\"object\",\"description\":\"เนื้อหา Markdown สำหรับบล็อกคำตอบนี้.\",\"properties\":{\"text\":{\"type\":\"string\",\"contentMediaType\":\"text/markdown\",\"description\":\"ข้อความ Markdown ที่สร้างขึ้นสำหรับบล็อกคำตอบนี้.\"}}},\"image\":{\"type\":\"object\",\"description\":\"ภาพที่รวมอยู่ในบล็อกคำตอบนี้.\",\"properties\":{\"image_list\":{\"type\":\"array\",\"description\":\"ประวัติของภาพสำหรับบล็อกคำตอบ.\",\"items\":{\"type\":\"object\",\"description\":\"ภาพหนึ่งที่รวมอยู่ในบล็อกคำตอบ.\",\"properties\":{\"file_id\":{\"type\":\"string\",\"description\":\"ตัวระบุไฟล์สำหรับภาพในบล็อกคำตอบนี้.\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างที่รายงานของภาพคำตอบ.\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงที่รายงานของภาพคำตอบ.\"},\"url\":{\"type\":\"string\",\"description\":\"URL ที่ส่งกลับสำหรับภาพคำตอบ.\"},\"url_size_large\":{\"type\":\"string\",\"description\":\"URL ของภาพขนาดใหญ่ที่ส่งกลับสำหรับภาพคำตอบ.\"},\"source_avatar\":{\"type\":\"string\",\"description\":\"URL ของ avatar แหล่งที่มาที่ส่งกลับพร้อมกับภาพคำตอบ.\"},\"source_nickname\":{\"type\":\"string\",\"description\":\"ชื่อแสดงผลของแหล่งที่มาที่ส่งกลับพร้อมกับภาพคำตอบ.\"},\"user_id\":{\"type\":\"string\",\"description\":\"ตัวระบุผู้ใช้ที่ส่งกลับพร้อมกับภาพคำตอบ.\"}}}}}},\"spark\":{\"type\":\"object\",\"description\":\"บล็อกคำตอบที่สามารถมีเนื้อหา Markdown ที่ได้รับการเน้น.\",\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"เนื้อหาที่ได้รับการเน้นสำหรับบล็อกคำตอบนี้.\",\"properties\":{\"highlight_markdown\":{\"type\":\"string\",\"contentMediaType\":\"text/markdown\",\"description\":\"Markdown ที่ได้รับการเน้นส่งกลับสำหรับบล็อกคำตอบนี้.\"}}}}}}}},\"items\":{\"type\":\"array\",\"description\":\"ประวัติของแหล่งที่มาที่ส่งกลับสำหรับคำตอบ.\",\"items\":{\"type\":\"object\",\"description\":\"ประวัติของแหล่งที่มาหนึ่งที่ถูกอ้างอิง. ฟิลด์ที่มีอยู่จะแตกต่างกันไปตามแหล่งที่มา.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ตัวระบุประวัติของแหล่งที่มา. รูปแบบของมันอาจแตกต่างกันไปตามแหล่งที่มา.\"},\"title\":{\"type\":\"string\",\"description\":\"ชื่อของแหล่งข้อมูลที่อ้างอิง\"},\"subtitle\":{\"type\":\"string\",\"description\":\"ข้อความย่อที่ส่งกลับจากแหล่งข้อมูลที่อ้างอิง\"},\"content\":{\"type\":\"string\",\"description\":\"ข้อความเนื้อหาที่ส่งกลับจากแหล่งข้อมูลที่อ้างอิง\"},\"note_type\":{\"type\":\"string\",\"description\":\"ประเภทข้อความที่รายงานสำหรับแหล่งข้อมูลที่อ้างอิง\"},\"text_link\":{\"type\":\"string\",\"description\":\"ลิงก์ที่ส่งกลับจากแหล่งข้อมูลที่อ้างอิง\"},\"time\":{\"type\":\"string\",\"description\":\"ข้อความสำหรับแสดงเวลาของแหล่งข้อมูล อาจรวมถึงวันที่หรือเวลาที่เกี่ยวข้อง\"},\"like\":{\"type\":\"integer\",\"description\":\"จำนวนครั้งที่รายงานสำหรับแหล่งข้อมูลที่อ้างอิง\"},\"user_id\":{\"type\":\"string\",\"description\":\"ตัวระบุผู้เขียนแหล่งข้อมูล ซึ่งอาจว่างเปล่าได้\"},\"nick_name\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงผลสำหรับผู้เขียนแหล่งข้อมูล\"},\"avatar\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพสำหรับผู้เขียนแหล่งข้อมูล\"},\"image_list\":{\"type\":\"array\",\"description\":\"รูปภาพที่ส่งกลับพร้อมกับแหล่งข้อมูลที่อ้างอิง\",\"items\":{\"type\":\"object\",\"description\":\"รูปภาพหนึ่งที่ส่งกลับพร้อมกับแหล่งข้อมูลที่อ้างอิง\",\"properties\":{\"file_id\":{\"type\":\"string\",\"description\":\"ตัวระบุไฟล์สำหรับรูปภาพของแหล่งข้อมูลนี้\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของรูปภาพแหล่งข้อมูลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของรูปภาพแหล่งข้อมูลที่รายงาน\"},\"url\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพแหล่งข้อมูล\"},\"url_large\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพขนาดใหญ่สำหรับแหล่งข้อมูลที่อ้างอิง\"}}}},\"video\":{\"type\":\"object\",\"description\":\"ข้อมูลวิดีโอเมื่อมีการระบุสำหรับแหล่งข้อมูลที่อ้างอิง\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL ของสื่อวิดีโอที่ส่งกลับพร้อมกับแหล่งข้อมูลที่อ้างอิง\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของวิดีโอแหล่งข้อมูลที่รายงาน\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของวิดีโอแหล่งข้อมูลที่รายงาน\"}}}}}},\"share_info\":{\"type\":\"object\",\"description\":\"ข้อมูลสำหรับการแชร์คำตอบ\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"ชื่อที่ส่งกลับในข้อมูลการแชร์\"},\"subtitle\":{\"type\":\"string\",\"description\":\"ข้อความย่อที่ส่งกลับในข้อมูลการแชร์\"},\"content\":{\"type\":\"string\",\"description\":\"ข้อความสำหรับการแชร์คำตอบ\"},\"image\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพถูกส่งกลับมาในข้อมูลการแชร์。\"},\"link\":{\"type\":\"string\",\"description\":\"ลิงก์การแชร์ถูกส่งกลับมาสำหรับคำตอบ。\"},\"page_link\":{\"type\":\"string\",\"description\":\"ลิงก์หน้าแสดงคำตอบถูกส่งกลับมาในข้อมูลการแชร์。\"},\"topic_id\":{\"type\":\"string\",\"description\":\"ตัวระบุหัวข้อถูกส่งกลับมาในข้อมูลการแชร์。\"},\"topic_ids\":{\"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/xiaohongshu/ask-dots\"")' />

<p>สอบถามคำถามด้วยคีย์เวิร์ดกับ Xiaohongshu (RedNote) Ask Dots AI ใช้เพื่อรับคำตอบจาก AI สำหรับการวิจัยหัวข้อและการสำรวจคำถาม</p>

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

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

| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
| <code>keyword</code> | query | <code>string</code> | ใช่ | - | คำถามหรือคำสำคัญสำหรับการส่งไปให้ Ask Dots AI. |

</div>

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

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/xiaohongshu/ask-dots?token=YOUR_API_KEY&keyword=VALUE'
```

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

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- keyword (query): คำถามหรือคำสำคัญสำหรับการส่งไปให้ Ask Dots AI. (จำเป็น)

รูปแบบที่ส่งกลับ: จัดการ 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/ask-dots?token=YOUR_API_KEY&keyword=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/ask-dots?token=YOUR_API_KEY&keyword=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/ask-dots?token=YOUR_API_KEY&keyword=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/ask-dots?token=YOUR_API_KEY&keyword=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/ask-dots?token=YOUR_API_KEY&keyword=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/ask-dots-ai-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 &#124; null</code> | คำตอบที่ส่งกลับโดย Xiaohongshu Ask Dots พร้อมองค์ประกอบคำตอบและรายการแหล่งที่มา หากมี. |
| <code>data.answer_status</code> | <code>integer</code> | รหัสสถานะที่รายงานสำหรับคำตอบที่สร้างขึ้น. |
| <code>data.has_more_sources</code> | <code>boolean</code> | ว่าคำตอบมีรายการแหล่งที่มาอื่นๆ นอกเหนือจากที่ส่งกลับมาหรือไม่. |
| <code>data.base_info</code> | <code>object</code> | ข้อมูลการแสดงและจำนวนรายการแหล่งที่มาสำหรับคำตอบ. |
| <code>data.base_info.id</code> | <code>string</code> | ตัวระบุคำตอบที่ส่งกลับมาในรูปแบบข้อความ. |
| <code>data.base_info.long_id</code> | <code>integer</code> | ตัวระบุตัวเลขที่ส่งกลับมาพร้อมคำตอบ. ตัวเลขนี้สามารถเกินขอบเขตที่ปลอดภัยของ JavaScript ได้. |
| <code>data.base_info.note_title</code> | <code>string</code> | ชื่อเรื่องที่ส่งกลับมาในข้อมูลคำตอบ. |
| <code>data.base_info.text</code> | <code>string</code> | ข้อความที่แสดงพร้อมข้อมูลคำตอบ. |
| <code>data.base_info.nickname</code> | <code>string</code> | ชื่อที่แสดงพร้อมคำตอบ. |
| <code>data.base_info.avatar</code> | <code>string</code> | URL ของรูปภาพอวาตาพร้อมคำตอบ. |
| <code>data.base_info.dark_avatar</code> | <code>string</code> | URL ของรูปภาพอวาตาสำหรับการแสดงในโหมดมืด หากมี. |
| <code>data.base_info.total_count</code> | <code>integer</code> | จำนวนรายการแหล่งที่มาที่รายงานพร้อมคำตอบ. มันสามารถเกินจำนวนรายการแหล่งที่มาที่ส่งกลับมาได้. |
| <code>data.base_info.totalCnt</code> | <code>string</code> | ป้ายกำกับจำนวนแหล่งที่มาเป็นข้อความแสดงผล. ป้ายกำกับนี้สามารถมีคำต่างๆ ได้. |
| <code>data.base_info.source_avatars</code> | <code>array</code> | ภาพ avatar สำหรับแหล่งที่มาที่แสดงผลพร้อมกับคำตอบ. |
| <code>data.base_info.source_avatars[]</code> | <code>string</code> | URL ของภาพ avatar สำหรับแหล่งที่มาหนึ่งที่แสดงผล. |
| <code>data.elements</code> | <code>array</code> | บล็อกเนื้อหาในคำตอบที่สร้างขึ้น. |
| <code>data.elements[]</code> | <code>object</code> | บล็อกคำตอบหนึ่ง. ฟิลด์เนื้อหาของมันขึ้นอยู่กับประเภทของบล็อก. |
| <code>data.elements[].element_type</code> | <code>string</code> | ป้ายกำกับประเภทที่รายงานสำหรับบล็อกคำตอบ. |
| <code>data.elements[].markdown</code> | <code>object</code> | เนื้อหา Markdown สำหรับบล็อกคำตอบนี้. |
| <code>data.elements[].markdown.text</code> | <code>string</code> | ข้อความ Markdown ที่สร้างขึ้นสำหรับบล็อกคำตอบนี้. |
| <code>data.elements[].image</code> | <code>object</code> | ภาพที่รวมอยู่ในบล็อกคำตอบนี้. |
| <code>data.elements[].image.image_list</code> | <code>array</code> | ประวัติของภาพสำหรับบล็อกคำตอบ. |
| <code>data.elements[].image.image_list[]</code> | <code>object</code> | ภาพหนึ่งที่รวมอยู่ในบล็อกคำตอบ. |
| <code>data.elements[].image.image_list[].file_id</code> | <code>string</code> | ตัวระบุไฟล์สำหรับภาพในบล็อกคำตอบนี้. |
| <code>data.elements[].image.image_list[].width</code> | <code>integer</code> | ความกว้างที่รายงานของภาพคำตอบ. |
| <code>data.elements[].image.image_list[].height</code> | <code>integer</code> | ความสูงที่รายงานของภาพคำตอบ. |
| <code>data.elements[].image.image_list[].url</code> | <code>string</code> | URL ที่ส่งกลับสำหรับภาพคำตอบ. |
| <code>data.elements[].image.image_list[].url_size_large</code> | <code>string</code> | URL ของภาพขนาดใหญ่ที่ส่งกลับสำหรับภาพคำตอบ. |
| <code>data.elements[].image.image_list[].source_avatar</code> | <code>string</code> | URL ของ avatar แหล่งที่มาที่ส่งกลับพร้อมกับภาพคำตอบ. |
| <code>data.elements[].image.image_list[].source_nickname</code> | <code>string</code> | ชื่อแสดงผลของแหล่งที่มาที่ส่งกลับพร้อมกับภาพคำตอบ. |
| <code>data.elements[].image.image_list[].user_id</code> | <code>string</code> | ตัวระบุผู้ใช้ที่ส่งกลับพร้อมกับภาพคำตอบ. |
| <code>data.elements[].spark</code> | <code>object</code> | บล็อกคำตอบที่สามารถมีเนื้อหา Markdown ที่ได้รับการเน้น. |
| <code>data.elements[].spark.data</code> | <code>object</code> | เนื้อหาที่ได้รับการเน้นสำหรับบล็อกคำตอบนี้. |
| <code>data.elements[].spark.data.highlight_markdown</code> | <code>string</code> | Markdown ที่ได้รับการเน้นส่งกลับสำหรับบล็อกคำตอบนี้. |
| <code>data.items</code> | <code>array</code> | ประวัติของแหล่งที่มาที่ส่งกลับสำหรับคำตอบ. |
| <code>data.items[]</code> | <code>object</code> | ประวัติของแหล่งที่มาหนึ่งที่ถูกอ้างอิง. ฟิลด์ที่มีอยู่จะแตกต่างกันไปตามแหล่งที่มา. |
| <code>data.items[].id</code> | <code>string</code> | ตัวระบุประวัติของแหล่งที่มา. รูปแบบของมันอาจแตกต่างกันไปตามแหล่งที่มา. |
| <code>data.items[].title</code> | <code>string</code> | ชื่อของแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].subtitle</code> | <code>string</code> | ข้อความย่อที่ส่งกลับจากแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].content</code> | <code>string</code> | ข้อความเนื้อหาที่ส่งกลับจากแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].note_type</code> | <code>string</code> | ประเภทข้อความที่รายงานสำหรับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].text_link</code> | <code>string</code> | ลิงก์ที่ส่งกลับจากแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].time</code> | <code>string</code> | ข้อความสำหรับแสดงเวลาของแหล่งข้อมูล อาจรวมถึงวันที่หรือเวลาที่เกี่ยวข้อง |
| <code>data.items[].like</code> | <code>integer</code> | จำนวนครั้งที่รายงานสำหรับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].user_id</code> | <code>string</code> | ตัวระบุผู้เขียนแหล่งข้อมูล ซึ่งอาจว่างเปล่าได้ |
| <code>data.items[].nick_name</code> | <code>string</code> | ชื่อที่แสดงผลสำหรับผู้เขียนแหล่งข้อมูล |
| <code>data.items[].avatar</code> | <code>string</code> | URL ของรูปภาพสำหรับผู้เขียนแหล่งข้อมูล |
| <code>data.items[].image_list</code> | <code>array</code> | รูปภาพที่ส่งกลับพร้อมกับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].image_list[]</code> | <code>object</code> | รูปภาพหนึ่งที่ส่งกลับพร้อมกับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].image_list[].file_id</code> | <code>string</code> | ตัวระบุไฟล์สำหรับรูปภาพของแหล่งข้อมูลนี้ |
| <code>data.items[].image_list[].width</code> | <code>integer</code> | ความกว้างของรูปภาพแหล่งข้อมูลที่รายงาน |
| <code>data.items[].image_list[].height</code> | <code>integer</code> | ความสูงของรูปภาพแหล่งข้อมูลที่รายงาน |
| <code>data.items[].image_list[].url</code> | <code>string</code> | URL ของรูปภาพแหล่งข้อมูล |
| <code>data.items[].image_list[].url_large</code> | <code>string</code> | URL ของรูปภาพขนาดใหญ่สำหรับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].video</code> | <code>object</code> | ข้อมูลวิดีโอเมื่อมีการระบุสำหรับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].video.url</code> | <code>string</code> | URL ของสื่อวิดีโอที่ส่งกลับพร้อมกับแหล่งข้อมูลที่อ้างอิง |
| <code>data.items[].video.width</code> | <code>integer</code> | ความกว้างของวิดีโอแหล่งข้อมูลที่รายงาน |
| <code>data.items[].video.height</code> | <code>integer</code> | ความสูงของวิดีโอแหล่งข้อมูลที่รายงาน |
| <code>data.share_info</code> | <code>object</code> | ข้อมูลสำหรับการแชร์คำตอบ |
| <code>data.share_info.title</code> | <code>string</code> | ชื่อที่ส่งกลับในข้อมูลการแชร์ |
| <code>data.share_info.subtitle</code> | <code>string</code> | ข้อความย่อที่ส่งกลับในข้อมูลการแชร์ |
| <code>data.share_info.content</code> | <code>string</code> | ข้อความสำหรับการแชร์คำตอบ |
| <code>data.share_info.image</code> | <code>string</code> | URL ของรูปภาพถูกส่งกลับมาในข้อมูลการแชร์。 |
| <code>data.share_info.link</code> | <code>string</code> | ลิงก์การแชร์ถูกส่งกลับมาสำหรับคำตอบ。 |
| <code>data.share_info.page_link</code> | <code>string</code> | ลิงก์หน้าแสดงคำตอบถูกส่งกลับมาในข้อมูลการแชร์。 |
| <code>data.share_info.topic_id</code> | <code>string</code> | ตัวระบุหัวข้อถูกส่งกลับมาในข้อมูลการแชร์。 |
| <code>data.share_info.topic_ids</code> | <code>array</code> | ตัวระบุหัวข้อเพิ่มเติมถูกส่งกลับมาในข้อมูลการแชร์。 |
| <code>data.share_info.topic_ids[]</code> | <code>string</code> | หนึ่งตัวระบุจากรายการหัวข้อที่ส่งกลับมา。 |

</div>

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

<ApiExampleSection :api='JSON.parse("\"/api/xiaohongshu/ask-dots\"")' />

