VOOZH about

URL: https://apify.com/apilabs/youtube-music-downloader

⇱ YouTube Music Downloader Β· Apify


Pricing

$10.00/month + usage

Go to Apify Store

YouTube Music Downloader

Download YouTube music without any limits

Pricing

$10.00/month + usage

Rating

0.0

(0)

Developer

πŸ‘ ApiLabs

ApiLabs

Maintained by Community

Actor stats

2

Bookmarked

33

Total users

0

Monthly active users

2 months ago

Last modified

Share

YouTube Music Downloader API

Overview

The YouTube Music Downloader API provides a powerful and flexible solution for downloading Music from youtube music. With support for multiple formats like MP3 and MP4. This API is perfect for developers looking to integrate seamless media downloading capabilities into their applications.

Features

  • Download Video: Fetch and store high-quality music from YouTube music.
  • Download Audio: Extract and save audio tracks in various formats, including MP3.
  • Format Options: Choose between MP3 and MP4 formats for your downloads.

Important Notes

  1. Proxy Usage: If you are using a proxy, please ensure that it is correctly configured and you are using a reliable proxy group. This will help avoid IP blocking by YouTube.

  2. QuickTime Note for Mac Users: If you are using macOS, the downloaded video may not work properly with QuickTime Player due to codec issues. In such cases, use a different media player like VLC, or convert the file format using a tool like FFmpeg.

  3. Video and Link Storage: Every time the API runs:

    • The video download link is stored in one dataset.
    • The actual video is stored in another dataset, enabling easy access and management of the media files.

Input Parameters

The API accepts the following input parameters:

  • url: The URL of the YouTube video or audio content to download.
  • onlyAudio: A boolean flag (true/false) indicating whether to download audio only.
  • useFFmpeg: A boolean flag (true/false) to specify if FFmpeg should be used for processing.
  • proxy: (Optional) The proxy URL to be used for the download.

Note: Using a proxy is recommended to avoid being blocked by YouTube. However, it may increase download times. If you experience any issues, consider changing your proxy.

Output

Upon a successful request, the API stores an item in the dataset the following format:

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

Usage Example Python

The following example shows an full example of usage from running an actor to downloading the video on your device.

import requests
import mimetypes
from apify_client import ApifyClient
# Initialize the ApifyClient with an API token
# (You can generate your own Apify API token for authentication)
apify_client = ApifyClient('your_apify_api_token')
# Define the input for the actor that downloads TikTok videos
actor_input ={
"audioOnly":False,# Set to True if you only want to download audio, False for full video
"ffmpeg":True,# Whether to use ffmpeg for processing
"proxy":{
"useApifyProxy":True,# Enable the use of Apify Proxy
"apifyProxyGroups":["RESIDENTIAL"],# Specify the proxy group to use (e.g., residential)
"apifyProxyCountry":"HR"# Set the country code for the proxy (e.g., HR for Croatia)
},
"url":"TikTok_url"# The TikTok URL to download
}
# Start the actor on Apify and wait for it to finish
# (Replace 'demolitore/my-actor' with the actor you want to use)
actor_call = apify_client.actor('apilabs/youtube-video-downloader').call(run_input=actor_input)
# Retrieve the dataset associated with the TikTok downloader
my_dataset_client = apify_client.dataset('your_username/YouTube-Video-Downloader')
# Fetch the most recent dataset entry, which contains the download link
l = my_dataset_client.list_items(limit=1, desc=True)#Get the only last element inserted
url = l.items[0]['download_link']# Extract the download link from the dataset
# Download the file using the URL extracted from the dataset
response = requests.get(url)
# If the download is successful (status code 200), proceed to save the file
if response.status_code ==200:
# Get the Content-Type from the response headers to infer the file extension
content_type = response.headers.get('Content-Type')
# Guess the appropriate file extension based on the Content-Type
extension = mimetypes.guess_extension(content_type.split(';')[0])
# Extract the base filename from the URL and append the correct file extension
filename = url.split("/")[-1].split("?")[0]
filename =f"{filename}{extension}"# Combine the base filename with the extension
# Save the file to the local disk in binary mode
withopen(filename,'wb')asfile:
file.write(response.content)
# Print success message with the saved filename
print(f"File downloaded successfully as {filename}.")
else:
# Print an error message if the download fails
print(f"Failed to download file. Status code: {response.status_code}")

