YouTube to MP3 Downloader
Pricing
from $10.00 / 1,000 audio file saveds
YouTube to MP3 Downloader
Convert authorized YouTube videos and playlists to MP3, M4A, Opus, WAV or FLAC with your chosen bitrate, ID3 tags and thumbnail cover art. Each track is saved to Apify key-value storage with a clean JSON record.
Pricing
from $10.00 / 1,000 audio file saveds
Rating
0.0
(0)
Developer
Khadin Akbar
Maintained by CommunityActor stats
0
Bookmarked
26
Total users
5
Monthly active users
12 days ago
Last modified
Categories
Features
Share
What is YouTube to MP3 Downloader?
YouTube to MP3 Downloader converts authorized YouTube videos and playlists into MP3, M4A, Opus, WAV, or FLAC files with the bitrate, tags, and thumbnail cover art you choose. It accepts full YouTube video, Shorts, embed, and playlist URLs, processes three tracks at a time, saves each audio file to Apify key-value storage, and returns MCP-ready JSON with a direct downloadUrl for every file. Each dataset row represents one track and includes title, artist, durationSeconds, audioFormat, bitrateKbps, fileKey, downloadUrl, status, and scrapedAt.
You pay only for files that were saved: $0.012 per audio file on the Free and Bronze plans, $0.011 on Silver, and $0.010 on Gold and higher, plus Apify platform usage (about $0.01 for a short clip and about $0.04 for a 4-minute song, because the audio is fetched through a residential proxy at about $8 per GB). Failed, skipped, and too-long videos are not charged. Tip: sourceQuality: light cuts the platform usage of speech and lectures by about half.
What's new
- Lower price per saved file with Store plan discounts.
- Three tracks are processed at the same time, so lists finish faster. Every track has a time cap and the run stops starting new tracks before its time limit, so one slow video cannot stall the run.
- The page is read once per track instead of twice, and a free direct connection is tried before any paid proxy traffic.
- New
downloadUrlfield and anagentSummaryin the run output for AI agents. - New optional trim (
startSeconds,endSeconds) and an optionalsourceQuality: lightsetting that reads a smaller audio stream and cuts proxy traffic by roughly half for speech and lectures.
Best fit and connected workflows
This Actor fits workflows that start from a specific YouTube URL and end with a structured audio file ready for a downstream step.
- Convert a single authorized YouTube video into a tagged audio file for transcription, review, or archival.
- Expand a specific playlist URL into track-level audio files with a run cap that keeps storage and billing predictable.
- Capture metadata-rich audio for agent workflows that need direct file keys and dataset rows.
- Pair it with YouTube Channel Videos Scraper -- Metadata & Metrics when your earlier step is channel discovery and your next step is audio extraction from selected video URLs.
Practical scenario
Maya manages a research archive. She starts with a playlist URL from a lecture series she is authorized to download, turns on includePlaylist, and sets maxResults to keep the first run focused. The dataset returns title, artist, durationSeconds, audioFormat, fileKey, and status for each track. Maya reviews the saved files, then uses the fileKey values to route each audio file into transcription next.
Input fields
| Field | Type | Default | Purpose |
|---|---|---|---|
videoUrls | array | required | Full YouTube video or playlist URLs to convert to audio |
audioFormat | string | mp3 | Output format: mp3, m4a, opus, wav, or flac |
audioBitrate | string | 192 | Bitrate for lossy formats: best, 320, 256, 192, or 128 |
sourceQuality | string | standard | standard reads the best audio stream; light reads a smaller one (about half the proxy traffic), best for speech |
startSeconds | integer | empty | Keep audio from this second onward |
endSeconds | integer | empty | Stop at this second (must be greater than startSeconds) |
embedMetadata | boolean | true | Writes ID3 tags and embeds thumbnail cover art |
includePlaylist | boolean | false | Expands playlist URLs |
maxResults | integer | 20 | Caps total tracks saved in one run (1 to 200) |
maxDurationMinutes | integer | 120 | Skips videos longer than the chosen duration threshold |
maxFileSizeMb | integer | 100 | Skips tracks whose final audio file exceeds the size cap |
maxDownloadMegabytes | integer | 0 | Optional media transfer budget in MB; 0 means no budget |
includeMetadataJson | boolean | false | Saves raw video metadata JSON |
cookiesTxt | string (secret) | empty | Optional Netscape cookies.txt content for authorized YouTube sessions |
proxyConfiguration | object | Residential | Proxy settings for YouTube requests |
Focused input example
{"videoUrls": [{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"audioFormat": "mp3","audioBitrate": "192","embedMetadata": true,"includePlaylist": false,"maxResults": 20,"maxDurationMinutes": 120,"maxFileSizeMb": 100,"includeMetadataJson": false}
Output fields
One dataset row is produced per audio track. The row includes the original YouTube URL, audio format, saved file details, status, and a timestamp. When metadata embedding is on, the saved file also includes ID3 tags and thumbnail cover art.
| Field | Type | Meaning |
|---|---|---|
videoUrl | string | Original YouTube URL submitted or expanded from a playlist |
canonicalUrl | string or null | Canonical webpage URL returned by the extractor |
videoId | string or null | YouTube video ID |
title | string or null | Video or track title |
artist | string or null | Uploader or channel name |
channelUrl | string or null | Uploader or channel URL |
durationSeconds | number or null | Track duration in seconds |
viewCount | number or null | View count at extraction time |
uploadDate | string or null | Upload date in YYYYMMDD format when available |
thumbnail | string or null | Thumbnail URL, embedded as cover art when tagging is on |
audioFormat | string | Output audio format used for the track |
bitrateKbps | number or null | Target bitrate for lossy formats |
fileKey | string or null | Key-value store key for the saved audio file |
downloadUrl | string or null | Direct link to the saved audio file |
route | string or null | How the audio was fetched: direct, proxy, or signed-link |
fileName | string or null | Saved file name |
fileExtension | string or null | Saved file extension |
fileSizeBytes | number or null | Saved file size in bytes |
contentType | string or null | MIME type used when saving the file |
metadataKey | string or null | Key-value store key for raw video metadata JSON when enabled |
status | string | success, skipped (too long or too large), or failed |
error | string or null | Plain explanation when a track was skipped or failed |
scrapedAt | string | ISO 8601 timestamp for the record |
Illustrative output record
{"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","canonicalUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","videoId": "dQw4w9WgXcQ","title": "Example Track Title","artist": "Example Channel","channelUrl": "https://www.youtube.com/@examplechannel","durationSeconds": 212,"viewCount": 123456,"uploadDate": "20061025","thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg","audioFormat": "mp3","bitrateKbps": 192,"fileKey": "audio-dQw4w9WgXcQ-example-track-title.mp3","downloadUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/audio-dQw4w9WgXcQ-example-track-title.mp3","route": "proxy","fileName": "example-track-title.mp3","fileExtension": "mp3","fileSizeBytes": 3456789,"contentType": "audio/mpeg","metadataKey": "metadata-dQw4w9WgXcQ.json","status": "success","scrapedAt": "2026-07-01T12:34:56.000Z"}
How it works
This Actor reads each video once, then extracts the audio and transcodes it into the format and bitrate you choose. It first tries a free direct connection; YouTube usually blocks data center addresses, so it then switches to a fresh residential proxy session, retrying on up to three fresh sessions. If all are blocked, it can fall back to a backup link route when one is available. When metadata embedding is on, it writes ID3 tags including title, artist, and upload date, and embeds the thumbnail as cover art. Each saved track is stored in Apify key-value storage, and a dataset row is written for each track. Optional cookies.txt content can be supplied for sessions that need your authorized YouTube access.
Pricing
This Actor uses Pay per event plus Apify platform usage.
| Plan | Audio file saved |
|---|---|
| Free, Bronze | $0.012 |
| Silver | $0.011 |
| Gold and higher | $0.010 |
A tiny start fee ($0.00005) applies once per run. Failed, skipped, too-long, and invalid URLs are never charged for the file event. The live Pricing tab always shows the current numbers.
Cost example (measured, Free plan): a 19-second clip costs $0.012 for the file plus about $0.009 platform usage, roughly $0.021 in total. A 3.7-minute song costs $0.012 plus about $0.037 platform usage (about 3.6 MB of audio through a residential proxy at roughly $8 per GB, plus a little compute), roughly $0.049 in total. With sourceQuality: light the same song moves about half the traffic, so platform usage drops to about $0.02 and the total to about $0.032. Ten short clips cost roughly $0.21.
Use with AI agents (MCP)
This Actor is usable through Apify MCP as a structured tool for authorized YouTube audio conversion. It returns compact dataset rows and storage keys that agents can read directly, then hand off to transcription, analysis, or archival steps.
Tool description: Convert YouTube video or playlist URLs into one audio record per track, save the audio files in Apify key-value storage, and return MCP-ready dataset rows with track metadata, file keys, and status.
Actor identity: khadinakbar/youtube-to-mp3-downloader
Convert the YouTube URLs I provide into MP3 files, keep the result under 20 tracks, and return the dataset rows with
fileKey,title,artist, andstatusso I can route each saved file into transcription next.
Output interpretation:
- Read one dataset row per track.
- Use
statusto route each row into the next step. - Use
fileKey(ordownloadUrl) to fetch the saved audio from key-value storage. - Use
videoUrl,videoId,title, andartistfor provenance and tracking. - Use
metadataKeywhenincludeMetadataJsonis enabled and you need the full video metadata JSON. - Use
downloadUrlto fetch the audio file directly. - Use
maxResultsto bound the number of saved-track events in a run. - Use
includePlaylistwhen the URL you supply is a specific playlist you want expanded track by track. - The dataset is paginated through the Apify Dataset API, and the key-value store can be read directly from the returned storage keys.
- Cost guidance: each successfully saved track maps to the
Audio file savedevent ($0.012 on the Free plan), plus Apify platform usage of about $0.01 to $0.04 per track.
Apify API example
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ["APIFY_TOKEN"])run = client.actor("khadinakbar/youtube-to-mp3-downloader").call(run_input={"videoUrls": [{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"audioFormat": "mp3","audioBitrate": "192","embedMetadata": True})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["title"], item["fileKey"], item["status"])
Best results and outcome guidance
- Use full YouTube URLs for the videos or playlist entries you want converted.
- Keep
includePlaylistoff for a single track, and turn it on for a specific playlist URL when you want every track in that playlist. - Use
maxResultsto shape the total number of saved tracks in a run. - Choose
audioFormatbased on your downstream step:mp3for broad compatibility,m4aoropusfor efficient lossy audio, andwavorflacfor lossless output. - Leave
embedMetadataon when you want ID3 tags and thumbnail cover art embedded into the file. - Add
includeMetadataJsonwhen you need raw metadata for audits or richer downstream processing. - Supply
cookiesTxtonly for sessions you are allowed to use, such as authorized access to age-restricted or members-only content. Some media-stream requests require YouTube access proof even when metadata is public; the Actor works within YouTube access controls, so permitted access (rather than a generated PO token or proxy rotation) is what opens those streams.
Continue the workflow
- Then use YouTube Transcript and Subtitle Data Scraper to get the text of the same videos.
- Use YouTube Trending Videos Scraper to find videos worth converting.
Design note
I found that the dataset contract includes fileName, fileExtension, contentType, and metadataKey alongside fileKey, which makes the saved audio and optional metadata easy to route separately in automation.
FAQ
When should I use this Actor instead of a channel scraper?
Use it when your next step is audio extraction from a specific YouTube video or playlist URL, not channel discovery or keyword search.
Can I process a playlist in one run?
Yes. Set includePlaylist to true and provide a playlist URL. maxResults caps the total number of saved tracks in that run.
Which output fields are most useful for agents?
title, artist, audioFormat, downloadUrl, fileKey, status, and error are the most direct for routing, while videoId, uploadDate, and thumbnail add context. The run output (OUTPUT) also carries a plain-language agentSummary.
Can I save just part of a video?
Yes. Set startSeconds and endSeconds. The full video is still read, but the saved file contains only that part.
Why does a song cost more than a short clip?
Platform usage follows the audio size because the audio is fetched through a residential proxy. Use sourceQuality: light for speech and lectures to cut that part by about half.
What if YouTube asks for sign-in?
The track is retried on a fresh residential session. If every route is blocked, the row shows access_proof_required and is not charged. You can supply cookiesTxt only from an account that is allowed to view the media.
Does it download video or subtitles?
No. This Actor produces audio only. For video use All-in-One Media Downloader or Facebook Video Downloader; for captions use Video Subtitle Extractor or YouTube Transcript and Subtitle Data Scraper; for Shorts metadata use YouTube Shorts Scraper.
How can I connect this with a channel workflow?
Use YouTube Channel Videos Scraper -- Metadata & Metrics to collect a set of video URLs first, then send the selected URLs into this downloader.
What if I need raw metadata too?
Turn on includeMetadataJson and the Actor stores the full video metadata JSON in key-value storage for each successful track.
Responsible use
Respect copyright, YouTube's terms and any rights-holder requirements when you download and use audio.