# Podcast RSS & Transcript Extractor for AI/RAG (`sequined_lacework/podcast-transcript-rag`) Actor

Turn podcast RSS feeds and Apple Podcasts links into episode metadata, show notes, cleaned transcripts and RAG-ready Markdown chunks. No browser, no speech-to-text, pay per episode.

- **URL**: https://apify.com/sequined_lacework/podcast-transcript-rag.md
- **Developed by:** [Egor Kramskoy](https://apify.com/sequined_lacework) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 episode processed

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/actors/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

## Podcast RSS & Transcript Extractor for AI/RAG

A fast **podcast transcript scraper** in one Apify Actor: send podcast RSS feeds or Apple Podcasts links and get episode metadata, show notes, cleaned transcripts and ready-to-embed chunks. Use it for **podcast RSS to Markdown** conversion, to build a **podcast RAG dataset**, or to pull an **Apple Podcasts transcript** when the publisher provides one. It runs without a browser and charges per episode.

### What it does

- Reads RSS 2.0 feeds and **Apple Podcasts URLs** (`podcasts.apple.com/.../id123456789`), which are resolved to the real RSS feed through the iTunes lookup API.
- Extracts podcast title, episode title, publication date (ISO-8601 UTC), duration (`HH:MM:SS`), audio URL and episode link.
- Converts show notes (`content:encoded`, `description` or `itunes:summary`) to Markdown, keeping paragraphs, links, lists and headings.
- Downloads transcripts that the publisher links with the Podcasting 2.0 `<podcast:transcript>` tag and cleans them: WebVTT, SRT, JSON and plain text or HTML. Timestamps, cue numbers, notes and styling are removed, speaker names are kept as `Speaker: ` prefixes.
- Builds one `full_markdown` document per episode (title, metadata, show notes, transcript) and splits it into overlapping chunks when `chunkSize` is set.
- Returns word count and a token estimate for every episode.

### Why use it

- **Clean output**: no timestamps, no subtitle markup, one text per episode.
- **No browser, no audio download**: plain HTTP, so runs are fast and cheap.
- **Pay per episode**: pay only for episodes that were converted.
- **LLM-ready**: chunks plus token estimates help you plan context windows.
- **Failures do not stop the run**: a broken transcript still gives you the episode (`has_transcript: false`, reason in `error_message`); a broken feed gives one item with `status: "error"`.

### Input example

```json
{
    "feedUrls": [
        "https://feeds.buzzsprout.com/231452.rss",
        "https://podcasts.apple.com/us/podcast/buzzcast/id1446336657"
    ],
    "maxEpisodesPerFeed": 20,
    "fetchTranscripts": true,
    "chunkSize": 1500,
    "chunkOverlap": 200,
    "maxConcurrency": 5
}
```

| Field | Default | Description |
|---|---|---|
| `feedUrls` | Buzzcast RSS (demo) | RSS feed URLs or Apple Podcasts page URLs |
| `maxEpisodesPerFeed` | 20 | Newest episodes processed per feed, in feed order (1-500) |
| `fetchTranscripts` | true | Download and clean `<podcast:transcript>` files; off = show notes only |
| `chunkSize` | 0 | Chunk size in characters; 0 disables chunking (max 16000) |
| `chunkOverlap` | 200 | Overlap between chunks; reduced to `chunkSize / 4` if not smaller than `chunkSize` |
| `maxConcurrency` | 5 | Episodes processed in parallel (1-20) |

### Output example

One dataset item per episode (long fields truncated here):

```json
{
    "podcast_title": "Buzzcast",
    "feed_url": "https://feeds.buzzsprout.com/231452.rss",
    "episode_title": "Make Dynamic Content Feel Like Part Of Your Podcast",
    "published_at": "2026-11-27T13:00:00Z",
    "duration": "00:23:38",
    "audio_url": "https://media.example.com/episode.mp3",
    "episode_url": "https://example.com/episode",
    "has_transcript": true,
    "transcript_format": "vtt",
    "show_notes_markdown": "Guest bio and [links](https://example.com)...",
    "transcript_text": "Kevin: Hey Jordan.\n\nJordan: Hey.\n\nKevin: ...",
    "full_markdown": "# Make Dynamic Content Feel Like Part Of Your Podcast\n\n**Podcast:** Buzzcast\n**Published:** 2026-11-27T13:00:00Z\n**Duration:** 00:23:38\n\n## Show notes\n\n...\n\n## Transcript\n\nKevin: Hey Jordan...",
    "chunks": ["# Make Dynamic Content Feel Like Part Of Your Podcast\n\n**Podcast:** ...", "...next chunk..."],
    "word_count": 5525,
    "estimated_tokens": 7036,
    "status": "ok",
    "error_message": null
}
```

The values are illustrative. `transcript_format` is the source format (`vtt`, `srt`, `json`, `text` or `html`). When several transcripts are listed, the best one is used in this order: VTT, SRT, JSON, plain text, HTML; if it fails to download, the next one is tried.

### Pricing

Pay-per-event: **$0.02 per run start** (the `run-started` event, charged once per run that has at least one feed) plus **$0.002 per episode** (the `episode-processed` event, one per episode that was converted). Example: one run with 100 episodes costs $0.02 + 100 x $0.002 = **$0.22**. Feeds that fail are not charged per episode; runs with no feeds are not charged at all.

The prices are not stored in the Actor code. `.actor/pay_per_event.json` documents the events and the suggested prices. The real prices and the Actor categories are set in Apify Console (Actor > Publication > Monetization / Categories).

### Use with Claude Desktop / Cursor (MCP)

Connect the Actor to any MCP client through the Apify MCP server: https://mcp.apify.com/?actors=sequined_lacework/podcast-transcript-rag

Add this to your Claude Desktop or Cursor MCP config (`mcpServers`):

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com/?actors=sequined_lacework/podcast-transcript-rag",
            "headers": {
                "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
            }
        }
    }
}
```

An AI agent can pass a podcast RSS feed or Apple Podcasts link and get episodes with show notes and publisher transcripts as Markdown, for example to summarize or search what a guest said.

### Integrations: n8n and LangChain

#### n8n

Use the **Apify** node (operation: Run Actor, then Get Dataset Items) with the Actor ID `sequined_lacework/podcast-transcript-rag`, or an **HTTP Request** node (method `POST`, body type JSON) pointing at the synchronous endpoint, which returns the dataset items directly:

```
https://api.apify.com/v2/acts/sequined_lacework~podcast-transcript-rag/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>
```

Body:

```json
{
    "feedUrls": ["https://feeds.buzzsprout.com/231452.rss"],
    "maxEpisodesPerFeed": 5,
    "fetchTranscripts": true,
    "chunkSize": 1500
}
```

Synchronous runs time out after 300 seconds, so use the regular run endpoint for large inputs.

#### LangChain (Python)

Install `langchain-apify` and `langchain-core`, and set the `APIFY_API_TOKEN` environment variable. The Markdown is in the `full_markdown` field and becomes the document `page_content`.

```python
from langchain_apify import ApifyWrapper
from langchain_core.documents import Document

