# YouTube Playlist to RAG Chunks & Markdown

**Use case:** 

Convert any YouTube playlist into chapter-aligned Markdown and overlapping 400-token RAG chunks with clickable timestamp deep links. Built for LangChain, Pinecone, Qdrant, Supabase, and MCP AI agents.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"
  ],
  "searchQueries": [],
  "maxVideos": 3,
  "languages": [
    "en"
  ],
  "allowAutoTranslation": true,
  "includeTimestamps": false,
  "includeMetadata": true,
  "includeRagChunks": true,
  "ragChunkTokens": 400,
  "ragChunkOverlapTokens": 50,
  "stripSoundMarkers": true,
  "concurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "isAutoGenerated": {
    "label": "Auto-Generated",
    "format": "boolean"
  },
  "wordCount": {
    "label": "Words",
    "format": "integer"
  },
  "durationSeconds": {
    "label": "Duration (s)",
    "format": "integer"
  },
  "ragChunkCount": {
    "label": "RAG Chunks",
    "format": "integer"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP) Actor is ready to run with the inputs already set for "YouTube Playlist to RAG Chunks & Markdown". [Sign up or log in](https://console.apify.com/create-task-from-example/cWDP6CvvMRvgvEujE) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "YouTube Playlist to RAG Chunks & Markdown" task

The YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP) Actor will start running based on the input automatically. You can also change all the input fields, like youtube urls or video ids, youtube search queries (optional), and more, to match your specific use case.

### 3. Receive the "YouTube Playlist to RAG Chunks & Markdown" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video id, title, channel, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "YouTube Playlist to RAG Chunks & Markdown" task via API](https://apify.com/datapipestudio/youtube-transcript-rag.md).

## FAQ

### What output format will I receive from this task?

The YouTube Playlist to RAG Chunks & Markdown task returns chapter-aligned Markdown and overlapping 400-token RAG chunks with clickable timestamp links.

### What type of content does the task extract from YouTube playlists?

The task extracts clean, structured content including video titles, channel names, languages, and rich video metadata.

### How does this task handle unavailable or captionless videos?

The task charges $0 for unavailable or captionless videos, ensuring you only pay for successful extractions.

### What is a RAG chunk and how does it work within this task?

A RAG chunk is an overlapping 400-token segment of text extracted from the video, organized for embedding in vector databases and AI tools.

### Can I schedule this task to run at specific times?

This task can be scheduled to run automatically using the Apify Console, allowing for repetitive data extraction.

### Is there an API available for this task?

Yes, the YouTube Playlist to RAG Chunks & Markdown task can be accessed via the Apify API, enabling integration with other applications.

## About this Actor

This example demonstrates how to use [YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP)](https://apify.com/datapipestudio/youtube-transcript-rag.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/datapipestudio/youtube-transcript-rag.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/datapipestudio/youtube-transcript-rag.md

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`).
