# 🎙️ Spotify Podcast Scraper - Show & Episode Data (`benthepythondev/spotify-podcast-scraper`) Actor

Extract comprehensive podcast data from Spotify's catalog of 5+ million podcasts. Get show metadata, complete episode listings, descriptions, durations, and more using the official Spotify Web API

- **URL**: https://apify.com/benthepythondev/spotify-podcast-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 17 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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 Podcast Scraper — show & episode data from 5M+ podcasts

Extract **podcast show and episode data from Spotify** — names, publishers, descriptions,
episode lists, durations, release dates and cover art — as clean, structured data via the
**official Spotify Web API**. Search Spotify's catalog of 5M+ podcasts by keyword, or look
up specific shows by ID or URL, and pull complete episode histories for each. Export to
JSON/CSV/Excel, run on a schedule, call via API, or connect to Make, Zapier or n8n.

### 🎙️ What is the Spotify Podcast Scraper?

It turns Spotify's podcast catalog into a structured dataset. Give it a search term (e.g.
`technology`, `true crime`, `comedy`) or a list of show IDs/URLs, and it returns full show
metadata plus, optionally, every episode with descriptions, durations, release dates and
audio previews. Because it uses Spotify's official Web API with your own free developer
credentials, the data is reliable, accurate and pulled directly from the source — ideal
for podcast research, competitive analysis and content planning across any market.

#### What data does it extract?

**For each show:** `id`, `name`, `publisher`, `description` (plus `html_description`),
`total_episodes`, `explicit` flag, `media_type`, `languages`, `spotify_url`, cover
`images`, `copyrights`, `is_externally_hosted`, `episodes_fetched` count and a
`scraped_at` timestamp.

**For each episode (when included):** `id`, `name`, `description`, `duration_ms` and a
human-readable `duration_formatted` (HH:MM:SS), `release_date` with
`release_date_precision`, `explicit` flag, `language`/`languages`, `spotify_url`,
`audio_preview_url` (30-second clip when available) and cover `images`.

### ⬇️ Input

A Spotify Client ID and Secret are required — both are free (see the FAQ):

| Field | Description |
|-------|-------------|
| `spotifyClientId` | Your Spotify API Client ID (required) |
| `spotifyClientSecret` | Your Spotify API Client Secret (required) |
| `mode` | `search` (find shows by keyword) or `show_ids` (look up by ID/URL) |
| `searchQuery` | Search term, e.g. `technology` (required in `search` mode) |
| `showIds` | List of show IDs or `open.spotify.com/show/...` URLs (used in `show_ids` mode) |
| `market` | Country code for the Spotify catalog, e.g. `US`, `GB`, `DE` (default `US`) |
| `maxResults` | Max shows to return in search mode (1–50, default 20) |
| `includeEpisodes` | Fetch full episode data for each show (default `true`) |
| `maxEpisodesPerShow` | Cap episodes per show (leave empty for all) |

#### Example input

```json
{
  "spotifyClientId": "your_client_id",
  "spotifyClientSecret": "your_client_secret",
  "mode": "search",
  "searchQuery": "technology news",
  "market": "US",
  "maxResults": 10,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 20
}
```

### ⬆️ Output

Every show is one clean record (view as a **table**, or export **JSON / CSV / Excel**):

```json
{
  "id": "4rOoJ6Egrf8K2IrywzwOMk",
  "name": "The Joe Rogan Experience",
  "publisher": "Joe Rogan",
  "description": "The official podcast of comedian Joe Rogan...",
  "total_episodes": 2100,
  "explicit": true,
  "media_type": "audio",
  "languages": ["en"],
  "spotify_url": "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk",
  "images": [{ "url": "https://i.scdn.co/image/...", "height": 640, "width": 640 }],
  "episodes": [
    {
      "id": "5Xt5DXGzch68nYYamXrNxZ",
      "name": "Episode Title",
      "description": "Episode description...",
      "duration_ms": 10800000,
      "duration_formatted": "3:00:00",
      "release_date": "2026-01-15",
      "release_date_precision": "day",
      "explicit": true,
      "spotify_url": "https://open.spotify.com/episode/...",
      "audio_preview_url": "https://p.scdn.co/mp3-preview/..."
    }
  ],
  "episodes_fetched": 20,
  "scraped_at": "2026-06-26T15:30:00.000Z"
}
```

