Douyin
Douyin Video Search API
Search videos by keyword. Costs 10 credits per request.
POST/api/v1/douyin/search/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/jsonkeywordstringrequiredSearch keyword, 1-200 characters.
Example: 美食
offsetintegerPagination offset from a previous response
pageintegerPage number, from 1. 1-200.
cursorintegerPagination cursor from a previous response
search_idstringSearch id from a previous response, for pagination
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.douyin.request("/api/v1/douyin/search/videos", {"keyword": "美食"})
print(result)Response
"search_id": "2026090103463307211D63191784294174",
"offset": 10,
"cursor": 10,
"backtrace": "w8KOvPTzjA32DWEYf/cuFV7ZLZm2+yr8PxDj5Bb5vbow/4Z2+QjZy2/IQ4VISxDR0WWF8NMviCh5y7VwPMwMZA==",
"has_more": true
},
"response_time": 4340
}