# Spotify MP3 & AAC Downloader (`musicae/spotify-mp3-aac-downloader`) Actor

Download Spotify 🎧 Tracks & Albums as 320 kbps MP3 or AAC, fully tagged. ✅ 99% success rate. ⚡ Results in seconds. 📦 No API key.

- **URL**: https://apify.com/musicae/spotify-mp3-aac-downloader.md
- **Developed by:** [Musicae](https://apify.com/musicae) (community)
- **Categories:** Social media, Automation, Developer tools
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$29.99 / 1,000 files

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🎧 Spotify MP3 & AAC Downloader

**Download Spotify tracks and albums as high-quality MP3 (320 kbps) or AAC, with embedded artwork, lyrics, and full metadata tags.** Paste a link, ID, ISRC, or just a song name and get clean, tagged audio files back.

No Spotify developer account needed. No API key, no OAuth. Just paste your tracks and hit **Run**.


---

### ⚡ Why this downloader?

- 🎵 **High-quality audio**: MP3 at **320 kbps** or AAC at **256 kbps**.
- 🏷️ **Fully tagged**: every file ships with **embedded album artwork, lyrics, title, artist, album, year, genre, and ISRC**, ready for your library.
- 💿 **Tracks & albums**: download a single song or a whole album in one run.
- 🔀 **Flexible input**: accepts Spotify **URLs, track IDs, ISRCs, or search keywords**. Mix and match.
- 📦 **Clean output**: each audio file is saved to the key-value store; a tidy dataset row links to every download.
- 🔑 **No account**: no API key, no login.

---

### 🚀 How to use

1. **Add tracks or albums**: paste Spotify track links, IDs, ISRCs, or keywords, and/or album links/IDs/keywords.
2. **Pick a format**: MP3 (320 kbps) or AAC (256 kbps).
3. **Run**: click Start. Each track is downloaded, tagged, and saved.

#### Input examples

````

https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV   (track URL)
0DiWol3AO6WpXZgp0goxAV                                   (track ID)
GBDUW0000053                                             (track ISRC)
Daft Punk One More Time                                 (track keyword)

````
Plus album links, IDs, or keywords in the Albums field, and each album is expanded to all its tracks.

#### ⚙️ Options

| Option | Default | Description |
|---|:---:|---|
| 🎚️ **Audio format** | `MP3 (320 kbps)` | MP3 320 kbps or AAC 256 kbps |
| 🔢 **Results per keyword** | `3` | For keyword inputs, how many matching tracks to take |

---

### 📤 Output

Each downloaded track produces:
- an **audio file** in the key-value store (e.g. `track_0DiWol3AO6WpXZgp0goxAV.mp3`), and
- a **dataset row** with the track identity and a direct link to the file.

```json
{
    "name": "One More Time",
    "type": "track",
    "url": "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV",
    "image": "https://i.scdn.co/image/ab67616d0000b273...",
    "success": true,
    "result": "1/1",
    "mode": "url",
    "target": "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV",
    "error": null,
    "track": {
        "track_name": "One More Time",
        "track_id": "0DiWol3AO6WpXZgp0goxAV",
        "track_url": "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV",
        "track_uri": "spotify:track:0DiWol3AO6WpXZgp0goxAV",
        "track_isrc": "GBDUW0000053",
        "track_popularity": 80,
        "track_duration_ms": 320357
    },
    "download": {
        "format": "mp3",
        "filename": "One More Time - Daft Punk.mp3",
        "content_type": "audio/mpeg",
        "size_bytes": 12909054,
        "kv_key": "track_0DiWol3AO6WpXZgp0goxAV.mp3",
        "url": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/track_0DiWol3AO6WpXZgp0goxAV.mp3"
    }
}
````

Audio files are available from the **key-value store**; the dataset is exportable as **JSON**, **CSV**, or **Excel**.

***

### 💡 Use cases

- 🎶 **Offline listening**: keep your favourite tracks for personal, offline playback.
- 📚 **Library building**: get properly tagged files (artwork + lyrics + metadata) that drop straight into your music library.
- 🎛️ **DJ & creator prep**: pull individual tracks or full albums for sets, edits, and projects.
- 🤖 **Audio pipelines**: feed tagged audio into transcription, analysis, or ML workflows.
- 💿 **Album archiving**: download a complete album in one run.

***

### ❓ FAQ

**Do I need a Spotify account or API key?**
No. No developer account, no token, no OAuth. Just paste your tracks and **Run**.

**What quality do I get?**
MP3 at **320 kbps** or AAC at **256 kbps**, each with embedded album artwork, lyrics, and full metadata tags.

**What can I paste?**
Spotify track URLs, track IDs, ISRCs, or search keywords for tracks; URLs, IDs, or keywords for albums.

**Can I download a whole album?**
Yes. Add the album link, ID, or a keyword to the Albums field and every track is downloaded.

**Where do the files go?**
Each audio file is saved to the run's key-value store; the dataset row for each track includes a direct `download.url` to it.

**Is this for personal use?**
Yes, it's intended for personal, offline listening. Respect the rights of artists and rights-holders in your region.

***

### 🔌 Integrations

Connect results to your existing workflow:

- 📗 **Google Sheets**: Auto-export the download index to a spreadsheet
- 🪝 **Webhooks**: Trigger downstream actions when a run completes
- ⚡ **Zapier / Make**: Plug into 1000+ apps
- 🛠️ **API**: Fetch files and metadata programmatically from any language
- 🔄 **Scheduled runs**: Refresh your downloads on a schedule

# Actor input Schema

## `tracks` (type: `array`):

Spotify tracks to download. One entry per line.

## `albums` (type: `array`):

Spotify albums to download in full (e.g. https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj). Each album is expanded to its tracks. One entry per line.

## `format` (type: `string`):

Output format: MP3 (320 kbps) or AAC (256 kbps). Both include embedded artwork, lyrics, and metadata tags.

## `searchKeywordLimit` (type: `integer`):

Cap the number of results returned per search keyword. Only applies when using keywords (URL, ID, and ISRC inputs always return one result each).

## `proxyConfiguration` (type: `object`):

Select proxies to be used by the scraper. Apify Proxy is enabled by default.

## Actor input object example

```json
{
  "tracks": [
    "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV"
  ],
  "format": "mp3",
  "searchKeywordLimit": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tracks": [
        "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV"
    ],
    "format": "mp3",
    "searchKeywordLimit": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("musicae/spotify-mp3-aac-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tracks": ["https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV"],
    "format": "mp3",
    "searchKeywordLimit": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("musicae/spotify-mp3-aac-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tracks": [
    "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV"
  ],
  "format": "mp3",
  "searchKeywordLimit": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call musicae/spotify-mp3-aac-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=musicae/spotify-mp3-aac-downloader",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Spotify MP3 & AAC Downloader",
        "description": "Download Spotify 🎧 Tracks & Albums as 320 kbps MP3 or AAC, fully tagged. ✅ 99% success rate. ⚡ Results in seconds. 📦 No API key.",
        "version": "2.0",
        "x-build-id": "12SCTD8a058vKzdi4"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/musicae~spotify-mp3-aac-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-musicae-spotify-mp3-aac-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/musicae~spotify-mp3-aac-downloader/runs": {
            "post": {
                "operationId": "runs-sync-musicae-spotify-mp3-aac-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/musicae~spotify-mp3-aac-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-musicae-spotify-mp3-aac-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "tracks": {
                        "title": "🔍 Track URLs, IDs, ISRCs, or Search Keywords",
                        "type": "array",
                        "description": "Spotify tracks to download. One entry per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "albums": {
                        "title": "💿 Album URLs, IDs, or Keywords",
                        "type": "array",
                        "description": "Spotify albums to download in full (e.g. https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj). Each album is expanded to its tracks. One entry per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "format": {
                        "title": "Audio format",
                        "enum": [
                            "mp3",
                            "aac"
                        ],
                        "type": "string",
                        "description": "Output format: MP3 (320 kbps) or AAC (256 kbps). Both include embedded artwork, lyrics, and metadata tags.",
                        "default": "mp3"
                    },
                    "searchKeywordLimit": {
                        "title": "Maximum results per search keyword",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Cap the number of results returned per search keyword. Only applies when using keywords (URL, ID, and ISRC inputs always return one result each).",
                        "default": 3
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by the scraper. Apify Proxy is enabled by default."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