### 💡 Use cases

- **🔎 Podcast research:** discover every show in a niche or topic, with publisher, episode count and languages in one place.
- **📈 Competitive analysis:** track rival shows' episode cadence, release dates and durations to benchmark your own publishing.
- **🧠 Market intelligence:** monitor podcast trends, new releases and category leaders across different country markets.
- **📋 Content & ad planning:** research episode topics, formats and lengths, or build a list of shows for ad placement.

### ❓ FAQ

**How do I scrape podcasts from Spotify?** Add your free Spotify API credentials, pick
`search` mode with a keyword (or `show_ids` mode with show IDs/URLs), then Run. You get
full show metadata and, optionally, complete episode lists.

**Do I need an API key?** Yes — a free Spotify Client ID and Secret. Create an app at the
Spotify Developer Dashboard (developer.spotify.com/dashboard), log in with any Spotify
account, click "Create App", and copy the Client ID and Client Secret. There is no cost
and the actor authenticates automatically using them.

**Why does it use the official Spotify API?** It means accurate, reliable data straight
from Spotify rather than fragile page scraping — including fields like total episode
counts, durations and audio previews.

**Can I look up specific shows instead of searching?** Yes — set `mode` to `show_ids` and
pass either show IDs (e.g. `4rOoJ6Egrf8K2IrywzwOMk`) or full `open.spotify.com/show/...`
URLs; the actor extracts the ID for you.

**Can I limit how many episodes are pulled?** Yes — set `maxEpisodesPerShow` to cap
episodes per show, or set `includeEpisodes` to `false` to fetch show metadata only.

**Which countries/markets are supported?** Any Spotify market code, including US, GB, CA,
AU, DE, FR, ES, IT, NL, SE, JP, KR, BR, MX and more — set the `market` field.

**How many shows can it return in search mode?** Up to 50 per run via `maxResults`
(Spotify's search limit); use multiple targeted queries for broader coverage.

**Does it include audio?** It returns the 30-second `audio_preview_url` Spotify provides
when available, not full episode audio.

**Can I run it on a schedule or via API?** Yes — schedule recurring runs in Apify, call it
via the API/SDK, or connect it to Make, Zapier or n8n.

**Is this legal?** It uses the official Spotify Web API with your own credentials. You must
comply with Spotify's Developer Terms of Service; use the data responsibly for research and
analysis.

### 🔗 You might also like

- **[Podcast Intelligence Aggregator](https://apify.com/benthepythondev/podcast-intelligence-aggregator)** — multi-source podcast aggregation
- **[YouTube Channel Intelligence](https://apify.com/benthepythondev/youtube-channel-intelligence)** — YouTube channel & video data
- **[YouTube Transcript Scraper](https://apify.com/benthepythondev/youtube-transcript-scraper)** — video transcripts at scale
- **[Newsletter Scraper](https://apify.com/benthepythondev/newsletter-scraper)** — newsletter archives & content

***

**Keywords:** Spotify podcast scraper, Spotify Web API, podcast data, podcast episodes, show metadata, podcast research, podcast analytics, competitive analysis, podcast intelligence, episode list scraper, podcast trends, Spotify shows, audio content data, podcast SEO, content planning.

# Actor input Schema

## `spotifyClientId` (type: `string`):

Your Spotify API Client ID. Get it free at https://developer.spotify.com/dashboard

## `spotifyClientSecret` (type: `string`):

Your Spotify API Client Secret

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

How to find podcasts

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

Search term for podcasts (required in search mode). Examples: 'technology', 'true crime', 'comedy'

## `showIds` (type: `array`):

List of Spotify show IDs or URLs (required in show\_ids mode). Example: \['4rOoJ6Egrf8K2IrywzwOMk'] or \['https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk']

## `market` (type: `string`):

Country code for Spotify market (e.g., US, GB, CA, AU, DE, FR)

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

Maximum number of shows to return in search mode (max 50)

## `includeEpisodes` (type: `boolean`):

Fetch full episode data for each show

## `maxEpisodesPerShow` (type: `integer`):

Limit episodes per show (leave empty for all)

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "technology",
  "market": "US",
  "maxResults": 20,
  "includeEpisodes": true
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/spotify-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/spotify-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 '{}' |
apify call benthepythondev/spotify-podcast-scraper --silent --output-dataset

```

## MCP server setup

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