Douyin
Douyin Music Videos API
Videos using a sound. Costs 1 credit per request.
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_idstringrequiredMusic id, taken from a music or video response.
Example: 7436614219480435506
cursorintegerPagination cursor from a previous response. Omit for the first page.
countintegerItems to return per page. 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
}