Douyin
Douyin User Following API
Accounts a user follows. Costs 1 credit per request.
POST/api/v1/douyin/user/following
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/jsonsec_user_idstringrequiredThe user's sec_user_id, the stable id Douyin uses internally.
max_timestringPagination timestamp from a previous response
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/user/following", {"sec_user_id": "..."})
print(result)Response
"max_time": "1523438740",
"has_more": false
},
"response_time": 897
}