YouTube Music Downloader

YouTube Music Downloader

by apilabs

Download music from YouTube Music in high quality, without limits. A fast, affordable Apify actor for automation and personal use.

234 runs
17 users
Try This Actor

Opens on Apify.com

About YouTube Music Downloader

Need to grab high-quality audio from YouTube Music without the usual hassle or cost? I've been there, trying to build playlists for projects or just wanting offline access to my favorite tracks. This actor is what I ended up using. It lets you download music from YouTube Music quickly and without any arbitrary limits on quantity. The quality is preserved, so you get the actual audio file, not a compressed re-encode. It runs reliably on Apify's platform, which means you can plug it directly into your own workflows for automation or integrate it with other tools via API. Whether you're a developer building a media app, a researcher compiling audio datasets, or just someone who wants a reliable way to archive music, this handles the heavy lifting. It's straightforward, cost-effective, and just works—saving you the time of building a scraper from scratch.

What does this actor do?

YouTube Music Downloader is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

YouTube Music Downloader

Overview

An Apify actor for downloading music from YouTube Music. It supports downloading both video and audio in formats like MP4 and MP3, with configurable quality and proxy support to avoid IP blocking.

Key Features

  • Download Video: Fetch and store high-quality music videos from YouTube Music.
  • Download Audio: Extract and save audio tracks, primarily as MP3 files.
  • Format Options: Choose between MP3 (audio) and MP4 (video) formats.
  • Proxy Support: Configure a proxy to help prevent IP blocking by YouTube.
  • Structured Storage: Downloads and their links are stored in separate Apify datasets for easy management.

Important Notes

  • Proxy: Using a reliable proxy is recommended to avoid IP blocking, though it may increase download times.
  • macOS QuickTime: Downloaded MP4 videos may not play in QuickTime Player due to codec issues. Use VLC or convert the file with FFmpeg.
  • Storage: Each run stores the download link in one dataset and the actual media file in another.

Input Parameters

Configure the actor with these input fields:

  • url (string, required): The full YouTube Music video or track URL.
  • onlyAudio (boolean): Set to true to download audio only (e.g., MP3). Default is false for video.
  • useFFmpeg (boolean): Set to true to use FFmpeg for processing. Recommended for reliability.
  • proxy (object, optional): Proxy configuration object. Using useApifyProxy is a good option.

Output

On a successful run, the actor stores an item in the dataset with this structure:

{
  "download_link": "your_download_link_here",
  "status_code": 200
}

The actual media file is saved to a separate Apify Key-Value Store, accessible via the download_link.

How to Use

Here’s a basic Python example using the Apify Client:

from apify_client import ApifyClient

# Initialize client with your API token
client = ApifyClient('your_apify_api_token')

# Prepare the actor input
run_input = {
    "url": "https://music.youtube.com/watch?v=...",
    "onlyAudio": False,  # Set True for MP3
    "useFFmpeg": True,
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}

# Run the actor
run = client.actor('apilabs/youtube-video-downloader').call(run_input=run_input)

# Fetch the dataset items to get the download link
dataset_client = client.dataset(run['defaultDatasetId'])
items = dataset_client.list_items().items

# Download the file using the link from the dataset
if items:
    download_link = items[0]['download_link']
    # Use requests or similar to fetch the file from download_link

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try YouTube Music Downloader now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
apilabs
Pricing
Paid
Total Runs
234
Active Users
17
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support