countintegerbắt buộc
Number per page, default is 16
https://api.sandbase.ai/v1/api/douyin/web/knowledge-awemeRetrieves a feed of knowledge-focused videos from Douyin Web. Supports pagination controls using item count and refresh index parameters.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a feed of knowledge-focused videos from Douyin Web. The request needs count (items per page) and can take refresh_index (paging index). Each item in aweme_list holds the video ID, caption, author, and publish time.
aweme_id values from the feed, then fetch full details for the videos you want to track.author_user_id.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/knowledge-aweme" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"count": 16, "refresh_index": 1}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
count | integer | Yes | Number per page, default is 16 |
refresh_index | integer | No | Paging index, default is 1 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_list": [
{
"ad_candidates": null,
"ai_follow_images": null,
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"avatar_thumb": {
"height": 720,
"uri": "100x100/aweme-avatar/tos-cn-avt-0015_dd4b05b4fccb80527688626b4733df15",
"url_list": [
"https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_dd4b05b4f…"
],
"width": 720
},
"cha_list": null,
"common_interest": null,
"cover_url": [
{
"height": 720,
"uri": "c8510002be9a3a61aad2",
"url_list": [
"https://p3-pc-sign.douyinpic.com/obj/c8510002be9a3a61aad2?lk3s=138a59ce&x-expire…"
],
"width": 720
}
],
"custom_verify": "",
"enterprise_verify_reason": "",
"follow_status": 0,
"follower_status": 0
},
"author_user_id": 1561572678432,
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_id": "7679043412167776442",
"aweme_listen_struct": {
"trace_info": "{\"copyright_not_speech\":\"false\",\"copyright_reason\":\"not_intercept\",\"copyright_ta…"
},
"aweme_type": 0,
"can_cache_to_local": true,
"caption": "猜猜我们这幅花卉浮雕值多少钱?\n#狼尾兄弟浮雕壁画 #抖音青年艺术家计划 #青年创作者扶持计划 #抖音青年艺术家 #vlog十亿流量扶持计划"
}
],
"chime_video_list": null,
"filter_infos": null,
"log_pb": {
"impr_id": "20261103153229F7FA9BD2BA0539DE78F4"
},
"status_code": 0,
"video_cover_image_list": null,
"video_cover_url_list": null
}
| Field | Meaning |
|---|---|
aweme_list[] | List of videos in this page of the feed. |
aweme_list[].aweme_id / aweme_list[].group_id | ID of the video. Both fields show the same value in the sample. |
aweme_list[].desc | Full video description, including hashtags. |
aweme_list[].caption | Shorter caption text of the video. It may be cut off compared with desc. |
aweme_list[].create_time | Publish time of the video as a Unix timestamp in seconds. |
aweme_list[].duration | Length of the video. The values (for example 469934) look like milliseconds. |
aweme_list[].author_user_id | Numeric ID of the account that posted the video. |
aweme_list[].author.avatar_thumb.url_list[] | URLs of the author's small avatar image. |
aweme_list[].chapter_abstract | Short text summary of the video. Only some videos have it. |
aweme_list[].chapter_list[].desc / aweme_list[].chapter_list[].detail / aweme_list[].chapter_list[].timestamp | Chapter title, chapter description, and chapter start position. The timestamp values (for example 18000) look like milliseconds. Only some videos have chapters. |
count is required. refresh_index is the paging index and starts at 1.null when the video does not use them, so check for null before reading chapter_list or chapter_abstract.aweme_id to Douyin Single Video Details (V1) or Douyin Batch Video Information (Web).$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/knowledge-aweme" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 16,
"refresh_index": 1
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
countintegerbắt buộcNumber per page, default is 16
refresh_indexintegerPaging index, default is 1
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin Web Knowledge VideosAPI này Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.03 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/web/knowledge-aweme với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: count (integer). Tùy chọn: refresh_index (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Web Knowledge Videos chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.