Back to Blog
General

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

January 29, 2026
6 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/v1/scrape/tiktok/music/popular?timePeriod=7&countryCode=US', {
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
});

const popularSounds = await response.json();
ParameterTypeRequiredDescription
pageintegerNoPage number
timePeriodstringNo7, 30, or 130 days
rankTypestringNopopular or surging
newOnBoardbooleanNoFilter to new-to-top-100 songs
commercialMusicbooleanNoFilter to business-approved songs
countryCodestringNo2-letter country code (e.g., US, GB)

Note: This endpoint can take up to 30 seconds to respond.

Response

Note: sound_list is an object with numeric keys. Use Object.values() to iterate.

{
  "success": true,
  "data": {
    "pagination": { "page": 1, "size": 20, "total": 99, "has_more": true },
    "sound_list": {
      "0": {
        "title": "DtMF",
        "author": "Bad Bunny",
        "clip_id": "7456415250359977985",
        "song_id": "7456422804994459649",
        "rank": 1,
        "rank_diff": null,
        "duration": 60,
        "cover": "https://p16-sg.tiktokcdn.com/aweme/720x720/...",
        "link": "https://www.tiktok.com/music/x-7456415250359977985",
        "if_cml": false,
        "promoted": false,
        "country_code": "US",
        "trend": [
          { "time": 1769904000, "value": 0.2 },
          { "time": 1770422400, "value": 1 }
        ],
        "related_items": {
          "0": { "item_id": 7603178147533983000, "cover_uri": "https://..." }
        }
      }
    }
  },
  "credits_used": 1
}

Music Details Endpoint

Get detailed information about a specific sound:

const response = await fetch('https://api.sociavault.com/v1/scrape/tiktok/music/details?clipId=7439295283975702544', {
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
});

const musicDetails = await response.json();
ParameterTypeRequiredDescription
clipIdstringYesThe clip ID (not song ID) — found in TikTok music URLs

Response

{
  "success": true,
  "data": {
    "music_info": {
      "id_str": "7439295283975702544",
      "title": "luther",
      "author": "Kendrick Lamar & SZA",
      "album": "GNX",
      "duration": 59,
      "user_count": 1250000,
      "is_original": false,
      "is_commerce_music": false,
      "create_time": 1706000000,
      "artists": {
        "0": { "nick_name": "SZA", "is_verified": true, "sec_uid": "MS4wLjAB..." }
      },
      "cover_large": { "url_list": { "0": "https://..." } },
      "play_url": { "url_list": { "0": "https://..." } },
      "share_info": { "share_url": "https://www.tiktok.com/music/..." }
    }
  }
}

Music Videos Endpoint

Find videos using a specific sound:

const response = await fetch('https://api.sociavault.com/v1/scrape/tiktok/music/videos?clipId=7439295283975702544', {
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
});

const videosWithSound = await response.json();
ParameterTypeRequiredDescription
clipIdstringYesThe clip ID — found in TikTok music URLs
cursorintegerNoPagination cursor from previous response

Response

Note: aweme_list is an object with numeric keys. Use Object.values() to iterate.

{
  "success": true,
  "data": {
    "aweme_list": {
      "0": {
        "aweme_id": "7234567890123456789",
        "desc": "Using this trending sound",
        "create_time": 1706100000,
        "statistics": {
          "play_count": 2500000,
          "digg_count": 450000,
          "comment_count": 12000,
          "share_count": 8000,
          "collect_count": 25000,
          "download_count": 1500
        },
        "author": {
          "unique_id": "popular_creator",
          "nickname": "Popular Creator"
        },
        "video": {
          "duration": 15000,
          "cover": { "url_list": { "0": "https://..." } }
        }
      }
    },
    "cursor": 12,
    "has_more": 1
  }
}

Use Cases

Track Sound Virality

Monitor how fast a sound is spreading:

async function trackSoundGrowth(clipId) {
  const res = await fetch(`https://api.sociavault.com/v1/scrape/tiktok/music/details?clipId=${clipId}`, {
    headers: { 'x-api-key': 'YOUR_API_KEY' }
  });
  const result = await res.json();
  const info = result.data.music_info;
  
  console.log(`"${info.title}" by ${info.author}`);
  console.log(`Used in ${info.user_count.toLocaleString()} videos`);
  console.log(`Duration: ${info.duration}s | Commercial: ${info.is_commerce_music}`);
}

Find Brand UGC

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

const res = await fetch('https://api.sociavault.com/v1/scrape/tiktok/music/videos?clipId=your-brand-clip-id', {
  headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const result = await res.json();
const videos = Object.values(result.data.aweme_list);

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

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

for (const v of topPerformers) {
  console.log(`@${v.author.unique_id}: ${v.statistics.play_count.toLocaleString()} views`);
}

Identify Rising Sounds

Detect sounds gaining momentum from the popular charts:

async function findRisingSounds() {
  const res = await fetch('https://api.sociavault.com/v1/scrape/tiktok/music/popular?rankType=surging&timePeriod=7&countryCode=US', {
    headers: { 'x-api-key': 'YOUR_API_KEY' }
  });
  const result = await res.json();
  const sounds = Object.values(result.data.sound_list);
  
  // Filter for new entries (rank_diff is null for new arrivals)
  const newEntries = sounds.filter(s => s.rank_diff === null);
  console.log(`${newEntries.length} new sounds on the chart`);
  
  return sounds;
}

Compare Sound Performance

Analyze which sounds drive better engagement:

async function compareSounds(clipIds) {
  const headers = { 'x-api-key': 'YOUR_API_KEY' };
  
  const results = await Promise.all(
    clipIds.map(async clipId => {
      const res = await fetch(`https://api.sociavault.com/v1/scrape/tiktok/music/videos?clipId=${clipId}`, { headers });
      const result = await res.json();
      const videos = Object.values(result.data.aweme_list);
      
      const avgViews = videos.reduce((sum, v) => sum + v.statistics.play_count, 0) / videos.length;
      const avgLikes = videos.reduce((sum, v) => sum + v.statistics.digg_count, 0) / videos.length;
      
      return {
        clipId,
        avgViews: Math.round(avgViews),
        avgLikes: Math.round(avgLikes),
        engagementRate: (avgLikes / avgViews * 100).toFixed(2) + '%'
      };
    })
  );
  
  return results.sort((a, b) => b.avgViews - a.avgViews);
}

Frequently Asked Questions

Can I download the audio file?

The API returns audio stream URLs via play_url.url_list. Downloading and using audio may be subject to copyright restrictions.

How is usage count calculated?

The user_count field from Music Details represents the total number of TikTok videos that have used this sound.

Can I find original sounds vs. commercial music?

Yes, the is_original and is_commerce_music fields indicate the sound type. The Popular endpoint also has a commercialMusic filter.

How far back can I get videos for a sound?

The Music Videos endpoint returns videos by TikTok's relevance ranking. Use the cursor parameter to paginate through more results.

Can I search for sounds by keyword?

Yes! Use the TikTok Search Music endpoint (/v1/scrape/tiktok/search/music). The Popular Music endpoint also supports filtering by country, time period, and ranking type.

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.