---
title: "Douyin (TikTok Trung Quốc) Tìm kiếm video API (V4)"
description: "Tìm kiếm video trên Douyin (TikTok Trung Quốc) bằng từ khóa, với các bộ lọc sắp xếp, thời gian công bố, độ dài và trang. Trang tiếp theo yêu cầu ID tìm kiếm trước. Sử dụng để hỗ trợ việc khám phá nội dung và nghiên cứu xu hướng."
lastUpdated: false
aiUsagePrompt: true
---

# Douyin \(TikTok Trung Quốc\) Tìm kiếm video API \(V4\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/search-video/v4\"")'
  :summary='JSON.parse("\"Tìm kiếm video (V4)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-search-v4-vi.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token truy cập cho dịch vụ API này.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"Từ khóa tìm kiếm.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"sortType\",\"in\":\"query\",\"description\":\"Tiêu chí sắp xếp kết quả tìm kiếm.\\n\\nGiá trị có sẵn:\\n- `_0`: Chung\\n- `_1`: Được thích nhiều nhất\\n- `_2`: Mới nhất\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"Loại thứ tự sắp xếp tìm kiếm video trên Douyin\",\"enum\":[\"_0\",\"_1\",\"_2\"]}},{\"name\":\"publishTime\",\"in\":\"query\",\"description\":\"Loại phân loại theo khoảng thời gian phát hành video.\\n\\nGiá trị có sẵn:\\n- `_0`: Không giới hạn\\n- `_1`: 24 Giờ trước\\n- `_7`: 7 Ngày trước\\n- `_180`: 6 Tháng trước\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"Tùy chọn lọc thời gian tìm kiếm và xuất bản video trên Douyin\",\"enum\":[\"_0\",\"_1\",\"_7\",\"_180\"]}},{\"name\":\"duration\",\"in\":\"query\",\"description\":\"Độ dài video.\\n\\nGiá trị có sẵn:\\n- `_0`: Không giới hạn\\n- `_1`: Dưới 1 Phút\\n- `_2`: 1-5 Phút\\n- `_3`: Trên 5 Phút\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"Tùy chọn lọc thời lượng tìm kiếm video trên Douyin\",\"enum\":[\"_0\",\"_1\",\"_2\",\"_3\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Số trang (bắt đầu từ 1).\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"searchId\",\"in\":\"query\",\"description\":\"ID tìm kiếm, bắt buộc khi lấy trang &gt; 1. Dùng data.business_config.next_page.search_id từ phản hồi trước và dừng phân trang khi data.business_config.has_more bằng 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\":\"Kết quả tìm kiếm và chi tiết phân trang được cung cấp cho truy vấn từ khóa Douyin.\",\"properties\":{\"business_data\":{\"type\":\"array\",\"description\":\"Thẻ kết quả tìm kiếm. Cùng một video có thể xuất hiện trên nhiều trang. Sử dụng aweme_id để loại trừ kết quả video trùng lặp.\",\"items\":{\"type\":\"object\",\"description\":\"Một thẻ được trả về trong danh sách kết quả tìm kiếm.\",\"properties\":{\"data_id\":{\"type\":\"string\",\"description\":\"Định danh của thẻ trong phản hồi hiện tại.\"},\"type\":{\"type\":\"integer\",\"description\":\"Mã loại kết quả. Các loại kết quả được quan sát bao gồm 1 cho kết quả video và 66667 cho tìm kiếm liên quan.\"},\"data\":{\"type\":\"object\",\"description\":\"Nội dung cung cấp cho thẻ kết quả. Các trường phụ thuộc vào loại thẻ.\",\"properties\":{\"aweme_info\":{\"type\":\"object\",\"description\":\"Kết quả video Douyin khi thẻ bao gồm một video.\",\"properties\":{\"aweme_id\":{\"type\":\"string\",\"description\":\"ID video Douyin ổn định được mã hóa dưới dạng chuỗi. Sử dụng giá trị này để xác định video trên các trang tìm kiếm.\"},\"group_id\":{\"type\":\"string\",\"description\":\"Định danh nhóm được báo cáo cho bài đăng.\"},\"author_user_id\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ID số của tài khoản đăng bài.\"},\"desc\":{\"type\":\"string\",\"description\":\"Mô tả bài đăng cung cấp bởi Douyin.\"},\"caption\":{\"type\":\"string\",\"description\":\"Chú thích bài đăng cung cấp bởi Douyin.\"},\"item_title\":{\"type\":\"string\",\"description\":\"Tiêu đề bài đăng, khi có.\"},\"preview_title\":{\"type\":\"string\",\"description\":\"Tiêu đề cung cấp cho trực quan bài đăng.\"},\"create_time\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"Thời gian phát hành video dưới dạng thời gian Unix trong giây.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Khoảng thời gian video trong mili giây.\"},\"aweme_type\":{\"type\":\"integer\",\"description\":\"Mã loại bài đăng được báo cáo bởi Douyin.\"},\"media_type\":{\"type\":\"integer\",\"description\":\"Mã loại phương tiện được báo cáo bởi Douyin.\"},\"ip_attribution\":{\"type\":\"string\",\"description\":\"Thẻ khu vực IP được báo cáo bởi Douyin, khi có.\"},\"share_url\":{\"type\":\"string\",\"description\":\"URL chia sẻ video của Douyin.\"},\"share_info\":{\"type\":\"object\",\"description\":\"Thông tin meta cung cấp cho việc chia sẻ video.\",\"properties\":{\"share_url\":{\"type\":\"string\",\"description\":\"URL cung cấp cho việc chia sẻ video.\"},\"share_title\":{\"type\":\"string\",\"description\":\"Tiêu đề cung cấp cho việc chia sẻ video.\"},\"share_desc\":{\"type\":\"string\",\"description\":\"Mô tả cung cấp cho việc chia sẻ video.\"}}},\"text_extra\":{\"type\":[\"array\",\"null\"],\"description\":\"Hashtag và lời nhắc người dùng liên quan đến văn bản bài đăng. Danh sách này có thể là null.\",\"items\":{\"type\":\"object\",\"description\":\"Một ghi chú văn bản.\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Mã loại ghi chú được báo cáo bởi Douyin.\"},\"hashtag_id\":{\"type\":\"string\",\"description\":\"ID của hashtag được ghi chú khi ghi chú đại diện cho một hashtag.\"},\"hashtag_name\":{\"type\":\"string\",\"description\":\"Tên của hashtag được ghi chú.\"},\"user_id\":{\"type\":\"string\",\"description\":\"ID tài khoản Douyin khi ghi chú đề cập đến người dùng.\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ID tài khoản Douyin phụ cho người dùng được đề cập.\"},\"is_commerce\":{\"type\":\"boolean\",\"description\":\"Douyin có đánh dấu hashtag được ghi chú là thương mại hay không.\"}}}},\"cha_list\":{\"type\":[\"array\",\"null\"],\"description\":\"Chi tiết về chủ đề hoặc thử thách liên quan đến bài đăng. Danh sách này có thể là null.\",\"items\":{\"type\":\"object\",\"description\":\"Một chủ đề hoặc thử thách.\",\"properties\":{\"cid\":{\"type\":\"string\",\"description\":\"ID chủ đề hoặc thử thách Douyin.\"},\"cha_name\":{\"type\":\"string\",\"description\":\"Tên chủ đề hoặc thử thách.\"},\"desc\":{\"type\":\"string\",\"description\":\"Mô tả về chủ đề hoặc thử thách.\"},\"is_commerce\":{\"type\":\"boolean\",\"description\":\"Douyin có đánh dấu chủ đề hoặc thử thách là thương mại hay không.\"}}}},\"author\":{\"type\":\"object\",\"description\":\"Thông tin về danh tính tác giả được hiển thị cùng video.\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"ID tài khoản Douyin được mã hóa dưới dạng chuỗi.\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ID tài khoản Douyin phụ được sử dụng bởi các điểm cuối thông tin người dùng.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Tên hiển thị của tác giả.\"},\"unique_id\":{\"type\":\"string\",\"description\":\"Tên tài khoản Douyin công khai, nếu có.\"},\"short_id\":{\"type\":\"string\",\"description\":\"ID tài khoản ngắn được Douyin cung cấp.\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"Số lượng người theo dõi của tác giả.\"},\"is_verified\":{\"type\":\"boolean\",\"description\":\"Douyin có đánh dấu tác giả là người được xác thực hay không.\"},\"verification_type\":{\"type\":\"integer\",\"description\":\"Mã loại xác thực được Douyin cung cấp cho tác giả.\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"Hình đại diện của tác giả.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}},\"avatar_medium\":{\"type\":\"object\",\"description\":\"Avatar cỡ trung bình dành cho tác giả.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}},\"avatar_larger\":{\"type\":\"object\",\"description\":\"Avatar cỡ lớn dành cho tác giả.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}}}},\"statistics\":{\"type\":\"object\",\"description\":\"Số lượt tương tác được báo cáo cho video.\",\"properties\":{\"aweme_id\":{\"type\":\"string\",\"description\":\"ID video trên Douyin liên quan đến thống kê này.\"},\"digg_count\":{\"type\":\"integer\",\"description\":\"Số lượt thích của video theo dữ liệu được báo cáo.\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"Số bình luận của video theo dữ liệu được báo cáo.\"},\"collect_count\":{\"type\":\"integer\",\"description\":\"Số lượt lưu của video theo dữ liệu được báo cáo.\"},\"share_count\":{\"type\":\"integer\",\"description\":\"Số lượt chia sẻ của video theo dữ liệu được báo cáo.\"},\"forward_count\":{\"type\":\"integer\",\"description\":\"Số lần chuyển tiếp được cung cấp trong phản hồi.\"},\"download_count\":{\"type\":\"integer\",\"description\":\"Số lượt tải xuống của video theo dữ liệu được báo cáo.\"}}},\"video\":{\"type\":\"object\",\"description\":\"Thông tin chi tiết về video và các tùy chọn phát sóng có sẵn.\",\"properties\":{\"duration\":{\"type\":\"integer\",\"description\":\"Khoảng thời gian video trong mili giây.\"},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng video được Douyin báo cáo dưới dạng pixel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao video được Douyin báo cáo dưới dạng pixel.\"},\"format\":{\"type\":\"string\",\"description\":\"Định dạng video được Douyin báo cáo.\"},\"ratio\":{\"type\":\"string\",\"description\":\"Thông tin về độ phân giải được Douyin cung cấp.\"},\"has_watermark\":{\"type\":\"boolean\",\"description\":\"Tùy chọn dấu hiệu watermark từ thông tin chi tiết video.\"},\"play_addr\":{\"type\":\"object\",\"description\":\"Địa chỉ chính để phát video.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết.\"}}},\"play_addr_h264\":{\"type\":\"object\",\"description\":\"Địa chỉ dành cho phiên bản H.264 của video.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết.\"}}},\"play_addr_265\":{\"type\":\"object\",\"description\":\"Địa chỉ được cung cấp trong trường phát H.265.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết.\"}}},\"download_addr\":{\"type\":\"object\",\"description\":\"Địa chỉ tải video.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết.\"}}},\"cover\":{\"type\":\"object\",\"description\":\"Hình nền video.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}},\"origin_cover\":{\"type\":\"object\",\"description\":\"Hình nền trong trường hình nền gốc.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}},\"dynamic_cover\":{\"type\":\"object\",\"description\":\"Tài nguyên hình nền chuyển động khi có sẵn.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}},\"animated_cover\":{\"type\":\"object\",\"description\":\"Tài nguyên hình nền hoạt hình khi có sẵn.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}}}},\"bit_rate\":{\"type\":\"array\",\"description\":\"Thông tin chi tiết về mã hóa và tốc độ bitrate của video.\",\"items\":{\"type\":\"object\",\"description\":\"Một mã hóa phát sóng được cung cấp cho video.\",\"properties\":{\"bit_rate\":{\"type\":\"integer\",\"description\":\"Tốc độ mã hóa dưới dạng bit mỗi giây.\"},\"FPS\":{\"type\":\"integer\",\"description\":\"Tốc độ khung dưới dạng khung mỗi giây.\"},\"format\":{\"type\":\"string\",\"description\":\"Định dạng phương tiện được báo cáo cho mã hóa này.\"},\"gear_name\":{\"type\":\"string\",\"description\":\"Mã nhãn chế độ mã hóa được báo cáo cho biến thể này.\"},\"quality_type\":{\"type\":\"integer\",\"description\":\"Mã phân loại chất lượng được báo cáo cho quá trình mã hóa này.\"},\"is_h265\":{\"type\":\"integer\",\"description\":\"Cờ mã hóa H.265 được báo cáo cho biến thể này.\"},\"HDR_type\":{\"type\":\"string\",\"description\":\"Mã phân loại HDR được trả về cho quá trình mã hóa.\"},\"HDR_bit\":{\"type\":\"string\",\"description\":\"Mã độ bit HDR được trả về cho quá trình mã hóa.\"},\"play_addr\":{\"type\":\"object\",\"description\":\"Địa chỉ phát lại cho quá trình mã hóa này.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết.\"}}}}}}}},\"music\":{\"type\":\"object\",\"description\":\"Thông tin meta về âm nhạc hoặc âm thanh liên quan đến video.\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ID âm nhạc dưới dạng số. Sử dụng trình phân giải JSON không mất dữ liệu để giữ nguyên giá trị đầy đủ trong JavaScript.\"},\"id_str\":{\"type\":\"string\",\"description\":\"ID âm nhạc được mã hóa dưới dạng chuỗi.\"},\"mid\":{\"type\":\"string\",\"description\":\"ID âm nhạc được trả về trong trường giữa.\"},\"title\":{\"type\":\"string\",\"description\":\"Tiêu đề của bản nhạc hoặc bài hát.\"},\"author\":{\"type\":\"string\",\"description\":\"Tên nghệ sĩ hoặc người tạo âm thanh được trả về cùng với bản nhạc.\"},\"album\":{\"type\":\"string\",\"description\":\"Tiêu đề album khi được cung cấp.\"},\"is_original_sound\":{\"type\":\"boolean\",\"description\":\"Liệu Douyin có đánh dấu bản nhạc là bản gốc hay không.\"},\"cover_thumb\":{\"type\":\"object\",\"description\":\"Hình nền minh họa cho bản nhạc hoặc bài hát.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata.\"},\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata.\"}}},\"play_url\":{\"type\":\"object\",\"description\":\"Tài nguyên phát lại cho bản nhạc hoặc bài hát.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"ID tài nguyên được Douyin cung cấp.\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL của tài nguyên.\",\"items\":{\"type\":\"string\",\"description\":\"URL cung cấp cho tài nguyên.\"}}}}}}}},\"related_word_list\":{\"type\":\"array\",\"description\":\"Các từ khóa liên quan được đề xuất khi thẻ chứa chúng.\",\"items\":{\"type\":\"object\",\"description\":\"Một từ khóa liên quan được đề xuất.\",\"properties\":{\"related_word\":{\"type\":\"string\",\"description\":\"Từ khóa liên quan được đề xuất.\"}}}}}}}}},\"business_config\":{\"type\":\"object\",\"description\":\"Thông tin phân trang và truy vấn.\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"Từ khóa được báo cáo cho truy vấn này.\"},\"card_count\":{\"type\":\"integer\",\"description\":\"Số thẻ của trang kết quả theo dữ liệu được báo cáo.\"},\"has_more\":{\"type\":[\"integer\",\"string\"],\"description\":\"Dừng khi cờ này bằng 0, ngay cả khi ID truy vấn vẫn còn. Phản hồi kết thúc kết quả có thể chỉ chứa cờ phân trang.\"},\"next_page\":{\"type\":\"object\",\"description\":\"Thông tin tiếp tục khi được cung cấp.\",\"properties\":{\"search_id\":{\"type\":\"string\",\"description\":\"ID truy vấn cho trang tiếp theo. Chuyển nó thành searchId, tăng trang lên một và giữ nguyên từ khóa và bộ lọc không thay đổi. Các trang tiếp theo có thể trả về cùng ID truy vấn.\"}}}}},\"status_code\":{\"type\":[\"number\",\"string\"],\"description\":\"Mã trạng thái truy vấn Douyin khi được cung cấp.\"}}}}},\"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\":\"Các tham số hoặc nội dung yêu cầu không hợp lệ.\",\"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\":\"Tài khoản truy cập không hợp lệ hoặc không hoạt động.\",\"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\":\"Quyền truy cập bị từ chối.\",\"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\":\"Tốc độ yêu cầu hoặc giới hạn hàng ngày đã vượt quá.\",\"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\":\"Lỗi máy chủ nội bộ.\",\"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\":\"Dịch vụ tạm thời không khả dụng.\",\"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 sản xuất toàn cục (mặc định)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Tìm kiếm video trên Douyin (TikTok Trung Quốc) bằng từ khóa, với các bộ lọc sắp xếp, thời gian công bố, độ dài và trang. Trang tiếp theo yêu cầu ID tìm kiếm trước. Sử dụng để hỗ trợ việc khám phá nội dung và nghiên cứu xu hướng.</p>

