music_idstring必填
Music id
https://api.sandbase.ai/v1/api/douyin/app-v3/music-video-listReturns a paginated list of Douyin videos that feature a specified audio track, identified by its music ID.
[
{
"data": {
"log_pb": {
"impr_id": "202608201745053007818DCBE339039EBB"
},
"status_code": 4,
"status_msg": "啊哦,服务器打瞌睡了,再试一次吧~"
}
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns a paginated list of Douyin videos that use a given audio track. You send the track's music_id and get back video entries with caption, author, hashtags and creation time.
aweme_id values for later lookups.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/music-video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"music_id": "7348905216869174025"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
music_id | string | Yes | Music id |
count | integer | No | Number Please keep the default, otherwise there will be BUG. |
cursor | integer | No | Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"aweme_list": [
{
"activity_video_type": 0,
"ai_follow_images": null,
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"account_cert_info": "{}",
"ad_cover_url": null,
"allow_story_normal_like": true,
"authority_status": 0,
"avatar_168x168": {
"height": 720,
"uri": "168x168/aweme-avatar/tos-cn-avt-0015_08c81910adcc8424b0095ff35df40625",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_08c81910adcc8424b0095f…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "300x300/aweme-avatar/tos-cn-avt-0015_08c81910adcc8424b0095ff35df40625",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_08c81910adcc8424b0095f…"
],
"width": 720
},
"avatar_larger": {
"height": 720,
"uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_08c81910adcc8424b0095ff35df40625",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_08c81910ad…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "720x720/aweme-avatar/tos-cn-avt-0015_08c81910adcc8424b0095ff35df40625",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_08c81910adcc…"
],
"width": 720
}
},
"author_mask_tag": 0,
"author_user_id": 4055412235572862,
"aweme_control": {
"can_comment": true,
"can_forward": true,
"can_share": true,
"can_show_comment": true
},
"aweme_id": "7357708701425224997",
"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\":\"not_intercept\",\"copyright_tag…"
},
"aweme_type": 68,
"aweme_type_tags": ""
}
],
"cursor": 10,
"extra": {
"fatal_item_ids": [],
"logid": "20261103153136BE9467C4608A615EE8A7",
"now": 1793691097000
},
"has_more": 1,
"log_pb": {
"impr_id": "20261103153136BE9467C4608A615EE8A7"
},
"status_code": 0
}
| Field | Meaning |
|---|---|
aweme_list | List of videos that use the requested audio track. |
aweme_list[].aweme_id | ID of the video, as a string. Use it to look up that video in other APIs. |
aweme_list[].caption / aweme_list[].desc | Text the creator wrote for the video, including any # hashtags. |
aweme_list[].create_time | Time the video was created, as a Unix timestamp in seconds. |
aweme_list[].author_user_id | Numeric ID of the account that posted the video. |
aweme_list[].author.avatar_larger.url_list | Image URLs for the author's avatar. Smaller sizes are in avatar_168x168, avatar_300x300, avatar_medium and avatar_thumb. |
aweme_list[].cha_list[].cha_name | Name of a hashtag (challenge) attached to the video. |
aweme_list[].cha_list[].cid | ID of that hashtag, as a string. |
aweme_list[].city | City code for the video. Values such as 130400 and 440100 appear in the response. |
aweme_list[].commerce_info.is_ad | Shows whether the video is an ad. |
music_id as a string. The example uses 7348905216869174025.cursor as 0 for the first page. For the next page, send the cursor value returned in the previous response.count. The parameter description warns that changing it can cause bugs.aweme_id.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/music-video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"music_id": "example"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
music_idstring必填Music id
countintegerNumber Please keep the default, otherwise there will be BUG.
cursorintegerCursor, used for paging, the first page is 0, the second page is the cursor value in the first response.
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"log_pb": {
"impr_id": "202608201745053007818DCBE339039EBB"
},
"status_code": 4,
"status_msg": "啊哦,服务器打瞌睡了,再试一次吧~"
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/douyin/app-v3/music-video-list 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
必填:music_id (string)。 可选:count (integer) 和 cursor (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin Music Video List 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。