# Spotify Playlist & Album Scraper - Tracks, Artists & Previews (`aolmo/spotify-playlist`) Actor

Tracks of any public Spotify playlist, album or single by URL, without login or API key: title, artists, duration, explicit flag and 30-second preview link, plus playlist or album name, owner or artist, cover and release date. New tracks flagged on scheduled runs. $0.0005 per track.

- **URL**: https://apify.com/aolmo/spotify-playlist.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 9 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 track scrapeds

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Export the tracks of any public Spotify playlist, album or single track without logging in and without a Spotify API key. Paste the links (or `spotify:` URIs) and the Actor returns one row per track with title, artists, duration, explicit flag, playability and the 30-second MP3 preview link, together with the playlist or album name, owner or artist, cover and release date. Schedule it on a playlist and every track added since the previous run is flagged. Playlist monitoring, music marketing, playlist pitching, catalog research and content curation at $0.0005 per track.

### What you get

**Track** (one row each): `position`, `id`, `uri`, `url`, `title`, `artists` (list), `artistsText`, `durationMs`, `isExplicit`, `isPlayable`, `previewUrl` (30-second MP3 when Spotify offers one).

**Source** on every row: `sourceKind` (playlist, album or track), `sourceId`, `sourceUrl`, `sourceName`, `sourceSubtitle` (playlist owner or album artist), `coverUrl`, `releaseDate` (albums and tracks), `tracksCount`.

**Changes** on scheduled runs: `isNew` is true for tracks that were not in the playlist in the previous run of the same URL; the event also reports how many tracks were removed.

Private, deleted or unknown playlists return a row with an `error` field and are not charged.

### How to use it

1. Open the **Input** tab.
2. Add **Spotify URLs**, one per line (up to 500 per run): `https://open.spotify.com/playlist/<id>`, `https://open.spotify.com/album/<id>`, `https://open.spotify.com/track/<id>` or `spotify:playlist:<id>`. Links with a country prefix such as `/intl-es/` work too.
3. Click **Start** and export the rows as JSON, CSV or Excel.
4. Schedule the Actor on a playlist to be notified when tracks are added.

### Input

```json
{
  "urls": [
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
    "https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy"
  ]
}
```

### Output

```json
{
  "sourceKind": "playlist",
  "sourceId": "37i9dQZF1DXcBWIGoYBM5M",
  "sourceUrl": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
  "sourceName": "Today's Top Hits",
  "sourceSubtitle": "Spotify",
  "coverUrl": "https://i.scdn.co/image/ab67706f00000002...",
  "releaseDate": null,
  "tracksCount": 50,
  "position": 1,
  "id": "2sFepQNyl1WjpROruP8bJ0",
  "uri": "spotify:track:2sFepQNyl1WjpROruP8bJ0",
  "url": "https://open.spotify.com/track/2sFepQNyl1WjpROruP8bJ0",
  "title": "Housewife",
  "artists": ["Tate McRae"],
  "artistsText": "Tate McRae",
  "durationMs": 208810,
  "isExplicit": false,
  "isPlayable": true,
  "previewUrl": "https://p.scdn.co/mp3-preview/...",
  "isNew": false,
  "timestamp": "2026-10-28T10:00:00.000Z"
}
```

### Pricing

Pay per event: **$0.0005 per track** and **$0.001 per new track** detected on a scheduled run. Unavailable playlists are free. Fifty playlists of 50 tracks cost $1.25.

### Limits and notes

- Spotify serves the first 50 tracks of a playlist or album to visitors without a session; longer playlists are truncated at 50.
- Podcasts (shows and episodes) and artist pages are not supported; use playlist, album or track links.
- Private and collaborative playlists that are not public cannot be read.
- Audio previews are only available for tracks that Spotify publishes a preview for.

### Related Actors

- **YouTube Channel Videos**: the latest uploads of a music channel.
- **Apple Podcasts**: episodes of a podcast.
- **TikTok Video**: stats of the videos that use a track.

# Actor input Schema

## `urls` (type: `array`):

One per line: https://open.spotify.com/playlist/<id>, https://open.spotify.com/album/<id>, https://open.spotify.com/track/<id> or spotify:playlist:<id>. Up to 500 per run.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "urls": [
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
  ],
  "product": "spotify-playlist"
}
```

# Actor output Schema

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

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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 = {
    "urls": [
        "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/spotify-playlist").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 = { "urls": ["https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"] }

# Run the Actor and wait for it to finish
run = client.actor("aolmo/spotify-playlist").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
  ]
}' |
apify call aolmo/spotify-playlist --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aolmo/spotify-playlist"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Txu6QaIEnZ0dMEhRu/builds/6yQqsWTbozXh4nrs8/openapi.json
