Instagram Reels by Audio API: Track Sound Usage & Trends
Sound drives Instagram Reels discovery. This API lets you find all Reels using a specific audio trackโperfect for UGC discovery, trend tracking, and music marketing.
Why Track Audio Usage?
- UGC Discovery - Find user-generated content using your brand's audio
- Trend Analysis - Track which sounds are gaining momentum
- Music Marketing - Monitor song performance on Instagram
- Influencer Research - See who's using trending sounds
- Content Strategy - Identify audio trends to incorporate
Using the Reels by Audio API
const response = await fetch(
'https://api.sociavault.com/v1/scrape/instagram/reels-by-song?audio_id=844716519067330',
{
headers: { 'x-api-key': 'YOUR_API_KEY' }
}
);
const result = await response.json();
Parameters
| Parameter | Required | Description |
|---|---|---|
audio_id | Yes | The Instagram audio/music ID |
max_id | No | Pagination cursor from paging_info.max_id |
Sample Response
{
"success": true,
"items": [
{
"media": {
"pk": "3652360178415977960",
"id": "3652360178415977960_4396457",
"code": "DKvyjsyREXo",
"taken_at": 1749615300,
"media_type": 2,
"play_count": 66233,
"like_count": 4570,
"comment_count": 59,
"video_duration": 26.574,
"has_audio": true,
"caption": {
"text": "Here for the soft wins and good energy ๐๐ฟ๐\n\n๐ฅ @jkvzxc ...",
"created_at": 1749616067
},
"user": {
"username": "teresitassen",
"full_name": "Winwyn Marquez",
"is_verified": true,
"profile_pic_url": "https://..."
},
"video_versions": [
{ "url": "https://...", "width": 480, "height": 853 }
],
"image_versions2": {
"candidates": [
{ "url": "https://...", "width": 540, "height": 960 }
]
},
"coauthor_producers": [
{ "username": "pongniu", "full_name": "Pong Niu" }
]
}
}
],
"paging_info": {
"max_id": "Gpa-z7y0tM7...",
"more_available": true
},
"formatted_media_count": "73.2K reels",
"metadata": {
"original_sound_info": {
"original_audio_title": "Original audio",
"duration_in_ms": 11920,
"formatted_clips_media_count": "73.2K reels",
"ig_artist": {
"username": "teresitassen",
"full_name": "Winwyn Marquez"
}
}
}
}
Finding Audio IDs
To use this endpoint, you need an audio ID. Here's how to get it:
From a Reel URL
Extract the audio ID from any Reel using the Post Info endpoint:
const reelInfo = await fetch(
'https://api.sociavault.com/v1/scrape/instagram/post-info?url=https://www.instagram.com/reel/ABC123xyz/',
{
headers: { 'x-api-key': 'YOUR_API_KEY' }
}
);
const result = await reelInfo.json();
const audioId = result.data.data.xdt_shortcode_media.clips_music_attribution_info?.audio_id;
// Use this audioId for the reels-by-song endpoint
Use Cases
Brand UGC Discovery
Find content using your brand's audio:
async function findBrandUGC(brandAudioId) {
const response = await fetch(
`https://api.sociavault.com/v1/scrape/instagram/reels-by-song?audio_id=${brandAudioId}`,
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const result = await response.json();
// Filter for high-performing reels
const qualityUGC = result.items.filter(item =>
item.media.play_count > 10000
);
return qualityUGC.map(item => ({
code: item.media.code,
url: `https://www.instagram.com/reel/${item.media.code}/`,
views: item.media.play_count,
likes: item.media.like_count,
creator: item.media.user.username,
caption: item.media.caption?.text
}));
}
Track Sound Virality
Monitor how fast a sound is spreading:
async function trackSoundGrowth(audioId) {
const response = await fetch(
`https://api.sociavault.com/v1/scrape/instagram/reels-by-song?audio_id=${audioId}`,
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const result = await response.json();
console.log(`Sound has ${result.formatted_media_count}`);
// Analyze engagement across reels using this sound
const avgViews = result.items.reduce((sum, item) =>
sum + item.media.play_count, 0) / result.items.length;
console.log(`Average views per reel: ${avgViews.toLocaleString()}`);
}
Find Influencers Using Sounds
Discover creators engaging with specific audio:
async function findCreatorsUsingSound(audioId) {
const response = await fetch(
`https://api.sociavault.com/v1/scrape/instagram/reels-by-song?audio_id=${audioId}`,
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const result = await response.json();
// Get unique creators
const creators = [...new Map(
result.items.map(item => [
item.media.user.username,
{
username: item.media.user.username,
fullName: item.media.user.full_name,
verified: item.media.user.is_verified,
reelViews: item.media.play_count,
reelCode: item.media.code
}
])
).values()];
return creators.sort((a, b) => b.reelViews - a.reelViews);
}
Paginate All Reels for a Sound
Collect all reels using a specific audio track:
async function getAllReelsForSound(audioId) {
let allItems = [];
let maxId = null;
do {
const url = maxId
? `https://api.sociavault.com/v1/scrape/instagram/reels-by-song?audio_id=${audioId}&max_id=${maxId}`
: `https://api.sociavault.com/v1/scrape/instagram/reels-by-song?audio_id=${audioId}`;
const response = await fetch(url, {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const result = await response.json();
allItems.push(...result.items);
maxId = result.paging_info?.more_available ? result.paging_info.max_id : null;
} while (maxId);
return allItems;
}
Related Endpoints
- Instagram Reels API - Get Reels from profiles
- Instagram Post Info - Get audio info from posts
- Instagram Transcript - Reel transcripts
- TikTok Music API - TikTok sound tracking
Frequently Asked Questions
How do I find the audio ID for a sound?
Get any Reel using that sound, then use the Post Info endpoint (/v1/scrape/instagram/post-info?url=REEL_URL) to extract the audio ID from clips_music_attribution_info.audio_id.
Can I search for sounds by name?
Currently, you need the audio ID. Get it from any Reel using your target sound via the Post Info endpoint.
How many Reels can I get per audio?
The API returns Reels with pagination via paging_info.max_id. Pass it as the max_id query parameter to get the next page.
Does the response include audio metadata?
Yes, the metadata.original_sound_info field includes the audio title, artist info, duration, and total reel count (formatted_clips_media_count).
Are original sounds included?
Yes, both licensed music and original creator sounds can be tracked. The clips_metadata.audio_type field indicates whether it's original_sounds or licensed music.
Get Started
Create your account and start tracking Instagram audio trends.
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.