## Tham số

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

| Tên | Vị trí | Kiểu dữ liệu | Bắt buộc | Mặc định | Mô tả |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Đúng | - | Token truy cập cho dịch vụ API này. |
| <code>keyword</code> | query | <code>string</code> | Đúng | - | Từ khóa tìm kiếm. |
| <code>sortType</code> | query | <code>string</code> | Không | <code>_0</code> | Tiêu chí sắp xếp kết quả tìm kiếm.<br /><br><br>Giá trị có sẵn:<br /><br>- <code>_0</code>: Chung<br /><br>- <code>_1</code>: Được thích nhiều nhất<br /><br>- <code>_2</code>: Mới nhất |
| <code>publishTime</code> | query | <code>string</code> | Không | <code>_0</code> | Loại phân loại theo khoảng thời gian phát hành video.<br /><br><br>Giá trị có sẵn:<br /><br>- <code>_0</code>: Không giới hạn<br /><br>- <code>_1</code>: 24 Giờ trước<br /><br>- <code>_7</code>: 7 Ngày trước<br /><br>- <code>_180</code>: 6 Tháng trước |
| <code>duration</code> | query | <code>string</code> | Không | <code>_0</code> | Độ dài video.<br /><br><br>Giá trị có sẵn:<br /><br>- <code>_0</code>: Không giới hạn<br /><br>- <code>_1</code>: Dưới 1 Phút<br /><br>- <code>_2</code>: 1-5 Phút<br /><br>- <code>_3</code>: Trên 5 Phút |
| <code>page</code> | query | <code>integer</code> | Không | <code>1</code> | Số trang (bắt đầu từ 1). |
| <code>searchId</code> | query | <code>string</code> | Không | - | ID tìm kiếm, bắt buộc khi lấy trang &gt; 1. Dùng data.business_config.next_page.search_id từ phản hồi trước và dừng phân trang khi data.business_config.has_more bằng 0. |