apify = ApifyWrapper()
loader = apify.call_actor(
    actor_id="sequined_lacework/podcast-transcript-rag",
    run_input={"feedUrls": ["https://feeds.buzzsprout.com/231452.rss"], "maxEpisodesPerFeed": 5, "chunkSize": 1500},
    dataset_mapping_function=lambda item: Document(
        page_content=item["full_markdown"] or "",
        metadata={"source": item["episode_url"] or item["feed_url"], "podcast": item["podcast_title"], "episode": item["episode_title"]},
    ),
)
docs = [d for d in loader.load() if d.page_content]
```

To load an existing run instead, use `ApifyDatasetLoader(dataset_id="<DATASET_ID>", dataset_mapping_function=...)` from `langchain_apify` with the same mapping function. If you set `chunkSize`, the `chunks` field already holds ready-to-embed pieces, so no extra text splitter is needed.

### Free plan limits

On the free Apify plan the Actor runs in demo mode:

- At most **5 episodes** per run in total, across all feeds (the lower of 5 and `maxEpisodesPerFeed` per feed).
- Remaining episodes and feeds are skipped and not charged.

The run never fails because of these limits, and the log and status message say when something was skipped. Upgrade to a paid Apify plan to process the full input.

### Related Actors for RAG Pipelines

Build a complete RAG ingestion pipeline with the same clean Markdown output, chunking options and pay-per-event pricing:

- [PDF to Markdown for RAG & LLM](https://apify.com/sequined_lacework/pdf-to-markdown-rag): PDFs (arXiv, Google Drive, any URL) with tables preserved
- [Website & Sitemap to Markdown for RAG & LLM](https://apify.com/sequined_lacework/website-to-markdown-rag): docs sites, blogs and sitemaps, code blocks preserved
- [Podcast RSS & Transcript Extractor for AI/RAG](https://apify.com/sequined_lacework/podcast-transcript-rag) *(this Actor)*: podcast episodes with publisher transcripts
- [GitHub Repository to Clean Markdown for LLM & RAG](https://apify.com/sequined_lacework/github-repo-to-markdown): whole codebases as one Markdown context with a file tree
- [RSS, Atom & Substack to Clean Markdown for RAG](https://apify.com/sequined_lacework/rss-article-markdown): blogs and newsletters, full articles from teaser feeds

### Limits

- **Only publisher transcripts.** Transcripts are available only for episodes whose feed embeds a `<podcast:transcript>` tag. There is no speech-to-text and the audio is never downloaded; episodes without a transcript still return metadata and show notes.
- Supported transcript formats: WebVTT, SRT, Podcasting 2.0 JSON, plain text and HTML. Other formats (for example PDF) are skipped with a note in `error_message`.
- RSS 2.0 feeds only. Feeds behind a login or private feeds with per-user tokens that expire are not supported.
- Feed and transcript responses larger than 20 MB are skipped with an error.
- You are responsible for following the terms of use and copyright rules of the podcasts and transcripts you process. Respect the publishers' terms.

### FAQ

**Why is `has_transcript` false?**
The feed has no `<podcast:transcript>` tag for that episode, the transcript is in an unsupported format, or its download failed. Check `error_message`. Many popular shows publish no transcripts in the feed.

**Does it transcribe the audio?**
No. It only reads transcripts that publishers provide. It never downloads the audio file.

**Can I pass an Apple Podcasts link?**
Yes. Pass the show page URL (with `/id<number>`); it is resolved to the RSS feed through the public iTunes lookup API. Links to a single episode resolve to the whole show.

**How are tokens estimated?**
Roughly 4 characters per token, which is a rough figure for English text. Use your model's tokenizer for exact counts.

**How are speakers shown?**
When the transcript names speakers (WebVTT `<v Name>` tags or JSON `speaker` fields), a new paragraph starts at each speaker change with a `Name: ` prefix.

**Do I need to do anything to run it locally?**
`pip install -r requirements.txt`, then `apify run` (Apify CLI). Local runs skip charging automatically.

# Actor input Schema

## `feedUrls` (type: `array`):

RSS feed URLs or Apple Podcasts page URLs (podcasts.apple.com/.../id123456789), which are resolved to the RSS feed automatically.

## `maxEpisodesPerFeed` (type: `integer`):

How many of the newest episodes to process for each feed (in feed order).

## `fetchTranscripts` (type: `boolean`):

Download and clean transcripts that the publisher links via <podcast:transcript>. Turn off to get only show notes.

## `chunkSize` (type: `integer`):

If greater than 0, the episode Markdown is also split into RAG-ready chunks of at most this many characters. 0 disables chunking.

## `chunkOverlap` (type: `integer`):

Approximate overlap between neighbouring chunks. Reduced automatically if not smaller than the chunk size.

## `maxConcurrency` (type: `integer`):

How many episodes (transcript downloads) are processed in parallel.

## Actor input object example

```json
{
  "feedUrls": [
    "https://feeds.buzzsprout.com/231452.rss"
  ],
  "maxEpisodesPerFeed": 1,
  "fetchTranscripts": true,
  "chunkSize": 0,
  "chunkOverlap": 200,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Dataset with one item per podcast episode: metadata, show notes, cleaned transcript, full Markdown and optional RAG chunks.

# 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 = {
    "feedUrls": [
        "https://feeds.buzzsprout.com/231452.rss"
    ],
    "maxEpisodesPerFeed": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("sequined_lacework/podcast-transcript-rag").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 = {
    "feedUrls": ["https://feeds.buzzsprout.com/231452.rss"],
    "maxEpisodesPerFeed": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("sequined_lacework/podcast-transcript-rag").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 '{
  "feedUrls": [
    "https://feeds.buzzsprout.com/231452.rss"
  ],
  "maxEpisodesPerFeed": 1
}' |
apify call sequined_lacework/podcast-transcript-rag --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sequined_lacework/podcast-transcript-rag"
        }
    }
}
```

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/KOCcWyAljwlhqoijR/builds/5heMZWTouOuPOeu2j/openapi.json
