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

Collect Spotify tracks, artists, albums, playlists, podcasts, search results and artist discographies with bulk input.

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

## Pricing

from $0.35 / 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?

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

Collect public music and podcast metadata from **Spotify**. Look up IDs or URLs, search by keyword, or submit a list with mixed categories.

### Features

| **Feature** | **What you get** |
| :--- | :--- |
| Tracks | Available names, artists, duration, album information, play counts and credits |
| Artists | Profiles, biographies, images, related artists and available audience statistics |
| Albums and releases | Album details and artist discographies |
| Playlists | Metadata, owners, followers and playlist contents |
| Podcasts | Show details, episode lists and individual episodes |
| Search and other lookups | Catalogue matches, public user profiles, homepage sections, image colours and available lyrics |

Fields depend on the public Spotify response. Lyrics and translations depend on Musixmatch availability. Spotify developer credentials are not required.

### Get started

1. Choose **Get** for specific Spotify items or **Search** for keywords.
2. Select a category and enter your IDs, Spotify links or search terms.
3. Set the number of results and start the run.
4. Export your dataset to JSON, CSV or Excel, or retrieve it through the Apify API.

#### Get track details

```json
{
  "process": "get",
  "category": "track",
  "ids": ["https://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MB"]
}
```

#### Search the catalog

```json
{
  "process": "search",
  "category": "track",
  "ids": ["purple rain prince", "starboy weeknd"],
  "maximum": 50,
  "maxResults": 100
}
```

#### Mix different lookups

Use Custom Input to choose a different process and category for each entry. When provided, it takes precedence over the main Keywords list.

```json
{
  "myids": {
    "input": [
      {"id": "7MXVkk9YMctZqd1Srtv4MB", "process": "get", "category": "track"},
      {"id": "5a2EaR3hamoenG9rDuVn8j", "process": "get", "category": "discography"},
      {"id": "jazz", "process": "search", "category": "playlist"}
    ]
  },
  "maximum": 50
}
```

### Choose the right category

Use an **artist ID** for discography and its album, single or compilation filters. Use a **playlist ID** for playlist metadata or contents, a **show ID** for podcast episodes, and a **track ID** for credits or related artists. Public user profiles accept usernames. Lyrics URLs use `https://www.musixmatch.com/lyrics/artist/song`; image-color lookups accept Spotify image URLs.

`maximum` limits list results per input. `maxResults` limits real results across the whole run. Album, playlist and user profiles include up to 100 requested nested entries; use Playlist Contents for paginated playlist entries.

### Results and automation

Each row includes `keyword`, `category` and `data`. Search results, playlist entries, podcast episodes and discography releases are returned individually while retaining their source data. Use `rowType: "result"` when selecting records for analysis.

Schedule recurring runs to monitor releases, playlist contents and public audience statistics. Export datasets or connect them to your own workflows through Apify integrations.

Direct connections are the default. If a source blocks a run, choose another proxy. Country-specific content can vary with the connection location.

For support, open an issue on this Actor's Apify page and include the run link.

### Pricing

Each valid pay-per-event run with at least one input includes a shared minimum charge of 100 result units. Results above 100 are charged individually at the Pricing tab rate, plus any listed start fee. The minimum also applies when fewer results are returned or no matches are found. Clearly marked placeholder rows contain no scraped data; filter them out when exporting. Each separate run has its own minimum, including scheduled or API runs. Platform usage is included. Set a maximum run budget of at least **$0.04**.

#### Unsuccessful lookups

Where listed in the Pricing tab, a handled lookup problem that prevents a run from returning any real results produces one clear error record and a single $0.02 unsuccessful-lookup fee, in addition to any listed start fee.

# Actor input Schema

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

Get details by ID or search by keyword.

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

Select the category for the process.

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

Spotify IDs, URLs or URIs for Get; search terms for Search.

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

Optional mixed list of {id, process, category} entries. Overrides the Keywords list.

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

Language for direct lyrics URL lookups.

## `maxResults` (type: `integer`):

Maximum real results across all inputs.

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

Real list results per input. Profile lookups include up to 100 nested entries.

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

Seconds between source requests.

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

Optional proxy. Start with direct connections and select another proxy if blocked.

## Actor input object example

```json
{
  "process": "get",
  "category": "track",
  "ids": [
    "7MXVkk9YMctZqd1Srtv4MB"
  ],
  "language": "default",
  "maxResults": 10000,
  "maximum": 50,
  "delay": 1,
  "proxy": {
    "useApifyProxy": 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 = {
    "ids": [
        "7MXVkk9YMctZqd1Srtv4MB"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// 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": ["7MXVkk9YMctZqd1Srtv4MB"],
    "proxy": { "useApifyProxy": False },
}

# 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": [
    "7MXVkk9YMctZqd1Srtv4MB"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
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/H0I9QG10j9hakcWyo/openapi.json
