# Spotify Track Playlist Metadata Scraper (`b2b_lead_generation/spotify-track-playlist-metadata-scraper`) Actor

Collect Spotify track, album, and playlist metadata instantly. Export clean titles, thumbnails, and embed HTML into JSON, CSV, or Excel.

- **URL**: https://apify.com/b2b_lead_generation/spotify-track-playlist-metadata-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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

## Spotify Track Playlist Metadata Scraper

![Spotify Track Playlist Metadata Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/spotify-track-playlist-metadata-scraper-cover.png)

Collect public Spotify track, album, playlist, and episode metadata from Spotify URLs. Retrieve titles, thumbnail images, embed information, and provider details in structured records. Export your results in JSON, CSV, or Excel formats.

### What This Actor Does

This actor collects presentation metadata for Spotify content using publicly available oEmbed information. Provide Spotify URLs to retrieve their titles, thumbnail details, embed HTML, and related metadata.

The collected information is suitable for building catalogs, preparing embedded content, and organizing Spotify links.
ts.

### Why Use This Actor?

- Collect metadata from Spotify track, album, playlist, and episode URLs.
- Retrieve content titles and thumbnail images.
- Process multiple Spotify URLs in one run.
- Export structured results for catalogs and content workflows.

### Available Mode

- **oEmbed Metadata (`oembed`):** Collects title, thumbnail, and related presentation metadata for each supplied Spotify URL.

### Input Example

```json
{
  "mode": "oembed",
  "urls": [
    "https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC",
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
  ],
  "requestDelaySecs": 1
}
```

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | string | Collection mode. Use `oembed`. |
| `urls` | array | Spotify track, album, playlist, or episode URLs to process. |
| `requestDelaySecs` | number | Delay between requests in seconds. |

The parameters shown above are based on the supplied input example. No additional defaults are specified here.

### Output Example

```json
{
  "iframe_url": "https://open.spotify.com/embed/track/4uLU6hMCjMI75M1A2tKUQC?utm_source=oembed",
  "width": 456,
  "height": 152,
  "version": "1.0",
  "provider_name": "Spotify",
  "provider_url": "https://spotify.com",
  "oembed_type": "rich",
  "item_title": "Never Gonna Give You Up",
  "thumbnail_url": "https://image-cdn-ak.spotifycdn.com/image/ab67616d00001e02255e131abc1410833be95673",
  "thumbnail_width": 300,
  "thumbnail_height": 300,
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Type | Description |
|---|---|---|
| `iframe_url` | string | Spotify embed URL. |
| `width` | integer | Embed width. |
| `height` | integer | Embed height. |
| `version` | string | oEmbed response version. |
| `provider_name` | string | Content provider name. |
| `provider_url` | string | Provider website URL. |
| `oembed_type` | string | oEmbed content type. |
| `item_title` | string | Spotify content title. |
| `thumbnail_url` | string | Thumbnail image URL. |
| `thumbnail_width` | integer | Thumbnail width. |
| `thumbnail_height` | integer | Thumbnail height. |
| `scraped_at` | string | Collection timestamp in ISO format. |

### Use Cases

- **Music Catalog Building:** Collect Spotify titles and thumbnail URLs to organize track and playlist catalogs.
- **Embed Preparation:** Retrieve iframe HTML and embed URLs for websites and content platforms.
- **Playlist Organization:** Create structured records of public playlist titles and cover images.
- **Bulk URL Checking:** Process multiple Spotify links and review their available presentation metadata.
- **Content Management:** Maintain Spotify embed information in spreadsheets, databases, and dashboards.

### Frequently Asked Questions

**What types of Spotify URLs are supported?**

The actor accepts Spotify track, album, playlist, and episode URLs.

**Does this actor collect complete playlist track lists?**

No. It collects oEmbed presentation metadata, not the individual tracks inside a playlist.

**Can I schedule recurring collections?**

Yes. Use Apify Schedules to run the actor automatically at your preferred intervals.

### Trademark Notice

Spotify and related names and trademarks belong to their respective owners. This actor is an independent tool and is not affiliated with or endorsed by Spotify.

### Is Web Scraping Legal?

This actor collects publicly accessible Spotify presentation metadata without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Metadata may include artist, creator, or other identifying information where available. Handle personal data responsibly and consider privacy laws such as GDPR and CCPA where applicable.
- **Copyright and Licensing:** Track artwork, thumbnails, embed markup, and other creative content may be protected by copyright. Respect applicable licences and restrictions on reproduction or redistribution.
- **Platform Terms and Rate Limits:** Follow Spotify's policies and published usage requirements. Avoid excessive requests or unnecessary load.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional about your intended use.

[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to scrape. oEmbed mode fetches title and thumbnail metadata per Spotify URL.

## `urls` (type: `array`):

Spotify track, album, playlist, or episode URLs.

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "oembed",
  "urls": [
    "https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC"
  ],
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "urls": [
        "https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/spotify-track-playlist-metadata-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 = { "urls": ["https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC"] }

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/spotify-track-playlist-metadata-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 '{
  "urls": [
    "https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC"
  ]
}' |
apify call b2b_lead_generation/spotify-track-playlist-metadata-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/spotify-track-playlist-metadata-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/hqLaTOqVM8EkMKiAA/builds/eqKzSlVSQ78gsbc7V/openapi.json
