# YouTube Transcript: Captions, Timestamps & Speech to Text (`zen-studio/youtube-transcript`) Actor

Get YouTube transcripts from videos, Shorts, channels and playlists. Transcribe videos without subtitles. Export timestamps, SRT, VTT, Word and Markdown, with optional speaker labels, summaries and English translation.

- **URL**: https://apify.com/zen-studio/youtube-transcript.md
- **Developed by:** [Zen Studio](https://apify.com/zen-studio) (community)
- **Categories:** Videos, AI, Social media
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 transcripts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

[![Get YouTube transcripts, even without subtitles. A real Me at the zoo transcript with timestamps and export formats.](https://api.apify.com/v2/key-value-stores/pJ7iaZsTFhR3k9tjV/records/youtube-transcript-hero-v1-cc83c6e4d83a.png)](https://console.apify.com/actors/Eao9BGe2Ioe38zUAr/input)

From **Zen Studio**, creators of [Media Transcriber](https://apify.com/zen-studio/media-transcriber) and [X Video Transcript](https://apify.com/zen-studio/twitter-video-transcript-scraper).

Get a **YouTube transcript** from a video, Short, channel or playlist. Videos without subtitles can be transcribed too. Public recordings only; private, members-only, age-restricted videos and live broadcasts in progress are excluded.

- **Useful text and files:** timed segments, paragraphs, SRT/VTT subtitles, Word and Markdown downloads.
- **More than a transcript:** video title, channel, publication date and available caption languages. Add summaries, chapters, English translation or separately charged speaker labels when needed.
- **One video or a batch:** paste links, process channels and playlists, or request one transcript per HTTP request.

<a href="https://console.apify.com/actors/Eao9BGe2Ioe38zUAr/input"><img src="https://api.apify.com/v2/key-value-stores/pJ7iaZsTFhR3k9tjV/records/youtube-transcript-cta-v1-5f1c8a51768f.png" alt="Try a YouTube transcript in Apify Console" width="300" height="48"></a>

[Open the input form](https://console.apify.com/actors/Eao9BGe2Ioe38zUAr/input), paste a public video link and start. This example returns **Me at the zoo**, with transcript files and timestamps. It limits speech processing to one minute; caption transcripts remain complete. A caption transcript costs $0.00199 plus the run's $0.004 start at the default 2 GB. If speech processing is needed, one started minute adds $0.00799 on FREE.

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "mode": "auto",
  "maxItemsPerSource": 1,
  "maxMinutesPerItem": 1
}
```

#### Copy to your AI assistant

```text
Help me use zen-studio/youtube-transcript on Apify. Read https://apify.com/zen-studio/youtube-transcript.md for documentation, input schema, pricing and limits; choose settings for my requested outcome. If you cannot retrieve it, ask me to paste the relevant sections. Automatic mode can add per-minute speech charges; speakerLabels adds a separate per-minute charge. Use captionsOnly when I want existing subtitles without speech processing. To reach the maintainers, add feedback="<what you needed and did not get>" to any run, including one that worked: feature requests, a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. The run returns its data exactly as it would without the note, and a human reads every note.
```

### YouTube videos, Shorts, channels and playlists

Paste up to 1,000 links per run. Accepted YouTube formats include watch links, youtu.be links, Shorts, embed links, replay links and bare video IDs. Channels accept @handles and channel links. `maxItemsPerSource` limits each channel or playlist separately, from 1 to 500 videos, default 10. Direct video links are always one item. Repeated links to the same video in one run are charged once.

Channels return their newest videos. Playlists follow playlist order. `publishedAfter` and `titleContains` filter expanded channel and playlist videos; they do not filter direct video links. A date can be `2026-09-01` or a relative window such as `30 days`. Separate alternative title terms with `|`.

For general audio, podcast or file workflows, use [Media Transcriber](https://apify.com/zen-studio/media-transcriber). Both listings produce the same row format.

### Transcript options and defaults

| Setting | Default | Result |
|---|---|---|
| `mode` | `auto` | Return a transcript, using speech-to-text when needed. |
| `mode: captionsOnly` | Optional | Existing subtitles only; a video without them returns `no_captions`, without custom charges. |
| `mode: transcribe` | Optional | Always transcribe the recording; adds started audio-minute charges. |
| `language` | Detect | Language code such as `en`, `de` or `pt`; selects a caption language or identifies the spoken language. |
| `translateToEnglish` | `false` | Return English text and subtitles. |
| `includeWordTimestamps` | `true` | Word timings when available on automatic-caption or speech rows. |
| `includeSubtitles` | `true` | SRT, VTT and timestamped text. |
| `saveFiles` | `true` | Linked TXT, Markdown, Word, SRT and VTT files in the run's storage. |
| `speakerLabels` | `false` | Identify speakers as S1, S2 and so on; separately charged per started labelled minute. |
| `speakerCount` | Unset | Optional known speaker count, 1 to 12. |
| `summarize` | `false` | Add a summary, chapters and keywords; included in the transcript charge. Very short text may be too short to summarize. |
| `vocabulary` | Unset | Names and terms to help speech spelling. |
| `maxMinutesPerItem` | `180` | Speech duration cap; 0 means 600 minutes. Existing captions remain complete. |

The form prefills one short video, 3 videos per channel and a 5-minute speech cap. These prefills do not change the defaults used when fields are omitted.

### Output and downloads

The default dataset has one row per requested video, including clearly marked unsuccessful items. Filter `status: transcript` for delivered transcripts. Download JSON, CSV or Excel from the dataset. Open `txtFileUrl`, `markdownFileUrl`, `docxFileUrl`, `srtFileUrl` or `vttFileUrl` for individual files when available. The run's **Output** tab links to transcripts, `SUMMARY`, `ERRORS` and stored files.

- **Video:** `id`, `url`, `inputUrl`, `title`, `description`, channel fields, publication date, duration, thumbnail, views, likes, comments, tags and creator chapters when available.
- **Transcript:** `text`, `wordCount`, `language`, timed `segments`, `words`, `paragraphs`, `timestampedText`, `srt`, `vtt` and `markdown`. Word timings depend on the transcript; creator captions may have segment timings only.
- **Options:** `speakers`, segment speaker labels and `speakerMinutes`; `summary`, `chapters`, `keywords` and `summaryNote`. Optional fields may be null or empty when disabled or unavailable.
- **Caption detail:** `availableCaptions`, `captionTranslationLanguages`, `captionTrack` and `transcriptSource`. Values include `native_captions`, `auto_captions` and `speech_recognition`.
- **Run and billing:** `status`, `charged`, `chargedEvents`, `chargedAudioMinutes`, `transcribedSeconds`, `warnings`, `error`, `retryable`, `stopReason` and `processedAt`. `fromCache` identifies an earlier completed transcript; it still incurs the transcript event, with no new audio-minute event. Video metadata is refreshed for the current request.

#### Real output example

This is the matching local result for the quick input above. Every top-level field is retained. Repeated array entries are reduced to one member for readability, including caption languages and paragraphs; the full transcript text remains intact. The five local workstation file links were removed and replaced with null; platform runs populate these fields when files are saved. `wordCount` describes the complete result.

```json
{
  "status": "transcript",
  "inputUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "mediaUrl": null,
  "platform": "youtube",
  "siteName": "YouTube",
  "sourceType": "video",
  "discoveredVia": "input",
  "id": "jNQXAC9IVRw",
  "title": "Me at the zoo",
  "description": "Microplastics are accumulating in human brains at an alarming rate\nhttps://www.youtube.com/watch?v=0PT5c1z3LL8\n\n“Nanoplastics and Human Health” with Matthew J Campen, PhD, MSPH\nhttps://www.youtube.com/watch?v=RRBN_4L09Mg\n\n00:00 Intro\n00:05 The cool thing\n00:17 End",
  "uploader": "jawed",
  "uploaderId": "UC4QobU6STFB0P71PMvOGN5A",
  "uploaderUrl": "https://www.youtube.com/@jawed",
  "uploaderFollowers": 6730000,
  "publishedAt": "2005-04-23T20:31:52-07:00",
  "thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwEmCOADEOgC8quKqQMa8AEB-AG-AoAC8AGKAgwIABABGFUgWShlMA8=&rs=AOn4CLA9eLBatYv9WbkD4BbZ2Im-biSPTw",
  "durationSeconds": 19.0,
  "viewCount": 448413290,
  "likeCount": 20136018,
  "commentCount": 10000000,
  "repostCount": null,
  "tags": [
    "me at the zoo"
  ],
  "categories": [
    "Film & Animation"
  ],
  "creatorChapters": [
    {
      "title": "Intro",
      "start": 0.0,
      "end": 5.0
    }
  ],
  "podcast": null,
  "fileSizeBytes": null,
  "transcriptSource": "native_captions",
  "task": "transcribe",
  "language": "en",
  "languageProbability": null,
  "languageSource": "caption_track",
  "captionTrack": {
    "kind": "manual",
    "name": "English",
    "languageCode": "en",
    "translatable": true,
    "translatedTo": null
  },
  "availableCaptions": [
    {
      "languageCode": "en",
      "name": "English",
      "kind": "manual",
      "translatable": true
    }
  ],
  "transcriptFileUrl": null,
  "text": "All right, so here we are, in front of the elephants the cool thing about these guys is that they have really... really really long trunks and that's cool (baaaaaaaaaaahhh!!) and that's pretty much all there is to say",
  "wordCount": 41,
  "confidence": null,
  "audioType": null,
  "hasTimestamps": true,
  "segments": [
    {
      "end": 3.36,
      "text": "All right, so here we are, in front of the elephants",
      "start": 1.2
    }
  ],
  "words": [],
  "paragraphs": [
    {
      "start": 1.2,
      "end": 3.36,
      "text": "All right, so here we are, in front of the elephants"
    }
  ],
  "speakers": null,
  "speakerMinutes": null,
  "hook3s": "All right, so here we are, in front of the elephants",
  "hookStartSeconds": 1.2,
  "srt": "1\n00:00:01,200 --> 00:00:03,360\nAll right, so here we are, in front of the elephants\n\n2\n00:00:05,318 --> 00:00:07,974\nthe cool thing about these guys is that they have really...\n\n3\n00:00:07,974 --> 00:00:12,616\nreally really long trunks\n\n4\n00:00:12,616 --> 00:00:14,367\nand that's cool\n\n5\n00:00:14,421 --> 00:00:15,733\n(baaaaaaaaaaahhh!!)\n\n6\n00:00:16,881 --> 00:00:18,881\nand that's pretty much all there is to say\n",
  "vtt": "WEBVTT\n\n00:00:01.200 --> 00:00:03.360\nAll right, so here we are, in front of the elephants\n\n00:00:05.318 --> 00:00:07.974\nthe cool thing about these guys is that they have really...\n\n00:00:07.974 --> 00:00:12.616\nreally really long trunks\n\n00:00:12.616 --> 00:00:14.367\nand that's cool\n\n00:00:14.421 --> 00:00:15.733\n(baaaaaaaaaaahhh!!)\n\n00:00:16.881 --> 00:00:18.881\nand that's pretty much all there is to say\n",
  "timestampedText": "[00:01] All right, so here we are, in front of the elephants\n[00:05] the cool thing about these guys is that they have really...\n[00:07] really really long trunks\n[00:12] and that's cool\n[00:14] (baaaaaaaaaaahhh!!)\n[00:16] and that's pretty much all there is to say",
  "markdown": "# Me at the zoo\n\n- **By:** jawed\n- **Source:** YouTube, https://www.youtube.com/watch?v=jNQXAC9IVRw\n- **Published:** 2005-04-23T20:31:52-07:00\n- **Length:** 00:19\n- **Language:** en\n- **Transcript from:** the creator's captions\n\n## Chapters\n\n- [00:00] Intro\n- [00:05] The cool thing\n- [00:17] End\n\n## Transcript\n\n**[00:01]** All right, so here we are, in front of the elephants\n\n**[00:05]** the cool thing about these guys is that they have really... really really long trunks and that's cool (baaaaaaaaaaahhh!!) and that's pretty much all there is to say\n",
  "summary": null,
  "chapters": [],
  "keywords": [],
  "summaryNote": null,
  "srtFileUrl": null,
  "vttFileUrl": null,
  "txtFileUrl": null,
  "markdownFileUrl": null,
  "docxFileUrl": null,
  "transcribedSeconds": 19.0,
  "chargedAudioMinutes": 0,
  "chargedEvents": {},
  "charged": false,
  "fromCache": true,
  "cachedAt": "2026-11-09T16:35:47Z",
  "isNew": null,
  "repeat": null,
  "firstSeenAt": null,
  "firstSeenRunId": null,
  "warnings": [],
  "error": null,
  "retryable": false,
  "stopReason": null,
  "processedAt": "2026-11-13T11:34:20Z"
}
```

### Price

Prices below are **per 1,000 events**, except startup. Each completed video incurs one transcript event. Audio and speaker events are additional, only when performed.

| Event | FREE | BRONZE | SILVER | GOLD / PLATINUM / DIAMOND |
|---|---:|---:|---:|---:|
| Transcript | $1.99 | $1.99 | $1.99 | $1.99 |
| Started speech minute | $7.99 | $6.99 | $6.99 | $6.99 |
| Started speaker-labelled minute | $9.99 | $8.99 | $8.99 | $7.99 |

Startup is **$0.002 per GB of configured memory**, minimum one GB. The default 2 GB run starts at **$0.004**, including runs that return no transcript. One captioned video at the default memory costs **$0.00599** total. One video requiring one started minute of speech processing costs **$0.01398** total on FREE; adding one speaker-labelled minute gives **$0.02397**. Summaries do not add a separate event.

Videos without speech or captions, unavailable videos, duplicates, skipped items and errors have no transcript, audio or speaker charge. The startup charge remains. Set a maximum run charge in Console to bound spending. Very new free-plan accounts may be asked to upgrade before a run starts.

### Schedule channel transcripts

Save a task with a channel link and a `watchlistId`, then schedule it in Apify Console. With `newItemsOnly: true`, videos already delivered under that watchlist name are left out, without a row or custom charge. Watchlist names refer to your own storage. Use a different name if you want this listing and Media Transcriber to maintain separate watchlists.

```json
{
  "urls": ["https://www.youtube.com/@jawed"],
  "maxItemsPerSource": 3,
  "watchlistId": "youtube-channel-notes",
  "newItemsOnly": true,
  "mode": "captionsOnly"
}
```

You can also set `datasetId` to an earlier run's dataset, or paste `datasetItems`, to transcribe its video links. Dataset output connects to n8n, Make and Zapier through Apify integrations; select the transcript text or downloadable files for your workflow.

### One transcript per HTTP request

Standby accepts `GET /?url=<public-video-link>` or `POST /` with a JSON body containing `url` and transcript options. Use the authenticated Standby endpoint displayed in this actor's Console. A successful response contains `transcripts`, an array with the same row format as batch runs. Check the response's delivery and billing fields before using it. Standby requests default to a 120-minute speech cap, which is also the maximum per request, and do not save files unless requested. Standby capacity can have additional platform costs shown by Apify. A saved channel task remains a batch workflow.

### Limits and troubleshooting

- Public published recordings only. Private, members-only and age-restricted videos, deleted videos and live broadcasts in progress cannot be transcribed. Try a published replay after a live stream ends.
- Maximum 500 videos per expanded channel or playlist and 1,000 input links per batch. Use several runs for larger jobs.
- Speech processing is limited by `maxMinutesPerItem`, up to 600 minutes. A capped transcript includes a warning; caption transcripts are complete.
- `status: no_captions` means captions-only mode found no usable subtitles. Select `auto` to allow charged speech processing.
- `status: no_speech` means no usable speech was found; text is empty. An unavailable or failed item has a readable `error.message` and `retryable` flag.
- If the run ends early, inspect `SUMMARY.stoppedBy` and `ERRORS`. Raise the time or spending limit when appropriate. Successful earlier rows remain available.
- Speaker labels can be imperfect when people overlap or the recording is unclear. Summaries and translation may also need review before consequential use.

### Frequently asked questions

#### Can I get a YouTube transcript without subtitles?

Yes, use the default `auto` mode or choose `transcribe`. Speech processing adds an audio-minute charge. `captionsOnly` never performs speech processing.

#### Can I download a YouTube transcript as text or subtitles?

Yes. With `saveFiles: true`, open the row's TXT, Word, Markdown, SRT or VTT file link. Segment timestamps also remain in the dataset.

#### Can I transcribe a full channel or playlist?

Yes. Paste its link and choose `maxItemsPerSource`. Channels return newest videos; playlists retain their order. The limit is per link, rather than a total run limit.

#### Is this a free YouTube transcript generator?

It is a paid Apify actor with explicit transcript, optional processing and startup charges. Your Apify account may provide platform credits; these do not make a run unconditionally free.

#### Do I need a YouTube login?

No login or cookies are accepted. Use public videos that are playable without an account.

### Related tools

[Media Transcriber](https://apify.com/zen-studio/media-transcriber) handles audio/video links, podcasts and files. [X Video Transcript](https://apify.com/zen-studio/twitter-video-transcript-scraper) handles X video posts.

### Support

Open an issue on this actor's Apify page with the public video link, run link and expected result. Do not share credentials or private recordings. Process only content you have the right to use, and respect applicable rights and terms.

# Actor input Schema

## `urls` (type: `array`):

Public YouTube links, one per line. Accepts watch, youtu.be, Shorts, channel and playlist links, or a video ID. Each video becomes one transcript row. At most 1,000 links per run.

## `maxItemsPerSource` (type: `integer`):

Maximum videos taken from each channel or playlist. Default 10; the first-run form uses 3. A direct video or Short link is always one item.

## `mode` (type: `string`):

<b>Automatic:</b> get the transcript, using speech-to-text when needed.<br><b>Always transcribe audio:</b> transcribe the recording, with an additional charge per started audio minute.<br><b>Captions only:</b> return existing subtitles. Videos without subtitles receive an uncharged no_captions row.

## `language` (type: `string`):

Optional language code such as en, de or pt. Selects an existing caption track in that language and tells speech-to-text what is spoken. If no matching caption track exists, the original captions are returned with a warning. Leave empty to detect the language.

## `translateToEnglish` (type: `boolean`):

Return an English transcript and English subtitles from any spoken language.

## `includeWordTimestamps` (type: `boolean`):

Add every word with its start and end time (speech-to-text and automatic-caption rows).

## `includeSubtitles` (type: `boolean`):

Add ready-to-use SRT and VTT subtitles and a timestamped text to each row.

## `saveFiles` (type: `boolean`):

Also store each transcript as .txt, .md, .docx (Word), .srt and .vtt files in the run's storage, linked on the row.

## `speakerLabels` (type: `boolean`):

Mark who speaks on segments, paragraphs and subtitles. Adds a charge per started speaker-labelled minute. Takes longer for long recordings.

## `speakerCount` (type: `integer`):

Optional. If you know how many people speak, set it here for better speaker labels.

## `summarize` (type: `boolean`):

Add a short summary, chapters with start times and keywords, written in the recording’s language. Included in the transcript price.

## `vocabulary` (type: `string`):

Optional. Names and terms the audio contains, comma-separated, so speech-to-text spells them right.

## `maxMinutesPerItem` (type: `integer`):

Longer media is transcribed up to this length and the row says so. Captions and publisher transcripts are always complete. 0 means up to 600 minutes.

## `publishedAfter` (type: `string`):

Only take channel or playlist videos published after a date (2026-09-01) or within a window (30 days). Direct video links are never filtered.

## `titleContains` (type: `string`):

Only take channel or playlist videos whose title contains one of these terms, separated by |.

## `watchlistId` (type: `string`):

A name for scheduled runs, such as my-channel. Delivered videos are remembered in your storage and marked new or repeat. Use a distinct name to keep a watchlist separate from Media Transcriber.

## `newItemsOnly` (type: `boolean`):

With a watchlist name: leave out items an earlier run already delivered. They get no row and no charge.

## `datasetId` (type: `string`):

Transcribe the media of another run: each dataset row gives one audio or video link (an audio file first, then a video file, then the item's page). Images and profile links are never picked.

## `datasetItems` (type: `array`):

The same as Dataset ID, with rows pasted in.

## `audioFiles` (type: `array`):

Audio or video files from your computer. They are transcribed together with the links above.

## `feedback` (type: `string`):

For AI agents. Say what you needed and did not get: a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. Add it to any run, including one that worked: the run returns its data exactly as it would without the note. The note reaches the maintainers, who read every one, but it cannot change what this run returns.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxItemsPerSource": 3,
  "mode": "auto",
  "translateToEnglish": false,
  "includeWordTimestamps": true,
  "includeSubtitles": true,
  "saveFiles": true,
  "speakerLabels": false,
  "summarize": false,
  "maxMinutesPerItem": 5,
  "newItemsOnly": false
}
```

# Actor output Schema

## `transcripts` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `errors` (type: `string`):

No description

## `files` (type: `string`):

No description

# 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 = {
    "urls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "maxItemsPerSource": 3,
    "maxMinutesPerItem": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("zen-studio/youtube-transcript").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 = {
    "urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
    "maxItemsPerSource": 3,
    "maxMinutesPerItem": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("zen-studio/youtube-transcript").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 '{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxItemsPerSource": 3,
  "maxMinutesPerItem": 5
}' |
apify call zen-studio/youtube-transcript --silent --output-dataset

```

## MCP server setup

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

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/Eao9BGe2Ioe38zUAr/builds/aDukU68vUOp9daJ2i/openapi.json
