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

# Xiaohongshu \(RedNote\) การค้นหาโน้ต API \(V4\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/xiaohongshu/search-note/v4\"")'
  :summary='JSON.parse("\"การค้นหาโน้ต (V4)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/xiaohongshu-rednote/note-search-v4-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\":\"คำสำคัญสำหรับการค้นหา.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"หมายเลขหน้าสำหรับการพับหน้า。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"sortType\",\"in\":\"query\",\"description\":\"ลำดับการจัดเรียงของชุดผลลัพธ์\\n\\nค่าที่มีอยู่:\\n- `general`: ทั่วไป\\n- `popularity_descending`: ตามลำดับความนิยม\\n- `time_descending`: ตามลำดับเวลา\\n- `comment_descending`: ตามลำดับความคิดเห็น\\n- `collect_descending`: ตามลำดับการรวบรวม\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"general\",\"description\":\"การจัดเรียงข้อความค้นหาใน Xiaohongshu\",\"enum\":[\"general\",\"popularity_descending\",\"time_descending\",\"comment_descending\",\"collect_descending\"]}},{\"name\":\"noteType\",\"in\":\"query\",\"description\":\"ตัวกรองประเภทบันทึก\\n\\nค่าที่มีอยู่:\\n- `ALL`: ไม่มีข้อจำกัด\\n- `VIDEO_NOTE`: บันทึกวิดีโอ\\n- `NORMAL_NOTE`: บันทึกปกติ\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"การกรองประเภทของข้อความค้นหาใน Xiaohongshu\",\"enum\":[\"ALL\",\"VIDEO_NOTE\",\"NORMAL_NOTE\"]}},{\"name\":\"timeFilter\",\"in\":\"query\",\"description\":\"ตัวกรองเวลาการเผยแพร่\\n\\nค่าที่มีอยู่:\\n- `ALL`: ไม่มีข้อจำกัด\\n- `ONE_DAY`: ภายในหนึ่งวัน\\n- `ONE_WEEK`: ภายในหนึ่งสัปดาห์\\n- `HALF_YEAR`: ภายในครึ่งปี\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"การกรองเวลาการเผยแพร่ข้อความค้นหาใน Xiaohongshu\",\"enum\":[\"ALL\",\"ONE_DAY\",\"ONE_WEEK\",\"HALF_YEAR\"]}}]")'
  :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\":\"หน้าหนึ่งของผลการค้นหาและสถิติการตอบกลับของ Xiaohongshu。\",\"properties\":{\"notes\":{\"type\":\"array\",\"description\":\"ระบุผลลัพธ์ที่ส่งกลับสำหรับหน้าเว็บที่ขอมา\",\"items\":{\"type\":\"object\",\"description\":\"ผลการค้นหาโน้ตหนึ่งจาก Xiaohongshu\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ของโน้ตจาก Xiaohongshu ที่ส่งกลับมาในรูปแบบสตริง\"},\"title\":{\"type\":\"string\",\"description\":\"ชื่อของโน้ตที่ปรากฏในการค้นหา อาจว่างเปล่า\"},\"desc\":{\"type\":\"string\",\"description\":\"คำอธิบายของโน้ตที่ปรากฏในการค้นหา\"},\"type\":{\"type\":\"string\",\"description\":\"ป้ายกำกับประเภทของโน้ต ค่าที่สังเกตได้คือปกติสำหรับโน้ตรูปภาพและข้อความ และสำหรับโน้ตวิดีโอคือวิดีโอ\"},\"timestamp\":{\"type\":\"integer\",\"description\":\"เวลาการเผยแพร่โน้ตในรูปแบบ Unix timestamp ในหน่วยวินาที\"},\"last_update_time\":{\"type\":\"integer\",\"description\":\"เวลาที่อัปเดตครั้งสุดท้ายในรูปแบบ Unix timestamp ในหน่วยวินาที หากเป็นบวก ฟิลด์นี้อาจมีค่าเป็นศูนย์ได้\"},\"liked_count\":{\"type\":\"integer\",\"description\":\"จำนวนความนิยมของโน็ตที่รายงานไว้。\"},\"comments_count\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นที่รายงานไว้สำหรับโน็ต。\"},\"collected_count\":{\"type\":\"integer\",\"description\":\"จำนวนที่บันทึกไว้สำหรับโน็ต。\"},\"shared_count\":{\"type\":\"integer\",\"description\":\"จำนวนครั้งที่โน้ตถูกแชร์\"},\"liked\":{\"type\":\"boolean\",\"description\":\"โน้ตนั้นถูกแสดงว่าเป็นโน้ตที่ชื่นชอบในบริบทการดูขณะนี้หรือไม่\"},\"collected\":{\"type\":\"boolean\",\"description\":\"โน้ตนั้นถูกแสดงว่าเป็นโน้ตที่ถูกบันทึกไว้ในบริบทการดูขณะนี้หรือไม่\"},\"has_music\":{\"type\":\"boolean\",\"description\":\"โน้ตนั้นมีเสียงประกอบหรือไม่\"},\"tags\":{\"type\":\"array\",\"description\":\"คำว่าแท็กที่ปรากฏสำหรับโน้ตนี้ อาจว่างเปล่า\"},\"geo_info\":{\"type\":\"object\",\"description\":\"ข้อมูลการแสดงตำแหน่งที่ปรากฏกับโน้ต\",\"properties\":{\"distance\":{\"type\":\"string\",\"description\":\"ข้อความแสดงระยะทาง อาจว่างเปล่า\"}}},\"user\":{\"type\":\"object\",\"description\":\"ข้อมูลผู้เขียนที่เปิดเผยมาพร้อมกับผลการค้นหาโน้ต\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"ID ของผู้ใช้ Xiaohongshu ของผู้เขียนโน้ต ส่งกลับมาในรูปแบบสตริง\"},\"red_id\":{\"type\":\"string\",\"description\":\"ชื่อผู้ใช้ Xiaohongshu ที่เปิดเผยของผู้เขียนโน้ต\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของผู้เขียนโน้ต\"},\"images\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพโปรไฟล์ของผู้เขียนโน้ต\"},\"red_official_verified\":{\"type\":\"boolean\",\"description\":\"โน้ตนั้นแสดงว่าผู้เขียนได้รับการตรวจสอบอย่างเป็นทางการหรือไม่\"},\"followed\":{\"type\":\"boolean\",\"description\":\"โน้ตนั้นแสดงว่าผู้เขียนถูกติดตามในบริบทการดูขณะนี้หรือไม่\"}}},\"images_list\":{\"type\":\"array\",\"description\":\"รายการรูปภาพสำหรับโน้ตนี้ รวมถึงรูปปกสำหรับโน้ตวิดีโอ\",\"items\":{\"type\":\"object\",\"description\":\"รายการรูปภาพหนึ่งที่ปรากฏกับโน้ตนี้\",\"properties\":{\"fileid\":{\"type\":\"string\",\"description\":\"ตัวระบุที่ส่งกลับสำหรับไฟล์รูปภาพ\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"url\":{\"type\":\"string\",\"description\":\"URL ของภาพในฟิลด์ URL มาตรฐาน ซึ่งอาจว่างเปล่า\"},\"url_size_large\":{\"type\":\"string\",\"description\":\"URL ของภาพสำหรับการดูภาพในรูปแบบที่ใหญ่ขึ้น\"},\"original\":{\"type\":\"string\",\"description\":\"URL ของภาพต้นฉบับ ซึ่งอาจว่างเปล่า\"},\"need_load_original_image\":{\"type\":\"boolean\",\"description\":\"ว่าภาพนั้นมีการระบุว่าต้องมีการโหลดเพิ่มเติมหรือไม่\"},\"live_photo_file_id\":{\"type\":\"string\",\"description\":\"ตัวระบุไฟล์ที่เกี่ยวข้องกับ Live Photo หากมีให้\"},\"live_photo\":{\"type\":\"object\",\"description\":\"ข้อมูลการเคลื่อนไหวของ Live Photo ที่เกี่ยวข้องกับภาพ หากมีให้\",\"properties\":{\"media\":{\"type\":\"object\",\"description\":\"ข้อมูลสื่อการเคลื่อนไหวที่ส่งกลับมาสำหรับ Live Photo\",\"properties\":{\"video_id\":{\"type\":\"integer\",\"description\":\"ID ตัวเลขที่รายงานสำหรับสื่อการเคลื่อนไหวของ Live Photo\"},\"video\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าของวิดีโอสำหรับคลิปการเคลื่อนไหวของ Live Photo\",\"properties\":{\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของเฟรมวิดีโอที่รายงานสำหรับคลิปการเคลื่อนไหว\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของเฟรมวิดีโอที่รายงานสำหรับคลิปการเคลื่อนไหว\"},\"duration\":{\"type\":\"integer\",\"description\":\"ค่าความยาวของวิดีโอที่รายงานสำหรับคลิปการเคลื่อนไหวของ Live Photo\"},\"hdr_type\":{\"type\":\"integer\",\"description\":\"ประเภท HDR ที่ตัวเลขรายงานสำหรับคลิปการเคลื่อนไหว\"},\"drm_type\":{\"type\":\"integer\",\"description\":\"ประเภท DRM ที่ตัวเลขรายงานสำหรับคลิปการเคลื่อนไหว\"}}},\"stream\":{\"type\":\"object\",\"description\":\"ตัวเลือกการเล่น Live Photo ที่จัดกลุ่มตามรูปแบบวิดีโอ\",\"properties\":{\"h264\":{\"type\":\"array\",\"description\":\"รายการที่ส่งกลับมาสำหรับตัวเลือก H.264 ซึ่งอาจว่างเปล่า\"},\"h265\":{\"type\":\"array\",\"description\":\"รายการตัวเลือก H.265 ที่ส่งกลับมาสำหรับ Live Photo\",\"items\":{\"type\":\"object\",\"description\":\"ตัวเลือกการเล่น H.265 สำหรับ Live Photo\",\"properties\":{\"master_url\":{\"type\":\"string\",\"description\":\"URL ของการเล่นหลักสำหรับสตรีม Live Photo นี้\"},\"backup_urls\":{\"type\":\"array\",\"description\":\"URL ของการเล่นสำรองสำหรับสตรีม Live Photo นี้\",\"items\":{\"type\":\"string\",\"description\":\"URL ของการเล่นสำรองสำหรับสตรีมนี้หนึ่งตัว\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของเฟรมวิดีโอในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของเฟรมวิดีโอในพิกเซล\"},\"format\":{\"type\":\"string\",\"description\":\"รูปแบบคอนเทนเนอร์สื่อที่รายงานสำหรับสตรีม\"},\"quality_type\":{\"type\":\"string\",\"description\":\"ป้ายกำกับคุณภาพที่รายงานสำหรับสตรีมนี้\"},\"stream_type\":{\"type\":\"integer\",\"description\":\"ประเภทสตรีมที่เป็นตัวเลขที่รายงานสำหรับเวอร์ชันนี้\"},\"stream_desc\":{\"type\":\"string\",\"description\":\"คำอธิบายที่ให้ไว้สำหรับเวอร์ชันสตรีมนี้\"},\"default_stream\":{\"type\":\"integer\",\"description\":\"ตัวดำเนินการตัวเลขที่บ่งชี้สตรีมเริ่มต้น\"},\"fps\":{\"type\":\"integer\",\"description\":\"อัตราการโหลดภาพวิดีโอที่รายงานสำหรับสตรีม\"},\"duration\":{\"type\":\"integer\",\"description\":\"ค่าเวลาการสตรีมที่ Xiaohongshu รายงาน\"},\"video_duration\":{\"type\":\"integer\",\"description\":\"ค่าความยาวของเทรนวิดีโอที่รายงานสำหรับสตรีม\"},\"audio_duration\":{\"type\":\"integer\",\"description\":\"ค่าความยาวของเทรนเสียงที่รายงานสำหรับสตรีม\"},\"video_codec\":{\"type\":\"string\",\"description\":\"ตัวระบุโปรโตคอลวิดีโอที่ส่งกลับสำหรับสตรีม\"},\"audio_codec\":{\"type\":\"string\",\"description\":\"ตัวระบุโปรโตคอลเสียงที่ส่งกลับสำหรับสตรีม หากมีการระบุ\"},\"audio_channels\":{\"type\":\"integer\",\"description\":\"จำนวนช่องเสียงที่รายงานสำหรับสตรีม\"},\"video_bitrate\":{\"type\":\"integer\",\"description\":\"ค่าบิตเรตของวิดีโอที่รายงานสำหรับสตรีม\"},\"audio_bitrate\":{\"type\":\"integer\",\"description\":\"ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม\"},\"avg_bitrate\":{\"type\":\"integer\",\"description\":\"ค่าเฉลี่ยของบิตเรตที่รายงานสำหรับสตรีม\"},\"hdrType\":{\"type\":\"integer\",\"description\":\"ประเภท HDR ที่เป็นตัวเลขที่รายงานสำหรับสตรีมนี้\"}}}},\"h266\":{\"type\":\"array\",\"description\":\"รายการที่ส่งกลับสำหรับเวอร์ชัน H.266 ซึ่งอาจว่างเปล่า\"},\"av1\":{\"type\":\"array\",\"description\":\"รายการที่ส่งกลับสำหรับเวอร์ชัน AV1 ซึ่งอาจว่างเปล่า\"}}}}}}}}}}}}},\"ads\":{\"type\":\"array\",\"description\":\"รายการโฆษณาที่ส่งกลับพร้อมหน้าผลลัพธ์ รายการอาจว่างเปล่า\"},\"recommend_queries\":{\"type\":\"array\",\"description\":\"คำค้นหาที่แนะนำที่ส่งกลับพร้อมหน้าผลลัพธ์ รายการอาจว่างเปล่า\"},\"total\":{\"type\":\"integer\",\"description\":\"จำนวนรายการผลลัพธ์ที่รายงานสำหรับการตอบกลับนี้\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"ว่าการตอบค้นหาแสดงว่ามีหน้าอื่นที่สามารถเข้าถึงได้หรือไม่\"},\"statistics\":{\"type\":\"object\",\"description\":\"การแบ่งแยกจำนวนรายการที่รายงานสำหรับการตอบกลับนี้\",\"properties\":{\"total_items\":{\"type\":\"integer\",\"description\":\"จำนวนรายการรวมที่รายงานในสถิติการตอบกลับ\"},\"note_count\":{\"type\":\"integer\",\"description\":\"จำนวนบันทึกปกติที่รายงานในสถิติการตอบกลับ\"},\"video_count\":{\"type\":\"integer\",\"description\":\"จำนวนบันทึกวิดีโอที่รายงานในสถิติการตอบกลับ\"},\"ads_count\":{\"type\":\"integer\",\"description\":\"จำนวนรายการโฆษณาที่รายงานในสถิติการตอบกลับ\"},\"recommend_count\":{\"type\":\"integer\",\"description\":\"จำนวนคำค้นหาที่แนะนำที่รายงานในสถิติการตอบกลับ\"}}},\"search_meta\":{\"type\":\"object\",\"description\":\"ข้อมูลหน้าค้นหาที่ส่งกลับพร้อมผลลัพธ์\",\"properties\":{\"is_broad_query\":{\"type\":\"boolean\",\"description\":\"ว่าซิอ่าวหงชูจะจัดประเภทคำขอนี้เป็นประเภทกว้างหรือไม่\"},\"show_single_col\":{\"type\":\"boolean\",\"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/search-note/v4\"")' />

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

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

