# YouTube Transcripts for an AI Knowledge Base

**Use case:** 

Turn a channel's videos into text for AI assistants, search, summaries or research: each video with its full transcript, language and the video's details. Change the channel, the number of videos or the format (text, timestamps, SRT, WebVTT). About $0.16 for 20 videos with transcripts.

## Input

```json
{
  "searchQueries": [
    "golang tutorial"
  ],
  "startUrls": [
    "https://www.youtube.com/@TechWorldwithNana"
  ],
  "maxResults": 20,
  "maxShorts": 0,
  "maxLive": 0,
  "sortBy": "relevance",
  "duration": "any",
  "country": "US",
  "videoDetails": true,
  "creatorsOnly": false,
  "maxComments": 0,
  "commentsSort": "top",
  "includeReplies": false,
  "commentsAsRows": false,
  "transcripts": true,
  "transcriptLanguage": "",
  "transcriptFormat": "text",
  "onlyNew": false,
  "monitorName": "",
  "minItems": 0
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "transcriptStatus": {
    "label": "Transcript status",
    "format": "string"
  },
  "transcriptLanguage": {
    "label": "Transcript language",
    "format": "string"
  },
  "transcriptIsAuto": {
    "label": "Automatic captions",
    "format": "boolean"
  },
  "transcript": {
    "label": "Transcript",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Scraper Actor is ready to run with the inputs already set for "YouTube Transcripts for an AI Knowledge Base". [Sign up or log in](https://console.apify.com/create-task-from-example/DrKNs40mLPYD32US0) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "YouTube Transcripts for an AI Knowledge Base" task

The YouTube Scraper Actor will start running based on the input automatically. You can also change all the input fields, like search youtube for, videos, channels, playlists or links, and more, to match your specific use case.

### 3. Receive the "YouTube Transcripts for an AI Knowledge Base" 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 title, URL, transcript status, 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 Transcripts for an AI Knowledge Base" task via API](https://apify.com/sleepmodesystems/youtube-scraper.md).

## FAQ

### What does the YouTube Transcripts for an AI Knowledge Base task return?

One row per video with its transcript in the chosen format, the transcript's language, whether it comes from YouTube's automatic captions, and the video's title, link, date, views and channel.

### What if a video has no captions?

Its row says so in transcriptStatus and no transcript is charged for it.

### Can I get transcripts in another language?

Set Transcript language to a code such as es, de or pt. When the video has no captions in that language, the row lists the languages it has.

### How much does the YouTube Transcripts for an AI Knowledge Base task cost?

$3.99 per 1,000 videos plus $3.99 per 1,000 transcripts on the FREE tier: about $0.16 for 20 videos with transcripts.

## About this Actor

This example demonstrates how to use [YouTube Scraper](https://apify.com/sleepmodesystems/youtube-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sleepmodesystems/youtube-scraper.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/sleepmodesystems/youtube-scraper.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`).