</div>

## Ví dụ mã hóa

::: 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 [🤖 Lời hướng dẫn AI]
Tôi muốn sử dụng API "Tìm kiếm video (V4)" từ JustOneAPI.
URL cơ sở: https://api.justoneapi.com.
Đường dẫn API: /api/douyin/search-video/v4?token=YOUR_API_KEY&keyword=VALUE
Điểm cuối API: BASE_URL + /api/douyin/search-video/v4?token=YOUR_API_KEY&keyword=VALUE
Phương thức HTTP: GET
Xác thực: Thêm tham số "token" vào URL.
Định nghĩa OpenAPI: https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-search-v4-vi.json

Tham số:
- token (query): Token truy cập cho dịch vụ API này. (Bắt buộc)
- keyword (query): Từ khóa tìm kiếm. (Bắt buộc)
- sortType (query): Tiêu chí sắp xếp kết quả tìm kiếm.

Giá trị có sẵn:
- `_0`: Chung
- `_1`: Được thích nhiều nhất
- `_2`: Mới nhất
- publishTime (query): Loại phân loại theo khoảng thời gian phát hành video.

Giá trị có sẵn:
- `_0`: Không giới hạn
- `_1`: 24 Giờ trước
- `_7`: 7 Ngày trước
- `_180`: 6 Tháng trước
- duration (query): Độ dài video.

