---
title: "Douyin (TikTok ประเทศจีน) การค้นหาวิดีโอ API (V4)"
description: "ค้นหาวิดีโอบน Douyin (TikTok China) โดยใช้คำสำคัญ พร้อมการจัดลำดับ, เวลาการเผยแพร่, ความยาว, และตัวกรองหน้า หน้าต่อไปต้องใช้ ID การค้นหาในหน้าที่แล้ว ใช้เพื่อการค้นหาเนื้อหาและการวิจัยแนวโน้ม"
lastUpdated: false
aiUsagePrompt: true
---

# Douyin \(TikTok ประเทศจีน\) การค้นหาวิดีโอ API \(V4\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/search-video/v4\"")'
  :summary='JSON.parse("\"การค้นหาวิดีโอ (V4)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-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\":\"sortType\",\"in\":\"query\",\"description\":\"เกณฑ์การจัดเรียงผลลัพธ์การค้นหา.\\n\\nค่าที่มีอยู่:\\n- `_0`: ทั่วไป\\n- `_1`: ได้รับความนิยมมากที่สุด\\n- `_2`: ใหม่ที่สุด\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"ประเภทการจัดลำดับวิดีโอการค้นหา Douyin\",\"enum\":[\"_0\",\"_1\",\"_2\"]}},{\"name\":\"publishTime\",\"in\":\"query\",\"description\":\"กรอบเวลาการเผยแพร่วิดีโอสำหรับการกรอง.\\n\\nค่าที่มีอยู่:\\n- `_0`: ไม่มีข้อจำกัด\\n- `_1`: 24 ชั่วโมงที่ผ่านมา\\n- `_7`: 7 วันที่ผ่านมา\\n- `_180`: 6 เดือนที่ผ่านมา\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"ตัวกรองเวลาการค้นหาและเผยแพร่วิดีโอ Douyin\",\"enum\":[\"_0\",\"_1\",\"_7\",\"_180\"]}},{\"name\":\"duration\",\"in\":\"query\",\"description\":\"ความยาวของวิดีโอสำหรับการกรอง.\\n\\nค่าที่มีอยู่:\\n- `_0`: ไม่มีข้อจำกัด\\n- `_1`: น้อยกา 1 นาที\\n- `_2`: 1-5 นาที\\n- `_3`: นานกา 5 นาที\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"ตัวกรองระยะเวลาการค้นหาวิดีโอ Douyin\",\"enum\":[\"_0\",\"_1\",\"_2\",\"_3\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"หมายเลขหน้า (เริ่มต้นจาก 1).\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"searchId\",\"in\":\"query\",\"description\":\"ID การค้นหา ต้องระบุเมื่อขอหน้าที่ &gt; 1 ให้ใช้ data.business_config.next_page.search_id จากข้อมูลตอบกลับก่อนหน้า และหยุดแบ่งหน้าเมื่อ data.business_config.has_more เป็น 0\",\"required\":false,\"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\",\"description\":\"ผลการค้นหาและรายละเอียดการแสดงผลการเรียกค้นคำสำคัญ Douyin.\",\"properties\":{\"business_data\":{\"type\":\"array\",\"description\":\"หน้าจอผลการค้นหา. วิดีโอเดียวกันอาจปรากฏในหลายหน้า. ใช้ aweme_id เพื่อกำจัดผลการค้นหาวิดีโอที่ซ้ำกัน.\",\"items\":{\"type\":\"object\",\"description\":\"หน้าจอผลการค้นหาหนึ่งที่ส่งกลับมา.\",\"properties\":{\"data_id\":{\"type\":\"string\",\"description\":\"ตัวระบุของคูปองภายในคำตอบปัจจุบัน\"},\"type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทของผลลัพธ์ ประเภทที่พบได้มี 1 สำหรับผลลัพธ์วิดีโอ และ 66667 สำหรับการค้นหาที่เกี่ยวข้อง\"},\"data\":{\"type\":\"object\",\"description\":\"เนื้อหาที่ให้ไว้สำหรับคูปองผลลัพธ์ ฟิลด์ต่างๆ ขึ้นอยู่กับประเภทของคูปอง\",\"properties\":{\"aweme_info\":{\"type\":\"object\",\"description\":\"ผลลัพธ์วิดีโอ Douyin เมื่อคูปองมีวิดีโออยู่\",\"properties\":{\"aweme_id\":{\"type\":\"string\",\"description\":\"ID วิดีโอ Douyin ที่มั่นคง ถูกเข้ารหัสเป็นสตริง ใช้ค่านี้เพื่อระบุวิดีโอในหน้าแสดงผลการค้นหา\"},\"group_id\":{\"type\":\"string\",\"description\":\"ตัวระบุกลุ่มที่รายงานสำหรับโพสต์\"},\"author_user_id\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ID ตัวเลขของบัญชีโพสต์\"},\"desc\":{\"type\":\"string\",\"description\":\"คำอธิบายโพสต์ที่ให้ไว้โดย Douyin\"},\"caption\":{\"type\":\"string\",\"description\":\"คำอธิบายย่อโพสต์ที่ให้ไว้โดย Douyin\"},\"item_title\":{\"type\":\"string\",\"description\":\"ชื่อโพสต์ หากมีให้\"},\"preview_title\":{\"type\":\"string\",\"description\":\"ชื่อที่ให้ไว้สำหรับการดูโพสต์ล่วงหน้า\"},\"create_time\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"เวลาเผยแพร่วิดีโอในรูปแบบเวลา Unix ด้วยวินาที\"},\"duration\":{\"type\":\"integer\",\"description\":\"ความยาวของวิดีโอในหน่วยมิลลิวินาที\"},\"aweme_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทของโพสต์ที่รายงานโดย Douyin\"},\"media_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทของสื่อที่รายงานโดย Douyin\"},\"ip_attribution\":{\"type\":\"string\",\"description\":\"ป้ายกำกับภูมิภาค IP ที่รายงานโดย Douyin หากมี\"},\"share_url\":{\"type\":\"string\",\"description\":\"URL สำหรับแชร์วิดีโอของ Douyin\"},\"share_info\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าที่ให้ไว้สำหรับการแชร์วิดีโอ\",\"properties\":{\"share_url\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับการแชร์วิดีโอ\"},\"share_title\":{\"type\":\"string\",\"description\":\"ชื่อที่ให้ไว้สำหรับการแชร์วิดีโอ\"},\"share_desc\":{\"type\":\"string\",\"description\":\"คำอธิบายที่ให้ไว้สำหรับการแชร์วิดีโอ\"}}},\"text_extra\":{\"type\":[\"array\",\"null\"],\"description\":\"ฮาสตัทและการกล่าวถึงผู้ใช้ที่เกี่ยวข้องกับข้อความโพสต์ ลิสต์นี้อาจเป็น null\",\"items\":{\"type\":\"object\",\"description\":\"คำอธิบายข้อความหนึ่ง\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทของคำอธิบายที่รายงานโดย Douyin\"},\"hashtag_id\":{\"type\":\"string\",\"description\":\"ID ของฮาสตัทที่ถูกอธิบาย เมื่อคำอธิบายเป็นฮาสตัท\"},\"hashtag_name\":{\"type\":\"string\",\"description\":\"ชื่อแฮชแท็กที่มีการอธิบายไว้\"},\"user_id\":{\"type\":\"string\",\"description\":\"ID อุปกรณ์ Douyin เมื่อมีการอ้างอิงถึงผู้ใช้\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ID อุปกรณ์ Douyin ท้ายที่สุดสำหรับผู้ใช้ที่ถูกอ้างอิง\"},\"is_commerce\":{\"type\":\"boolean\",\"description\":\"ว่าดูyin จะระบุแฮชแท็กที่มีการอธิบายไว้ว่าเป็นสินค้าหรือไม่\"}}}},\"cha_list\":{\"type\":[\"array\",\"null\"],\"description\":\"เมื่อไหร่ที่มีการอธิบายถึงหัวข้อหรือความท้าทายที่เกี่ยวข้องกับโพสต์ ชุดข้อมูลนี้อาจเป็น null\",\"items\":{\"type\":\"object\",\"description\":\"หัวข้อหรือความท้าทายหนึ่งหัวข้อ\",\"properties\":{\"cid\":{\"type\":\"string\",\"description\":\"ID หัวข้อหรือความท้าทาย Douyin\"},\"cha_name\":{\"type\":\"string\",\"description\":\"ชื่อหัวข้อหรือความท้าทาย\"},\"desc\":{\"type\":\"string\",\"description\":\"คำอธิบายของหัวข้อหรือความท้าทาย\"},\"is_commerce\":{\"type\":\"boolean\",\"description\":\"ว่าดูyin จะระบุหัวข้อหรือความท้าทายว่าเป็นสินค้าหรือไม่\"}}}},\"author\":{\"type\":\"object\",\"description\":\"ข้อมูลโปรไฟล์ของผู้เขียนที่ส่งมาพร้อมกับวิดีโอ\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"ID อุปกรณ์ Douyin ที่เข้ารหัสเป็นสตริง\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"อุปกรณ์ Douyin ท้ายที่สุดที่ผู้ใช้ใช้เพื่อเข้าถึงโปรไฟล์\"},\"nickname\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏของผู้เขียน\"},\"unique_id\":{\"type\":\"string\",\"description\":\"ชื่อผู้ใช้ Douyin ที่เป็นสาธารณะ หากมี\"},\"short_id\":{\"type\":\"string\",\"description\":\"อุปกรณ์สั้นที่ดูyin รายงาน\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"จำนวนผู้ติดตามที่ผู้เขียนมี\"},\"is_verified\":{\"type\":\"boolean\",\"description\":\"ว่าดูyin รายงานว่าผู้เขียนได้รับการยืนยันหรือไม่\"},\"verification_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทการยืนยันที่ผู้เขียนมี\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"ภาพลักษณ์ของผู้เขียน\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}},\"avatar_medium\":{\"type\":\"object\",\"description\":\"ภาพ avatar ขนาดกลางสำหรับผู้เขียน.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}},\"avatar_larger\":{\"type\":\"object\",\"description\":\"ภาพ avatar ขนาดใหญ่สำหรับผู้เขียน.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}}}},\"statistics\":{\"type\":\"object\",\"description\":\"จำนวนผู้เข้าชมวิดีโอที่รายงาน.\",\"properties\":{\"aweme_id\":{\"type\":\"string\",\"description\":\"ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับสถิติเหล่านี้.\"},\"digg_count\":{\"type\":\"integer\",\"description\":\"จำนวนไลก์ของวิดีโอตามที่รายงาน\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"จำนวนความคิดเห็นของวิดีโอตามที่รายงาน\"},\"collect_count\":{\"type\":\"integer\",\"description\":\"จำนวนการบันทึกของวิดีโอตามที่รายงาน\"},\"share_count\":{\"type\":\"integer\",\"description\":\"จำนวนการแชร์ของวิดีโอตามที่รายงาน\"},\"forward_count\":{\"type\":\"integer\",\"description\":\"จำนวนการส่งต่อที่ระบุในการตอบกลับ.\"},\"download_count\":{\"type\":\"integer\",\"description\":\"จำนวนการดาวน์โหลดของวิดีโอตามที่รายงาน\"}}},\"video\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าและทรัพยากรการเล่นที่มีอยู่ของวิดีโอ.\",\"properties\":{\"duration\":{\"type\":\"integer\",\"description\":\"ความยาวของวิดีโอในหน่วยมิลลิวินาที\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของวิดีโอที่ Douyin รายงานในพิกเซล.\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของวิดีโอที่ Douyin รายงานในพิกเซล.\"},\"format\":{\"type\":\"string\",\"description\":\"รูปแบบของวิดีโอที่ Douyin รายงาน.\"},\"ratio\":{\"type\":\"string\",\"description\":\"คำอธิบายความละเอียดที่ Douyin รายงาน.\"},\"has_watermark\":{\"type\":\"boolean\",\"description\":\"ตัวดอกยักษ์จากข้อมูลเมตาดาต้าของวิดีโอ.\"},\"play_addr\":{\"type\":\"object\",\"description\":\"ที่อยู่การเล่นหลักที่ให้ไว้สำหรับวิดีโอ.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า.\"}}},\"play_addr_h264\":{\"type\":\"object\",\"description\":\"ที่อยู่ที่ให้ไว้สำหรับรูปแบบ H.264.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า.\"}}},\"play_addr_265\":{\"type\":\"object\",\"description\":\"ที่อยู่ที่ระบุในช่องการเล่น H.265.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า.\"}}},\"download_addr\":{\"type\":\"object\",\"description\":\"ที่อยู่สำหรับดาวน์โหลดวิดีโอ.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า.\"}}},\"cover\":{\"type\":\"object\",\"description\":\"ภาพปกของวิดีโอ.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}},\"origin_cover\":{\"type\":\"object\",\"description\":\"ภาพปกในฟิลด์ปกต้นฉบับ.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}},\"dynamic_cover\":{\"type\":\"object\",\"description\":\"ทรัพยากรภาพปกที่สามารถเคลื่อนไหวได้เมื่อมี.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}},\"animated_cover\":{\"type\":\"object\",\"description\":\"ทรัพยากรภาพปกที่สามารถเคลื่อนไหวได้เมื่อมี.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}}}},\"bit_rate\":{\"type\":\"array\",\"description\":\"ข้อมูลเมตาดาต้าเกี่ยวกับรูปแบบการเล่นและอัตราการส่งข้อมูลที่ให้ไว้สำหรับวิดีโอ.\",\"items\":{\"type\":\"object\",\"description\":\"รูปแบบการเล่นหนึ่งที่ให้ไว้สำหรับวิดีโอ.\",\"properties\":{\"bit_rate\":{\"type\":\"integer\",\"description\":\"อัตราการส่งข้อมูลในการเข้ารหัสในบิตต่อวินาที.\"},\"FPS\":{\"type\":\"integer\",\"description\":\"อัตราการส่งภาพในภาพต่อวินาที.\"},\"format\":{\"type\":\"string\",\"description\":\"รูปแบบของสื่อที่รายงานสำหรับการเข้ารหัสนี้.\"},\"gear_name\":{\"type\":\"string\",\"description\":\"ป้ายชื่อของการตั้งค่าผู้เขียนข้อมูลสำหรับตัวเลือกนี้ได้รับการรายงาน。\"},\"quality_type\":{\"type\":\"integer\",\"description\":\"รหัสประเภทคุณภาพสำหรับการเข้ารหัสนี้ได้รับการรายงาน。\"},\"is_h265\":{\"type\":\"integer\",\"description\":\"ตัวเลือกการเข้ารหัส H.265 ได้รับการรายงาน。\"},\"HDR_type\":{\"type\":\"string\",\"description\":\"ป้ายชื่อประเภท HDR สำหรับการเข้ารหัสนี้ได้รับการรายงาน。\"},\"HDR_bit\":{\"type\":\"string\",\"description\":\"ป้ายชื่อความลึกบิตของ HDR สำหรับการเข้ารหัสนี้ได้รับการรายงาน。\"},\"play_addr\":{\"type\":\"object\",\"description\":\"ที่อยู่การเล่นสำหรับการเข้ารหัสนี้。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า.\"}}}}}}}},\"music\":{\"type\":\"object\",\"description\":\"ข้อมูลเมตาดาต้าเพลงหรือเสียงที่เกี่ยวข้องกับวิดีโอ。\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ID เพลงในรูปแบบตัวเลข。ใช้ตัวแปล JSON แบบไม่สูญเสียเพื่อรักษาค่าทั้งหมดไว้ใน JavaScript。\"},\"id_str\":{\"type\":\"string\",\"description\":\"ID เพลงที่ถูกเข้ารหัสในรูปแบบสตริง。\"},\"mid\":{\"type\":\"string\",\"description\":\"ID เพลงที่ถูกส่งกลับมาในช่องกลาง。\"},\"title\":{\"type\":\"string\",\"description\":\"ชื่อของเพลงหรือเสียง。\"},\"author\":{\"type\":\"string\",\"description\":\"ชื่อศิลปินหรือผู้สร้างเสียงที่ถูกส่งกลับมาพร้อมกับเพลง。\"},\"album\":{\"type\":\"string\",\"description\":\"ชื่ออัลบั้มเมื่อมีการระบุ。\"},\"is_original_sound\":{\"type\":\"boolean\",\"description\":\"ว่าดูยินจะจัดให้เพลงนี้เป็นเพลงต้นฉบับหรือไม่。\"},\"cover_thumb\":{\"type\":\"object\",\"description\":\"ภาพหน้าปกของเพลงหรือเสียง。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า\"}}},\"play_url\":{\"type\":\"object\",\"description\":\"ทรัพยากรการเล่นสำหรับเพลงหรือเสียง。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"อุปกรณ์ที่ดูyin รายงาน\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\",\"items\":{\"type\":\"string\",\"description\":\"URL ที่ให้ไว้สำหรับทรัพยากร\"}}}}}}}},\"related_word_list\":{\"type\":\"array\",\"description\":\"คำค้นหาที่เกี่ยวข้องที่แนะนำเมื่อการ์ดมีคำเหล่านั้น。\",\"items\":{\"type\":\"object\",\"description\":\"คำค้นหาที่เกี่ยวข้องหนึ่งคำ。\",\"properties\":{\"related_word\":{\"type\":\"string\",\"description\":\"คำค้นหาที่เกี่ยวข้องที่แนะนำ。\"}}}}}}}}},\"business_config\":{\"type\":\"object\",\"description\":\"ข้อมูลการแสดงผลและการสืบค้น。\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"คำสำคัญที่รายงานสำหรับการค้นหานี้。\"},\"card_count\":{\"type\":\"integer\",\"description\":\"จำนวนการ์ดของหน้าผลลัพธ์ตามที่รายงาน\"},\"has_more\":{\"type\":[\"integer\",\"string\"],\"description\":\"หยุดเมื่อตัวชี้ไปที่ 0，รวมถึงเมื่อมี ID การค้นหายังคงมีอยู่。การตอบกลับที่มีผลลัพธ์สิ้นสุดอาจมีเพียงตัวชี้การแสดงผลเท่านั้น。\"},\"next_page\":{\"type\":\"object\",\"description\":\"ข้อมูลการดำเนินการเมื่อมีการระบุ。\",\"properties\":{\"search_id\":{\"type\":\"string\",\"description\":\"ID การค้นหาสำหรับหน้าถัดไป。ส่งมันเป็น searchId，เพิ่มหน้าไปหนึ่งและรักษาคำสำคัญและตัวกรองไว้ไม่เปลี่ยนแปลง。หน้าถัดไปอาจส่ง ID การค้นหาเดียวกันมา。\"}}}}},\"status_code\":{\"type\":[\"number\",\"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/douyin/search-video/v4\"")' />