Disclaimer

This tool is intended for personal use and educational purposes only. Users are solely responsible for ensuring their use complies with YouTube's Terms of Service, applicable copyright laws, and any other relevant regulations. Downloading copyrighted content without the rights holder's permission may be illegal in your jurisdiction. The developers of this tool do not condone piracy and accept no liability for misuse.

You might also like

YouTube Music Scraper

scrapearchitect/youtube-music-scraper

🎡 Scrape full YouTube Music track data 🎧 titles, artists, views, likes, formats, heatmaps, stream URLs & more! πŸš€ Perfect for devs, analysts & music lovers 🎢 No login, proxy-ready πŸ” Fast & powerful! ⚑ 🎧 YouTube Music Scraper 🎡

πŸ‘ User avatar

Scrape Architect

40

YouTube Video Downloader

apilabs/youtube-video-downloader

Download YouTube videos or extract audio without any limits

YouTube Shorts Music & Sound Trend Tracker

sian.agency/youtube-shorts-sound-trend-tracker

Find which songs are blowing up on YouTube Shorts. Map any sound to every viral Short using it. Track adoption volume per track, discover trending audio, surface high-engagement videos by music. For music labels, indie artists, sync scouts and creator-marketing agencies.

2

Youtube Video Downloader

crawlerbros/youtube-video-downloader

Download YouTube videos, playlists, and entire channels in your preferred quality from 360p all the way up to the best available resolution. Each downloaded video is automatically stored with a shareable public link and comes with rich metadata including title, description, view counts, thumbnails.

60

Youtube Video Downloader

ssyoutube/youtube-video-downloader

A YouTube Video Downloader is a software tool, web application, or browser extension that allows users to save YouTube videos directly to their local device for offline viewing. Instead of streaming content repeatedly, users can download videos and watch them anytime without an internet connection.

YouTube Video Downloader - Optimized for Automation ✨

scrapearchitect/youtube-video-downloader-optimized-for-automation

Storage mode: MP4 with embedded audio πŸ”Š β€” up to 1080p (long) / 1920p (Shorts) ✨ plus separate 320kbps MP3 🎡 Also provides Direct (raw 8K) and Redirect links πŸ”— immediate results βœ…, optional rich metadata πŸ“Š, and automation-ready (n8n, AWS Lambda, Make.com, Zapier) πŸ€– YouTube Video Downloader✨

πŸ‘ User avatar

Scrape Architect

31

5.0

πŸ§’ YouTube-Kids Video Downloader πŸ“₯

scrapearchitect/youtube-kids-video-downloader

✨ Safely download HD (360p-8K) kids' videos in few mins! πŸ§’πŸŽžοΈ Offers direct video/audio links, merged files & child-safe filtering. 🌍 Proxy support for global access. ✨ Perfect for trips, offline play & family fun! πŸ“₯ πŸš€ YouTube Kids Video Downloader ✨

πŸ‘ User avatar

Scrape Architect

167

YouTube Video Downloader

api-ninja/youtube-video-downloader

πŸ”₯ Download YouTube 4K videos & HQ audio (MP3/FLAC) with persistent storage. Stop links from expiring! Supports multi-language tracks & bulk processing. Professional, high-speed standalone media API.

493

4.7

🎡 YouTube Audio/MP3 Downloader

scrapearchitect/youtube-audio-mp3-downloader

🎧 Transform ANY YouTube Video, Short, or Kids clip into MP3! πŸš€ Get EVERY audio track & language available 🌍 (EN, ES, DE, HI + more!) in high-quality formats (WEBM, M4A). ⬇️ Download fast & secure! πŸ”₯ 🎡 Download Audio/MP3 from YouTube Video, Shorts & YouTube-Kids Video instantly!⚑

πŸ‘ User avatar

Scrape Architect

136

3.8

YouTube Video Downloader - MP4 & MP3

marielise.dev/youtube-video-downloader

Download YouTube videos and Shorts directly to your device in MP4 or MP3 format. Supports batch downloads, quality selection from 360p to 1080p, and audio-only extraction. Powered by yt-dlp for reliable downloads. Pay per minute β€” only charged on successful downloads.

691

4.4