Spotify Music/Mp3 Downloader avatar

Spotify Music/Mp3 Downloader

Pricing

Pay per usage

Go to Apify Store
Spotify Music/Mp3 Downloader

Spotify Music/Mp3 Downloader

Extract Spotify artist, tracks & playlists with title, artists, duration, album art, and multiple audio formats (M4A/WebM) including bitrates. Get YouTube fallback links, playlist tracking with indices, and artist metadata with Spotify URIs. Perfect for music archiving!

Pricing

Pay per usage

Rating

0.0

(0)

Developer

CodeNest

CodeNest

Maintained by Community

Actor stats

0

Bookmarked

11

Total users

6

Monthly active users

4 days ago

Last modified

Share

🎵 Spotify Music & MP3 Downloader

Fast, reliable, and metadata-rich Spotify audio downloader on Apify. Batch extract audio streams, album covers, and complete track metadata from any public Spotify track, playlist, or album link.


📋 Overview

Need to archive music, build playlists, extract preview clips, or integrate music streaming data into your workflow? Spotify Music & MP3 Downloader delivers everything in one clean JSON record:

  • 🎧 Direct Audio Links: Instant CDN download URLs in AAC (.m4a) and Opus (.webm) audio formats.
  • 🎼 Single-Click Download: Top-level audio_download_url for effortless downstream automation.
  • 📻 Spotify 30s Audio Preview: Direct MP3 preview clip stream straight from Spotify CDN.
  • 📦 Batch Playlist & Album Support: Enter full playlists or albums; the actor automatically expands and processes every track.
  • 📝 Rich Metadata: Song title, artist names with Spotify URIs, album name, release date, explicit flag, duration in seconds, and timestamps.
  • 🖼️ Full HD Artwork: 640x640 high-resolution album cover thumbnails.
  • 💰 Fair Pay-Per-Event Pricing: Pay only for successful track downloads with a generous free trial.

💎 Pricing & Pay-Per-Event (PPE)

This actor operates on a transparent Pay-Per-Event billing model:

Plan / EventCostDetails
Event: spotify-track$0.005 / trackCharged per successfully scraped & resolved audio track
Free TrialFree (3 tracks)Unpaid Apify users can test up to 3 tracks per run
Paid SubscribersUnlimitedUnlimited track and playlist extraction with per-event charging

No expensive compute unit (CU) waste — lightweight, fast, and cost-effective.


✨ Core Features

🎧 Audio Stream Extraction

  • Multiple Formats: Direct links for both M4A (AAC) and WebM (Opus).
  • Exact Bitrates: Audio bitrate reported in kbps.
  • Top-Level Download URL: Convenient audio_download_url pointing directly to the highest-compatibility AAC stream.
  • Official 30s Preview: Direct link to Spotify's official 30-second MP3 preview.

📚 Comprehensive Metadata

  • Track & Artist Details: Song title, primary track name, formatted artist names, and detailed artist arrays with Spotify URIs.
  • Album & Release Details: Album name, exact ISO release date (YYYY-MM-DD), and explicit content tag (true/false).
  • High-Res Visuals: Up to 640x640 album artwork.
  • Playlist Position Tracking: Original playlist/source URL, track_index, and total_tracks.

⚙️ Input Configuration

Paste any public Spotify track, playlist, or album URL into the spotify_urls list:

{
"spotify_urls": [
{
"url": "https://open.spotify.com/track/18Rn3LSsOlsPKdYL0DzomL"
},
{
"url": "https://open.spotify.com/playlist/37i9dQZF1E4mFcb8TyZl7v"
}
]
}

📝 Input Fields

