TikTok
TikTok Video Search
Search TikTok videos by keyword — video id, description, author, and statistics — as JSON.
POST/api/v1/tiktok/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.
Example: cooking recipe
cursorstringPagination cursor from a previous response.
countnumberNumber of results per page.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.search_videos(keyword="cooking recipe")
print(results)Response
"aweme_list": [],
"backtrace": "",
"components": null,
"cursor": 5,
"feedback_type": "video",
"has_more": 1,
"version": "v2"
},
"response_time": 2247,
"credits_used": 1,
"credits_remaining": 4749
}