::: tip คำแนะนำ
<p>นี่คือเว็บ endpointสำหรับแอปพลิเคชันมือถือ. ผลการค้นหามีความแม่นยำมากขึ้น.</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> | ใช่ | - | คำสำคัญสำหรับการค้นหา. |
| <code>page</code> | query | <code>integer</code> | ไม่ใช่ | <code>1</code> | หมายเลขหน้าสำหรับการพับหน้า。 |
| <code>sortType</code> | query | <code>string</code> | ไม่ใช่ | <code>general</code> | ลำดับการจัดเรียงของชุดผลลัพธ์<br /><br><br>ค่าที่มีอยู่:<br /><br>- <code>general</code>: ทั่วไป<br /><br>- <code>popularity_descending</code>: ตามลำดับความนิยม<br /><br>- <code>time_descending</code>: ตามลำดับเวลา<br /><br>- <code>comment_descending</code>: ตามลำดับความคิดเห็น<br /><br>- <code>collect_descending</code>: ตามลำดับการรวบรวม |
| <code>noteType</code> | query | <code>string</code> | ไม่ใช่ | <code>ALL</code> | ตัวกรองประเภทบันทึก<br /><br><br>ค่าที่มีอยู่:<br /><br>- <code>ALL</code>: ไม่มีข้อจำกัด<br /><br>- <code>VIDEO_NOTE</code>: บันทึกวิดีโอ<br /><br>- <code>NORMAL_NOTE</code>: บันทึกปกติ |
| <code>timeFilter</code> | query | <code>string</code> | ไม่ใช่ | <code>ALL</code> | ตัวกรองเวลาการเผยแพร่<br /><br><br>ค่าที่มีอยู่:<br /><br>- <code>ALL</code>: ไม่มีข้อจำกัด<br /><br>- <code>ONE_DAY</code>: ภายในหนึ่งวัน<br /><br>- <code>ONE_WEEK</code>: ภายในหนึ่งสัปดาห์<br /><br>- <code>HALF_YEAR</code>: ภายในครึ่งปี |

