# YouTube to Text With Timestamps (Markdown)

**Use case:** 

Convert YouTube videos to readable text with clickable timestamps and the video's own chapters, as a Markdown document per video. Good for notes, summaries and documentation.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "languages": [
    "en"
  ],
  "track": "any",
  "format": "markdown",
  "includeMetadata": true,
  "maxConcurrency": 50,
  "expandCollections": false,
  "maxVideosPerChannel": 100,
  "max_results": 1000,
  "timeoutSecs": 8,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "includeExtendedMetadata": false,
  "maxVideosPerSearch": 20,
  "includeChunks": true,
  "chunkUnit": "words",
  "chunkSize": 200,
  "chunkOverlap": 40,
  "includeMarkdown": true,
  "includeChapters": true,
  "minAttemptsForSuccessRatio": 200,
  "maxConsecutiveFailures": 500,
  "maxRunSecs": 3000,
  "maxListingSources": 200,
  "searchInTranscripts": [],
  "searchContextWords": 12,
  "onlyVideosWithMatches": false,
  "onlyNewVideos": false
}
```

## Output

```json
{
  "inputIndex": {
    "label": "inputIndex",
    "format": "integer"
  },
  "videoId": {
    "label": "videoId",
    "format": "string"
  },
  "status": {
    "label": "status",
    "format": "text"
  },
  "language": {
    "label": "language",
    "format": "string"
  },
  "trackKind": {
    "label": "trackKind",
    "format": "text"
  },
  "translationStatus": {
    "label": "translationStatus",
    "format": "text"
  },
  "text": {
    "label": "text",
    "format": "string"
  },
  "retryable": {
    "label": "retryable",
    "format": "boolean"
  },
  "errorCode": {
    "label": "errorCode",
    "format": "string"
  },
  "errorDetail": {
    "label": "errorDetail",
    "format": "string"
  },
  "reused": {
    "label": "reused",
    "format": "boolean"
  }
}
```

## How it works

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

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

### 2. Start the "YouTube to Text With Timestamps (Markdown)" task

The YouTube Transcript API — RAG, Markdown, Chapters Actor will start running based on the input automatically. You can also change all the input fields, like video or collection urls, preferred languages, and more, to match your specific use case.

### 3. Receive the "YouTube to Text With Timestamps (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 inputindex, videoid, 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 to Text With Timestamps (Markdown)" task via API](https://apify.com/smartlinks/youtube-transcript-api.md).

## FAQ

### Where do the chapters come from?

From timestamps in the video description (three or more, starting at 0:00). Chapters are never invented.

### Which languages are supported?

Any caption language the video has. List language codes in order of preference; other tracks are used as fallback.

## About this Actor

This example demonstrates how to use [YouTube Transcript API — RAG, Markdown, Chapters](https://apify.com/smartlinks/youtube-transcript-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/smartlinks/youtube-transcript-api.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/smartlinks/youtube-transcript-api.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`).
