end_datestringbắt buộc
End date YYYYMMDD (inclusive)
https://api.sandbase.ai/v1/api/douyin/index/content-interact-trendReturns engagement rate trends over time for a specific Douyin content category between selected start and end dates.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"interact_trend": {
"rate_list": [
{
"date": "20260314",
"rate": 0.02431060923716989
},
{
"date": "20260315",
"rate": 0.023702515049479705
},
{
"date": "20260316",
"rate": 0.023357267886874818
},
"… 29 more items in the full response"
],
"top_list": [
{
"date": "20260404",
"item_list": [
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/okAZEAzpeERA89MIF8QfCFo0bDiaRKE0eR9w2w~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=vz8Q3ER8GN37YbKJCqIqvHI3YFU%3D",
"item_id": "7624773628463404667",
"title": "假装小手被绑住 动不了咯#一人分饰多角",
"url": "https://www.douyin.com/share/video/7624773628463404667"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/oMjIAMnSiiA7FzEgI9FBDOUM2ubje4pPhAqfB5~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=QYtM9dBSgHWSv%2B77cnhDXuiWiGI%3D",
"item_id": "7624435430317952290",
"title": "几个姐妹关系最差的时候,也莫过于伯牙子期了吧(素材来源于@川M小付·三女坑爹记 ) #万万没想到 #搞笑 #抽象 #父女 #整蛊",
"url": "https://www.douyin.com/share/video/7624435430317952290"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/oMeD08gfGA22MvMgDtMQAFEIBCPWQKzfnhfC2M~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=1zUhKVPWgNCZAbbH1VdvZwVooHE%3D",
"item_id": "7624457753729221594",
"title": "#张大校长",
"url": "https://www.douyin.com/share/video/7624457753729221594"
}
]
},
{
"date": "20260401",
"item_list": [
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/o8jEIODhFvJzyVLtH9rGABfA0xPIIoCfwp1HHE~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=lAxVQXRh2Ff3rHQdeBYV33p8A0Q%3D",
"item_id": "7623280139107218609",
"title": "学习资料自取@雨儿的小窝 正确吃芒果的方法#如何优雅的吃芒果🥭#",
"url": "https://www.douyin.com/share/video/7623280139107218609"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/osEUIoGfJwbIdOA9omzpeCFpGaBDYjwEA1rWMB~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=Ppyvcm%2BMyFOAVjZJ9az3UrUgbOI%3D",
"item_id": "7623638709254122469",
"title": "男生上车迷惑行为#真实还原",
"url": "https://www.douyin.com/share/video/7623638709254122469"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/oIDJMHfBEDiKpFWArp0CAmeeEzIEoIww9iPCpH~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=Q21lUxXsMIWgEhCFJjOXfBbju%2Bs%3D",
"item_id": "7623644707231046075",
"title": "《以前愚人节VS现在愚人节》 #内容过于真实 #搞笑 #愚人节",
"url": "https://www.douyin.com/share/video/7623644707231046075"
}
]
},
{
"date": "20260410",
"item_list": [
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/oMCNAnistLjfABTAITIGuReYQhZyAnf4BGYzX7~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=Dh%2BVhuApgurx6KE4TZUESJVoo3U%3D",
"item_id": "7627018693574472564",
"title": "🆒#每个动作都是用汗水换来的",
"url": "https://www.douyin.com/share/video/7627018693574472564"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/o8uwfLE2MGnGX4DerAsgAkfSIenNvaCIW3QPVG~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=JCIantX5u7jv6kv6XyHwZaQR7L4%3D",
"item_id": "7626661207857487561",
"title": "#春娇与志明",
"url": "https://www.douyin.com/share/video/7626661207857487561"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/o0MXvCKIhdIiDoS0PqB9dla6iBdLU2AmBEJEA~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=HWerXJ84Zw8DKMSks%2BEkuynumtc%3D",
"item_id": "7625906822378042981",
"title": "豆包,你过来一下 #豆包 #相信ai的下场 #墓志铭#搞笑视频",
"url": "https://www.douyin.com/share/video/7625906822378042981"
}
]
}
]
}
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a daily engagement rate series for one Douyin content category between a start and end date. It also returns top videos for some dates in that range. The input is a category tag_id plus start_date and end_date in YYYYMMDD format.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-interact-trend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "20260414", "start_date": "20260314", "tag_id": "601"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD (inclusive) |
start_date | string | Yes | Start date YYYYMMDD (inclusive) |
tag_id | string | Yes | Category ID (required, does NOT support 0=all, must pass a specific category ID) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"interact_trend": {
"rate_list": [
{
"date": "20260314",
"rate": 0.02431060923716989
}
],
"top_list": [
{
"date": "20260404",
"item_list": [
{
"img": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/okAZEAzpeERA89MIF8QfC…",
"item_id": "7624773628463404667",
"title": "假装小手被绑住 动不了咯#一人分饰多角",
"url": "https://www.douyin.com/share/video/7624773628463404667"
}
]
}
]
}
}
| Field | Meaning |
|---|---|
interact_trend.rate_list[].date | Day of the data point, formatted as YYYYMMDD. |
interact_trend.rate_list[].rate | Engagement rate for the category on that day, as a decimal fraction. For example, 0.0243 is about 2.4%. |
interact_trend.top_list[].date | Date for which top videos are listed. Only some dates in the range appear here. |
interact_trend.top_list[].item_list[].item_id | ID of a top video for that date. |
interact_trend.top_list[].item_list[].title | Video caption, including hashtags. |
interact_trend.top_list[].item_list[].url | Share link to the video on douyin.com. |
interact_trend.top_list[].item_list[].img | Cover image URL for the video. The URL carries an expiry parameter, so it may stop working. |
BaseResp.StatusCode / BaseResp.StatusMessage | Request status. 0 with an empty message appears in a successful response. |
tag_id must be a specific category ID. 0 for all categories is not supported.start_date and end_date are inclusive.top_list does not need to contain every date that appears in rate_list.$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/index/content-interact-trend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_id": "601",
"end_date": "20260414",
"start_date": "20260314"
}'Đặ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.
end_datestringbắt buộcEnd date YYYYMMDD (inclusive)
start_datestringbắt buộcStart date YYYYMMDD (inclusive)
tag_idstringbắt buộcCategory ID (**required, does NOT support 0=all**, must pass a specific category ID)
Đâ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": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"interact_trend": {
"rate_list": [
{
"date": "20260314",
"rate": 0.02431060923716989
},
{
"date": "20260315",
"rate": 0.023702515049479705
},
{
"date": "20260316",
"rate": 0.023357267886874818
},
"… 29 more items in the full response"
],
"top_list": [
{
"date": "20260404",
"item_list": [
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/okAZEAzpeERA89MIF8QfCFo0bDiaRKE0eR9w2w~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=vz8Q3ER8GN37YbKJCqIqvHI3YFU%3D",
"item_id": "7624773628463404667",
"title": "假装小手被绑住 动不了咯#一人分饰多角",
"url": "https://www.douyin.com/share/video/7624773628463404667"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/oMjIAMnSiiA7FzEgI9FBDOUM2ubje4pPhAqfB5~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=QYtM9dBSgHWSv%2B77cnhDXuiWiGI%3D",
"item_id": "7624435430317952290",
"title": "几个姐妹关系最差的时候,也莫过于伯牙子期了吧(素材来源于@川M小付·三女坑爹记 ) #万万没想到 #搞笑 #抽象 #父女 #整蛊",
"url": "https://www.douyin.com/share/video/7624435430317952290"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/oMeD08gfGA22MvMgDtMQAFEIBCPWQKzfnhfC2M~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=1zUhKVPWgNCZAbbH1VdvZwVooHE%3D",
"item_id": "7624457753729221594",
"title": "#张大校长",
"url": "https://www.douyin.com/share/video/7624457753729221594"
}
]
},
{
"date": "20260401",
"item_list": [
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/o8jEIODhFvJzyVLtH9rGABfA0xPIIoCfwp1HHE~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=lAxVQXRh2Ff3rHQdeBYV33p8A0Q%3D",
"item_id": "7623280139107218609",
"title": "学习资料自取@雨儿的小窝 正确吃芒果的方法#如何优雅的吃芒果🥭#",
"url": "https://www.douyin.com/share/video/7623280139107218609"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/osEUIoGfJwbIdOA9omzpeCFpGaBDYjwEA1rWMB~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=Ppyvcm%2BMyFOAVjZJ9az3UrUgbOI%3D",
"item_id": "7623638709254122469",
"title": "男生上车迷惑行为#真实还原",
"url": "https://www.douyin.com/share/video/7623638709254122469"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/oIDJMHfBEDiKpFWArp0CAmeeEzIEoIww9iPCpH~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=Q21lUxXsMIWgEhCFJjOXfBbju%2Bs%3D",
"item_id": "7623644707231046075",
"title": "《以前愚人节VS现在愚人节》 #内容过于真实 #搞笑 #愚人节",
"url": "https://www.douyin.com/share/video/7623644707231046075"
}
]
},
{
"date": "20260410",
"item_list": [
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/oMCNAnistLjfABTAITIGuReYQhZyAnf4BGYzX7~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=Dh%2BVhuApgurx6KE4TZUESJVoo3U%3D",
"item_id": "7627018693574472564",
"title": "🆒#每个动作都是用汗水换来的",
"url": "https://www.douyin.com/share/video/7627018693574472564"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015/o8uwfLE2MGnGX4DerAsgAkfSIenNvaCIW3QPVG~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=JCIantX5u7jv6kv6XyHwZaQR7L4%3D",
"item_id": "7626661207857487561",
"title": "#春娇与志明",
"url": "https://www.douyin.com/share/video/7626661207857487561"
},
{
"img": "https://p3-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/o0MXvCKIhdIiDoS0PqB9dla6iBdLU2AmBEJEA~tplv-obj.image?rk3s=0986ffc3&x-expires=1818755205&x-signature=HWerXJ84Zw8DKMSks%2BEkuynumtc%3D",
"item_id": "7625906822378042981",
"title": "豆包,你过来一下 #豆包 #相信ai的下场 #墓志铭#搞笑视频",
"url": "https://www.douyin.com/share/video/7625906822378042981"
}
]
}
]
}
}
}
]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/index/content-interact-trend 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: end_date (string), start_date (string) và tag_id (string). 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 Category Content Interaction Trend 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.