query_idstringbắt buộc
Query ID (topic_id / hot_id obtained from billboard endpoints)
https://api.sandbase.ai/v1/api/douyin/creator/creator-material-center-relatedReturns related videos for a specific topic, hot spot, prop, or music entry from the Douyin creator material center. Supports pagination controls and filtering by billboard type.
[
{
"data": {
"status_code": 5,
"status_msg": "参数不合法"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a page of related videos for one topic, hot spot, prop, or music entry from the Douyin creator material center. Each item has a video ID and a cover image. The only required input is query_id.
item_id values to a video detail API to get full video data.curl -X POST "https://api.sandbase.ai/v1/api/douyin/creator/creator-material-center-related" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query_id": "2488260"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query_id | string | Yes | Query ID (topic_id / hot_id obtained from billboard endpoints) |
billboard_type | integer | No | Billboard type |
limit | integer | No | Items per page (default 20, range 1-100) |
offset | integer | No | Offset (starting position for pagination) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"has_more": true,
"item_list": [
{
"cover": {
"uri": "tos-cn-i-0813/oMBvhpgRAAPibABGCovoqEAAgIaa4kiwCwAKI",
"url_list": [
"https://p11-sign.douyinpic.com/tos-cn-i-0813/oMBvhpgRAAPibABGCovoqEAAgIaa4kiwCwA…"
]
},
"item_id": "7638565167143477106",
"sec_item_id": "@ifZv67JOREr5tclG6L3ots14py+WYSjzLKkqOKVpjpj5rnq+EGQpezfFbyAFrlLw"
}
],
"status_code": 0,
"status_msg": "",
"total": 500
}
| Field | Meaning |
|---|---|
item_list[] | The list of related videos on this page. |
item_list[].item_id | The ID of the video, as a numeric string. |
item_list[].sec_item_id | An encoded form of the video ID. It starts with @. |
item_list[].cover.uri | The storage path of the cover image. |
item_list[].cover.url_list[] | Signed cover image URLs for the same image. The URLs use different hosts and include an expiry value. |
has_more | true when more videos are available after this page. |
total | The total count of related videos for this query_id. The sample shows 500. |
status_code / status_msg | The status of the call. 0 with an empty message appears on success. |
query_id from a billboard endpoint. It is the topic_id or hot_id of an entry. Try Douyin Creator Material Center Billboard or Douyin Creator Hot Topic Billboard.limit (1 to 100, default 20) and offset. Keep requesting while has_more is true.item_id to get more about a video.billboard_type is an optional integer filter.$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/creator/creator-material-center-related" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query_id": "example"
}'Đặ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.
query_idstringbắt buộcQuery ID (topic_id / hot_id obtained from billboard endpoints)
billboard_typeintegerBillboard type
limitintegerItems per page (default 20, range 1-100)
offsetintegerOffset (starting position for pagination)
Đâ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.
[
{
"data": {
"status_code": 5,
"status_msg": "参数不合法"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
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.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/creator/creator-material-center-related 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: query_id (string). Tùy chọn: billboard_type (integer), limit (integer) và offset (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 Material Center Related 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.