# Spotify Scraper — Tracks, Artists, Albums & Playlists (`hipersoft/spotify-scraper`) Actor

Search Spotify and scrape public metadata for tracks, artists, albums and playlists: names, artists, popularity, followers, genres, release dates, duration, ISRC, preview URL and more. No Spotify login or API key required. For music research, catalogs and analytics.

- **URL**: https://apify.com/hipersoft/spotify-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:** Other
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0024 / item scraped

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/platform/actors/running/actors-in-store#pay-per-event

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

## Spotify Scraper — Tracks, Artists, Albums & Playlists

Search Spotify and pull clean, structured JSON for tracks, artists, albums and playlists in one run. No Spotify login or API key to set up — authentication is handled automatically. Reliable for music research, catalog building and analytics, with a residential proxy rotated per request by default to stay ahead of IP rate limits.

### Features

- 🎼 **Four types at once** — `searchType` accepts any mix of `track`, `artist`, `album` and `playlist`.
- 🔍 **Multi-keyword search** — pass several terms in `searches`; each is queried independently and de-duplicated.
- 🎤 **Artist & track detail** — artist records carry `verified` status and image; tracks include `artists`, `album`, `durationMs` and `explicit`.
- 💿 **Album metadata** — `albumType`, contributing `artists` and `releaseDate` per album.
- 📝 **Playlists** — `owner`, cleaned `description` and cover `image`.
- 🔁 **Automatic auth** — no keys to manage; a residential proxy rotates per request.
- 🧱 **Flat, normalized JSON** — consistent field names across every entity type.

### What you get

One flat JSON record per item. Example track:

```json
{
  "type": "track",
  "id": "0DiWol3AO6WpXZgp0goxAV",
  "name": "One More Time",
  "artists": ["Daft Punk"],
  "album": "Discovery",
  "albumId": "2noRn2Aes5aoNVsU6iWThc",
  "durationMs": 320357,
  "explicit": false,
  "image": "https://i.scdn.co/image/ab67616d00001e02....",
  "url": "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV"
}
```

### Input

```json
{
  "searches": ["daft punk", "lofi beats"],
  "searchType": ["track", "artist", "album", "playlist"],
  "maxItemsPerSearch": 20
}
```

| Field | Description |
| --- | --- |
| `searches` | Keywords to search on Spotify, one per line. |
| `searchType` | Which item types to return: any mix of `track`, `artist`, `album`, `playlist`. |
| `maxItemsPerSearch` | Results per selected type, per search term (1–50). |
| `proxyConfiguration` | Proxy settings; residential proxy is used and rotated per request by default. |

### Use cases

- Build a music catalog spanning tracks, artists, albums and playlists.
- Research an artist's catalog and verify official profiles.
- Discover playlists around a theme and capture owner and cover art.
- Feed clean track/artist metadata into recommendation or analytics pipelines.

### Pricing

Pay-per-event: you're billed a small amount per run and per item scraped — you only pay for what you get. See the **Pricing** tab for current rates.

### FAQ

**Do I need a Spotify account or API key?**
No. There is no login and no developer API key to configure — authentication is handled automatically.

**How many items can I get per run?**
You control volume with `maxItemsPerSearch` (1–50), applied per selected type per search term. Pass multiple keywords in `searches` to scale a single run across many queries.

**Can I download songs or audio?**
No. This Actor returns public metadata only — track, artist, album and playlist details. It does not download audio streams or any DRM-protected content.

**What's the output format?**
Flat, normalized JSON with one record per item, and consistent field names across tracks, artists, albums and playlists. You can export it as JSON, CSV, or Excel from the dataset.

**Can I search for artists, albums and playlists too, not just tracks?**
Yes. Set `searchType` to any mix of `track`, `artist`, `album` and `playlist`, and each selected type is queried and returned in the same run.

### Related Actors

Building a music dataset? Pair this with our other music and media scrapers:

- [SoundCloud Scraper](https://apify.com/hipersoft/soundcloud-scraper) — tracks, artists and playlists with play counts, likes and followers.
- [Deezer Scraper](https://apify.com/hipersoft/deezer-scraper) — tracks, artists, albums, playlists and global top charts with ISRCs.
- [Discogs Scraper](https://apify.com/hipersoft/discogs-scraper) — vinyl, CD and digital releases with marketplace prices and community stats.
- [Apple Podcasts Scraper](https://apify.com/hipersoft/apple-podcasts-scraper) — podcast shows and episodes with RSS feeds and artwork.

### Notes

This Actor reads the public Spotify web player and returns public metadata only — no audio streams or DRM-protected content. Not affiliated with, endorsed by, or connected to Spotify; all trademarks belong to their respective owners.

# Actor input Schema

## `searches` (type: `array`):

Keywords to search on Spotify (e.g. "daft punk", "lofi beats"), one per line.

## `searchType` (type: `array`):

Which item types to return.

## `maxItemsPerSearch` (type: `integer`):

Results per selected type, per search term (up to 50).

## `proxyConfiguration` (type: `object`):

Spotify rate-limits by IP; residential proxy is used by default and rotated per request.

## Actor input object example

```json
{
  "searches": [
    "daft punk"
  ],
  "searchType": [
    "track",
    "artist",
    "album",
    "playlist"
  ],
  "maxItemsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "searches": [
        "daft punk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/spotify-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 = { "searches": ["daft punk"] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/spotify-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searches": [
    "daft punk"
  ]
}' |
apify call hipersoft/spotify-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hipersoft/spotify-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/M5jGz2OfbaFIN4qjI/builds/mueq7ZcrlBOyNBgTP/openapi.json
