# YouTube Chapters & Shorts Clip Finder - AI Video Timestamps (`helenisapi/youtube-chapters-clip-finder`) Actor

YouTube chapters and ranked Shorts clips for your own videos: send the file, YouTube Studio captions (SRT/VTT) or a transcript scraper's dataset. Hooks, titles, tags. 🎬

- **URL**: https://apify.com/helenisapi/youtube-chapters-clip-finder.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Videos, AI, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.00 / 1,000 videos analyzed

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 🎬 YouTube Chapters & Shorts Clip Finder - AI Video Timestamps

**Chapter your videos and find their best short-form moments, in seconds.** Feed it the dataset of any **YouTube transcript scraper**, links to **SRT/VTT transcripts**, or **audio and video files**, and get for each video **YouTube chapters** ready to paste in the description, a **ranked list of short clips** for Shorts, TikTok and Reels (start, end, hook, on-screen title, caption, **virality score**), a **summary**, **title ideas**, a **description**, **tags**, **hashtags** and **verbatim quotes** with timestamps.

No API key: add your videos and hit **Run**.

### 🎯 Who it is for

- 🎥 **Creators, before upload:** link the export from Premiere, DaVinci, Descript, Riverside or Zoom, then publish with chapters, titles, tags and your Shorts already picked.
- 📺 **Your videos already on YouTube:** in YouTube Studio, Subtitles tab, download the captions as .srt or .vtt (auto-generated ones too) and add their links.
- 🎙️ **Podcasts:** an MP3 is enough, and the same timestamps work in Spotify episode descriptions.
- 🔗 **Any public video:** run a YouTube transcript scraper on the URLs, then paste its dataset ID here. Two runs, no copy-paste.

ℹ️ **No YouTube links in this actor:** it never downloads from YouTube. Pair it with a transcript scraper, or send a transcript or a file.

***

### ⚡ Why this actor?

- 📑 **Chapters YouTube accepts:** first at 00:00, at least 3, each 10 seconds or more, placed where the topic changes. On an 85-minute lightning-talk session, the 17 chapters matched the 17 talks of the schedule.
- ✂️ **Clean cuts:** every clip starts and ends on a sentence boundary, inside your duration range, never overlapping another clip.
- 🔥 **Ranked by virality:** a 0-100 score with the reason, the opening hook (verbatim), an on-screen title and a caption with hashtags.
- 🔗 **Chains with transcript scrapers:** the output of the popular YouTube transcript actors works as is (their `transcript`, `captions`, `timestamped` or `data` arrays, even in milliseconds), however long the video.
- 🎧 **Or your own files:** MP4, MOV, WEBM, MP3, M4A... up to 90 minutes, transcribed first.
- 🌍 **Any language in, any language out.**
- 🔒 **No platform downloading:** nothing is fetched from YouTube, TikTok or Instagram.

***

### 📊 What data do you get?

One row per video:

| Field | Description | Example |
|---|---|---|
| `videoTitle` / `input` | The video and where it came from | `#AskNASA - What is Artemis?` |
| `chaptersText` | Paste it in your YouTube description | `00:00 The Artemis Program` ... |
| `youtubeChaptersValid` | YouTube will show them as chapters | `true` |
| `chapters` | Start, end, title and a one-line summary each | `{"timestamp": "00:57", "title": "Spacecraft and Personal Life"}` |
| `clips` | Short clips, best first: start, end, duration, title, hook, caption, hashtags, score, reason, text | `{"start_timestamp": "01:57", "end_timestamp": "02:16", "score": 85}` |
| `summary` / `description` | What the video covers; a description draft | |
| `titles` | 5 title ideas | `What is the Artemis Program?` |
| `tags` / `hashtags` | Search tags (under YouTube's 500 characters) and hashtags | `["nasa", "artemis"]` |
| `quotes` | Striking sentences, verbatim, with timestamps | `{"timestamp": "01:57", "text": "I missed feeling the Earth..."}` |
| `transcript` / `transcriptSegments` | For media files: the timed transcript | |
| `notes` / `error` | What was adjusted; why a video failed | |

***

### 🚀 How to use it

1. Run a YouTube transcript scraper, then paste its **dataset ID** here. Or add **transcript links** (SRT, VTT) or **media file links**.
2. Choose how many **clips** you want and their **length** (15-60 seconds by default).
3. Pick an **output language** if you want one, click **Run**, then export the table (CSV, Excel, JSON).

#### Input example

```json
{
  "datasetId": "YOUR_TRANSCRIPT_DATASET_ID",
  "mediaUrls": [
    "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3"
  ],
  "clips": 5,
  "clipMinSeconds": 15,
  "clipMaxSeconds": 60,
  "language": "en"
}
```

#### Output example (shortened)

```json
{
  "input": "https://images-assets.nasa.gov/video/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis.srt",
  "inputType": "transcript URL",
  "success": true,
  "durationSeconds": 173.48,
  "language": "en",
  "chaptersText": "00:00 The Artemis Program\n00:57 Spacecraft and Personal Life\n01:52 Life in Orbit",
  "youtubeChaptersValid": true,
  "titles": ["NASA Astronaut Answers Your Questions", "What is the Artemis Program?"],
  "clips": [
    {
      "rank": 1,
      "start_timestamp": "01:57",
      "end_timestamp": "02:16",
      "duration": 19.36,
      "title": "What Astronauts Miss Most",
      "hook": "I missed feeling the Earth, so I missed the wind.",
      "caption": "Ever wonder what you'd miss most if you left Earth? Even astronauts get homesick for the simple things. #space #earth #astronaut",
      "score": 85,
      "reason": "This clip provides a relatable, emotional perspective on space travel that resonates with a wide audience."
    }
  ],
  "quotes": [
    { "timestamp": "00:44", "text": "Essentially we practice we have, it's an engineering battleground so we can go to Mars." }
  ]
}
```

***

### 💰 Pricing

Pay per event, no subscription:

| Event | Price |
|---|---|
| `video-analyzed` | $0.011 per video, first 10 minutes included |
| `extra-minute` | $0.001 per minute beyond 10 |
| `audio-minute` | $0.0025 per minute of audio or video transcribed (media files only) |

A 10-minute video from its transcript costs **$0.011**, a 1-hour talk **$0.061**; from a media file, add $0.0025 a minute. Video breakdown actors charge $0.03 per 3 minutes plus $0.01 per minute. Videos that fail are **not charged**.

🆓 **Apify free plan:** the first **3 videos** of each run, media files of up to **10 minutes**. Upgrade your Apify plan to analyse whole channels.

***

### 💡 Use cases

- **YouTubers and agencies:** chapters, titles, tags and a description for every upload
- **Clipping and repurposing:** a ranked cut list of Shorts, TikToks and Reels with clean in and out points
- **Podcasts:** chapters and social clips for each episode, from its audio file
- **Courses and webinars:** navigable chapters and highlight reels for long recordings
- **Research:** the key moments and quotes of a whole channel, from its transcripts

***

### ❓ FAQ

**Can I give it YouTube links?**
No: downloading from YouTube, TikTok or Instagram is against their terms. Run a YouTube transcript scraper first and pass its dataset ID: its items are read as they are.

**How exact are the clip times?**
Clips start and end where the transcript's segments do, on sentence boundaries when it has punctuation. Automatic captions without punctuation are cut at caption edges or at the words the AI picked, timed by interpolation.

**What about music videos?**
It reads what is said: a video without speech is reported as failed and not charged.

**Is my content stored?**
Helenis does not store transcripts or files; the AI provider keeps requests temporarily for abuse monitoring.

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/youtube-chapters-clip-finder
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/youtube-chapters-clip-finder")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

# Actor input Schema

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

ID of an Apify dataset whose items carry a timestamped transcript, e.g. the dataset of a YouTube transcript scraper run: their transcript, captions, timestamped, data or segments arrays, or an SRT/VTT text field, work as is. One row per video; items without a transcript are skipped. Required unless `transcriptUrls` or `mediaUrls` is set. This actor takes no YouTube video links.

## `transcriptUrls` (type: `array`):

Links to transcript files, one per item: SRT, WebVTT, timestamped TXT ('\[01:23] words') or JSON segments, up to 5 MB each, e.g. \["https://example.com/episode-12.srt"]. Captions downloaded from YouTube Studio (.srt or .vtt) work. Required unless `datasetId` or `mediaUrls` is set. Not YouTube page links.

## `mediaUrls` (type: `array`):

Direct links to your own audio or video files, one per item: MP4, MOV, WEBM, MP3, M4A, WAV..., up to 150 MB and 90 minutes each, e.g. \["https://example.com/my-video.mp4"]. Transcribed first (audio-minute events), then analysed. Required unless `datasetId` or `transcriptUrls` is set. YouTube, TikTok or Instagram page links do not work. Apify free plan: files up to 10 minutes.

## `clips` (type: `integer`):

Short-form clip suggestions per video, 0-10, best first. Default 5. Each clip has a start and end, a verbatim hook, an on-screen title, a caption with hashtags and a 0-100 virality score. 0 returns chapters, titles and tags only.

## `clipMinSeconds` (type: `integer`):

Shortest clip, in seconds, 5-170. Default 15. Clips start and end on sentence boundaries. Must be lower than `clipMaxSeconds`, else both fall back to 15 and 60.

## `clipMaxSeconds` (type: `integer`):

Longest clip, in seconds, 10-180. Default 60. YouTube Shorts allow up to 180 seconds, TikTok and Reels more. Must be higher than `clipMinSeconds`, else both fall back to 15 and 60.

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

Language of the chapter titles, summary, title ideas, description, tags and clip captions, as an ISO code or an English name, e.g. "en" or "Spanish". Leave empty to write in the video's own language. Quotes and hooks stay verbatim.

## `maxConcurrency` (type: `integer`):

How many videos are analysed at the same time, 1-5. Default 3. Only changes the speed, not the results.

## Actor input object example

```json
{
  "mediaUrls": [
    "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3"
  ],
  "clips": 5,
  "clipMinSeconds": 15,
  "clipMaxSeconds": 60,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `videos` (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 = {
    "mediaUrls": [
        "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/youtube-chapters-clip-finder").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 = { "mediaUrls": ["https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3"] }

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/youtube-chapters-clip-finder").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 '{
  "mediaUrls": [
    "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3"
  ]
}' |
apify call helenisapi/youtube-chapters-clip-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/youtube-chapters-clip-finder"
        }
    }
}
```

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/LhkScdWUgAuwXvpH8/builds/aKZMljN0frw70mbQO/openapi.json
