# Get YouTube Shorts transcripts to study viral hooks

**Use case:** 

Download the spoken script of viral YouTube Shorts, here from MrBeast and Alex Hormozi, to study their opening hooks, pacing and calls to action. For short-form creators, ghostwriters and social media agencies building a swipe file or prompting AI to write scripts. Output: title, channel, view count, timestamped lines and the full script.

## Input

```json
{
  "videos": [
    "https://www.youtube.com/shorts/egvLKQe6I4I",
    "https://www.youtube.com/shorts/LgbyEFILLJI",
    "https://www.youtube.com/shorts/XCGVurja73c",
    "https://www.youtube.com/shorts/xDuuM3ERr5Q",
    "https://www.youtube.com/shorts/XvCcbm9kxuY",
    "https://www.youtube.com/shorts/VRNbgZd4p_E",
    "https://www.youtube.com/shorts/ul7MQcGvSvc",
    "https://www.youtube.com/shorts/57_uoyn15_w"
  ],
  "languages": [
    "en"
  ],
  "includeAutoGenerated": true,
  "strictLanguage": false,
  "outputFormat": "both",
  "maxConcurrency": 20
}
```

## Output

```json
{
  "input": {
    "label": "Input"
  },
  "videoId": {
    "label": "Video ID"
  },
  "title": {
    "label": "Title"
  },
  "channel": {
    "label": "Channel"
  },
  "language": {
    "label": "Language"
  },
  "isAutoGenerated": {
    "label": "Auto-generated",
    "format": "boolean"
  },
  "segmentCount": {
    "label": "# Segments",
    "format": "number"
  },
  "fullText": {
    "label": "Transcript"
  },
  "error": {
    "label": "Error"
  }
}
```

## About this Actor

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