<p>ค้นหาวิดีโอบน Douyin (TikTok China) โดยใช้คำสำคัญ พร้อมการจัดลำดับ, เวลาการเผยแพร่, ความยาว, และตัวกรองหน้า หน้าต่อไปต้องใช้ ID การค้นหาในหน้าที่แล้ว ใช้เพื่อการค้นหาเนื้อหาและการวิจัยแนวโน้ม</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>sortType</code> | query | <code>string</code> | ไม่ใช่ | <code>_0</code> | เกณฑ์การจัดเรียงผลลัพธ์การค้นหา.<br /><br><br>ค่าที่มีอยู่:<br /><br>- <code>_0</code>: ทั่วไป<br /><br>- <code>_1</code>: ได้รับความนิยมมากที่สุด<br /><br>- <code>_2</code>: ใหม่ที่สุด |
| <code>publishTime</code> | query | <code>string</code> | ไม่ใช่ | <code>_0</code> | กรอบเวลาการเผยแพร่วิดีโอสำหรับการกรอง.<br /><br><br>ค่าที่มีอยู่:<br /><br>- <code>_0</code>: ไม่มีข้อจำกัด<br /><br>- <code>_1</code>: 24 ชั่วโมงที่ผ่านมา<br /><br>- <code>_7</code>: 7 วันที่ผ่านมา<br /><br>- <code>_180</code>: 6 เดือนที่ผ่านมา |
| <code>duration</code> | query | <code>string</code> | ไม่ใช่ | <code>_0</code> | ความยาวของวิดีโอสำหรับการกรอง.<br /><br><br>ค่าที่มีอยู่:<br /><br>- <code>_0</code>: ไม่มีข้อจำกัด<br /><br>- <code>_1</code>: น้อยกา 1 นาที<br /><br>- <code>_2</code>: 1-5 นาที<br /><br>- <code>_3</code>: นานกา 5 นาที |
| <code>page</code> | query | <code>integer</code> | ไม่ใช่ | <code>1</code> | หมายเลขหน้า (เริ่มต้นจาก 1). |
| <code>searchId</code> | query | <code>string</code> | ไม่ใช่ | - | ID การค้นหา ต้องระบุเมื่อขอหน้าที่ &gt; 1 ให้ใช้ data.business_config.next_page.search_id จากข้อมูลตอบกลับก่อนหน้า และหยุดแบ่งหน้าเมื่อ data.business_config.has_more เป็น 0 |