ParameterTypeRequiredDescription
spotify_urlsArray of ObjectsYesList of Spotify track, playlist, or album URLs
urlStringYesValid Spotify URL (e.g. https://open.spotify.com/track/... or https://open.spotify.com/playlist/...)
max_concurrencyIntegerNoParallel worker count (default: 6, min: 1, max: 15). Accelerates playlist and album extraction by up to 6x–8x.
proxyObjectNoProxy configuration (defaults to Apify US Residential Proxy).

📤 Output Structure

Every processed track produces a comprehensive JSON record in your Apify dataset:

{
"spotify_url": "https://open.spotify.com/track/18Rn3LSsOlsPKdYL0DzomL",
"title": "Din Gelo - Habib Wahid",
"track_name": "Din Gelo",
"artist_name": "Habib Wahid",
"album_name": "Panjabiwala",
"release_date": "2008-01-01",
"explicit": false,
"duration": "5m 40s",
"duration_sec": 340.1,
"thumbnail": "https://image-cdn-fa.spotifycdn.com/image/ab67616d0000b27375ab73fa7da733762d2cb5a3",
"preview_url": "https://p.scdn.co/mp3-preview/...",
"audio_download_url": "https://rr5---sn-u1hp55-5c.googlevideo.com/videoplayback?...",
"youtube_url": "https://www.youtube.com/watch?v=S7DxwCNw3y4",
"artists": [
{
"name": "Habib Wahid",
"uri": "spotify:artist:60jYUgQzKAtnJoXKGk1GNn"
}
],
"audio_formats": [
{
"audio_link": "https://rr5---sn-u1hp55-5c.googlevideo.com/videoplayback?...",
"audio_format": "m4a",
"audio_bitrate": 48.8,
"explanation": "Audio format: m4a, Bitrate: 48.8 kbps"
},
{
"audio_link": "https://rr5---sn-u1hp55-5c.googlevideo.com/videoplayback?...",
"audio_format": "webm",
"audio_bitrate": 53.8,
"explanation": "Audio format: webm, Bitrate: 53.8 kbps"
}
],
"source_url": "https://open.spotify.com/playlist/37i9dQZF1E4mFcb8TyZl7v",
"source_type": "playlist",
"track_index": 1,
"total_tracks": 50,
"type": "single",
"error": false,
"scraped_at": "2026-10-25T13:20:04.123456Z"
}

📊 Output Field Reference

FieldTypeDescription
spotify_urlStringDirect canonical Spotify URL for the track
titleStringFull title formatted as Song Name - Artist
track_nameStringClean track title
artist_nameStringComma-separated list of performing artists
album_nameStringAlbum title
release_dateStringAlbum / track release date (ISO format YYYY-MM-DD)
explicitBooleantrue if content is flagged explicit, else false
durationStringFormatted duration (e.g. 5m 40s)
duration_secNumberExact duration in seconds
thumbnailStringHigh-resolution 640x640 album cover artwork
preview_urlStringOfficial Spotify 30-second MP3 preview clip stream URL
audio_download_urlStringPrimary high-speed direct audio stream download URL
youtube_urlStringMatched audio source URL
artistsArrayFull artist list with individual names and Spotify URIs
audio_formatsArrayDetailed audio streams with format and bitrate info
source_urlStringInput playlist/album/track URL
source_typeStringSource origin (single, playlist, album)
track_indexNumberTrack index in the batch
total_tracksNumberTotal tracks in the batch
scraped_atStringISO 8601 scraping timestamp

🎚️ Audio Codecs & Compatibility

  1. M4A (AAC Codec): Compatible natively with iOS, macOS, Windows, Android, and web browsers.
  2. WebM (Opus Codec): Next-gen audio codec offering superior acoustic clarity at compact file sizes.
  3. Official Preview (MP3): 30-second official snippet suitable for ringtones, UI snippets, and audio fingerprints.

🛡️ Best Practices & Notes

  • Private & Region-Locked Tracks: Only publicly discoverable Spotify tracks can be fetched.
  • Direct Link Validity: YouTube CDN streaming URLs contain security tokens that expire after several hours. If you need long-term storage, download the audio file directly to your S3 bucket or local drive upon extraction.
  • Large Playlists: For playlists exceeding 100 tracks, consider splitting across multiple runs or configuring appropriate timeout settings.

💬 Support & Customization

Need custom audio extraction, higher bitrates, ID3 tag injection, or webhook integrations? Contact us at: codenest2.0@gmail.com