oAuthorIdstringbắt buộc
Xingtu author ID
https://api.sandbase.ai/v1/api/douyin/xingtu/author-homepage-videos-v1Get Author Homepage Videos V1 on Douyin. Returns the platform data as structured JSON.
Đầ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 from a Douyin author's Xingtu homepage, with title, engagement counts, and rates for each video. It needs the Xingtu author ID in oAuthorId.
finish_rate and interact_rate across an author's videos to find the content that holds attention best.pagination.videoType to check how each type performs.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/author-homepage-videos-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"oAuthorId": "7386881810501730341", "page": 1, "videoType": "ALL", "onlyAssign": false}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
oAuthorId | string | Yes | Xingtu author ID |
onlyAssign | boolean | No | Only return assigned videos |
page | integer | No | Page number, starts from 1, 20 items per page |
videoType | string | No | PERSONAL/XINGTU / Traffic type: ALL/PERSONAL/XINGTU |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"items": [
{
"comment_cnt": "2376",
"content_theme_labels": [],
"cover_uri": "tos-cn-i-0813c000-ce/oUKnEYF9AgQvhS5dJADAIyue7CVg7FDBAeECfU",
"create_time": "1792928944",
"duration": 761.334,
"finish_rate": 0.116147,
"interact_rate": 0.063783,
"item_id": "7700571178000135673",
"like_cnt": "234612",
"title": "在大量的聊天中发现了少量的化妆技巧 #vlog #宝妈 #发疯文学 #精神状态 #化妆",
"url": "https://www.iesdouyin.com/share/video/7700571178000135673/?region=CN&mid=7700571…",
"video_id": "v2800fgi0000dbeumffog65m66333310"
}
],
"pagination": {
"has_more": true,
"limit": 20,
"page": 1,
"total_count": 55
}
}
| Field | Meaning |
|---|---|
items[].item_id / items[].video_id | Identifiers for the video. item_id is a numeric string that also appears in the share url. video_id is a separate string ID. |
items[].title | Video caption, including its hashtags. |
items[].create_time | Creation time of the video as a Unix timestamp in seconds, returned as a string. |
items[].duration | Length of the video. The values look like seconds (for example 761.334). |
items[].watch_cnt / items[].like_cnt / items[].comment_cnt | View, like and comment counts for the video. They are returned as strings. |
items[].finish_rate / items[].interact_rate | Completion rate and interaction rate for the video, as decimals (for example 0.116147). |
items[].url | Share link to the video on Douyin. |
items[].cover_uri | Path of the video cover image. content_theme_labels lists theme labels and can be empty. |
pagination.page / pagination.limit | Current page number and the number of items per page. |
pagination.has_more / pagination.total_count | has_more shows whether another page exists. total_count is the total number of videos for this query. |
page while pagination.has_more is true.videoType accepts ALL, PERSONAL or XINGTU. Set onlyAssign to true to return only assigned videos.$0.02 per successful call. Failed calls are not charged.
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/xingtu/author-homepage-videos-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"oAuthorId": "7386881810501730341",
"videoType": "ALL",
"onlyAssign": false
}'Đặ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.
oAuthorIdstringbắt buộcXingtu author ID
pageintegerPage number, starts from 1, 20 items per page
Mặc định: 1
videoTypestringPERSONAL/XINGTU / Traffic type: ALL/PERSONAL/XINGTU
Mặc định: "ALL"
onlyAssignbooleanOnly return assigned videos
Mặc định: false
Đâ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 | $0.02 mỗi lần gọi | JSON |
Douyin | $0.02 mỗi lần gọi | JSON |
Douyin | $0.02 mỗi lần gọi | JSON |
Douyin | $0.02 mỗi lần gọi | JSON |
Douyin | $0.02 mỗi lần gọi | JSON |
Douyin | $0.02 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/xingtu/author-homepage-videos-v1 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.02 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: oAuthorId (string). Tùy chọn: page (integer), videoType (string) và onlyAssign (boolean). 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 Author Homepage Videos V1 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.