TikTok Trending API: Real-Time Viral Content Discovery
Want to know what's trending on TikTok right now? The Trending API gives you programmatic access to viral videos, rising creators, and emerging trends.
Why Track TikTok Trends?
TikTok trends move fast. Being first to spot viral content gives you:
- Content Ideas - Capitalize on trending formats before saturation
- Sound Selection - Identify viral audio before it peaks
- Competitive Edge - React faster than competitors
- Engagement Boost - Trend-aligned content gets more reach
- Brand Safety - Monitor what's associated with your brand
Trending Videos Endpoint
Get currently trending videos:
const response = await fetch('https://api.sociavault.com/tiktok/trending', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 50
})
});
const trending = await response.json();
Sample Response
{
"videos": [
{
"id": "7234567890123456789",
"url": "https://www.tiktok.com/@creator/video/7234567890123456789",
"caption": "This sound is everywhere 🔥",
"views": 45000000,
"likes": 8900000,
"shares": 250000,
"createTime": "2026-01-09T10:30:00Z",
"author": {
"username": "viral_creator",
"followers": 5200000
},
"music": {
"id": "6987654321",
"title": "Trending Sound - Original",
"author": "MusicArtist",
"usageCount": 890000
},
"hashtags": ["fyp", "viral", "trending"]
}
]
}
Trend Detection Strategies
Track Rising Sounds
Identify sounds gaining momentum:
const trending = await getTrendingVideos(100);
// Count sound usage
const soundCounts = {};
trending.videos.forEach(v => {
const soundId = v.music.id;
soundCounts[soundId] = (soundCounts[soundId] || 0) + 1;
});
// Find most-used sounds
const topSounds = Object.entries(soundCounts)
.sort((a, b) => b[1] - a[1])
.slice(0, 10);
Detect Trending Formats
Analyze captions for pattern detection:
const formatPatterns = {
challenge: /challenge|duet this|stitch/i,
storytime: /storytime|pov|story time/i,
tutorial: /how to|tutorial|step by step/i,
reaction: /reacting to|reaction|wait for it/i
};
const formatCounts = {};
trending.videos.forEach(v => {
for (const [format, pattern] of Object.entries(formatPatterns)) {
if (v.caption.match(pattern)) {
formatCounts[format] = (formatCounts[format] || 0) + 1;
}
}
});
Build a Trend Alert System
Monitor for specific trends:
async function checkTrends() {
const trending = await getTrendingVideos(100);
// Check for brand mentions
const brandMentions = trending.videos.filter(v =>
v.caption.toLowerCase().includes('your-brand')
);
if (brandMentions.length > 0) {
await sendAlert(`Your brand is trending! ${brandMentions.length} videos`);
}
// Check for competitor mentions
const competitorMentions = trending.videos.filter(v =>
v.caption.toLowerCase().includes('competitor-brand')
);
if (competitorMentions.length > 0) {
await sendAlert(`Competitor trending: ${competitorMentions.length} videos`);
}
}
// Run every hour
setInterval(checkTrends, 60 * 60 * 1000);
Trending Music Endpoint
Get popular sounds and songs:
const response = await fetch('https://api.sociavault.com/tiktok/music/popular', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const popularMusic = await response.json();
Response
{
"tracks": [
{
"id": "6987654321",
"title": "Viral Sound 2026",
"author": "Artist Name",
"usageCount": 2500000,
"duration": 30,
"coverUrl": "https://..."
}
]
}
Related Endpoints
- TikTok Search Hashtag - Track specific hashtags
- TikTok Videos Scraper - Get creator content
- TikTok Music Videos - Videos using specific sounds
- TikTok Profile Scraper - Creator details
Frequently Asked Questions
How often does the trending list update?
TikTok's trending feed updates continuously. Each API call returns the current trending videos, typically refreshed every few minutes.
Can I get trending videos by region?
Currently, the API returns global trending content. Regional filtering may be available in future updates.
How do I identify an emerging trend vs. established content?
Look at the createTime field—newer videos (posted within 24-48 hours) with high engagement indicate emerging trends. Older viral videos are established content.
Can I get historical trending data?
The API returns current trends. For historical analysis, store trending data periodically in your own database.
How many trending videos can I retrieve?
You can request up to 100 trending videos per API call.
Start Tracking Trends
Get your API key and start monitoring TikTok trends in real-time.
Documentation: /docs/api-reference/tiktok/trending
Found this helpful?
Share it with others who might benefit
Ready to Try SociaVault?
Start extracting social media data with our powerful API. No credit card required.