# Spotify Playlists in a List Scraper (`nifty.codes/spotify-playlists-scraper`) Actor

Extract playlists from search results and user profiles with names, descriptions, and owner details. Powered by Spotify Scraper.

- **URL**: https://apify.com/nifty.codes/spotify-playlists-scraper.md
- **Developed by:** [Nifty](https://apify.com/nifty.codes) (community)
- **Categories:** Social media, Marketing
- **Stats:** 11 total users, 2 monthly users, 96.9% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

This actor extracts Playlists from Spotify. It works on search results, user profiles, and browse pages that display lists of playlists. The scraper returns playlist metadata including owner details, cover images, and unique identifiers.

***

#### Want more from Spotify?

This actor covers Playlists only. The full **Spotify Scraper** browser extension also includes **Tracks, Lyric Lines, Playlists, Artists, Releases, Albums, Profiles** with unlimited personal use, real-time scraping with your logged-in sessions, CSV/Excel/JSON export, field customization, and scheduled monitoring.

**[Get the Spotify Scraper extension](https://nifty.codes/e/spotify-scraper?utm_source=apify\&utm_medium=actor_readme\&utm_content=spotify-playlists-scraper)**

***

#### Data Fields

| Field Name | Description | Example |
| --- | --- | --- |
| Playlist Name | The title of the playlist | "Chill Lo-fi Beats" |
| Playlist Description | The text description of the playlist | "Relaxing music for study and work." |
| Playlist URI | Spotify internal resource identifier | "spotify:playlist:37i9dQZF1DX8Ueb9MZIpkL" |
| Playlist Format | The layout format of the playlist | "LIST" |
| Owner Name | Display name of the playlist creator | "Spotify" |
| Owner Username | Username of the playlist creator | "spotify" |
| Owner URI | Spotify URI for the owner profile | "spotify:user:spotify" |
| All Owner Avatars | List of profile image URLs for the owner | "https://i.scdn.co/image/ab6775700000ee85..." |
| Playlist Cover URL | URL to the playlist cover image | "https://i.scdn.co/image/ab67706f00000002..." |
| Playlist Cover Color | Dominant color code of the cover art | "#ffffff" |
| Attributes | Additional playlist metadata | "\[]" |
| Playlist Type | The type of Spotify entity | "playlist" |
| Playlist URL | Public web link to the playlist | "https://open.spotify.com/playlist/37i9dQZF1DX8Ueb9MZIpkL" |

#### Input

- `urls`: Array of Spotify URLs. Use search result pages or user profile pages showing playlists.
- `maxItems`: Maximum number of playlists to extract per URL. Default is 100.

#### Example Input

```json
{
  "urls": ["https://open.spotify.com/search/lofi/playlists"],
  "maxItems": 50
}
```

#### Example Output

```json
[
  {
    "playlistName": "Lofi Girl - beats to relax/study to",
    "playlistDescription": "The official Lofi Girl playlist.",
    "playlistUri": "spotify:playlist:0vvXsWCC9xrXsKd4FyS8kM",
    "playlistFormat": "LIST",
    "ownerName": "Lofi Girl",
    "ownerUsername": "lofigirl",
    "ownerUri": "spotify:user:lofigirl",
    "allOwnerAvatars": "https://i.scdn.co/image/ab6775700000ee85...",
    "playlistCoverUrl": "https://i.scdn.co/image/ab67706f00000002...",
    "playlistCoverColor": "#000000",
    "attributes": "[]",
    "playlistType": "playlist",
    "playlistUrl": "https://open.spotify.com/playlist/0vvXsWCC9xrXsKd4FyS8kM"
  },
  {
    "playlistName": "Coffee Shop Vibes",
    "playlistDescription": "A cozy atmosphere for your morning.",
    "playlistUri": "spotify:playlist:37i9dQZF1DX4sWSp4KmOR3",
    "playlistFormat": "LIST",
    "ownerName": "Spotify",
    "ownerUsername": "spotify",
    "ownerUri": "spotify:user:spotify",
    "allOwnerAvatars": "https://i.scdn.co/image/ab6775700000ee85...",
    "playlistCoverUrl": "https://i.scdn.co/image/ab67706f00000002...",
    "playlistCoverColor": "#888888",
    "attributes": "[]",
    "playlistType": "playlist",
    "playlistUrl": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSp4KmOR3"
  }
]
```

#### Disclaimer

This tool extracts publicly available data. Users are responsible for compliance with applicable terms of service.

# Actor input Schema

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

URLs to scrape. Must match: spotify.com

## `maxItems` (type: `integer`):

Maximum number of items to extract per URL

## `enablePagination` (type: `boolean`):

Load more results beyond the first page.

## `maxPages` (type: `integer`):

Maximum number of pagination actions (pages, scrolls, or loads)

## `includeRaw` (type: `boolean`):

Add the unformatted extraction beside every row.

## Actor input object example

```json
{
  "urls": [
    "https://open.spotify.com/search/chill/playlists",
    "https://open.spotify.com/search/hiphop/playlists"
  ],
  "maxItems": 100,
  "enablePagination": true,
  "maxPages": 1,
  "includeRaw": false
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("nifty.codes/spotify-playlists-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("nifty.codes/spotify-playlists-scraper").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 '{}' |
apify call nifty.codes/spotify-playlists-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/1AfZvuPddmK0mZymw/builds/dJrFX3US1hFFikuFE/openapi.json
