# Spotify Plus (`canadesk/spotify-plus`) Actor

No limits. Get or search for Tracks, Artists, Albums, Playlists, Users, Lyrics (Musixmatch) and more from Spotify. It's fast and costs little!

- **URL**: https://apify.com/canadesk/spotify-plus.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** SEO tools, Social media, Videos
- **Stats:** 12 total users, 1 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$16.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

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

💡 Some data will be returned based on the IP address location, such as nearby concerts.

### Input

- Keywords (array)

  Returns data for the keywords.

  Expected format:

  - **Get**

    - Default: ID ("1uvyZBs4IZYRebHIB1747m?si=9b8c8c8393894e4b").

    - User: Name ("spotify") or ID.

    - 🆕 Lyrics: https://www.musixmatch.com/lyrics/{artist}/{song}

  - **Search**

    Any search terms ("purple rain prince").

  - **Discography**

    To fetch the whole discography, use the **ARTIST ID** (e.g., "6GI52t8N5F02MxU0g5U69P" from https://open.spotify.com/artist/6GI52t8N5F02MxU0g5U69P).

    You can filter the types of media by using the appropriate category: discography (all), discographyAlbums, discographySingles (incl. EPs), discographyCompilations.

    ⚠ Increase the "Delay" and "Maximum" parameters!

- Custom Input (object)

  Alternative to/overrides Keywords.

  You can set a different process/category combination for each keyword.

  ⭐ For 5+ entries at a time, please use **canadesk/spotify-plus**!

- Process (select)

  ⚡ This actor returns raw data.

  - **Get**

    Returns data for the specified category. Requires a specific ID (or Name or URL).

  - **Search**

    Returns data for the specified category based on the search terms.

- Category (select)

  Each Process/Category combination must be valid.

  Possible options are:

  - **Get**

    "track", "artist", "album", "playlist", "homepage", "trackCredits", "relatedTrackArtists", "playlistMetadata", "playlistContents", "user", "section", "podcast", "podcastEpisodes", "episode", "trackLyrics", "images", "lyrics", "discography", "discographyAlbums", "discographySingles", "discographyCompilations"

  - **Search**

    "track", "artist", "album", "playlist", "all", "user", "podcast"

- Language (select)

  Only applicable to combination: **Get + Lyrics**.

  Works as follows:

  1. "Default" returns the song lyrics in the original language.

  2. Any other choice will try to return the translation instead.

  3. For missing translations, the original language is returned.

- Maximum results (integer)

  Per keyword. For example, a limit of 50 will return the first 50 tracks of a given playlist.

- Batch (integer)

  Number of parallel requests to be executed - only relevant when there is more than 1 keyword.

  Default is 1. The higher the number, the more chances you have to be blocked.

  💡 Make sure to increase the Actor's memory and timeout for long runs!

- Delay (integer)

  For high-volume scraping, make sure to set a reasonable waiting time.

### Example

✅ All "items" keys have been emptied for this example, but the data will be available in your results.

**Get Artist** returns:

```
{
	"id": "5a2EaR3hamoenG9rDuVn8j",
	"uri": "spotify:artist:5a2EaR3hamoenG9rDuVn8j",
	"saved": false,
	"sharingInfo": {
		"shareUrl": "https://open.spotify.com/artist/5a2EaR3hamoenG9rDuVn8j?si=AqCC3XXqTtK1F7P3BzZm7Q",
		"shareId": "AqCC3XXqTtK1F7P3BzZm7Q"
	},
	"profile": {
		"name": "Prince",
		"verified": true,
		"pinnedItem": {
			"comment": "Best of Prince",
			"type": "PLAYLIST",
			"backgroundImage": {
				"sources": [
					{
						"url": ""
					}
				]
			},
			"itemV2": {},
			"item": {
				"uri": "spotify:playlist:3jXMLVtLsok8PpCWFj8d5l",
				"name": "Prince: Greatest Hits",
				"images": {
					"items": []
				}
			}
		},
		"biography": {
			"type": "BIOGRAPHY",
			"text": "No artist of the rock & roll era compares to singer, songwriter, producer, and multi-instrumentalist Prince. He was the rare combination of a visionary pop conceptualist and master musician who could capture the sounds he imagined. This quality fueled his remarkable success throughout the 1980s, a decade in which he authored a string of nine gold, platinum, or multi-platinum albums that included 1999 (1982), Purple Rain (1984), and Sign 'o' the Times (1987)."
		},
		"externalLinks": {
			"items": []
		},
		"playlistsV2": {
			"totalCount": 8,
			"items": []
		}
	},
	"visuals": {
		"gallery": {
			"items": []
		},
		"avatarImage": {
			"sources": [
				{
					"url": "https://i.scdn.co/image/ab6761610000e5ebeaca358712b3fe4ed9814640",
					"width": 640,
					"height": 640
				},
				{
					"url": "https://i.scdn.co/image/ab6761610000f178eaca358712b3fe4ed9814640",
					"width": 160,
					"height": 160
				},
				{
					"url": "https://i.scdn.co/image/ab67616100005174eaca358712b3fe4ed9814640",
					"width": 320,
					"height": 320
				}
			],
			"extractedColors": {
				"colorRaw": {
					"hex": "#535353"
				}
			}
		},
		"headerImage": {
			"sources": [
				{
					"url": "https://i.scdn.co/image/ab67618600001016da4c8e34df72aa53d798faa3",
					"width": 2660,
					"height": 1140
				}
			],
			"extractedColors": {
				"colorRaw": {
					"hex": "#535353"
				}
			}
		}
	},
	"discography": {
		"latest": null,
		"popularReleasesAlbums": {
			"totalCount": 20,
			"items": []
		},
		"singles": {
			"totalCount": 28,
			"items": []
		},
		"albums": {
			"totalCount": 55,
			"items": []
		},
		"compilations": {
			"totalCount": 4,
			"items": []
		},
		"topTracks": {
			"items": []
		}
	},
	"stats": {
		"followers": 7566358,
		"monthlyListeners": 10755536,
		"worldRank": 0,
		"topCities": {
			"items": []
		}
	},
	"relatedContent": {
		"appearsOn": {
			"totalCount": 18,
			"items": []
		},
		"featuringV2": {
			"totalCount": 8,
			"items": []
		},
		"discoveredOnV2": {
			"totalCount": 100,
			"items": []
		},
		"relatedArtists": {
			"totalCount": 40,
			"items": []
		}
	},
	"goods": {
		"events": {
			"userLocation": {
				"name": "Brisbane"	// Based on IP address
			},
			"concerts": {
				"totalCount": 0,
				"items": [],
				"pagingInfo": {
					"limit": 0
				}
			}
		},
		"merch": {
			"items": []
		}
	}
}
```

### Support

Open a new issue for bugs or feature requests. Please share the run URL.

Cheers!

# Actor input Schema

## `process` (type: `string`):

See Information tab.

## `category` (type: `string`):

Select the category for the process.

## `ids` (type: `array`):

Must match the process/category. See Information tab.

## `myids` (type: `object`):

Overrides Keywords. Use canadesk/spotify-plus for 5+. See Information tab!

## `language` (type: `string`):

Only for Lyrics (default for original language). See Information tab.

## `maximum` (type: `integer`):

Per keyword.

## `batch` (type: `integer`):

See Information tab.

## `delay` (type: `integer`):

Waiting time between requests.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "process": "get",
  "category": "track",
  "ids": [
    "1uvyZBs4IZYRebHIB1747m"
  ],
  "myids": {
    "input": [
      {
        "id": "1uvyZBs4IZYRebHIB1747m",
        "process": "get",
        "category": "track"
      },
      {
        "id": "3jXMLVtLsok8PpCWFj8d5l",
        "process": "get",
        "category": "playlist"
      }
    ]
  },
  "language": "default",
  "maximum": 50,
  "batch": 2,
  "delay": 2,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "ids": [
        "1uvyZBs4IZYRebHIB1747m"
    ],
    "myids": {
        "input": [
            {
                "id": "1uvyZBs4IZYRebHIB1747m",
                "process": "get",
                "category": "track"
            },
            {
                "id": "3jXMLVtLsok8PpCWFj8d5l",
                "process": "get",
                "category": "playlist"
            }
        ]
    },
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/spotify-plus").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 = {
    "ids": ["1uvyZBs4IZYRebHIB1747m"],
    "myids": { "input": [
            {
                "id": "1uvyZBs4IZYRebHIB1747m",
                "process": "get",
                "category": "track",
            },
            {
                "id": "3jXMLVtLsok8PpCWFj8d5l",
                "process": "get",
                "category": "playlist",
            },
        ] },
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/spotify-plus").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 '{
  "ids": [
    "1uvyZBs4IZYRebHIB1747m"
  ],
  "myids": {
    "input": [
      {
        "id": "1uvyZBs4IZYRebHIB1747m",
        "process": "get",
        "category": "track"
      },
      {
        "id": "3jXMLVtLsok8PpCWFj8d5l",
        "process": "get",
        "category": "playlist"
      }
    ]
  },
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call canadesk/spotify-plus --silent --output-dataset

```

## MCP server setup

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

```

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/P0Kq4R4z7UkFRtjyh/builds/IcyUDV1qDadnsuUMN/openapi.json
