Audio extraction API for online videos
Extracting audio usually means downloading the full video and running ffmpeg. With CrawlFetch you skip both: every resolve response includes audioUrl, a direct link to the audio-only track, and you can request audio formats explicitly.
Two ways to get audio
- Read
audioUrlfrom any resolve response — the best available audio track. - Request
format=m4a(AAC) orformat=opusand usedownloadUrl— useful when you need a specific codec.
m4a or Opus?
| m4a (AAC) | Opus (webm) | |
|---|---|---|
| Compatibility | Everywhere: iOS, Android, browsers, editors | Modern browsers, Android, ffmpeg |
| Efficiency | Good | Better at low bitrates |
| Best for | Playback apps, editing | Speech-to-text, bandwidth-sensitive apps |
Example: audio for every URL in a list
const urls = ["https://youtu.be/aqz-KE-bpKQ", "https://www.tiktok.com/@scout2015/video/6718335390845095173"];for (const url of urls) {const r = await fetch("https://api.crawlfetch.com/v1/resolve?" + new URLSearchParams({ url, format: "m4a" }), {headers: { Authorization: "Bearer " + process.env.CRAWLFETCH_KEY },});const v = await r.json();console.log(v.title, v.downloadUrl);}
FAQ
Which plan includes audio-only formats?
Starter, Pro and Scale. audioUrl is present in every response.
Can I get audio from Instagram Reels?
When the platform publishes a separate audio track it is returned; otherwise extract it from the MP4 with ffmpeg -i in.mp4 -vn -c:a copy out.m4a.
Related
Last updated 2026-10-25