</div>

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

::: code-group

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

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

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- keyword (query): คำสำคัญสำหรับการค้นหา. (จำเป็น)
- page (query): หมายเลขหน้าสำหรับการพับหน้า。
- sortType (query): ลำดับการจัดเรียงของชุดผลลัพธ์

ค่าที่มีอยู่:
- `general`: ทั่วไป
- `popularity_descending`: ตามลำดับความนิยม
- `time_descending`: ตามลำดับเวลา
- `comment_descending`: ตามลำดับความคิดเห็น
- `collect_descending`: ตามลำดับการรวบรวม
- noteType (query): ตัวกรองประเภทบันทึก

ค่าที่มีอยู่:
- `ALL`: ไม่มีข้อจำกัด
- `VIDEO_NOTE`: บันทึกวิดีโอ
- `NORMAL_NOTE`: บันทึกปกติ
- timeFilter (query): ตัวกรองเวลาการเผยแพร่

ค่าที่มีอยู่:
- `ALL`: ไม่มีข้อจำกัด
- `ONE_DAY`: ภายในหนึ่งวัน
- `ONE_WEEK`: ภายในหนึ่งสัปดาห์
- `HALF_YEAR`: ภายในครึ่งปี

รูปแบบที่ส่งกลับ: จัดการ 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/search-note/v4?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/search-note/v4?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/search-note/v4?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/search-note/v4?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/search-note/v4?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/note-search-v4-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> | หน้าหนึ่งของผลการค้นหาและสถิติการตอบกลับของ Xiaohongshu。 |
| <code>data.notes</code> | <code>array</code> | ระบุผลลัพธ์ที่ส่งกลับสำหรับหน้าเว็บที่ขอมา |
| <code>data.notes[]</code> | <code>object</code> | ผลการค้นหาโน้ตหนึ่งจาก Xiaohongshu |
| <code>data.notes[].id</code> | <code>string</code> | ID ของโน้ตจาก Xiaohongshu ที่ส่งกลับมาในรูปแบบสตริง |
| <code>data.notes[].title</code> | <code>string</code> | ชื่อของโน้ตที่ปรากฏในการค้นหา อาจว่างเปล่า |
| <code>data.notes[].desc</code> | <code>string</code> | คำอธิบายของโน้ตที่ปรากฏในการค้นหา |
| <code>data.notes[].type</code> | <code>string</code> | ป้ายกำกับประเภทของโน้ต ค่าที่สังเกตได้คือปกติสำหรับโน้ตรูปภาพและข้อความ และสำหรับโน้ตวิดีโอคือวิดีโอ |
| <code>data.notes[].timestamp</code> | <code>integer</code> | เวลาการเผยแพร่โน้ตในรูปแบบ Unix timestamp ในหน่วยวินาที |
| <code>data.notes[].last_update_time</code> | <code>integer</code> | เวลาที่อัปเดตครั้งสุดท้ายในรูปแบบ Unix timestamp ในหน่วยวินาที หากเป็นบวก ฟิลด์นี้อาจมีค่าเป็นศูนย์ได้ |
| <code>data.notes[].liked_count</code> | <code>integer</code> | จำนวนความนิยมของโน็ตที่รายงานไว้。 |
| <code>data.notes[].comments_count</code> | <code>integer</code> | จำนวนความคิดเห็นที่รายงานไว้สำหรับโน็ต。 |
| <code>data.notes[].collected_count</code> | <code>integer</code> | จำนวนที่บันทึกไว้สำหรับโน็ต。 |
| <code>data.notes[].shared_count</code> | <code>integer</code> | จำนวนครั้งที่โน้ตถูกแชร์ |
| <code>data.notes[].liked</code> | <code>boolean</code> | โน้ตนั้นถูกแสดงว่าเป็นโน้ตที่ชื่นชอบในบริบทการดูขณะนี้หรือไม่ |
| <code>data.notes[].collected</code> | <code>boolean</code> | โน้ตนั้นถูกแสดงว่าเป็นโน้ตที่ถูกบันทึกไว้ในบริบทการดูขณะนี้หรือไม่ |
| <code>data.notes[].has_music</code> | <code>boolean</code> | โน้ตนั้นมีเสียงประกอบหรือไม่ |
| <code>data.notes[].tags</code> | <code>array</code> | คำว่าแท็กที่ปรากฏสำหรับโน้ตนี้ อาจว่างเปล่า |
| <code>data.notes[].geo_info</code> | <code>object</code> | ข้อมูลการแสดงตำแหน่งที่ปรากฏกับโน้ต |
| <code>data.notes[].geo_info.distance</code> | <code>string</code> | ข้อความแสดงระยะทาง อาจว่างเปล่า |
| <code>data.notes[].user</code> | <code>object</code> | ข้อมูลผู้เขียนที่เปิดเผยมาพร้อมกับผลการค้นหาโน้ต |
| <code>data.notes[].user.userid</code> | <code>string</code> | ID ของผู้ใช้ Xiaohongshu ของผู้เขียนโน้ต ส่งกลับมาในรูปแบบสตริง |
| <code>data.notes[].user.red_id</code> | <code>string</code> | ชื่อผู้ใช้ Xiaohongshu ที่เปิดเผยของผู้เขียนโน้ต |
| <code>data.notes[].user.nickname</code> | <code>string</code> | ชื่อที่ปรากฏของผู้เขียนโน้ต |
| <code>data.notes[].user.images</code> | <code>string</code> | URL ของรูปภาพโปรไฟล์ของผู้เขียนโน้ต |
| <code>data.notes[].user.red_official_verified</code> | <code>boolean</code> | โน้ตนั้นแสดงว่าผู้เขียนได้รับการตรวจสอบอย่างเป็นทางการหรือไม่ |
| <code>data.notes[].user.followed</code> | <code>boolean</code> | โน้ตนั้นแสดงว่าผู้เขียนถูกติดตามในบริบทการดูขณะนี้หรือไม่ |
| <code>data.notes[].images_list</code> | <code>array</code> | รายการรูปภาพสำหรับโน้ตนี้ รวมถึงรูปปกสำหรับโน้ตวิดีโอ |
| <code>data.notes[].images_list[]</code> | <code>object</code> | รายการรูปภาพหนึ่งที่ปรากฏกับโน้ตนี้ |
| <code>data.notes[].images_list[].fileid</code> | <code>string</code> | ตัวระบุที่ส่งกลับสำหรับไฟล์รูปภาพ |
| <code>data.notes[].images_list[].height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.notes[].images_list[].width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.notes[].images_list[].url</code> | <code>string</code> | URL ของภาพในฟิลด์ URL มาตรฐาน ซึ่งอาจว่างเปล่า |
| <code>data.notes[].images_list[].url_size_large</code> | <code>string</code> | URL ของภาพสำหรับการดูภาพในรูปแบบที่ใหญ่ขึ้น |
| <code>data.notes[].images_list[].original</code> | <code>string</code> | URL ของภาพต้นฉบับ ซึ่งอาจว่างเปล่า |
| <code>data.notes[].images_list[].need_load_original_image</code> | <code>boolean</code> | ว่าภาพนั้นมีการระบุว่าต้องมีการโหลดเพิ่มเติมหรือไม่ |
| <code>data.notes[].images_list[].live_photo_file_id</code> | <code>string</code> | ตัวระบุไฟล์ที่เกี่ยวข้องกับ Live Photo หากมีให้ |
| <code>data.notes[].images_list[].live_photo</code> | <code>object</code> | ข้อมูลการเคลื่อนไหวของ Live Photo ที่เกี่ยวข้องกับภาพ หากมีให้ |
| <code>data.notes[].images_list[].live_photo.media</code> | <code>object</code> | ข้อมูลสื่อการเคลื่อนไหวที่ส่งกลับมาสำหรับ Live Photo |
| <code>data.notes[].images_list[].live_photo.media.video_id</code> | <code>integer</code> | ID ตัวเลขที่รายงานสำหรับสื่อการเคลื่อนไหวของ Live Photo |
| <code>data.notes[].images_list[].live_photo.media.video</code> | <code>object</code> | ข้อมูลเมตาดาต้าของวิดีโอสำหรับคลิปการเคลื่อนไหวของ Live Photo |
| <code>data.notes[].images_list[].live_photo.media.video.width</code> | <code>integer</code> | ความกว้างของเฟรมวิดีโอที่รายงานสำหรับคลิปการเคลื่อนไหว |
| <code>data.notes[].images_list[].live_photo.media.video.height</code> | <code>integer</code> | ความสูงของเฟรมวิดีโอที่รายงานสำหรับคลิปการเคลื่อนไหว |
| <code>data.notes[].images_list[].live_photo.media.video.duration</code> | <code>integer</code> | ค่าความยาวของวิดีโอที่รายงานสำหรับคลิปการเคลื่อนไหวของ Live Photo |
| <code>data.notes[].images_list[].live_photo.media.video.hdr_type</code> | <code>integer</code> | ประเภท HDR ที่ตัวเลขรายงานสำหรับคลิปการเคลื่อนไหว |
| <code>data.notes[].images_list[].live_photo.media.video.drm_type</code> | <code>integer</code> | ประเภท DRM ที่ตัวเลขรายงานสำหรับคลิปการเคลื่อนไหว |
| <code>data.notes[].images_list[].live_photo.media.stream</code> | <code>object</code> | ตัวเลือกการเล่น Live Photo ที่จัดกลุ่มตามรูปแบบวิดีโอ |
| <code>data.notes[].images_list[].live_photo.media.stream.h264</code> | <code>array</code> | รายการที่ส่งกลับมาสำหรับตัวเลือก H.264 ซึ่งอาจว่างเปล่า |
| <code>data.notes[].images_list[].live_photo.media.stream.h265</code> | <code>array</code> | รายการตัวเลือก H.265 ที่ส่งกลับมาสำหรับ Live Photo |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[]</code> | <code>object</code> | ตัวเลือกการเล่น H.265 สำหรับ Live Photo |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].master_url</code> | <code>string</code> | URL ของการเล่นหลักสำหรับสตรีม Live Photo นี้ |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].backup_urls</code> | <code>array</code> | URL ของการเล่นสำรองสำหรับสตรีม Live Photo นี้ |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].backup_urls[]</code> | <code>string</code> | URL ของการเล่นสำรองสำหรับสตรีมนี้หนึ่งตัว |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].width</code> | <code>integer</code> | ความกว้างของเฟรมวิดีโอในพิกเซล |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].height</code> | <code>integer</code> | ความสูงของเฟรมวิดีโอในพิกเซล |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].format</code> | <code>string</code> | รูปแบบคอนเทนเนอร์สื่อที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].quality_type</code> | <code>string</code> | ป้ายกำกับคุณภาพที่รายงานสำหรับสตรีมนี้ |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].stream_type</code> | <code>integer</code> | ประเภทสตรีมที่เป็นตัวเลขที่รายงานสำหรับเวอร์ชันนี้ |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].stream_desc</code> | <code>string</code> | คำอธิบายที่ให้ไว้สำหรับเวอร์ชันสตรีมนี้ |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].default_stream</code> | <code>integer</code> | ตัวดำเนินการตัวเลขที่บ่งชี้สตรีมเริ่มต้น |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].fps</code> | <code>integer</code> | อัตราการโหลดภาพวิดีโอที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].duration</code> | <code>integer</code> | ค่าเวลาการสตรีมที่ Xiaohongshu รายงาน |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].video_duration</code> | <code>integer</code> | ค่าความยาวของเทรนวิดีโอที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].audio_duration</code> | <code>integer</code> | ค่าความยาวของเทรนเสียงที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].video_codec</code> | <code>string</code> | ตัวระบุโปรโตคอลวิดีโอที่ส่งกลับสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].audio_codec</code> | <code>string</code> | ตัวระบุโปรโตคอลเสียงที่ส่งกลับสำหรับสตรีม หากมีการระบุ |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].audio_channels</code> | <code>integer</code> | จำนวนช่องเสียงที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].video_bitrate</code> | <code>integer</code> | ค่าบิตเรตของวิดีโอที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].audio_bitrate</code> | <code>integer</code> | ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].avg_bitrate</code> | <code>integer</code> | ค่าเฉลี่ยของบิตเรตที่รายงานสำหรับสตรีม |
| <code>data.notes[].images_list[].live_photo.media.stream.h265[].hdrType</code> | <code>integer</code> | ประเภท HDR ที่เป็นตัวเลขที่รายงานสำหรับสตรีมนี้ |
| <code>data.notes[].images_list[].live_photo.media.stream.h266</code> | <code>array</code> | รายการที่ส่งกลับสำหรับเวอร์ชัน H.266 ซึ่งอาจว่างเปล่า |
| <code>data.notes[].images_list[].live_photo.media.stream.av1</code> | <code>array</code> | รายการที่ส่งกลับสำหรับเวอร์ชัน AV1 ซึ่งอาจว่างเปล่า |
| <code>data.ads</code> | <code>array</code> | รายการโฆษณาที่ส่งกลับพร้อมหน้าผลลัพธ์ รายการอาจว่างเปล่า |
| <code>data.recommend_queries</code> | <code>array</code> | คำค้นหาที่แนะนำที่ส่งกลับพร้อมหน้าผลลัพธ์ รายการอาจว่างเปล่า |
| <code>data.total</code> | <code>integer</code> | จำนวนรายการผลลัพธ์ที่รายงานสำหรับการตอบกลับนี้ |
| <code>data.has_more</code> | <code>boolean</code> | ว่าการตอบค้นหาแสดงว่ามีหน้าอื่นที่สามารถเข้าถึงได้หรือไม่ |
| <code>data.statistics</code> | <code>object</code> | การแบ่งแยกจำนวนรายการที่รายงานสำหรับการตอบกลับนี้ |
| <code>data.statistics.total_items</code> | <code>integer</code> | จำนวนรายการรวมที่รายงานในสถิติการตอบกลับ |
| <code>data.statistics.note_count</code> | <code>integer</code> | จำนวนบันทึกปกติที่รายงานในสถิติการตอบกลับ |
| <code>data.statistics.video_count</code> | <code>integer</code> | จำนวนบันทึกวิดีโอที่รายงานในสถิติการตอบกลับ |
| <code>data.statistics.ads_count</code> | <code>integer</code> | จำนวนรายการโฆษณาที่รายงานในสถิติการตอบกลับ |
| <code>data.statistics.recommend_count</code> | <code>integer</code> | จำนวนคำค้นหาที่แนะนำที่รายงานในสถิติการตอบกลับ |
| <code>data.search_meta</code> | <code>object</code> | ข้อมูลหน้าค้นหาที่ส่งกลับพร้อมผลลัพธ์ |
| <code>data.search_meta.is_broad_query</code> | <code>boolean</code> | ว่าซิอ่าวหงชูจะจัดประเภทคำขอนี้เป็นประเภทกว้างหรือไม่ |
| <code>data.search_meta.show_single_col</code> | <code>boolean</code> | ว่า�การตอบกลับจะแสดงผลลัพธ์ในรูปแบบคอลัมน์เดียวหรือไม่ |

</div>

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

<ApiExampleSection :api='JSON.parse("\"/api/xiaohongshu/search-note/v4\"")' />

