Back to Blog
General

TikTok Music API: Search Sounds, Get Usage Stats & Find Videos

January 29, 2026
4 min read
S
By SociaVault Team
tiktokmusic apisoundsaudio trends

TikTok Music API: Track Audio Trends & Sound Performance

Sound is central to TikTok. The Music API lets you track trending audio, analyze sound performance, and discover videos using specific tracks.

Music API Endpoints

EndpointDescription
Music PopularGet currently trending sounds
Music DetailsGet info about a specific sound
Music VideosGet videos using a sound

Why Track TikTok Sounds?

  • Content Strategy - Use trending sounds for better reach
  • Music Marketing - Track song performance on TikTok
  • Trend Prediction - Identify sounds before they peak
  • UGC Discovery - Find videos using your brand's audio
  • Competitor Analysis - See what sounds competitors use

Get trending sounds on TikTok:

const response = await fetch('https://api.sociavault.com/tiktok/music/popular', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const popularSounds = await response.json();

Response

{
  "tracks": [
    {
      "id": "6987654321098765432",
      "title": "original sound - CreatorName",
      "author": "CreatorName",
      "usageCount": 5200000,
      "duration": 15,
      "coverUrl": "https://...",
      "playUrl": "https://..."
    }
  ]
}

Music Details Endpoint

Get detailed information about a specific sound:

const response = await fetch('https://api.sociavault.com/tiktok/music/details', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    musicId: '6987654321098765432'
  })
});

const musicDetails = await response.json();

Response

{
  "id": "6987654321098765432",
  "title": "Viral Sound 2026",
  "author": "Artist Name",
  "album": "Album Title",
  "duration": 30,
  "usageCount": 5200000,
  "coverUrl": "https://...",
  "playUrl": "https://...",
  "isOriginal": false,
  "artistVerified": true
}

Music Videos Endpoint

Find videos using a specific sound:

const response = await fetch('https://api.sociavault.com/tiktok/music/videos', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    musicId: '6987654321098765432',
    amount: 50
  })
});

const videosWithSound = await response.json();

Response

{
  "musicId": "6987654321098765432",
  "videos": [
    {
      "id": "7234567890123456789",
      "caption": "Using this trending sound 🎵",
      "views": 2500000,
      "likes": 450000,
      "author": {
        "username": "popular_creator",
        "followers": 1200000
      }
    }
  ],
  "hasMore": true
}

Use Cases

Track Sound Virality

Monitor how fast a sound is spreading:

async function trackSoundGrowth(musicId) {
  const details = await getMusicDetails(musicId);
  
  await saveMetric({
    musicId,
    usageCount: details.usageCount,
    timestamp: new Date()
  });
  
  // Calculate daily growth
  const yesterday = await getMetric(musicId, oneDayAgo);
  const growth = details.usageCount - yesterday.usageCount;
  
  console.log(`Daily growth: ${growth.toLocaleString()} new videos`);
}

Find Brand UGC

Discover user-generated content using your brand's audio:

const brandSoundId = 'your-brand-sound-id';
const videos = await getMusicVideos(brandSoundId);

console.log(`${videos.length} videos using your sound`);

// Find top performers
const topPerformers = videos
  .sort((a, b) => b.views - a.views)
  .slice(0, 10);

Identify Rising Sounds

Detect sounds gaining momentum before they peak:

async function findRisingSounds() {
  const popular = await getPopularMusic();
  
  // Filter for sounds with recent growth
  const rising = popular.tracks.filter(track => {
    // High usage but not yet saturated
    return track.usageCount > 100000 && track.usageCount < 1000000;
  });
  
  return rising;
}

Compare Sound Performance

Analyze which sounds drive better engagement:

async function compareSounds(soundIds) {
  const results = await Promise.all(
    soundIds.map(async id => {
      const videos = await getMusicVideos(id, 100);
      
      const avgViews = videos.reduce((sum, v) => sum + v.views, 0) / videos.length;
      const avgLikes = videos.reduce((sum, v) => sum + v.likes, 0) / videos.length;
      
      return {
        musicId: id,
        avgViews,
        avgLikes,
        engagementRate: avgLikes / avgViews
      };
    })
  );
  
  return results.sort((a, b) => b.engagementRate - a.engagementRate);
}

Frequently Asked Questions

Can I download the audio file?

The API returns a playUrl for streaming audio. Downloading and using audio may be subject to copyright restrictions.

How is usage count calculated?

Usage count represents the total number of TikTok videos that have used this sound, updated in near real-time.

Can I find original sounds vs. commercial music?

Yes, the isOriginal field indicates whether the sound is user-created or licensed commercial music.

How far back can I get videos for a sound?

The API returns videos by TikTok's relevance ranking. Older videos using a sound may not appear in results if newer content has higher engagement.

Can I search for sounds by keyword?

Currently, you need a music ID to get details. Use the Popular Music endpoint to discover trending sounds, or extract music IDs from video data.

Get Started

Create your account and start tracking TikTok audio trends.

API docs: /docs/api-reference/tiktok/music-popular

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.