API reference
YouTube Chapters & Shorts Clip Finder API
Video file, YouTube Studio captions or SRT to YouTube chapters, Shorts clips, titles and tags.
- Host
youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com- Base path
/v1/video-chapters- Auth
X-RapidAPI-Key,X-RapidAPI-Host- For agents
openapi.json·video-chapters.md
Overview and pricing · Tutorial: Video Chapters API · RapidAPI playground (opens in a new tab) ↗ · Apify actor (opens in a new tab) ↗
From Transcript
Chapters, clips and metadata from a transcript you already have: SRT, VTT, text or JSON segments.
Analyze Transcript
POST /v1/video-chapters/transcript
Transcript to YouTube chapters, short clips, titles and tags. Turn a video transcript (SRT, VTT, timestamped text, JSON segments or `transcript_url`) into YouTube chapters, summary, title ideas, description, tags, timestamped quotes and short-form clip suggestions with virality scores. 10 credits up to 10 minutes, +1 per started minute beyond.
| Parameter | In | Type | Description |
|---|---|---|---|
clips |
body | integer |
Short-form clip suggestions to return (0-10), best first. Default 5. |
clip_min_seconds |
body | integer |
Shortest clip, in seconds (5-170). Default 15. |
clip_max_seconds |
body | integer |
Longest clip, in seconds (10-180; YouTube Shorts allow 180). Default 60. |
language |
body | string |
Language of the titles, summaries and captions written for you (e.g. 'en', 'French'). The transcript's language by default. Quotes stay verbatim. |
title |
body | string |
The video's working title or topic, if you have one: it helps the titles and tags. Optional. |
transcript |
body | string |
The transcript, with timestamps: SRT, WebVTT, lines such as '[01:23] words' or '1:23 words', or a JSON array of segments. Up to 64 KB in this JSON body; send longer transcripts to /transcript/upload or as `transcript_url`. |
segments |
body | object[] |
Transcript segments as JSON objects, e.g. the `transcript`, `captions`, `timestamped` or `data` array of a YouTube transcript scraper. Each needs a start (`start`, `offset`, `startMs`, `start_time`, `tStartMs`... in seconds, milliseconds for *Ms keys, or '01:23') and `text`; an end or a duration is optional. |
transcript_url |
body | string |
Link to a transcript file (SRT, VTT, TXT or JSON, up to 5 MB), e.g. an Apify dataset item or a subtitle file. |
duration_seconds |
body | number |
Length of the video, if known: chapters and clips stay inside it. The end of the last segment otherwise. |
curl -X POST "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/transcript" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"transcript_url": "https://images-assets.nasa.gov/video/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis.srt",
"clips": 3
}'
import requests
url = "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/transcript"
payload = {
"transcript_url": "https://images-assets.nasa.gov/video/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis.srt",
"clips": 3
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/transcript", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"transcript_url": "https://images-assets.nasa.gov/video/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis/NHQ_2019_0923_AskNASA%20-%20What%20is%20Artemis.srt",
"clips": 3
}),
});
console.log(await res.json());
Analyze Transcript File
POST /v1/video-chapters/transcript/upload
Uploaded transcript file (SRT, VTT, TXT, JSON) to chapters and clips. Same as /transcript, for a transcript file sent as multipart/form-data (field `file`): long talks and whole streams, up to 4 hours and 5 MB. 10 credits up to 10 minutes, +1 per started minute beyond.
| Parameter | In | Type | Description |
|---|---|---|---|
file required |
form | file |
Transcript file, up to 5 MB: SRT, VTT, timestamped TXT, or JSON (segments, or a transcript scraper's item or dataset export). |
clips |
form | integer |
Short-form clip suggestions to return (0-10), best first. Default 5. |
clip_min_seconds |
form | integer |
Shortest clip, in seconds (5-170). Default 15. |
clip_max_seconds |
form | integer |
Longest clip, in seconds (10-180; YouTube Shorts allow 180). Default 60. |
language |
form | string |
Language of the titles, summaries and captions written for you (e.g. 'en', 'French'). The transcript's language by default. Quotes stay verbatim. |
title |
form | string |
The video's working title or topic, if you have one: it helps the titles and tags. Optional. |
duration_seconds |
form | number |
Length of the video, if known: chapters and clips stay inside it. The end of the last segment otherwise. |
curl -X POST "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/transcript/upload" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com" \
-F "file=@./my-file"
import requests
url = "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/transcript/upload"
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
}
with open("my-file", "rb") as f:
r = requests.post(url, headers=headers, files={"file": f})
print(r.json())
import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("file", new Blob([await readFile("my-file")]), "my-file");
const res = await fetch("https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/transcript/upload", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
},
body: form,
});
console.log(await res.json());
From Video or Audio
The same from an audio or video file, transcribed first.
Analyze Video from URL
POST /v1/video-chapters/media
Video or audio file URL to transcript, chapters and short clips. Everything Analyze Transcript returns, from a direct video or audio file URL (up to 150 MB and 90 minutes), transcript included. YouTube, TikTok or Instagram pages get 400 `unsupported_source`. 10 credits up to 10 minutes, +1 per started minute beyond, +2 per started minute transcribed.
| Parameter | In | Type | Description |
|---|---|---|---|
clips |
body | integer |
Short-form clip suggestions to return (0-10), best first. Default 5. |
clip_min_seconds |
body | integer |
Shortest clip, in seconds (5-170). Default 15. |
clip_max_seconds |
body | integer |
Longest clip, in seconds (10-180; YouTube Shorts allow 180). Default 60. |
language |
body | string |
Language of the titles, summaries and captions written for you (e.g. 'en', 'French'). The transcript's language by default. Quotes stay verbatim. |
title |
body | string |
The video's working title or topic, if you have one: it helps the titles and tags. Optional. |
url required |
body | string |
Direct link to an audio or video file you have the right to use (MP4, MOV, WEBM, MP3, M4A, WAV...), up to 150 MB and 90 minutes. Not a YouTube, TikTok or Instagram page: send their transcript to /transcript instead. |
spoken_language |
body | string |
Spoken language, if you know it (e.g. 'en'); detected otherwise. |
max_minutes |
body | integer |
Refuse (400 media_too_long, not billed) files longer than this. 90 at most. Default 90. |
curl -X POST "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/media" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"clips": 5,
"clip_min_seconds": 15,
"clip_max_seconds": 60,
"language": "en",
"url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3",
"max_minutes": 90
}'
import requests
url = "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/media"
payload = {
"clips": 5,
"clip_min_seconds": 15,
"clip_max_seconds": 60,
"language": "en",
"url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3",
"max_minutes": 90
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/media", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"clips": 5,
"clip_min_seconds": 15,
"clip_max_seconds": 60,
"language": "en",
"url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3",
"max_minutes": 90
}),
});
console.log(await res.json());
Analyze Uploaded Video
POST /v1/video-chapters/media/upload
Uploaded video or audio file to transcript, chapters and short clips. Same as /media, for a file sent as multipart/form-data (field `file`), up to 30 MB (a 60-minute MP3 at 64 kbit/s; for a video, send its audio track). 10 credits up to 10 minutes, +1 per started minute beyond, +2 per started minute transcribed.
| Parameter | In | Type | Description |
|---|---|---|---|
file required |
form | file |
Video or audio file, up to 30 MB. |
clips |
form | integer |
Short-form clip suggestions to return (0-10), best first. Default 5. |
clip_min_seconds |
form | integer |
Shortest clip, in seconds (5-170). Default 15. |
clip_max_seconds |
form | integer |
Longest clip, in seconds (10-180; YouTube Shorts allow 180). Default 60. |
language |
form | string |
Language of the titles, summaries and captions written for you (e.g. 'en', 'French'). The transcript's language by default. Quotes stay verbatim. |
title |
form | string |
The video's working title or topic, if you have one: it helps the titles and tags. Optional. |
spoken_language |
form | string |
Spoken language, if you know it (e.g. 'en'); detected otherwise. |
max_minutes |
form | integer |
Refuse (400 media_too_long, not billed) files longer than this. 90 at most. Default 90. |
curl -X POST "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/media/upload" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com" \
-F "file=@./my-file"
import requests
url = "https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/media/upload"
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
}
with open("my-file", "rb") as f:
r = requests.post(url, headers=headers, files={"file": f})
print(r.json())
import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("file", new Blob([await readFile("my-file")]), "my-file");
const res = await fetch("https://youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com/v1/video-chapters/media/upload", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "youtube-chapters-shorts-clip-finder-ai.p.rapidapi.com",
},
body: form,
});
console.log(await res.json());
Response
{
"source": "transcript",
"duration_seconds": 173.48,
"minutes_billed": 3,
"language": "en",
"output_language": "en",
"summary": "NASA astronaut Serena Aunon-Chancellor answers a variety of questions from the public regarding the Artemis lunar program, the Orion spacecraft, and her personal experiences living and working in space. She explains the strategic importance of returning to the Moon as a stepping stone for future Mars missions, while also sharing lighthearted insights into astronaut life, including her favorite space snacks and what she misses most about Earth.",
"chapters": [
{
"start": 0.0,
"end": 57.18,
"timestamp": "00:00",
"title": "The Artemis Program",
"summary": "An overview of the Artemis mission goals and why the Moon serves as a training ground for Mars."
},
{
"start": 57.18,
"end": 112.22,
"timestamp": "00:57",
"title": "Spacecraft and Personal Life",
"summary": "A look at the Orion vehicle and personal anecdotes about being an astronaut, including food and items taken to space."
},
{
"start": 112.22,
"end": 173.48,
"timestamp": "01:52",
"title": "Life in Orbit",
"summary": "Reflections on the reality of living in space, missing Earth, and the human side of being an astronaut."
}
],
"chapters_text": "00:00 The Artemis Program\n00:57 Spacecraft and Personal Life\n01:52 Life in Orbit",
"youtube_chapters_valid": true,
"titles": [
"NASA Astronaut Answers Your Questions",
"What is the Artemis Program?",
"Life as an Astronaut: Q&A with Serena Aunon-Chancellor",
"Returning to the Moon: NASA's Artemis Mission Explained",
"Behind the Scenes with a NASA Astronaut"
],
"description": "Join NASA astronaut Serena Aunon-Chancellor as she answers questions about the future of lunar exploration and the Artemis program. She shares insights into the technology behind the Orion spacecraft and offers a personal look at what it is really like to live and work in space.",
"tags": [
"nasa",
"artemis",
"astronaut",
"space exploration",
"orion spacecraft",
"moon mission",
"mars exploration",
"space travel",
"asknasa",
"serena aunon-chancellor",
"space life",
"science education"
],
"hashtags": [
"#nasa",
"#artemis",
"#space",
"#astronaut"
],
"quotes": [
{
"start": 44.43,
"timestamp": "00:44",
"text": "Essentially we practice we have, it's an engineering battleground so we can go to Mars."
},
{
"start": 117.42,
"timestamp": "01:57",
"text": "I missed feeling the Earth, so I missed the wind. I missed the rain, I missed the smell of the Earth, the smell of the grass."
},
{
"start": 128.96,
"timestamp": "02:08",
"text": "It's not scary being in space. I mean it's, it's your home and it's a size of a five bedroom house it's absolutely huge and your friends are up there with you so what's better than that."
}
],
"clips": [
{
"rank": 1,
"start": 117.42,
"end": 136.78,
"duration": 19.36,
"start_timestamp": "01:57",
"end_timestamp": "02:16",
"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 #nasa #earth",
"hashtags": [
"#space",
"#nasa",
"#earth"
],
"score": 85,
"reason": "It provides a relatable, emotional connection to the experience of being in space.",
"text": "I missed feeling the Earth, so I missed the wind. I missed the rain, I missed the smell of the Earth, the smell of the grass. These are the things you just can't imitate on station. Is it scary being in space? It's not scary being in space. I mean it's, it's your home and it's a size of a five bedroom house it's absolutely huge and your friends are up there with you so what's better than that."
},
{
"rank": 2,
"start": 94.44,
"end": 110.16,
"duration": 15.72,
"start_timestamp": "01:34",
"end_timestamp": "01:50",
"title": "Astronaut Essentials",
"hook": "Oh, I took multiple personal items it wasn't just one.",
"caption": "What would you bring to space? Turns out, a back scratcher is a must-have! #astronautlife #nasa #space",
"hashtags": [
"#astronautlife",
"#nasa",
"#space"
],
"score": 75,
"reason": "It's a fun, lighthearted look at the personal side of space travel.",
"text": "Oh, I took multiple personal items it wasn't just one. Funny enough , I took a back scratcher because you need a back scratcher wherever you go What food would you take to the Moon? Oh easy, cheeseburger french fries every time YUM If you were in a dance-off with an alien what song would you pick?"
},
{
"rank": 3,
"start": 18.72,
"end": 50.46,
"duration": 31.74,
"start_timestamp": "00:18",
"end_timestamp": "00:50",
"title": "Why We Go To The Moon",
"hook": "so the Artemis program is our lunar exploration program.",
"caption": "The Moon is more than just a destination; it's our training ground for Mars. #artemis #nasa #spaceexploration",
"hashtags": [
"#artemis",
"#nasa",
"#spaceexploration"
],
"score": 70,
"reason": "It explains the strategic purpose of the Artemis program in a clear, concise way.",
"text": "so the Artemis program is our lunar exploration program. We will get to the South Pole of the Moon by 2024, landing the first American woman and the next man. Why are we doing this? Well, in order for us to head towards Mars we need a special place where we can practice, essentially develop robust engineering technologies, figure out how well the human does with long-duration spaceflight, learn how to build habitats. And we do all of this on the Moon. Essentially we practice we have, it's an engineering battleground so we can go to Mars."
}
]
}
A real response (NASA's "#AskNASA - What is Artemis?", public domain). Times are in seconds and as timestamp strings; 1:02:03 once a video passes an hour. notes says what was adjusted (cues sorted, chapters merged, clips dropped).
Who it is for
- 🎥 Creators, before upload: send 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 send the file
- 🎙️ Podcasts: an MP3 is enough, and the same timestamps work in Spotify episode descriptions
- 🔗 Someone else's video: get its transcript from any YouTube transcript API, then send us its JSON as it is
ℹ️ No YouTube links: we never download from YouTube (its terms forbid it, and such downloads break often). Send a transcript or a file instead.
Why developers pick this API
- ✅ Checked in code, not just generated: every chapter and clip time is snapped to a real transcript boundary, YouTube's chapter rules are enforced, invented quotes are dropped.
youtube_chapters_validtells you if YouTube will show them. - 🎯 Measured on real videos: 38 real cases (NASA videos and press briefings, Chaos Communication Congress talks, podcasts in English, French, Spanish, German and Japanese): the 17 chapters of an 85-minute lightning-talk session landed on the 17 talks of its schedule.
- 🧩 Everything in one call: chapters, clips, titles, tags and quotes from one request, where other tools sell a summary here and a clip finder there.
- 💸 Priced per minute of video: 10 credits up to 10 minutes, 1 credit per minute beyond. A 1-hour talk costs about $0.075 on PRO; video breakdown actors charge $0.03 per 3 minutes plus $0.01 per minute.
- 🔒 No platform scraping: we never download from YouTube, TikTok or Instagram. You send the transcript or a file you have the right to use.
| This API | YouTube summarizer APIs | Video breakdown actor (tubetext) | Audio transcriber + AI chapters (tidytools) | |
|---|---|---|---|---|
| Input | transcript (any format) or media file | YouTube URL | video page URL | audio file |
| YouTube chapters, rule-checked | ✅ | ❌ | ✅ (key moments) | ✅ |
| Short clips with score and hook | ✅ up to 10 | ❌ | hook analysis | ❌ |
| Titles, tags, quotes | ✅ | summary only | script | summary |
| 10-minute video | $0.0125 (transcript), $0.0375 (file) | $0.0008-0.004 | $0.10 | $0.07 |
| 60-minute video | $0.075 (transcript), $0.225 (file) | $0.0008-0.004 | $0.60 | $0.37 |
From a YouTube transcript scraper
Pass the scraper's item (or its array) in segments, as is:
{
"segments": [
{
"title": "My video",
"transcript": [
{ "text": "Welcome back to the channel.", "start": 0.08, "duration": 3.5 },
{ "text": "Today we build a sourdough starter.", "start": 3.6, "duration": 4.1 }
]
}
],
"clips": 5,
"language": "Spanish"
}
Start keys start, offset, start_time, startMs, tStartMs... in seconds, milliseconds or 01:23; end or duration optional. A JSON body is capped at 64 KB (about 20 minutes of segments): for long videos send the same JSON, or an SRT, as a file to /transcript/upload (multipart field file, up to 5 MB and 4 hours).
From a video or audio file
{ "url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_emancipation_mgt_64kb.mp3", "clips": 3 }
Direct file links only (up to 150 MB and 90 minutes), or upload up to 30 MB to /media/upload. The response adds transcript (language, text, timed segments). A 3-minute file answers in about 15 s, an 85-minute talk in about 60 s.
Errors
| Status | code |
Meaning |
|---|---|---|
| 400 | missing_input / too_many_inputs |
Send one of transcript, segments or transcript_url. |
| 400 | no_timestamps / invalid_transcript |
No timed line could be read: the transcript needs timestamps. |
| 400 | transcript_too_short / transcript_too_long |
Under 30 seconds or 40 words; over 4 hours or 60,000 words. |
| 400 | unsupported_source |
A YouTube, TikTok or Instagram page: send its transcript instead. |
| 400 | media_too_long / unsupported_file |
A file over 90 minutes, or not audio or video. |
| 400 | no_speech / not_enough_speech |
Music only, or too little speech to chapter. |
| 400 | invalid_clip_range |
clip_min_seconds must be below clip_max_seconds. |
| 429 | daily_limit_reached |
Daily safety limit of your plan; resets at 00:00 UTC. |
| 503 | ai_error / upstream_timeout |
The AI did not answer in time; retry. Not billed. |
Honest limits
- It reads what is said, not what is shown: silent scenes, on-screen text and visuals are not analysed. A music-only video gets
no_speech. - The virality score is an opinion from the transcript (surprise, emotion, a useful tip, understood without context), not a prediction of views.
- Media files up to 90 minutes and 150 MB: for longer videos, or heavy video files, send the transcript or the audio track.
- Some servers block downloads (bot protection): you get
site_unreachable, not billed; upload the file instead.
Use it from an AI agent
Add this MCP server and the YouTube Chapters & Shorts Clip Finder - AI Video Timestamps actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.
https://mcp.apify.com?tools=helenisapi/youtube-chapters-clip-finder
Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.