# YouTube Music Playlist Scraper 🎵 (`easyapi/youtube-music-playlist-scraper`) Actor

Scrape YouTube Music playlists data by keywords. Extract playlist details including title, thumbnail URLs, creator info, song count and more. Perfect for music data analysis and playlist discovery.

- **URL**: https://apify.com/easyapi/youtube-music-playlist-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Integrations, Other
- **Features:** Limited permissions
- **Stats:** 31 total users, 3 monthly users, 0.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## YouTube Music Playlist Scraper 🎵

Extract playlist data from YouTube Music search results based on your keywords. This actor helps you discover and analyze music playlists at scale.

### 🎯 Use Cases

- Music trend analysis and research
- Playlist discovery and curation
- Content recommendation systems
- Music marketing research
- Competitive analysis for music platforms

### ✨ Features

- Search playlists by multiple keywords
- Extract detailed playlist information:
  - Playlist title
  - Thumbnail images in various sizes
  - Playlist ID and direct URL
  - Creator information
  - Number of songs
- Customizable maximum items per search
- Built-in anti-blocking measures
- Clean, structured JSON output
- Automatic pagination handling

### 🔍 Output Data Structure

The actor provides data in JSON format with the following structure for each playlist:

### 💡 Input Parameters

- `keywords` (Array): List of keywords to search for playlists
- `maxItems` (Number): Maximum number of playlists to scrape per keyword (default: 50)

### 📊 Output Quality

- Clean, structured data
- Consistent format
- Real-time timestamps
- High-quality thumbnail links in multiple resolutions
- Direct playlist URLs for easy access

### 🚀 Getting Started

1. Input your search keywords
2. Set maximum items limit (optional)
3. Run the actor and get structured playlist data

### 💪 Reliability

- Built-in retry mechanism
- Random delays to prevent blocking
- Stealth browser configuration
- Efficient memory management

### 🎯 Ideal For

- Music Industry Professionals
- Content Creators
- Music Researchers
- Playlist Curators
- Digital Marketing Teams

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "keywords": [
        "love"
    ],
    "maxItems": 70
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "keyword": "love",
        "data": {
            "title": "'80s Lost-Love Ballads",
            "thumbnails": [
                {
                    "url": "https://lh3.googleusercontent.com/4eUpYFzbl_vvkbFKQLKh5NO3xVQpGVTNOgapMbgtw606zxhwZfPKQG0wlfGv6egYQDzyxuyVfHbhmz0=w60-h60-l90-rj",
                    "width": 60,
                    "height": 60
                },
                {
                    "url": "https://lh3.googleusercontent.com/4eUpYFzbl_vvkbFKQLKh5NO3xVQpGVTNOgapMbgtw606zxhwZfPKQG0wlfGv6egYQDzyxuyVfHbhmz0=w120-h120-l90-rj",
                    "width": 120,
                    "height": 120
                },
                {
                    "url": "https://lh3.googleusercontent.com/4eUpYFzbl_vvkbFKQLKh5NO3xVQpGVTNOgapMbgtw606zxhwZfPKQG0wlfGv6egYQDzyxuyVfHbhmz0=w226-h226-l90-rj",
                    "width": 226,
                    "height": 226
                },
                {
                    "url": "https://lh3.googleusercontent.com/4eUpYFzbl_vvkbFKQLKh5NO3xVQpGVTNOgapMbgtw606zxhwZfPKQG0wlfGv6egYQDzyxuyVfHbhmz0=w544-h544-l90-rj",
                    "width": 544,
                    "height": 544
                }
            ],
            "playlistId": "RDCLAK5uy_ksipJjVZdxcV7NDXwU_XH5lB3p2pne-eQ",
            "creator": {
                "name": "YouTube Music"
            },
            "songCount": "52 songs",
            "url": "https://music.youtube.com/playlist?list=RDCLAK5uy_ksipJjVZdxcV7NDXwU_XH5lB3p2pne-eQ"
        },
        "scrapedAt": "2025-02-09T12:52:46.772Z"
    },
    ...
]
```

### Related Actors

- 🎵 [YouTube Music Song Scraper](https://apify.com/easyapi/youtube-music-song-scraper) - Extract song details from YouTube Music search results with comprehensive metadata.
- 🎵 [YouTube Music Video Scraper](https://apify.com/easyapi/youtube-music-video-scraper) - Get video information from YouTube Music including titles, views, and channel details.
- 🎵 [YouTube Music Artist Scraper](https://apify.com/easyapi/youtube-music-artist-scraper) - Scrape artist information with subscriber counts and channel data.
- 🎧 [YouTube Music Podcast Scraper](https://apify.com/easyapi/youtube-music-podcast-scraper) - Extract podcast playlists data with detailed information.
- 🎵 [YouTube Music Profile Scraper](https://apify.com/easyapi/youtube-music-profile-scraper) - Get channel profiles and details from YouTube Music search results.
- 🎵 [YouTube Music Albums Scraper](https://apify.com/easyapi/youtube-music-albums-scraper) - Extract album data including titles, artists, and release years.
- 📺 [YouTube Video Data Scraper](https://apify.com/easyapi/youtube-video-data-scraper) - Fetch comprehensive video metadata for content analysis.
- 🔍 [Youtube Search Scraper](https://apify.com/easyapi/youtube-search-scraper) - Get search results without logging into YouTube.
- 📝 [YouTube Description Extractor](https://apify.com/easyapi/youtube-description-extractor) - Extract complete descriptions from YouTube videos.
- 📊 [YouTube Video Statistics Scraper](https://apify.com/easyapi/youtube-video-statistics-scraper) - Get comprehensive video statistics and metadata.
- 🎮 [YouTube Gaming Trends Scraper](https://apify.com/easyapi/youtube-gaming-trends-scraper) - Scrape trending gaming videos with detailed metrics.
- 🎥 [YouTube Channel Shorts Scraper](https://apify.com/easyapi/youtube-channel-shorts-scraper) - Extract Shorts content from any YouTube channel.
- 📺 [YouTube Trending Videos/Shorts Scraper](https://apify.com/easyapi/youtube-trending-videos-shorts-scraper) - Get trending videos and shorts data.
- 🎬 [YouTube Movies Trending Scraper](https://apify.com/easyapi/youtube-movies-trending-scraper) - Extract trending movie trailers and content.
- 🎯 [YouTube Tags Extractor](https://apify.com/easyapi/youtube-tags-extractor) - Analyze tags from any YouTube video URL.
- 🎯 [YouTube Hashtag Generator](https://apify.com/easyapi/youtube-hashtag-generator) - Generate relevant, trending hashtags for videos.
- 📊 [YouTube Channel Statistics Scraper](https://apify.com/easyapi/youtube-channel-statistics-scraper) - Extract channel statistics and performance metrics.

# Actor input Schema

## `keywords` (type: `array`):

List of keywords to search for playlists

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

Maximum number of playlists to scrape per keyword

## Actor input object example

```json
{
  "keywords": [
    "love"
  ],
  "maxItems": 50
}
```

# 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("easyapi/youtube-music-playlist-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("easyapi/youtube-music-playlist-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 easyapi/youtube-music-playlist-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/youtube-music-playlist-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/nh32mttc6N4zV0BcJ/builds/VOn47jqwGZcJvGR4r/openapi.json
