TikTokApi.api.trending module
- class TikTokApi.api.trending.Trending[source]
Bases:
object
Contains static methods related to trending objects on TikTok.
- static videos(count=30, **kwargs) Iterator[Video] [source]
Returns Videos that are trending on TikTok.
- Parameters:
count (int) – The amount of videos you want returned.
- Returns:
Yields TikTokApi.video objects.
- Return type:
async iterator/generator
- Raises:
InvalidResponseException – If TikTok returns an invalid response, or one we don’t understand.
- Example Usage:
async for video in api.trending.videos(): # do something