</div>

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

::: code-group

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

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

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

ค่าที่มีอยู่:
- `_0`: ทั่วไป
- `_1`: ได้รับความนิยมมากที่สุด
- `_2`: ใหม่ที่สุด
- publishTime (query): กรอบเวลาการเผยแพร่วิดีโอสำหรับการกรอง.

ค่าที่มีอยู่:
- `_0`: ไม่มีข้อจำกัด
- `_1`: 24 ชั่วโมงที่ผ่านมา
- `_7`: 7 วันที่ผ่านมา
- `_180`: 6 เดือนที่ผ่านมา
- duration (query): ความยาวของวิดีโอสำหรับการกรอง.

ค่าที่มีอยู่:
- `_0`: ไม่มีข้อจำกัด
- `_1`: น้อยกา 1 นาที
- `_2`: 1-5 นาที
- `_3`: นานกา 5 นาที
- page (query): หมายเลขหน้า (เริ่มต้นจาก 1).
- searchId (query): ID การค้นหา ต้องระบุเมื่อขอหน้าที่ > 1 ให้ใช้ data.business_config.next_page.search_id จากข้อมูลตอบกลับก่อนหน้า และหยุดแบ่งหน้าเมื่อ data.business_config.has_more เป็น 0

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

การจัดการผลตอบกลับและรหัสข้อผิดพลาด:
1. ตรวจสอบผลการทำงานจากฟิลด์ "code" ในผลตอบกลับ (รหัส 0 หมายถึงสำเร็จ)
2. แนะนำให้ตั้งระยะเวลารอ 120 วินาที หาก 120 วินาทีนานเกินไป ให้ตั้งอย่างน้อย 60 วินาที แต่คำขอบางรายการอาจหมดเวลาก่อนได้รับผลลัพธ์
3. รหัสผลลัพธ์:
   - 0: สำเร็จ
   - 100: โทเคนไม่ถูกต้องหรือถูกปิดใช้งาน
   - 301: ดึงข้อมูลไม่สำเร็จ โปรดลองอีกครั้ง
   - 302: เกินขีดจำกัดอัตราการเรียก
   - 303: ใช้โควตารายวันครบแล้ว
   - 400: พารามิเตอร์ไม่ถูกต้อง
   - 500: ข้อผิดพลาดภายในเซิร์ฟเวอร์
   - 600: ไม่มีสิทธิ์เข้าถึง
   - 601: ยอดเงินคงเหลือไม่เพียงพอ
   - 602: ถึงวงเงินของโทเคนแล้ว
