YouTube Video Audio API
Scrape YouTube Video Audio data with one API call. Returns the downloadable audio stream files for a YouTube video — each with a direct media `url`, mime type, bitrate, audio quality, sample rate, channels, and approximate duration. The stream URLs are time-limited: fetch them immediately and do not cache.
Last updated August 2026Maintained by the SocialCrawl team
Returns the downloadable audio streams for a video, each with a direct media URL, mime type, bitrate, audio quality, sample rate, channels, and duration.
Use it to grab a video's audio on its own; the URLs are time-limited, so fetch them straight away rather than storing them.
Searching 48 platforms in parallel
What can you do with the Video Audio API?
The Video Audio endpoint gives you structured YouTube data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://www.socialcrawl.dev/v1/youtube/video/audio?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ"import requests
response = requests.get(
"https://www.socialcrawl.dev/v1/youtube/video/audio",
params={
'url': 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()const response = await fetch(
"https://www.socialcrawl.dev/v1/youtube/video/audio?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{
headers: { "x-api-key": "YOUR_API_KEY" },
},
);
const data = await response.json();Parameters
| Parameter | Required | Description |
|---|---|---|
| url | Yes | Full URL of the YouTube video. |
What does the YouTube Video Audio API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "youtube",
"endpoint": "/v1/youtube/video/audio",
"data": {
"items": [
{
"itag": 139,
"url": "https://redirector.googlevideo.com/videoplayback?expire=1785184292&ei=w2tnarz2PPbW6dsPwu_g2AU&ip=2a00%3A20%3A6356%3Aee27%3Ac40e%3A37ff%3Afe67%3A799b&id=o-AAkRzPYYS4EQM2T5UzGR2vGGOLnplDc4Or1O0VlQTxZp&itag=139&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=1227&met=1785162692%2C&mh=7c&mm=31%2C29&mn=sn-8vq54voxqx-cxgs%2Csn-i5h7lnls&ms=au%2Crdu&mv=m&mvi=4&pl=42&rms=au%2Cau&initcwndbps=1695000&bui=AZFlqhPPGw7IpjB40XWdrOutZ1RpxCx1vGmxNlkghSGuOMtNmYtsafiBodOxWmajeatmhnLQ3LvDC6lj&spc=SQ-umi-oF9ACAo54etCE6k35XxseQOL-Ix5npGLdJemGwPn0tQ&vprv=1&svpuc=1&mime=audio%2Fmp4&rqh=1&gir=yes&clen=1300631&dur=213.159&lmt=1766955925459591&mt=1785162307&fvip=5&keepalive=yes&fexp=51565115%2C51992867&c=ANDROID_VR&txp=5532534&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AE0s2JYwRQIgEDGA8PXeoB1F7tpAxoFzF4sY24AcWQ-wfG_LqqUZxe4CIQCme1gKwbZ0K10KQKWhcoyVWV1AYc4yUdp8k9q0ZZLrkA%3D%3D&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=APaTxxMwRQIgaBj9U6AfVvPnGIfxOr3Kpxeak104SHBD59XOvbu5xl8CIQD67nJBx2e69k9Kf9dQvPLrC6k1e7h5R7yzGUQ-m2J_jw%3D%3D&pot=Ms4E5vUlAt8BNMnmy6nhjQvj7XuatBQLoiPPZqg93dEufnEyY6-lMHm9fHa7gpxL9MPnxtyg1XktBD7VsKck36CIe5sFLIST1HoPInMPu9SwzQDG5Fstw0ELgaYLxl6X6Z6zkeAEZrIKhBFhmMRBUaFA0ZuaVAVC_TIltjffteEduSfCDfhmDkcOc_9A9QuS6wEeGB-vr4q4dFtWX1aaplSLcYYeojPw-Evrhn9DE6B8ukTPafBTugWGISvevH5nPDAbJNJWT9QAVFrvnZqJfG9LrbshYjouW4BR71pVJni-irA2uqrowHvRst3nxjmk0mAWrshOfacPuYaK4IGX94OARx9QS3Pp6V9D-TVfK0vjE5OZricSZDMfvO4pvey_EhAct4eYKAAyvPyvju9NX8iaQLN4ii_mOtxP4ln-S5uIwblZJ8cVIhL-KoWij_DzW5FRrkTkwUTLecBIP-GLcsElFeG9jxf4nel2jVIqXyTvJHp1xj_BEXVhB2LpFFptdVdfss3Rqd9d6cZ8wjWqCTORpMVP7gDxLPsYWwRYpgKNACHl9FcVur0OUSRlz5lZ5nuKhre55aYBDRVismnFUk6Mfoyr4v-YyAhulCEDmze1g7UAgNtrqKxFt_uqcrkY7xKZjxuCGt_rawLqIJIb9OlFqgzswlpOsdLXm4bCw6d8_ezbnfz_dJYwC0UXMZWIfhS6OMLxOFtQBlBEN6QStv0lIuyq9fLZEW76ED1zxnDEOdCnXS_F6goJpfAm0gzFlb86NABQf0kqhk_jqMpWv-M=",
"mimeType": "audio/mp4; codecs=\"mp4a.40.5\"",
"bitrate": 50152,
"initRange": {
"start": "0",
"end": "731"
},
"indexRange": {
"start": "732",
"end": "1027"
},
"lastModified": "1766955925459591",
"contentLength": "1300631",
"quality": "tiny",
"projectionType": "RECTANGULAR",
"averageBitrate": 48813,
"audioQuality": "AUDIO_QUALITY_LOW",
"approxDurationMs": "213159",
"audioSampleRate": "22050",
"audioChannels": 2,
"loudnessDb": 0.9899998,
"trackAbsoluteLoudnessLkfs": -13.01,
"qualityOrdinal": "QUALITY_ORDINAL_UNKNOWN",
"parsedLastModified": "2025-12-28T21:05:25.459Z",
"lengthSeconds": "213",
"parsedContentLength": "1.24 MiB"
},
{
"itag": 140,
"url": "https://redirector.googlevideo.com/videoplayback?expire=1785184292&ei=w2tnarz2PPbW6dsPwu_g2AU&ip=2a00%3A20%3A6356%3Aee27%3Ac40e%3A37ff%3Afe67%3A799b&id=o-AAkRzPYYS4EQM2T5UzGR2vGGOLnplDc4Or1O0VlQTxZp&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=1227&met=1785162692%2C&mh=7c&mm=31%2C29&mn=sn-8vq54voxqx-cxgs%2Csn-i5h7lnls&ms=au%2Crdu&mv=m&mvi=4&pl=42&rms=au%2Cau&initcwndbps=1695000&bui=AZFlqhPPGw7IpjB40XWdrOutZ1RpxCx1vGmxNlkghSGuOMtNmYtsafiBodOxWmajeatmhnLQ3LvDC6lj&spc=SQ-umi-oF9ACAo54etCE6k35XxseQOL-Ix5npGLdJemGwPn0tQ&vprv=1&svpuc=1&mime=audio%2Fmp4&rqh=1&gir=yes&clen=3449447&dur=213.089&lmt=1766955925572207&mt=1785162307&fvip=5&keepalive=yes&fexp=51565115%2C51992867&c=ANDROID_VR&txp=5532534&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AE0s2JYwRAIgFIDD8vgeFapRCcMoqZc0ljaA0piy_JKNrK18GeUZhtoCIDQw6ZeKW4-bM1Jp60O6rFQhoHMIgZTGKnOFyz3a9rje&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=APaTxxMwRQIgaBj9U6AfVvPnGIfxOr3Kpxeak104SHBD59XOvbu5xl8CIQD67nJBx2e69k9Kf9dQvPLrC6k1e7h5R7yzGUQ-m2J_jw%3D%3D&pot=Ms4E5vUlAt8BNMnmy6nhjQvj7XuatBQLoiPPZqg93dEufnEyY6-lMHm9fHa7gpxL9MPnxtyg1XktBD7VsKck36CIe5sFLIST1HoPInMPu9SwzQDG5Fstw0ELgaYLxl6X6Z6zkeAEZrIKhBFhmMRBUaFA0ZuaVAVC_TIltjffteEduSfCDfhmDkcOc_9A9QuS6wEeGB-vr4q4dFtWX1aaplSLcYYeojPw-Evrhn9DE6B8ukTPafBTugWGISvevH5nPDAbJNJWT9QAVFrvnZqJfG9LrbshYjouW4BR71pVJni-irA2uqrowHvRst3nxjmk0mAWrshOfacPuYaK4IGX94OARx9QS3Pp6V9D-TVfK0vjE5OZricSZDMfvO4pvey_EhAct4eYKAAyvPyvju9NX8iaQLN4ii_mOtxP4ln-S5uIwblZJ8cVIhL-KoWij_DzW5FRrkTkwUTLecBIP-GLcsElFeG9jxf4nel2jVIqXyTvJHp1xj_BEXVhB2LpFFptdVdfss3Rqd9d6cZ8wjWqCTORpMVP7gDxLPsYWwRYpgKNACHl9FcVur0OUSRlz5lZ5nuKhre55aYBDRVismnFUk6Mfoyr4v-YyAhulCEDmze1g7UAgNtrqKxFt_uqcrkY7xKZjxuCGt_rawLqIJIb9OlFqgzswlpOsdLXm4bCw6d8_ezbnfz_dJYwC0UXMZWIfhS6OMLxOFtQBlBEN6QStv0lIuyq9fLZEW76ED1zxnDEOdCnXS_F6goJpfAm0gzFlb86NABQf0kqhk_jqMpWv-M=",
"mimeType": "audio/mp4; codecs=\"mp4a.40.2\"",
"bitrate": 130677,
"initRange": {
"start": "0",
"end": "722"
},
"indexRange": {
"start": "723",
"end": "1018"
},
"lastModified": "1766955925572207",
"contentLength": "3449447",
"quality": "tiny",
"projectionType": "RECTANGULAR",
"averageBitrate": 129502,
"highReplication": true,
"audioQuality": "AUDIO_QUALITY_MEDIUM",
"approxDurationMs": "213089",
"audioSampleRate": "44100",
"audioChannels": 2,
"loudnessDb": 0.9899998,
"trackAbsoluteLoudnessLkfs": -13.01,
"qualityOrdinal": "QUALITY_ORDINAL_UNKNOWN",
"parsedLastModified": "2025-12-28T21:05:25.572Z",
"lengthSeconds": "213",
"parsedContentLength": "3.29 MiB"
}
],
"dropped": 0
},
"credits_used": 5,
"credits_remaining": 9999,
"request_id": "req_example000000",
"cached": false,
"pagination": {
"next_cursor": null,
"has_more": false,
"page_size": 4
}
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the YouTube Video Audio API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 48 platforms covering 10B+ monthly active users.
One schema, every platform
Query 48 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language — ready to use.
See your data before you code
Visual Data Explorer — paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I get a YouTube video's audio file via API?
Are the audio stream URLs permanent?
What audio details come back per stream?
How much does the audio files endpoint cost?
How is this different from the transcript endpoint?
Ask AI about SocialCrawl
Ready to scrape YouTube Video Audio data?
Get your API key and start pulling YouTube data in under 60 seconds.
