抖音
抖音音乐视频 API
获取使用某首音乐的视频。每次请求消耗 1 积分。
POST/api/v1/douyin/music/videos
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonmusic_idstringrequired音乐 ID,取自音乐或视频接口的响应。
Example: 7436614219480435506
cursorinteger上一次响应返回的分页游标(cursor)。请求第一页时省略。
countinteger每页返回的条数,取值 1-50。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/music/videos", {"music_id": "7436614219480435506"})
print(result)Response
"max_cursor": "5",
"has_more": true
},
"response_time": 1665
}