secUidstringbắt buộc
The unique user ID (sec_user_id) on Douyin.
https://api.sandbase.ai/v1/api/douyin/user-video-listGet videos published by a Douyin (TikTok China) user, with cursor pagination and newest or most-popular sorting. Use it to browse or monitor a creator's public video output.
Đầ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 page of videos published by one Douyin user, including the caption, hashtags, author info and creation time of each video. It needs the user's secUid and can sort by newest or most popular.
LATEST sort.MOST_POPULAR to see which content worked best.aweme_id values to pass to a video detail or statistics API.curl -X POST "https://api.sandbase.ai/v1/api/douyin/user-video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"secUid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
secUid | string | Yes | The unique user ID (sec_user_id) on Douyin. |
maxCursor | string | No | Pagination cursor; use 0 for the first page, and the max_cursor from the previous response for subsequent pages. |
sortType | string | No | Sort order: LATEST for newest first (default), or MOST_POPULAR for most popular first. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_list": [
{
"activity_video_type": 0,
"admire_auth": {
"admire_button": 1,
"author_can_admire": 0,
"exit_admire_in_aweme_post": 0,
"is_admire": 0,
"is_click_admire_icon_recently": 0,
"is_fifty_admire_author_stable_fans": 0,
"is_iron_fans_in_aweme_post": 0,
"is_show_admire_button": 0
},
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"account_cert_info": "{}",
"allow_story_normal_like": true,
"authority_status": 0,
"avatar_168x168": {
"height": 720,
"uri": "168x168/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "300x300/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16…"
],
"width": 720
},
"avatar_larger": {
"height": 720,
"uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_1fcfb510bb…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "720x720/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde…"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "100x100/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde…"
],
"width": 720
}
},
"author_mask_tag": 0,
"author_user_id": 60065294161,
"aweme_acl": {
"download_mask_panel": {
"code": 1,
"show_type": 0
}
},
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_id": "6993909291686104350",
"aweme_listen_struct": {
"listen_diversion": {
"extra": [
{
"key": "new_guide_prefix",
"val": "下载汽水"
}
],
"popup_scene": 4,
"side_desc": "听更多精彩内容",
"sub_title_type": "relation"
},
"trace_info": "{\"copyright_not_speech\":\"true\",\"copyright_reason\":\"label_risk_music_or_speech\",\"…"
},
"aweme_type": 68
}
],
"extra": {
"fatal_item_ids": [],
"logid": "20261103153222349B77C71B05BAD0534C",
"now": 1793691143000
},
"has_more": 1,
"log_pb": {
"impr_id": "20261103153222349B77C71B05BAD0534C"
},
"max_cursor": 1792554922000,
"min_cursor": 1793600601000,
"post_serial": 2,
"replace_series_cover": 1,
"request_item_cursor": 0,
"sec_uid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24",
"status_code": 0,
"status_msg": ""
}
| Field | Meaning |
|---|---|
aweme_list[] | One published video per item. Each item is the full video record. |
aweme_list[].aweme_id | ID of the video, as a string. Use it to look up the same video in other APIs. |
aweme_list[].desc | Caption text of the video, including inline hashtags such as #家常菜. |
aweme_list[].create_time | Publish time of the video as a Unix timestamp in seconds. |
aweme_list[].cha_list[].cha_name / aweme_list[].cha_list[].cid | Name and ID of each hashtag (challenge) attached to the video. |
aweme_list[].author_user_id | Numeric ID of the account that published the video. |
aweme_list[].author.avatar_larger.url_list | Image URLs for the author's avatar, offered in several sizes and formats such as .heic and .jpeg. |
aweme_list[].city | City code of the video, for example 371300. |
aweme_list[].aweme_control.can_comment / aweme_list[].aweme_control.can_share | Flags that show whether comments and sharing are allowed on the video. |
aweme_list[].commerce_info.is_ad | true if the video is marked as an ad. |
secUid (the sec_user_id) from a Douyin user profile. The Douyin User Profile (App V3) API is a place to look it up.maxCursor as 0 for the first page. For later pages, pass the max_cursor value from the previous response.sortType accepts LATEST (default) or MOST_POPULAR.aweme_id values to Douyin Video Statistics.$0.014286 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/user-video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"secUid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24",
"sortType": "LATEST",
"maxCursor": "0"
}'Đặ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.
secUidstringbắt buộcThe unique user ID (sec_user_id) on Douyin.
maxCursorstringPagination cursor; use 0 for the first page, and the `max_cursor` from the previous response for subsequent pages.
Mặc định: "0"
sortTypestringSort order: `LATEST` for newest first (default), or `MOST_POPULAR` for most popular first.
Mặc định: "LATEST"
Giá trị có thể dùng: LATEST, MOST_POPULAR
Đâ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 User Published VideosAPI này Douyin | $0.014286 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.001 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/user-video-list 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.014286 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: secUid (string). Tùy chọn: maxCursor (string) và sortType (một trong số LATEST, MOST_POPULAR). 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 User Published 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.