Douyin
Douyin Hashtag Videos API
Videos under a hashtag. Costs 1 credit per request.
POST/api/v1/douyin/hashtag/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/jsonch_idstringrequiredHashtag id, taken from a hashtag response.
Example: 1568943621383170
cursorintegerPagination cursor from a previous response. Omit for the first page.
countintegerItems to return per page. 1-50.
sort_typeinteger0=comprehensive, 1=most liked, 2=latest
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/hashtag/videos", {"ch_id": "1568943621383170"})
print(result)Response
"videos": [],
"max_cursor": "5",
"has_more": true
},
"response_time": 3175
}