4. รหัส 601 หมายถึงยอดเงินที่ใช้ร่วมกันของบัญชีไม่เพียงพอ รหัส 602 หมายถึงโทเคน API ถึงวงเงินสะสมของตนเองแล้ว การกำหนดวงเงินโทเคนจะไม่โอนเงินออกจากยอดเงินที่ใช้ร่วมกันของบัญชี

กรุณาช่วยเขียนสคริปต์ในภาษาโปรแกรมที่ฉันชื่นชอบเพื่อเรียกใช้ API และจัดการการตอบกลับ.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # ให้โดยเซิร์ฟเวอร์ OpenAPI

url = BASE_URL + "/api/douyin/search-video/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/douyin/search-video/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/douyin/search-video/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/douyin/search-video/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/douyin/search-video/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/douyin-tiktok-china/video-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> | ผลการค้นหาและรายละเอียดการแสดงผลการเรียกค้นคำสำคัญ Douyin. |
| <code>data.business_data</code> | <code>array</code> | หน้าจอผลการค้นหา. วิดีโอเดียวกันอาจปรากฏในหลายหน้า. ใช้ aweme_id เพื่อกำจัดผลการค้นหาวิดีโอที่ซ้ำกัน. |
| <code>data.business_data[]</code> | <code>object</code> | หน้าจอผลการค้นหาหนึ่งที่ส่งกลับมา. |
| <code>data.business_data[].data_id</code> | <code>string</code> | ตัวระบุของคูปองภายในคำตอบปัจจุบัน |
| <code>data.business_data[].type</code> | <code>integer</code> | รหัสประเภทของผลลัพธ์ ประเภทที่พบได้มี 1 สำหรับผลลัพธ์วิดีโอ และ 66667 สำหรับการค้นหาที่เกี่ยวข้อง |
| <code>data.business_data[].data</code> | <code>object</code> | เนื้อหาที่ให้ไว้สำหรับคูปองผลลัพธ์ ฟิลด์ต่างๆ ขึ้นอยู่กับประเภทของคูปอง |
| <code>data.business_data[].data.aweme_info</code> | <code>object</code> | ผลลัพธ์วิดีโอ Douyin เมื่อคูปองมีวิดีโออยู่ |
| <code>data.business_data[].data.aweme_info.aweme_id</code> | <code>string</code> | ID วิดีโอ Douyin ที่มั่นคง ถูกเข้ารหัสเป็นสตริง ใช้ค่านี้เพื่อระบุวิดีโอในหน้าแสดงผลการค้นหา |
| <code>data.business_data[].data.aweme_info.group_id</code> | <code>string</code> | ตัวระบุกลุ่มที่รายงานสำหรับโพสต์ |
| <code>data.business_data[].data.aweme_info.author_user_id</code> | <code>integer</code> | ID ตัวเลขของบัญชีโพสต์ |
| <code>data.business_data[].data.aweme_info.desc</code> | <code>string</code> | คำอธิบายโพสต์ที่ให้ไว้โดย Douyin |
| <code>data.business_data[].data.aweme_info.caption</code> | <code>string</code> | คำอธิบายย่อโพสต์ที่ให้ไว้โดย Douyin |
| <code>data.business_data[].data.aweme_info.item_title</code> | <code>string</code> | ชื่อโพสต์ หากมีให้ |
| <code>data.business_data[].data.aweme_info.preview_title</code> | <code>string</code> | ชื่อที่ให้ไว้สำหรับการดูโพสต์ล่วงหน้า |
| <code>data.business_data[].data.aweme_info.create_time</code> | <code>integer</code> | เวลาเผยแพร่วิดีโอในรูปแบบเวลา Unix ด้วยวินาที |
| <code>data.business_data[].data.aweme_info.duration</code> | <code>integer</code> | ความยาวของวิดีโอในหน่วยมิลลิวินาที |
| <code>data.business_data[].data.aweme_info.aweme_type</code> | <code>integer</code> | รหัสประเภทของโพสต์ที่รายงานโดย Douyin |
| <code>data.business_data[].data.aweme_info.media_type</code> | <code>integer</code> | รหัสประเภทของสื่อที่รายงานโดย Douyin |
| <code>data.business_data[].data.aweme_info.ip_attribution</code> | <code>string</code> | ป้ายกำกับภูมิภาค IP ที่รายงานโดย Douyin หากมี |
| <code>data.business_data[].data.aweme_info.share_url</code> | <code>string</code> | URL สำหรับแชร์วิดีโอของ Douyin |
| <code>data.business_data[].data.aweme_info.share_info</code> | <code>object</code> | ข้อมูลเมตาดาต้าที่ให้ไว้สำหรับการแชร์วิดีโอ |
| <code>data.business_data[].data.aweme_info.share_info.share_url</code> | <code>string</code> | URL ที่ให้ไว้สำหรับการแชร์วิดีโอ |
| <code>data.business_data[].data.aweme_info.share_info.share_title</code> | <code>string</code> | ชื่อที่ให้ไว้สำหรับการแชร์วิดีโอ |
| <code>data.business_data[].data.aweme_info.share_info.share_desc</code> | <code>string</code> | คำอธิบายที่ให้ไว้สำหรับการแชร์วิดีโอ |
| <code>data.business_data[].data.aweme_info.text_extra</code> | <code>array &#124; null</code> | ฮาสตัทและการกล่าวถึงผู้ใช้ที่เกี่ยวข้องกับข้อความโพสต์ ลิสต์นี้อาจเป็น null |
| <code>data.business_data[].data.aweme_info.text_extra[]</code> | <code>object</code> | คำอธิบายข้อความหนึ่ง |
| <code>data.business_data[].data.aweme_info.text_extra[].type</code> | <code>integer</code> | รหัสประเภทของคำอธิบายที่รายงานโดย Douyin |
| <code>data.business_data[].data.aweme_info.text_extra[].hashtag_id</code> | <code>string</code> | ID ของฮาสตัทที่ถูกอธิบาย เมื่อคำอธิบายเป็นฮาสตัท |
| <code>data.business_data[].data.aweme_info.text_extra[].hashtag_name</code> | <code>string</code> | ชื่อแฮชแท็กที่มีการอธิบายไว้ |
| <code>data.business_data[].data.aweme_info.text_extra[].user_id</code> | <code>string</code> | ID อุปกรณ์ Douyin เมื่อมีการอ้างอิงถึงผู้ใช้ |
| <code>data.business_data[].data.aweme_info.text_extra[].sec_uid</code> | <code>string</code> | ID อุปกรณ์ Douyin ท้ายที่สุดสำหรับผู้ใช้ที่ถูกอ้างอิง |
| <code>data.business_data[].data.aweme_info.text_extra[].is_commerce</code> | <code>boolean</code> | ว่าดูyin จะระบุแฮชแท็กที่มีการอธิบายไว้ว่าเป็นสินค้าหรือไม่ |
| <code>data.business_data[].data.aweme_info.cha_list</code> | <code>array &#124; null</code> | เมื่อไหร่ที่มีการอธิบายถึงหัวข้อหรือความท้าทายที่เกี่ยวข้องกับโพสต์ ชุดข้อมูลนี้อาจเป็น null |
| <code>data.business_data[].data.aweme_info.cha_list[]</code> | <code>object</code> | หัวข้อหรือความท้าทายหนึ่งหัวข้อ |
| <code>data.business_data[].data.aweme_info.cha_list[].cid</code> | <code>string</code> | ID หัวข้อหรือความท้าทาย Douyin |
| <code>data.business_data[].data.aweme_info.cha_list[].cha_name</code> | <code>string</code> | ชื่อหัวข้อหรือความท้าทาย |
| <code>data.business_data[].data.aweme_info.cha_list[].desc</code> | <code>string</code> | คำอธิบายของหัวข้อหรือความท้าทาย |
| <code>data.business_data[].data.aweme_info.cha_list[].is_commerce</code> | <code>boolean</code> | ว่าดูyin จะระบุหัวข้อหรือความท้าทายว่าเป็นสินค้าหรือไม่ |
| <code>data.business_data[].data.aweme_info.author</code> | <code>object</code> | ข้อมูลโปรไฟล์ของผู้เขียนที่ส่งมาพร้อมกับวิดีโอ |
| <code>data.business_data[].data.aweme_info.author.uid</code> | <code>string</code> | ID อุปกรณ์ Douyin ที่เข้ารหัสเป็นสตริง |
| <code>data.business_data[].data.aweme_info.author.sec_uid</code> | <code>string</code> | อุปกรณ์ Douyin ท้ายที่สุดที่ผู้ใช้ใช้เพื่อเข้าถึงโปรไฟล์ |
| <code>data.business_data[].data.aweme_info.author.nickname</code> | <code>string</code> | ชื่อที่ปรากฏของผู้เขียน |
| <code>data.business_data[].data.aweme_info.author.unique_id</code> | <code>string</code> | ชื่อผู้ใช้ Douyin ที่เป็นสาธารณะ หากมี |
| <code>data.business_data[].data.aweme_info.author.short_id</code> | <code>string</code> | อุปกรณ์สั้นที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.author.follower_count</code> | <code>integer</code> | จำนวนผู้ติดตามที่ผู้เขียนมี |
| <code>data.business_data[].data.aweme_info.author.is_verified</code> | <code>boolean</code> | ว่าดูyin รายงานว่าผู้เขียนได้รับการยืนยันหรือไม่ |
| <code>data.business_data[].data.aweme_info.author.verification_type</code> | <code>integer</code> | รหัสประเภทการยืนยันที่ผู้เขียนมี |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb</code> | <code>object</code> | ภาพลักษณ์ของผู้เขียน |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.author.avatar_medium</code> | <code>object</code> | ภาพ avatar ขนาดกลางสำหรับผู้เขียน. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.author.avatar_larger</code> | <code>object</code> | ภาพ avatar ขนาดใหญ่สำหรับผู้เขียน. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.statistics</code> | <code>object</code> | จำนวนผู้เข้าชมวิดีโอที่รายงาน. |
| <code>data.business_data[].data.aweme_info.statistics.aweme_id</code> | <code>string</code> | ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับสถิติเหล่านี้. |
| <code>data.business_data[].data.aweme_info.statistics.digg_count</code> | <code>integer</code> | จำนวนไลก์ของวิดีโอตามที่รายงาน |
| <code>data.business_data[].data.aweme_info.statistics.comment_count</code> | <code>integer</code> | จำนวนความคิดเห็นของวิดีโอตามที่รายงาน |
| <code>data.business_data[].data.aweme_info.statistics.collect_count</code> | <code>integer</code> | จำนวนการบันทึกของวิดีโอตามที่รายงาน |
| <code>data.business_data[].data.aweme_info.statistics.share_count</code> | <code>integer</code> | จำนวนการแชร์ของวิดีโอตามที่รายงาน |
| <code>data.business_data[].data.aweme_info.statistics.forward_count</code> | <code>integer</code> | จำนวนการส่งต่อที่ระบุในการตอบกลับ. |
| <code>data.business_data[].data.aweme_info.statistics.download_count</code> | <code>integer</code> | จำนวนการดาวน์โหลดของวิดีโอตามที่รายงาน |
| <code>data.business_data[].data.aweme_info.video</code> | <code>object</code> | ข้อมูลเมตาดาต้าและทรัพยากรการเล่นที่มีอยู่ของวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.duration</code> | <code>integer</code> | ความยาวของวิดีโอในหน่วยมิลลิวินาที |
| <code>data.business_data[].data.aweme_info.video.width</code> | <code>integer</code> | ความกว้างของวิดีโอที่ Douyin รายงานในพิกเซล. |
| <code>data.business_data[].data.aweme_info.video.height</code> | <code>integer</code> | ความสูงของวิดีโอที่ Douyin รายงานในพิกเซล. |
| <code>data.business_data[].data.aweme_info.video.format</code> | <code>string</code> | รูปแบบของวิดีโอที่ Douyin รายงาน. |
| <code>data.business_data[].data.aweme_info.video.ratio</code> | <code>string</code> | คำอธิบายความละเอียดที่ Douyin รายงาน. |
| <code>data.business_data[].data.aweme_info.video.has_watermark</code> | <code>boolean</code> | ตัวดอกยักษ์จากข้อมูลเมตาดาต้าของวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.play_addr</code> | <code>object</code> | ที่อยู่การเล่นหลักที่ให้ไว้สำหรับวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.play_addr.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.play_addr.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.play_addr.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.play_addr.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.play_addr.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.play_addr.data_size</code> | <code>integer</code> | ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264</code> | <code>object</code> | ที่อยู่ที่ให้ไว้สำหรับรูปแบบ H.264. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.data_size</code> | <code>integer</code> | ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265</code> | <code>object</code> | ที่อยู่ที่ระบุในช่องการเล่น H.265. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.data_size</code> | <code>integer</code> | ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
| <code>data.business_data[].data.aweme_info.video.download_addr</code> | <code>object</code> | ที่อยู่สำหรับดาวน์โหลดวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.download_addr.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.download_addr.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.download_addr.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.download_addr.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.download_addr.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.download_addr.data_size</code> | <code>integer</code> | ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
| <code>data.business_data[].data.aweme_info.video.cover</code> | <code>object</code> | ภาพปกของวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.cover.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.cover.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.cover.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.cover.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.cover.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.origin_cover</code> | <code>object</code> | ภาพปกในฟิลด์ปกต้นฉบับ. |
| <code>data.business_data[].data.aweme_info.video.origin_cover.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.origin_cover.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.origin_cover.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.origin_cover.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.origin_cover.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover</code> | <code>object</code> | ทรัพยากรภาพปกที่สามารถเคลื่อนไหวได้เมื่อมี. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.animated_cover</code> | <code>object</code> | ทรัพยากรภาพปกที่สามารถเคลื่อนไหวได้เมื่อมี. |
| <code>data.business_data[].data.aweme_info.video.animated_cover.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.animated_cover.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.animated_cover.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.bit_rate</code> | <code>array</code> | ข้อมูลเมตาดาต้าเกี่ยวกับรูปแบบการเล่นและอัตราการส่งข้อมูลที่ให้ไว้สำหรับวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[]</code> | <code>object</code> | รูปแบบการเล่นหนึ่งที่ให้ไว้สำหรับวิดีโอ. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].bit_rate</code> | <code>integer</code> | อัตราการส่งข้อมูลในการเข้ารหัสในบิตต่อวินาที. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].FPS</code> | <code>integer</code> | อัตราการส่งภาพในภาพต่อวินาที. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].format</code> | <code>string</code> | รูปแบบของสื่อที่รายงานสำหรับการเข้ารหัสนี้. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].gear_name</code> | <code>string</code> | ป้ายชื่อของการตั้งค่าผู้เขียนข้อมูลสำหรับตัวเลือกนี้ได้รับการรายงาน。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].quality_type</code> | <code>integer</code> | รหัสประเภทคุณภาพสำหรับการเข้ารหัสนี้ได้รับการรายงาน。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].is_h265</code> | <code>integer</code> | ตัวเลือกการเข้ารหัส H.265 ได้รับการรายงาน。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].HDR_type</code> | <code>string</code> | ป้ายชื่อประเภท HDR สำหรับการเข้ารหัสนี้ได้รับการรายงาน。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].HDR_bit</code> | <code>string</code> | ป้ายชื่อความลึกบิตของ HDR สำหรับการเข้ารหัสนี้ได้รับการรายงาน。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr</code> | <code>object</code> | ที่อยู่การเล่นสำหรับการเข้ารหัสนี้。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.data_size</code> | <code>integer</code> | ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
| <code>data.business_data[].data.aweme_info.music</code> | <code>object</code> | ข้อมูลเมตาดาต้าเพลงหรือเสียงที่เกี่ยวข้องกับวิดีโอ。 |
| <code>data.business_data[].data.aweme_info.music.id</code> | <code>integer</code> | ID เพลงในรูปแบบตัวเลข。ใช้ตัวแปล JSON แบบไม่สูญเสียเพื่อรักษาค่าทั้งหมดไว้ใน JavaScript。 |
| <code>data.business_data[].data.aweme_info.music.id_str</code> | <code>string</code> | ID เพลงที่ถูกเข้ารหัสในรูปแบบสตริง。 |
| <code>data.business_data[].data.aweme_info.music.mid</code> | <code>string</code> | ID เพลงที่ถูกส่งกลับมาในช่องกลาง。 |
| <code>data.business_data[].data.aweme_info.music.title</code> | <code>string</code> | ชื่อของเพลงหรือเสียง。 |
| <code>data.business_data[].data.aweme_info.music.author</code> | <code>string</code> | ชื่อศิลปินหรือผู้สร้างเสียงที่ถูกส่งกลับมาพร้อมกับเพลง。 |
| <code>data.business_data[].data.aweme_info.music.album</code> | <code>string</code> | ชื่ออัลบั้มเมื่อมีการระบุ。 |
| <code>data.business_data[].data.aweme_info.music.is_original_sound</code> | <code>boolean</code> | ว่าดูยินจะจัดให้เพลงนี้เป็นเพลงต้นฉบับหรือไม่。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb</code> | <code>object</code> | ภาพหน้าปกของเพลงหรือเสียง。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.width</code> | <code>integer</code> | ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.height</code> | <code>integer</code> | ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
| <code>data.business_data[].data.aweme_info.music.play_url</code> | <code>object</code> | ทรัพยากรการเล่นสำหรับเพลงหรือเสียง。 |
| <code>data.business_data[].data.aweme_info.music.play_url.uri</code> | <code>string</code> | อุปกรณ์ที่ดูyin รายงาน |
| <code>data.business_data[].data.aweme_info.music.play_url.url_list</code> | <code>array</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.aweme_info.music.play_url.url_list[]</code> | <code>string</code> | URL ที่ให้ไว้สำหรับทรัพยากร |
| <code>data.business_data[].data.related_word_list</code> | <code>array</code> | คำค้นหาที่เกี่ยวข้องที่แนะนำเมื่อการ์ดมีคำเหล่านั้น。 |
| <code>data.business_data[].data.related_word_list[]</code> | <code>object</code> | คำค้นหาที่เกี่ยวข้องหนึ่งคำ。 |
| <code>data.business_data[].data.related_word_list[].related_word</code> | <code>string</code> | คำค้นหาที่เกี่ยวข้องที่แนะนำ。 |
| <code>data.business_config</code> | <code>object</code> | ข้อมูลการแสดงผลและการสืบค้น。 |
| <code>data.business_config.keyword</code> | <code>string</code> | คำสำคัญที่รายงานสำหรับการค้นหานี้。 |
| <code>data.business_config.card_count</code> | <code>integer</code> | จำนวนการ์ดของหน้าผลลัพธ์ตามที่รายงาน |
| <code>data.business_config.has_more</code> | <code>integer &#124; string</code> | หยุดเมื่อตัวชี้ไปที่ 0，รวมถึงเมื่อมี ID การค้นหายังคงมีอยู่。การตอบกลับที่มีผลลัพธ์สิ้นสุดอาจมีเพียงตัวชี้การแสดงผลเท่านั้น。 |
| <code>data.business_config.next_page</code> | <code>object</code> | ข้อมูลการดำเนินการเมื่อมีการระบุ。 |
| <code>data.business_config.next_page.search_id</code> | <code>string</code> | ID การค้นหาสำหรับหน้าถัดไป。ส่งมันเป็น searchId，เพิ่มหน้าไปหนึ่งและรักษาคำสำคัญและตัวกรองไว้ไม่เปลี่ยนแปลง。หน้าถัดไปอาจส่ง ID การค้นหาเดียวกันมา。 |
| <code>data.status_code</code> | <code>number &#124; string</code> | รหัสสถานะการค้นหาของดูยินเมื่อมีการระบุ。 |

</div>

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

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

