# YouTube Music Artist Scraper 🎵 (`easyapi/youtube-music-artist-scraper`) Actor

Scrape artist information from YouTube Music search results, including artist names, subscriber counts, channel IDs, thumbnails, and more. Perfect for music industry analysis and artist research.

- **URL**: https://apify.com/easyapi/youtube-music-artist-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Integrations, Other
- **Security:** Limited permissions
- **Stats:** 15 total users, 0 monthly users, 100.0% runs succeeded, 1 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 Artist Scraper 🎵

Automatically scrape artist information from YouTube Music search results. This actor helps you gather detailed information about music artists, including their names, subscriber counts, channel details, and more.

### Features ✨

- 🔍 Search for artists using keywords
- 📊 Get detailed artist information including:
  - Artist name
  - Subscriber count
  - Channel ID
  - Channel URL
  - Profile thumbnails
  - Artist type
- ⚡ Fast and efficient scraping
- 🤖 Uses stealth techniques to avoid detection
- 📅 Includes timestamp for each scraped record
- 🎯 Configurable maximum items limit

### Use Cases 💡

- Music industry research and analysis
- Artist discovery and tracking
- Competitive analysis
- Music marketing research
- Database enrichment
- Talent scouting

### Input Parameters 📝

The actor accepts the following input parameters:

- `keywords` (Array): List of search terms to find artists
- `maxItems` (Number): Maximum number of results to scrape per keyword

### Tips 💪

- Use specific keywords for better results
- Adjust `maxItems` based on your needs
- Consider rate limiting for large-scale scraping

### Limitations ⚠️

- Results depend on YouTube Music's search algorithm
- Some artists might not have complete information
- Rate limiting may apply for very large searches

#### 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": {
            "name": "Love",
            "thumbnails": [
                {
                    "url": "https://lh3.googleusercontent.com/xSBZrzpGEb69n7bGX6S6liVoWFVM6IO1mpmlkfWmkvhcP53RxvdtuvZ18XeLmL0GiRVoG2AB-zh8ye4S=w60-h60-p-l90-rj",
                    "width": 60,
                    "height": 60
                },
                {
                    "url": "https://lh3.googleusercontent.com/xSBZrzpGEb69n7bGX6S6liVoWFVM6IO1mpmlkfWmkvhcP53RxvdtuvZ18XeLmL0GiRVoG2AB-zh8ye4S=w120-h120-p-l90-rj",
                    "width": 120,
                    "height": 120
                }
            ],
            "channelId": "UCEjBSuqvwI9a1p-7PA2YxBg",
            "subscribers": "8.64K subscribers",
            "type": "Artist",
            "channelUrl": "https://music.youtube.com/channel/UCEjBSuqvwI9a1p-7PA2YxBg"
        },
        "scrapedAt": "2025-02-09T13:40:52.917Z"
    },
    ...
]
```

### Related Actors

- 🎵 [YouTube Music Albums Scraper](https://apify.com/easyapi/youtube-music-albums-scraper) - Scrape YouTube Music albums data including titles, artists, thumbnails and playlist URLs.
- 🎵 [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 Playlist Scraper](https://apify.com/easyapi/youtube-music-playlist-scraper) - Extract playlist data by keywords with detailed playlist information.
- 🎧 [YouTube Music Podcast Scraper](https://apify.com/easyapi/youtube-music-podcast-scraper) - Scrape podcast playlists data with comprehensive information.
- 🎵 [YouTube Music Profile Scraper](https://apify.com/easyapi/youtube-music-profile-scraper) - Extract YouTube Music channel profiles and details from search results.
- 🎵 [All-in-One YouTube Music Scraper](https://apify.com/easyapi/all-in-one-youtube-music-scraper) - Comprehensive scraper for songs, videos, albums, artists, and playlists.
- 📺 [YouTube Video Data Scraper](https://apify.com/easyapi/youtube-video-data-scraper) - Extract comprehensive metadata from YouTube videos.
- 🔍 [Youtube Search Scraper](https://apify.com/easyapi/youtube-search-scraper) - Fetch search results based on keywords without logging into YouTube.
- 📺 [YouTube Comments Scraper](https://apify.com/easyapi/youtube-comments-scraper) - Extract YouTube video comments with pagination support.
- 🎥 [YouTube Video Metadata Scraper](https://apify.com/easyapi/youtube-video-metadata-scraper) - Get rich metadata from YouTube videos including title, views, and likes.
- 📊 [YouTube Video Statistics Scraper](https://apify.com/easyapi/youtube-video-statistics-scraper) - Extract comprehensive YouTube video statistics and metadata instantly.
- 📊 [YouTube Channel Statistics Scraper](https://apify.com/easyapi/youtube-channel-statistics-scraper) - Get channel statistics including subscriber count and views.
- 🎥 [YouTube Channel ID Extractor](https://apify.com/easyapi/youtube-channel-id-extractor) - Convert YouTube channel URLs to channel IDs effortlessly.
- 🎯 [YouTube Tags Extractor](https://apify.com/easyapi/youtube-tags-extractor) - Extract and analyze tags from any YouTube video URL.
- 🎯 [YouTube Hashtag Generator](https://apify.com/easyapi/youtube-hashtag-generator) - Generate relevant, trending hashtags for YouTube content in 65+ languages.

# Actor input Schema

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

List of keywords to search for artists on YouTube Music

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

Maximum number of artists 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-artist-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-artist-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-artist-scraper --silent --output-dataset

```

## MCP server setup

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