tiktok-viral-trends
v1.0.0
Published
Scrape trending TikTok audios, tags, and videos directly from the web client without developer accounts.
Maintainers
Readme
tiktok-viral-trends
Gather trending TikTok audio elements, hashtag statistics, and trending video IDs directly from public web directories.
Features
- Discovers trending keywords and video IDs without official developer tokens.
- Extracts music assets and audio identifiers for trend monitoring.
- Emulates clean web client queries automatically.
Installation
npm install tiktok-viral-trendsUsage
import { getTrendingVideos } from 'tiktok-viral-trends';
// Retrieve trending TikTok video URLs/IDs
try {
const trending = await getTrendingVideos(5);
console.log('Trending TikTok items:', trending);
// Output: ['https://www.tiktok.com/@user/video/1234567...', ...]
} catch (error) {
console.error('Error fetching trends:', error);
}API Reference
getTrendingVideos(limit?)
Queries the trending list.
Parameters:
limit(optional):number(defaults to 10)
Returns: Promise<string[]> of video paths.
License
MIT
