# YouTube Transcript Extractor

**Use case:** 

Use YouTube Transcript Extractor with the public video ID dQw4w9WgXcQ. This example asks for English captions and uses the default source setting, which allows creator-provided or auto-generated captions. The result includes available transcript text, caption language and source, timestamped segments, and links to SRT, VTT, Markdown, and PDF files.

## Input

```json
{
  "videoUrlsOrIds": [
    "dQw4w9WgXcQ"
  ],
  "preferredCaptionLanguage": "en",
  "captionSource": "creator_or_auto"
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "string"
  },
  "title": {
    "label": "Video title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel name",
    "format": "string"
  },
  "thumbnailUrl": {
    "label": "Thumbnail URL",
    "format": "string"
  },
  "captionLanguage": {
    "label": "Caption language",
    "format": "string"
  },
  "captionSource": {
    "label": "Caption source",
    "format": "string"
  },
  "transcriptText": {
    "label": "Transcript text",
    "format": "string"
  },
  "segments": {
    "label": "Transcript segments",
    "format": "array"
  },
  "paragraphs": {
    "label": "Transcript paragraphs",
    "format": "array"
  },
  "downloads": {
    "label": "Transcript files",
    "format": "object"
  }
}
```

## About this Actor

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