# MP3 Downloader | Shortcuts Library

> Downloads mp3 songs from YouTube using Spotify metadata

## What this shortcut does

Downloads mp3 songs from YouTube using Spotify metadata
1) Enter the album name
2) The shortcut shows the songs in the album
3) Enter the numbers of the songs you want to download (Example : 1,2,3,5) - Maximum 5 songs at a time
4) Wait for the shortcut to complete its process
5) Then it will prompt to save the mp3 on your iPhone
6) Save it to the VLC folder on your iPhone to play the songs in VLC (You can use other music players too)
Working of the shortcut Explained:
This shortcut is powered by Spotify's API, song.link 's API, Amazon Web Services Cloud (Lambda, S3, DynamoDB, API Gateway).
The shortcut starts by asking for the album name. If the album is found on Spotify it proceeds or if not found shows 'album not found' and the shortcut stops. Shortcuts calls the API for the 1st Lambda function which returns the Spotify Album ID and the song list to shortcuts. Shortcuts then shows the song list and asks the user to input the songs to download. Shortcuts take this input and album ID to call the API for 2nd lambda function. The second lambda function assigns a process-id, calls a 3rd lambda function (no api call needed for 3rd func because it is called by the 2nd function) and returns a p-id to shortcuts. Then shortcuts waits for the 3rd lambda function to complete downloading and the songs depending on the number of songs requested. Shortcuts then calls the 3rd function with p-id to get the links of the S3 urls of the songs. The function returns the links to shortcuts. Shortcuts uses those links to download the songs using the urls and saves it to your iPhone.

## Compatibility

iPhone, iPad

## Required apps



[View this page](https://shortcutlibrary.app/shortcuts/mp3-downloader)

[Download Shortcuts Library on the App Store](https://apps.apple.com/app/id6759494377)
