# Spotify Episodes Search & Scraper (`codenest/spotify-episodes-search-scraper`) Actor

Input search keywords or direct URLs and Extract comprehensive and bulk Spotify podcast episode data: episode descriptions, release dates, durations, segment markers, and audio metadata.

- **URL**: https://apify.com/codenest/spotify-episodes-search-scraper.md
- **Developed by:** [CodeNest](https://apify.com/codenest) (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.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Podcast Episodes Search & Deep Scraper 🎙️

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-brightgreen)](https://apify.com/store)
[![Pay Per Event](https://img.shields.io/badge/Pricing-Pay--Per--Event-blue)](https://docs.apify.com/actors/monetize/pay-per-event)
[![Python](https://img.shields.io/badge/Python-3.11+-yellow)](https://python.org)
[![No API Key](https://img.shields.io/badge/Spotify_API_Key-Not_Required-success)](https://open.spotify.com)

Search and scrape Spotify podcast episodes by keyword or direct URL — with clean, flat output ready for Excel, Google Sheets, Make, Zapier, or any API pipeline. No Spotify API key required.

***

### ⚡ Key Highlights

- **Keyword Search Mode**: Find episodes across Spotify's entire catalog by one or more keywords.
- **Direct URL / URI Mode**: Paste exact Spotify episode URLs or URIs to fetch full metadata.
- **Deep Enrichment Mode**: Enable "Fetch Full Episode Details" to extract podcast name & URL, creator info, transcripts, chapter segments, audio previews, and playability status.
- **Clean Flat Output**: No nested GraphQL blobs — results are pre-flattened for instant CSV/Excel analysis.
- **Pay-Per-Event Pricing**: Transparent, fair pricing — pay only for episodes actually scraped.
- **Generous Free Trial**: Test for free before upgrading.
- **No Spotify API Key**: Autonomous session management with residential proxy support.

***

### 💰 Pricing & Pay-Per-Event Model

This actor uses Apify's **Pay-Per-Event (PPE)** pricing. You pay only for successful results:

| Event Name | Price (USD) | Description |
|---|---|---|
| `apify-actor-start` | **$0.00005** / run | Container initialization, proxy session & Spotify auth setup |
| `result` | **$0.004** / episode | Basic episode result (name, podcast, release date, duration, URL) |
| `detail` | **$0.004** / episode | Full episode enrichment when **Fetch Full Episode Details** is ON (podcast metadata, transcripts, segments, preview audio, creator info) |

> **Cost Breakdown:**
>
> - **Search Only** (Details OFF): $0.004 / episode ($4.00 per 1,000 episodes)
> - **Full Enrichment** (Details ON or Direct URL): $0.008 / episode ($8.00 per 1,000 episodes)

#### 🎁 Free Tier Policy

- Free users (`APIFY_USER_IS_PAYING != 1`) can scrape up to **5 episodes per run**, with a maximum **lifetime limit of 20 episodes**.
- Limits are tracked persistently across all your runs.
- To scrape unlimited episodes and run high-volume batch jobs, subscribe to an [Apify paid plan](https://apify.com/pricing).

> \[!IMPORTANT]
> Free tier limits are enforced transparently. When a limit is reached, the actor exits gracefully with a clear message — no crashes, no silent failures.

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| **Search Keyword(s)** (`keyword`) | String / Array | — | Search term(s) to find podcast episodes (e.g. `"true crime"`, `"tech news"`). Leave empty to use Direct URL mode. |
| **Spotify Episode URIs / URLs** (`spotifyUris`) | String / Array | — | Direct Spotify episode URLs (`https://open.spotify.com/episode/...`) or URIs (`spotify:episode:...`). Leave empty to use Search mode. |
| **Search Limit** (`episodes_search_limit`) | Integer | `30` | Max episodes returned per keyword (1–50). Free users are capped at their remaining free tier allowance. |
| **Fetch Full Episode Details** (`episodes_fetchDetails`) | Boolean | `false` | When ON: enriches each search result with podcast name & URL, creator info, transcripts, chapter segments, audio preview, and content ratings. **Charges an additional `detail` event per episode.** |

> \[!TIP]
> You can combine both modes in a single run — provide keywords AND direct URIs. Each is processed independently.

***

### 📊 Output Schema

Every exported record is a clean, flat JSON object — no nested blobs:

| Field | Type | Description |
|---|---|---|
| `id` | String | Unique Spotify episode ID |
| `name` | String | Episode title |
| `podcast_name` | String / null | Parent podcast / show name |
| `podcast_id` | String / null | Spotify show identifier |
| `podcast_url` | String / null | Direct Spotify URL for the podcast show |
| `podcast_uri` | String / null | Spotify URI for the show (`spotify:show:...`) |
| `creator` | String / null | Show creator or host name |
| `release_date` | String | Release date in ISO format (`YYYY-MM-DD`) |
| `release_datetime` | String | Full release timestamp (`YYYY-MM-DDTHH:MM:SSZ`) |
| `release_precision` | String / null | Date precision (`"DAY"`, `"MINUTE"`, etc.) |
| `duration_ms` | Integer | Total duration in milliseconds |
| `duration_formatted` | String | Human-readable duration (`MM:SS` or `HH:MM:SS`) |
| `description` | String | Full episode show notes (plain text) |
| `html_description` | String | Episode description with HTML formatting |
| `preview_url` | String / null | MP3 audio preview CDN URL (30s clip) |
| `audio_urls` | Array / null | Direct CDN MP3 stream URLs for the episode |
| `cover_art_url` | String / null | High-resolution episode artwork URL |
| `podcast_cover_art_url` | String / null | High-resolution parent podcast artwork URL |
| `is_playable` | Boolean | Whether episode is streamable in the user's region |
| `playability_reason` | String / null | Detailed playability status (e.g. `"PLAYABLE"`) |
| `is_explicit` | Boolean | Explicit content advisory flag |
| `content_rating` | String / null | Content rating advisory label (e.g. `"NONE"`, `"EXPLICIT"`) |
| `is_paywalled` | Boolean | Whether episode is behind a paywall |
| `type` | String | Always `"podcast_episode"` |
| `media_types` | Array / null | Media types available (e.g. `["AUDIO"]`) |
| `url` | String | Direct Spotify web player URL |
| `uri` | String | Spotify URI (`spotify:episode:...`) |
| `share_url` | String / null | Official Spotify share URL |
| `share_id` | String / null | Spotify sharing identifier |
| `search_query` | String / null | Search keyword used to find this episode |
| `transcripts` | Array / null | Transcript segments *(only if available & Details ON)* |
| `segments` | Array / null | Chapter / topic segment markers *(only if available & Details ON)* |

***

### 📋 Sample Output

```json
{
  "id": "6W3Ersc8z43gpjjm9hM6UX",
  "name": "MURDERED: Toni Tedder",
  "podcast_name": "Crime Junkie",
  "podcast_id": "3DgfoleqaW61T2amZQKINx",
  "podcast_url": "https://open.spotify.com/show/3DgfoleqaW61T2amZQKINx",
  "podcast_uri": "spotify:show:3DgfoleqaW61T2amZQKINx",
  "creator": null,
  "release_date": "2026-11-23",
  "release_datetime": "2026-11-23T08:00:00Z",
  "release_precision": "MINUTE",
  "duration_ms": 3921136,
  "duration_formatted": "01:05:21",
  "description": "Toni Tedder's 1990 murder is still unsolved despite there being a credible eye witness...",
  "html_description": "<p>Toni Tedder’s 1990 murder is still unsolved despite there being a credible eye witness...</p>",
  "preview_url": "https://p.scdn.co/mp3-preview/7c0e933b3fb9a57222cc243cbc63e2db7b77f320.mp3",
  "audio_urls": [
    "https://p.scdn.co/mp3-preview/c4077ca6d09a68bb9414ac78f5b301a1d06e0e6a",
    "https://p.scdn.co/mp3-preview/2b62d8ea2e0a2cae0faadce7ff2adab26eb42b38"
  ],
  "cover_art_url": "https://i.scdn.co/image/ab6765630000ba8a49222ce16865edd15c25e7bc",
  "podcast_cover_art_url": "https://i.scdn.co/image/ab6765630000ba8abe2cc3efd92b817b54d9bcb2",
  "is_playable": true,
  "playability_reason": "PLAYABLE",
  "is_explicit": false,
  "content_rating": "NONE",
  "is_paywalled": false,
  "type": "podcast_episode",
  "media_types": [
    "AUDIO"
  ],
  "url": "https://open.spotify.com/episode/6W3Ersc8z43gpjjm9hM6UX",
  "uri": "spotify:episode:6W3Ersc8z43gpjjm9hM6UX",
  "share_url": "https://open.spotify.com/episode/6W3Ersc8z43gpjjm9hM6UX?si=EyOfIWwqTVG1vsHNID0IBw",
  "share_id": "EyOfIWwqTVG1vsHNID0IBw",
  "search_query": "cold"
}
```

***

### 💡 Best Practices & Tips

1. **Search Mode**: Enter keywords to discover episodes across Spotify's catalog. Use specific phrases (e.g. `"Joe Rogan AI"`, `"daily tech news"`) for more targeted results.
2. **Direct URL Mode**: Paste Spotify episode URLs or URIs to fetch full metadata for exact episodes you already know.
3. **Detail Enrichment**: Turn **Fetch Full Episode Details** ON to retrieve the parent podcast's name and URL, audio preview, creator info, and chapter segments. Note this charges an extra `detail` event per episode.
4. **Batch Keyword Scraping**: Enter multiple keywords in the keyword list to scrape across multiple topics in a single run.
5. **Data Export**: Download results from Apify Console in **JSON, CSV, Excel, XML, or HTML** format.
6. **Automation**: Connect to [Make](https://make.com) or [Zapier](https://zapier.com) via Apify's API to build automated podcast monitoring pipelines.

***

### 🔗 Use Cases

- 📊 **Podcast Market Research** — Track episode releases, topics, and show metadata across Spotify's catalog.
- 🤖 **AI & NLP Pipelines** — Feed transcripts and episode descriptions to LLMs for summarization or classification.
- 📈 **Content Monitoring** — Monitor episodes from competitor podcasts or specific shows.
- 🎯 **Sponsor Discovery** — Identify podcasts covering topics relevant to your brand or product.
- 🗂️ **Dataset Building** — Build training datasets of podcast episode metadata for research.
- 🔔 **New Release Alerts** — Schedule regular runs to detect and alert on new episodes from tracked shows.

# Actor input Schema

## `keyword` (type: `array`):

One or more search terms to find podcast episodes on Spotify.

💡 Leave empty and fill Spotify URIs below to use Get Details mode instead.

## `spotifyUris` (type: `array`):

One or more Spotify episode URIs or URLs to fetch episode metadata.
Examples: spotify:episode:ID · https://open.spotify.com/episode/ID

💡 Leave empty and fill Search Keywords above to use Search mode instead.

## `episodes_search_limit` (type: `integer`):

Maximum number of results per keyword.

## `episodes_fetchDetails` (type: `boolean`):

������ Search mode only — Get Details mode always fetches full details.

✅ When ON — fetches full episode metadata for every search result. You get: transcripts, audio segments, creator info, content ratings, playability status, preview playback URLs, and release date.

❌ When OFF — you only get basic search data: episode name, show name, description, duration, and URI. You will NOT get transcripts, segments, playability, or detailed metadata.

⚠️ Slower — extra API calls per search result.

## Actor input object example

```json
{
  "keyword": [
    "Rock",
    "Tech News"
  ],
  "spotifyUris": [
    "spotify:episode:7EHfctG0CBnHWcEhQqZlTt",
    "https://open.spotify.com/episode/06Lj4EbhVTkxykFnzTlbci"
  ],
  "episodes_search_limit": 30,
  "episodes_fetchDetails": false
}
```

# Actor output Schema

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

Comprehensive list of Spotify podcast episodes including podcast name, release date, duration, descriptions, audio previews, CDN stream URLs, cover art URLs, and episode URIs.

# 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 = {
    "keyword": [
        "Rock",
        "Tech News"
    ],
    "spotifyUris": [
        "spotify:episode:7EHfctG0CBnHWcEhQqZlTt",
        "https://open.spotify.com/episode/06Lj4EbhVTkxykFnzTlbci"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/spotify-episodes-search-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 = {
    "keyword": [
        "Rock",
        "Tech News",
    ],
    "spotifyUris": [
        "spotify:episode:7EHfctG0CBnHWcEhQqZlTt",
        "https://open.spotify.com/episode/06Lj4EbhVTkxykFnzTlbci",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("codenest/spotify-episodes-search-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 '{
  "keyword": [
    "Rock",
    "Tech News"
  ],
  "spotifyUris": [
    "spotify:episode:7EHfctG0CBnHWcEhQqZlTt",
    "https://open.spotify.com/episode/06Lj4EbhVTkxykFnzTlbci"
  ]
}' |
apify call codenest/spotify-episodes-search-scraper --silent --output-dataset

```

## MCP server setup

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