Douyin
Douyin Resolve User Id API
Extract a user sec_user_id from a Douyin URL. Costs 1 credit per request.
POST/api/v1/douyin/resolve/user-id
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/jsonurlstringrequiredA Douyin URL. Must be an absolute URL.
Example: https://www.douyin.com/video/
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/resolve/user-id", {"url": "https://www.douyin.com/video/"})
print(result)Response
"sec_uid": "MS4wLjABAAAAPCnTQLqza4Xqu-uO7KZHcKuILkO7RRz2oapyOC04AQ0"
},
"response_time": 1108
}