# Spotify Artist Podcast Scraper (`coder_luffy/spotify-artist-podcast-scraper`) Actor

Spotify artist and podcast scraper for public pages. Paste an artist, show, or episode URL and collect track names, URIs, durations, previews, and episode details into an Apify dataset you can export or schedule.

- **URL**: https://apify.com/coder_luffy/spotify-artist-podcast-scraper.md
- **Developed by:** [Luffy](https://apify.com/coder_luffy) (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 Artist & Podcast Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/spotify-artist-podcast-scraper-cover.png)

## Spotify Artist & Podcast Scraper

Spotify artist and podcast scraper for public pages. Paste an artist, show, or episode URL and collect top tracks or episode details into an Apify dataset.

Default `maxItems` is 3 so quick test runs stay cheap. Raise it up to 1000 when you need a larger export. Each track or episode is saved as soon as it is collected.

Artist pages return the public top-track list available on a single page (typically up to 10 tracks). Podcast show and episode URLs return the public episode details shown on that page. If fewer items exist than `maxItems`, the run stops after the available public results.

### What data does this actor extract

| Field | Meaning |
|-------|---------|
| `itemId` | Spotify track or episode id |
| `entityKind` | `track` or `episode` |
| `itemName` | Track or episode name |
| `itemSubtitle` | Artists text or show name |
| `artistName` | Artist name on artist pages |
| `artistId` | Spotify artist id |
| `artistUri` | `spotify:artist` URI |
| `artistMonthlyListeners` | Monthly listeners when present on the page |
| `showName` | Podcast show name for episode rows |
| `showUri` | `spotify:show` URI |
| `mediaUri` | `spotify:track` or `spotify:episode` URI |
| `durationMs` | Duration in milliseconds |
| `releaseDate` | Release date when shown |
| `isPlayable` | Playable flag |
| `playabilityReason` | Playability status text |
| `isExplicit` | Explicit content flag |
| `hasVideo` | Video preview flag |
| `relatedEntityUri` | Parent artist or show URI |
| `audioPreviewUrl` | Public audio preview URL |
| `coverImageUrl` | Cover or artist image |
| `trackListCount` | How many tracks the artist page exposed |
| `sourceUrl` | Page used for the request |
| `scrapedAt` | ISO timestamp for when the row was saved |

### Use cases

- Track an artist's public top tracks over time
- Pull episode details for shows you follow or sponsor
- Compare artists by their listed top tracks before booking
- Feed a tracker or dashboard from public Spotify pages
- Alert a team when a show's latest public episode changes
- Research streaming catalogs without manual copy-paste

### How to run

1. Add Spotify artist, show, or episode URLs under `startUrls`, and/or paste a Spotify ID or URL in `searchQuery`.
2. Leave `maxItems` at 3 for a cheap test, or raise it for a larger run.
3. Start the run. Rows appear in Output as each item is saved.

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `startUrls` | array | Sample Pitbull artist URL | Spotify artist, show, or episode URLs |
| `searchQuery` | string | Sample artist id | Optional Spotify ID (22 chars) or full URL/URI |
| `maxItems` | integer | 3 | Max tracks/episodes to save (hard cap 1000) |
| `requestTimeoutSecs` | integer | 60 | Per-request timeout in seconds |

#### Example input

```json
{
  "startUrls": [
    {
      "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
    }
  ],
  "searchQuery": "0TnOYISbd1XYRBk9myaseg",
  "maxItems": 3,
  "requestTimeoutSecs": 60
}
```

#### Podcast example

```json
{
  "startUrls": [
    {
      "url": "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"
    }
  ],
  "maxItems": 3
}
```

### Example output

```json
{
  "itemId": "3C0nOe05EIt1390bVABLyN",
  "entityKind": "track",
  "itemName": "On The Floor",
  "itemSubtitle": "Jennifer Lopez, Pitbull",
  "artistName": "Pitbull",
  "artistId": "0TnOYISbd1XYRBk9myaseg",
  "artistUri": "spotify:artist:0TnOYISbd1XYRBk9myaseg",
  "artistMonthlyListeners": null,
  "showName": null,
  "showUri": null,
  "mediaUri": "spotify:track:3C0nOe05EIt1390bVABLyN",
  "durationMs": 284866,
  "releaseDate": null,
  "isPlayable": true,
  "playabilityReason": "PLAYABLE",
  "isExplicit": false,
  "hasVideo": null,
  "relatedEntityUri": "spotify:artist:0TnOYISbd1XYRBk9myaseg",
  "audioPreviewUrl": "https://p.scdn.co/mp3-preview/a4069cd6bf3c81860e7e532efa344df07707e040",
  "coverImageUrl": "https://image-cdn-fa.spotifycdn.com/image/ab67616100005174e75db75543a89589514259",
  "trackListCount": 10,
  "sourceUrl": "https://open.spotify.com/embed/artist/0TnOYISbd1XYRBk9myaseg",
  "scrapedAt": "2026-11-02T06:30:00+00:00",
  "error": null
}
```

### FAQ

**How many tracks can one artist URL return?**
Whatever the public page exposes in one load. Artist pages typically list up to 10 top tracks. If you set `maxItems` higher, the run still stops once those public results are exhausted.

**Do podcast show URLs return a full episode archive?**
No. A show or episode URL returns the public episode details available on that page (usually the current featured episode). Use multiple episode URLs if you need a specific set.

**Do I need a Spotify login?**
No. It only reads public pages.

**What happens if a page fails?**
If some items were already saved, those rows stay in the dataset. The run continues with what it has.

**Can I schedule recurring runs?**
Yes. Use Apify schedules and export the dataset to Sheets, Make, Zapier, or n8n.

### Trademark notice

Spotify and related names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the source of the data and does not imply affiliation, sponsorship, endorsement, or partnership.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or otherwise officially associated with Spotify or its owners. All data is collected from publicly available sources. Users are responsible for complying with the source's terms of use, rate limits, and attribution or licensing requirements.

### Is web scraping legal

This Actor only collects publicly available data from Spotify, without logging in. Scraping public data is generally legal, but how you use it matters.

- **Personal data.** If results include personal data, laws such as the GDPR in the EU and the CCPA in California may apply. Only collect and store personal data when you have a legitimate reason.
- **Copyright.** Some content may be protected by copyright. Do not republish full copyrighted content without permission.
- **Legal advice.** This is general information, not legal advice. If you are unsure, consult a lawyer.

To learn more, read Apify's guide [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

![Spotify Artist & Podcast Scraper CTA](https://images.bigibyte.com/cdn-cgi/image/width=840,height=360,fit=cover,format=webp/apify-actors-covers/spotify-artist-podcast-scraper-cta.png)

# Actor input Schema

## `startUrls` (type: `array`):

Spotify artist, podcast show, or episode URLs (open.spotify.com or embed links). Example artist: https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg

## `searchQuery` (type: `string`):

Optional Spotify artist/show/episode ID (22 characters) or a full Spotify URL/URI. Plain keywords are not resolved; prefer Start URLs.

## `maxItems` (type: `integer`):

Maximum number of tracks or episodes to save per run. Default is 3 to keep test runs cheap. Raise up to 1000 when you need a larger export. Artist embeds typically expose up to 10 top tracks on a single page.

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

Per-request timeout in seconds.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
    }
  ],
  "searchQuery": "0TnOYISbd1XYRBk9myaseg",
  "maxItems": 3,
  "requestTimeoutSecs": 60
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        }
    ],
    "searchQuery": "0TnOYISbd1XYRBk9myaseg"
};

// Run the Actor and wait for it to finish
const run = await client.actor("coder_luffy/spotify-artist-podcast-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 = {
    "startUrls": [{ "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg" }],
    "searchQuery": "0TnOYISbd1XYRBk9myaseg",
}

# Run the Actor and wait for it to finish
run = client.actor("coder_luffy/spotify-artist-podcast-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 '{
  "startUrls": [
    {
      "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
    }
  ],
  "searchQuery": "0TnOYISbd1XYRBk9myaseg"
}' |
apify call coder_luffy/spotify-artist-podcast-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coder_luffy/spotify-artist-podcast-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/FVfffizKm3qmhQmj0/builds/oR17gxy6fUMPyW0k9/openapi.json
