TikTok
TikTok Trending Videos
Get a sample of videos trending on TikTok now - description, author and follower counts, play/like/comment/share stats, sound and hashtags - as JSON. 1 credit.
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/jsoncountintegerdefault:15Videos requested, 1-15. Each call returns about 6 to 15 whatever you ask for; call again for a fresh sample.
Example: 15
Notes
A sample, not a ranked list. Each call returns about 6 to 15 trending videos and the next call returns a different sample. There is no region filter.
Raw TikTok payload. The response is TikTok's own JSON under data. Large numeric ids can lose precision when parsed as JSON numbers, so read the string forms (id_str, sec_uid, secUid) rather than numeric id fields.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.trending_videos(count=15)
print(results)Response