# YouTube Music Song Search — Titles, Artists & Album Data (`maged120/youtube-music-search`) Actor

Search YouTube Music and extract song results. Get song titles, artists, albums, durations, and play counts for any music search query.

- **URL**: https://apify.com/maged120/youtube-music-search.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Automation, Social media
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What does YouTube Music Song Search do?

**YouTube Music Song Search** searches [YouTube Music](https://music.youtube.com/) and extracts song results for any query — titles, artists, albums, and durations — as structured JSON, without a YouTube Music API key.

This Actor runs on the [Apify platform](https://apify.com). Use it for music data pipelines, playlist research, or building music discovery datasets.

### Why use YouTube Music Song Search?

- **No setup** — no Google Cloud project or quota to manage
- **Rich song metadata** — title, artist, album, duration, and thumbnail
- **Batch queries** — search for hundreds of songs or artists in one run
- **Music data pipelines** — feed results into recommendation engines or music analytics tools

### How to use YouTube Music Song Search

1. Open the Actor and click **Try for free**
2. Enter search queries in the `queries` field
3. Click **Start** — results appear in the Output tab
4. Download as JSON or CSV

### Input

```json
{
  "queries": ["Adele Hello", "Billie Eilish bad guy", "lo-fi beats"],
  "maxResults": 20
}
```

| Field | Type | Description | Default |
|---|---|---|---|
| `queries` | array | Music search queries | required |
| `maxResults` | integer | Max results per query | `20` |

### Output

```json
{
  "query": "Adele Hello",
  "title": "Hello",
  "artist": "Adele",
  "album": "25",
  "duration": "4:55",
  "thumbnail": "https://lh3.googleusercontent.com/..."
}
```

### Tips

- **Schedule it** to track how YouTube Music's suggestions and playlists change over time, and export to Google Sheets.
- **Combine Actors:** use [YouTube Music Song Search](https://apify.com/maged120/youtube-music-search) to find songs, [YouTube Music Playlist Finder](https://apify.com/maged120/youtube-music-similar-playlist) to discover related playlists, and [YouTube Music Mood Playlists](https://apify.com/maged120/youtube-music-mood-playlists) to browse by mood and genre.
- **Music marketing:** autocomplete suggestions and related playlists show which artists and songs people connect, which is useful for playlist pitching and release planning.
- **Export anywhere:** download results as JSON, CSV, Excel or HTML, or read them through the Apify API.

### FAQ

**Is this Actor maintained?**
Yes. Report bugs or feature requests in the Issues tab.

**Need help or have questions?**
Open an issue in the Issues tab or reach out on Discord: **maged03211**

***

⭐ **Found this Actor useful?** A quick review on the Store helps other users find it and keeps it maintained.

# Actor input Schema

## `query` (type: `string`):

Search query for YouTube Music.

## `filter` (type: `string`):

Type of result to search for.

## `scope` (type: `string`):

Optional scope for the search (e.g., uploads).

## Actor input object example

```json
{
  "query": "Imagine Dragons"
}
```

# 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 = {
    "query": "Imagine Dragons"
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/youtube-music-search").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 = { "query": "Imagine Dragons" }

# Run the Actor and wait for it to finish
run = client.actor("maged120/youtube-music-search").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 '{
  "query": "Imagine Dragons"
}' |
apify call maged120/youtube-music-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maged120/youtube-music-search"
        }
    }
}
```

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/Sib6zw4lMwW7EIa4t/builds/EHZYc00PPGvvojmMf/openapi.json
