Class: TiktokEarnings
Defined in: src/_other-scraper/tiktok-earnings.ts:19
The TiktokEarnings class is designed to track TikTok user statistics and provide earnings estimations using data from InfluencerMarketingHub.com.
Constructors
Constructor
new TiktokEarnings():
TiktokEarnings
Returns
An instance of TiktokEarnings.
Methods
track()
track(
username):Promise<TikTokStats>
Defined in: src/_other-scraper/tiktok-earnings.ts:51
Retrieves the TikTok user statistics and earnings estimation based on the provided username.
Parameters
username
string
The TikTok username, excluding the @ symbol, for which statistics are to be retrieved.
Returns
Promise<TikTokStats>
A promise that resolves to a TikTokStats object containing the userβs statistics and earnings estimates.
Example
const stats = await new TiktokEarnings().track('charlidamelio');
console.log(stats.name, stats.earnings);
Last updated on