Giá trị có sẵn:
- `_0`: Không giới hạn
- `_1`: Dưới 1 Phút
- `_2`: 1-5 Phút
- `_3`: Trên 5 Phút
- page (query): Số trang (bắt đầu từ 1).
- searchId (query): ID tìm kiếm, bắt buộc khi lấy trang > 1. Dùng data.business_config.next_page.search_id từ phản hồi trước và dừng phân trang khi data.business_config.has_more bằng 0.

Định dạng trả về: Xử lý an toàn phản hồi JSON hoặc văn bản dựa trên Content-Type thực tế.

Xử lý phản hồi và mã lỗi:
1. Đọc kết quả xử lý từ trường "code" trong nội dung phản hồi (mã 0 là thành công).
2. Thời gian chờ đề xuất: 120 giây. Nếu 120 giây quá dài, hãy dành ít nhất 60 giây. Một số yêu cầu có thể hết thời gian chờ trước khi có kết quả.
3. Mã kết quả:
   - 0: Thành công
   - 100: Token không hợp lệ hoặc đã bị vô hiệu hóa
   - 301: Không lấy được dữ liệu. Hãy thử lại.
   - 302: Vượt giới hạn tần suất gọi
   - 303: Vượt hạn mức trong ngày
   - 400: Tham số không hợp lệ
   - 500: Lỗi nội bộ máy chủ
   - 600: Không có quyền truy cập
   - 601: Không đủ số dư
   - 602: Đã chạm giới hạn ngân sách token
4. Mã 601 nghĩa là số dư dùng chung của tài khoản không đủ. Mã 602 nghĩa là token API đã chạm giới hạn ngân sách tích lũy riêng. Việc đặt ngân sách cho token không chuyển tiền khỏi số dư dùng chung.

Xin hãy giúp tôi viết một script bằng ngôn ngữ lập trình yêu thích để gọi API này và xử lý phản hồi.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Được cung cấp bởi các server 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"; // Được cung cấp bởi các server 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"; // Được cung cấp bởi các server 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" // Được cung cấp bởi các server 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'; // Được cung cấp bởi các server 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-vi.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Định nghĩa OpenAPI (JSON)]</a>
</div>

## Các trường trong phản hồi

Các trường chính trong phản hồi thành công (`code = 0`).

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

| Đường dẫn trường | Kiểu dữ liệu | Mô tả |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Kết quả tìm kiếm và chi tiết phân trang được cung cấp cho truy vấn từ khóa Douyin. |
| <code>data.business_data</code> | <code>array</code> | Thẻ kết quả tìm kiếm. Cùng một video có thể xuất hiện trên nhiều trang. Sử dụng aweme_id để loại trừ kết quả video trùng lặp. |
| <code>data.business_data[]</code> | <code>object</code> | Một thẻ được trả về trong danh sách kết quả tìm kiếm. |
| <code>data.business_data[].data_id</code> | <code>string</code> | Định danh của thẻ trong phản hồi hiện tại. |
| <code>data.business_data[].type</code> | <code>integer</code> | Mã loại kết quả. Các loại kết quả được quan sát bao gồm 1 cho kết quả video và 66667 cho tìm kiếm liên quan. |
| <code>data.business_data[].data</code> | <code>object</code> | Nội dung cung cấp cho thẻ kết quả. Các trường phụ thuộc vào loại thẻ. |
| <code>data.business_data[].data.aweme_info</code> | <code>object</code> | Kết quả video Douyin khi thẻ bao gồm một video. |
| <code>data.business_data[].data.aweme_info.aweme_id</code> | <code>string</code> | ID video Douyin ổn định được mã hóa dưới dạng chuỗi. Sử dụng giá trị này để xác định video trên các trang tìm kiếm. |
| <code>data.business_data[].data.aweme_info.group_id</code> | <code>string</code> | Định danh nhóm được báo cáo cho bài đăng. |
| <code>data.business_data[].data.aweme_info.author_user_id</code> | <code>integer</code> | ID số của tài khoản đăng bài. |
| <code>data.business_data[].data.aweme_info.desc</code> | <code>string</code> | Mô tả bài đăng cung cấp bởi Douyin. |
| <code>data.business_data[].data.aweme_info.caption</code> | <code>string</code> | Chú thích bài đăng cung cấp bởi Douyin. |
| <code>data.business_data[].data.aweme_info.item_title</code> | <code>string</code> | Tiêu đề bài đăng, khi có. |
| <code>data.business_data[].data.aweme_info.preview_title</code> | <code>string</code> | Tiêu đề cung cấp cho trực quan bài đăng. |
| <code>data.business_data[].data.aweme_info.create_time</code> | <code>integer</code> | Thời gian phát hành video dưới dạng thời gian Unix trong giây. |
| <code>data.business_data[].data.aweme_info.duration</code> | <code>integer</code> | Khoảng thời gian video trong mili giây. |
| <code>data.business_data[].data.aweme_info.aweme_type</code> | <code>integer</code> | Mã loại bài đăng được báo cáo bởi Douyin. |
| <code>data.business_data[].data.aweme_info.media_type</code> | <code>integer</code> | Mã loại phương tiện được báo cáo bởi Douyin. |
| <code>data.business_data[].data.aweme_info.ip_attribution</code> | <code>string</code> | Thẻ khu vực IP được báo cáo bởi Douyin, khi có. |
| <code>data.business_data[].data.aweme_info.share_url</code> | <code>string</code> | URL chia sẻ video của Douyin. |
| <code>data.business_data[].data.aweme_info.share_info</code> | <code>object</code> | Thông tin meta cung cấp cho việc chia sẻ video. |
| <code>data.business_data[].data.aweme_info.share_info.share_url</code> | <code>string</code> | URL cung cấp cho việc chia sẻ video. |
| <code>data.business_data[].data.aweme_info.share_info.share_title</code> | <code>string</code> | Tiêu đề cung cấp cho việc chia sẻ video. |
| <code>data.business_data[].data.aweme_info.share_info.share_desc</code> | <code>string</code> | Mô tả cung cấp cho việc chia sẻ video. |
| <code>data.business_data[].data.aweme_info.text_extra</code> | <code>array &#124; null</code> | Hashtag và lời nhắc người dùng liên quan đến văn bản bài đăng. Danh sách này có thể là null. |
| <code>data.business_data[].data.aweme_info.text_extra[]</code> | <code>object</code> | Một ghi chú văn bản. |
| <code>data.business_data[].data.aweme_info.text_extra[].type</code> | <code>integer</code> | Mã loại ghi chú được báo cáo bởi Douyin. |
| <code>data.business_data[].data.aweme_info.text_extra[].hashtag_id</code> | <code>string</code> | ID của hashtag được ghi chú khi ghi chú đại diện cho một hashtag. |
| <code>data.business_data[].data.aweme_info.text_extra[].hashtag_name</code> | <code>string</code> | Tên của hashtag được ghi chú. |
| <code>data.business_data[].data.aweme_info.text_extra[].user_id</code> | <code>string</code> | ID tài khoản Douyin khi ghi chú đề cập đến người dùng. |
| <code>data.business_data[].data.aweme_info.text_extra[].sec_uid</code> | <code>string</code> | ID tài khoản Douyin phụ cho người dùng được đề cập. |
| <code>data.business_data[].data.aweme_info.text_extra[].is_commerce</code> | <code>boolean</code> | Douyin có đánh dấu hashtag được ghi chú là thương mại hay không. |
| <code>data.business_data[].data.aweme_info.cha_list</code> | <code>array &#124; null</code> | Chi tiết về chủ đề hoặc thử thách liên quan đến bài đăng. Danh sách này có thể là null. |
| <code>data.business_data[].data.aweme_info.cha_list[]</code> | <code>object</code> | Một chủ đề hoặc thử thách. |
| <code>data.business_data[].data.aweme_info.cha_list[].cid</code> | <code>string</code> | ID chủ đề hoặc thử thách Douyin. |
| <code>data.business_data[].data.aweme_info.cha_list[].cha_name</code> | <code>string</code> | Tên chủ đề hoặc thử thách. |
| <code>data.business_data[].data.aweme_info.cha_list[].desc</code> | <code>string</code> | Mô tả về chủ đề hoặc thử thách. |
| <code>data.business_data[].data.aweme_info.cha_list[].is_commerce</code> | <code>boolean</code> | Douyin có đánh dấu chủ đề hoặc thử thách là thương mại hay không. |
| <code>data.business_data[].data.aweme_info.author</code> | <code>object</code> | Thông tin về danh tính tác giả được hiển thị cùng video. |
| <code>data.business_data[].data.aweme_info.author.uid</code> | <code>string</code> | ID tài khoản Douyin được mã hóa dưới dạng chuỗi. |
| <code>data.business_data[].data.aweme_info.author.sec_uid</code> | <code>string</code> | ID tài khoản Douyin phụ được sử dụng bởi các điểm cuối thông tin người dùng. |
| <code>data.business_data[].data.aweme_info.author.nickname</code> | <code>string</code> | Tên hiển thị của tác giả. |
| <code>data.business_data[].data.aweme_info.author.unique_id</code> | <code>string</code> | Tên tài khoản Douyin công khai, nếu có. |
| <code>data.business_data[].data.aweme_info.author.short_id</code> | <code>string</code> | ID tài khoản ngắn được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.author.follower_count</code> | <code>integer</code> | Số lượng người theo dõi của tác giả. |
| <code>data.business_data[].data.aweme_info.author.is_verified</code> | <code>boolean</code> | Douyin có đánh dấu tác giả là người được xác thực hay không. |
| <code>data.business_data[].data.aweme_info.author.verification_type</code> | <code>integer</code> | Mã loại xác thực được Douyin cung cấp cho tác giả. |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb</code> | <code>object</code> | Hình đại diện của tác giả. |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium</code> | <code>object</code> | Avatar cỡ trung bình dành cho tác giả. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger</code> | <code>object</code> | Avatar cỡ lớn dành cho tác giả. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.statistics</code> | <code>object</code> | Số lượt tương tác được báo cáo cho video. |
| <code>data.business_data[].data.aweme_info.statistics.aweme_id</code> | <code>string</code> | ID video trên Douyin liên quan đến thống kê này. |
| <code>data.business_data[].data.aweme_info.statistics.digg_count</code> | <code>integer</code> | Số lượt thích của video theo dữ liệu được báo cáo. |
| <code>data.business_data[].data.aweme_info.statistics.comment_count</code> | <code>integer</code> | Số bình luận của video theo dữ liệu được báo cáo. |
| <code>data.business_data[].data.aweme_info.statistics.collect_count</code> | <code>integer</code> | Số lượt lưu của video theo dữ liệu được báo cáo. |
| <code>data.business_data[].data.aweme_info.statistics.share_count</code> | <code>integer</code> | Số lượt chia sẻ của video theo dữ liệu được báo cáo. |
| <code>data.business_data[].data.aweme_info.statistics.forward_count</code> | <code>integer</code> | Số lần chuyển tiếp được cung cấp trong phản hồi. |
| <code>data.business_data[].data.aweme_info.statistics.download_count</code> | <code>integer</code> | Số lượt tải xuống của video theo dữ liệu được báo cáo. |
| <code>data.business_data[].data.aweme_info.video</code> | <code>object</code> | Thông tin chi tiết về video và các tùy chọn phát sóng có sẵn. |
| <code>data.business_data[].data.aweme_info.video.duration</code> | <code>integer</code> | Khoảng thời gian video trong mili giây. |
| <code>data.business_data[].data.aweme_info.video.width</code> | <code>integer</code> | Chiều rộng video được Douyin báo cáo dưới dạng pixel. |
| <code>data.business_data[].data.aweme_info.video.height</code> | <code>integer</code> | Chiều cao video được Douyin báo cáo dưới dạng pixel. |
| <code>data.business_data[].data.aweme_info.video.format</code> | <code>string</code> | Định dạng video được Douyin báo cáo. |
| <code>data.business_data[].data.aweme_info.video.ratio</code> | <code>string</code> | Thông tin về độ phân giải được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.has_watermark</code> | <code>boolean</code> | Tùy chọn dấu hiệu watermark từ thông tin chi tiết video. |
| <code>data.business_data[].data.aweme_info.video.play_addr</code> | <code>object</code> | Địa chỉ chính để phát video. |
| <code>data.business_data[].data.aweme_info.video.play_addr.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.play_addr.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.play_addr.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.play_addr.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.play_addr.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.play_addr.data_size</code> | <code>integer</code> | Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264</code> | <code>object</code> | Địa chỉ dành cho phiên bản H.264 của video. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.data_size</code> | <code>integer</code> | Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265</code> | <code>object</code> | Địa chỉ được cung cấp trong trường phát H.265. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.data_size</code> | <code>integer</code> | Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết. |
| <code>data.business_data[].data.aweme_info.video.download_addr</code> | <code>object</code> | Địa chỉ tải video. |
| <code>data.business_data[].data.aweme_info.video.download_addr.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.download_addr.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.download_addr.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.download_addr.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.download_addr.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.download_addr.data_size</code> | <code>integer</code> | Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết. |
| <code>data.business_data[].data.aweme_info.video.cover</code> | <code>object</code> | Hình nền video. |
| <code>data.business_data[].data.aweme_info.video.cover.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.cover.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.cover.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.cover.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.cover.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.origin_cover</code> | <code>object</code> | Hình nền trong trường hình nền gốc. |
| <code>data.business_data[].data.aweme_info.video.origin_cover.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.origin_cover.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.origin_cover.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.origin_cover.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.origin_cover.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover</code> | <code>object</code> | Tài nguyên hình nền chuyển động khi có sẵn. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.animated_cover</code> | <code>object</code> | Tài nguyên hình nền hoạt hình khi có sẵn. |
| <code>data.business_data[].data.aweme_info.video.animated_cover.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.animated_cover.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.animated_cover.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.bit_rate</code> | <code>array</code> | Thông tin chi tiết về mã hóa và tốc độ bitrate của video. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[]</code> | <code>object</code> | Một mã hóa phát sóng được cung cấp cho video. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].bit_rate</code> | <code>integer</code> | Tốc độ mã hóa dưới dạng bit mỗi giây. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].FPS</code> | <code>integer</code> | Tốc độ khung dưới dạng khung mỗi giây. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].format</code> | <code>string</code> | Định dạng phương tiện được báo cáo cho mã hóa này. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].gear_name</code> | <code>string</code> | Mã nhãn chế độ mã hóa được báo cáo cho biến thể này. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].quality_type</code> | <code>integer</code> | Mã phân loại chất lượng được báo cáo cho quá trình mã hóa này. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].is_h265</code> | <code>integer</code> | Cờ mã hóa H.265 được báo cáo cho biến thể này. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].HDR_type</code> | <code>string</code> | Mã phân loại HDR được trả về cho quá trình mã hóa. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].HDR_bit</code> | <code>string</code> | Mã độ bit HDR được trả về cho quá trình mã hóa. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr</code> | <code>object</code> | Địa chỉ phát lại cho quá trình mã hóa này. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.data_size</code> | <code>integer</code> | Kích thước tệp tài nguyên dưới dạng byte được báo cáo trong thông tin chi tiết. |
| <code>data.business_data[].data.aweme_info.music</code> | <code>object</code> | Thông tin meta về âm nhạc hoặc âm thanh liên quan đến video. |
| <code>data.business_data[].data.aweme_info.music.id</code> | <code>integer</code> | ID âm nhạc dưới dạng số. Sử dụng trình phân giải JSON không mất dữ liệu để giữ nguyên giá trị đầy đủ trong JavaScript. |
| <code>data.business_data[].data.aweme_info.music.id_str</code> | <code>string</code> | ID âm nhạc được mã hóa dưới dạng chuỗi. |
| <code>data.business_data[].data.aweme_info.music.mid</code> | <code>string</code> | ID âm nhạc được trả về trong trường giữa. |
| <code>data.business_data[].data.aweme_info.music.title</code> | <code>string</code> | Tiêu đề của bản nhạc hoặc bài hát. |
| <code>data.business_data[].data.aweme_info.music.author</code> | <code>string</code> | Tên nghệ sĩ hoặc người tạo âm thanh được trả về cùng với bản nhạc. |
| <code>data.business_data[].data.aweme_info.music.album</code> | <code>string</code> | Tiêu đề album khi được cung cấp. |
| <code>data.business_data[].data.aweme_info.music.is_original_sound</code> | <code>boolean</code> | Liệu Douyin có đánh dấu bản nhạc là bản gốc hay không. |
| <code>data.business_data[].data.aweme_info.music.cover_thumb</code> | <code>object</code> | Hình nền minh họa cho bản nhạc hoặc bài hát. |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.width</code> | <code>integer</code> | Chiều rộng của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.height</code> | <code>integer</code> | Chiều cao của tài nguyên dưới dạng pixel được ghi trong metadata. |
| <code>data.business_data[].data.aweme_info.music.play_url</code> | <code>object</code> | Tài nguyên phát lại cho bản nhạc hoặc bài hát. |
| <code>data.business_data[].data.aweme_info.music.play_url.uri</code> | <code>string</code> | ID tài nguyên được Douyin cung cấp. |
| <code>data.business_data[].data.aweme_info.music.play_url.url_list</code> | <code>array</code> | URL của tài nguyên. |
| <code>data.business_data[].data.aweme_info.music.play_url.url_list[]</code> | <code>string</code> | URL cung cấp cho tài nguyên. |
| <code>data.business_data[].data.related_word_list</code> | <code>array</code> | Các từ khóa liên quan được đề xuất khi thẻ chứa chúng. |
| <code>data.business_data[].data.related_word_list[]</code> | <code>object</code> | Một từ khóa liên quan được đề xuất. |
| <code>data.business_data[].data.related_word_list[].related_word</code> | <code>string</code> | Từ khóa liên quan được đề xuất. |
| <code>data.business_config</code> | <code>object</code> | Thông tin phân trang và truy vấn. |
| <code>data.business_config.keyword</code> | <code>string</code> | Từ khóa được báo cáo cho truy vấn này. |
| <code>data.business_config.card_count</code> | <code>integer</code> | Số thẻ của trang kết quả theo dữ liệu được báo cáo. |
| <code>data.business_config.has_more</code> | <code>integer &#124; string</code> | Dừng khi cờ này bằng 0, ngay cả khi ID truy vấn vẫn còn. Phản hồi kết thúc kết quả có thể chỉ chứa cờ phân trang. |
| <code>data.business_config.next_page</code> | <code>object</code> | Thông tin tiếp tục khi được cung cấp. |
| <code>data.business_config.next_page.search_id</code> | <code>string</code> | ID truy vấn cho trang tiếp theo. Chuyển nó thành searchId, tăng trang lên một và giữ nguyên từ khóa và bộ lọc không thay đổi. Các trang tiếp theo có thể trả về cùng ID truy vấn. |
| <code>data.status_code</code> | <code>number &#124; string</code> | Mã trạng thái truy vấn Douyin khi được cung cấp. |

</div>

## Ví dụ phản hồi

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

