YouTube Transcript API for podcasters: notes and chapters
By the YouTubeTranscriptAPI engineering team · Published · Updated
An AI show notes vendor's own review praises a chapter list that starts at 00:01. YouTube's rules say the first chapter has to start at 00:00.
To make show notes, chapters and quotes from a video podcast, fetch the episode's YouTube transcript with timestamps, have a model draft the notes, then check the draft in code. Snap every chapter to a real caption time, start at 00:00, keep chapters at least two minutes apart, and search each quote word for word in the transcript. One chapter list then works on YouTube, Spotify and Apple Podcasts.
We make YouTubeTranscriptAPI, so the transcript step in this guide is ours. The chapter rules and the quote check work the same on any transcript with start times, including one from your own recording software.
I read the chapter rules on YouTube's, Spotify's and Apple's own help pages, five tools and guides that make show notes, and the Podcasting 2.0 chapters spec. Then I tested the free script below on two real video podcast episodes.
Everything here was checked on December 1, 2026.
How do podcasters turn a YouTube episode into show notes?
Fetch the transcript with timestamps, send it to a model with clear rules, and check what comes back before you publish. The model is good at summaries, topic breaks and spotting memorable lines. It's unreliable on the two things listeners click: the exact second a chapter starts, and the exact words a guest said. So the script below drafts with Claude and then fixes chapters and verifies quotes in plain code.
If your podcast is on YouTube, the transcript is already there. Creator-uploaded captions or YouTube's automatic ones both work.
The transcript endpoint returns every caption line with its start time, plus the episode title and channel. That's 1 credit per episode, and an episode without captions costs nothing; the error reference lists which responses are free.
From there, the script writes four files per episode. Show notes in Markdown, a chapter list for the YouTube description, a chapter list for Apple and Spotify, and a Podcasting 2.0 chapters.json for your podcast host.
It also writes a report of every change it made to the model's draft. That report is the part I'd read first.
If all you want is a summary, our guide to summarizing YouTube videos with AI is the simpler route. This one is for hosts who publish chapters and quotes.
What chapter rules do YouTube, Spotify and Apple Podcasts enforce?
All three want the first chapter at 00:00 and at least three chapters. After that they differ: YouTube needs each chapter to last at least 10 seconds, Spotify needs at least 30 seconds between chapter starts, and Apple recommends chapters of at least two minutes and no more than six an hour. A list built to Apple's recommendation passes all three.
Here are the rules from each platform's own help page:
| Rule | YouTube | Spotify | Apple Podcasts |
|---|---|---|---|
| First chapter | 00:00 | 00:00 or 00:00:00 | 00:00:00 |
| Minimum chapters | 3 | 3 | 3 |
| Spacing | Each chapter at least 10 s | At least 30 s between starts | Recommends at least 2 min each |
| Titles | Your text after the time | Plain text, no emojis or HTML; under 40 characters suggested | Recommends 45 characters or fewer |
| Where they go | Video description | Episode description or Podlove chapters | Description, ID3/MP4 tags or Podcasting 2.0 feed tag |
Sources: YouTube's video chapters help, Spotify's chapters guide and Apple's chapters guide.
So the script uses Apple's two-minute recommendation as its default gap, and caps titles at 40 characters. You can lower the gap with --min-gap, down to Spotify's 30 seconds.
All three platforms also generate chapters on their own when you don't provide any. YouTube and Spotify replace their automatic chapters with yours, and Apple labels its own "Automatically Created."
That's a good reason to publish your own. Automatic chapters are written by a system that doesn't know which part of the conversation you think matters.
Why do AI chapter tools get timestamps wrong?
A model reads timestamps as text, so it rounds them, starts the first chapter a second late, or puts two topic changes 15 seconds apart. None of that looks wrong in a draft, but one bad line can make YouTube ignore the whole list. The fix is mechanical: snap every chapter to a real caption start, force the first to zero, and drop chapters that come too close together.
I found this in the tools themselves. Descript's review of AI show notes tools praises an example whose chapters start at "00:01," which fails YouTube's first rule.
OverseerOS's copy-ready chapter template uses "00:00" on every line as a placeholder. Paste it without editing and every chapter after the first breaks the ascending-order rule.
Castmagic's chapters page states the 00:00 and three-chapter rules, but not YouTube's 10-second minimum or Spotify's 30-second spacing.
None of the five pages I read checked a draft against the rules in code. Most said to review the output by hand, which is right, but a human skims timestamps.
Here's what the script's fix_chapters does with a draft:
1. Moves each chapter back to the start of the caption line it falls in, so it never begins mid-sentence. 2. Sets the first chapter to 00:00, or adds an "Intro" chapter if the first topic starts late. 3. Drops any chapter that starts less than two minutes after the one before it, and any that starts too close to the end. 4. Removes emojis, numbering like "1 -" and Markdown symbols, and trims titles to 40 characters at a word boundary. 5. Refuses to write a chapter list at all if fewer than three chapters survive.
I fed it a deliberately bad draft on a real 90-minute episode. It had a first chapter at 00:01, a second 14 seconds later, numbering and an emoji in a title, two titles over 40 characters, and a last chapter 7 seconds before the end.
The output was three valid chapters, each starting on a real caption line, and a report with seven notes: three title cleanups, two moves to caption starts and two dropped chapters.
One of those notes shows the limit of fixing titles in code. Cutting "Dinner plans for tomorrow night with the whole team" at 40 characters leaves a title ending in "with." The prompt asks the model for short titles, so this is a fallback, and the report tells you which titles to rewrite.
How do you get pull quotes the guest actually said?
Search for every quote in the transcript, word for word, after ignoring case and punctuation. If it's there, keep the transcript's exact wording and attach the timestamp. If it's off by a word or two, replace it with what the transcript says. If it isn't there at all, drop it. Never publish a quote you haven't found in the transcript.
This matters more for quotes than for anything else in your notes. A misquote is about a real person, often your guest.
It's also a known failure. In December 2025, Semafor reported that the Washington Post's AI-generated podcasts included invented or misattributed quotes.
Models drift in small ways. They fix grammar, merge two sentences, or add a word at the start.
The script's verify_quote handles each case. I tested it on the two real caption tracks:
| Quote the model returned | Result | What gets published |
|---|---|---|
| The exact words, different punctuation | Exact | The transcript's wording, with its timestamp |
| One extra word added at the start | Adjusted | The transcript's wording, without the extra word |
| One word changed in a 16-word line | Adjusted | The transcript's wording, with the right word |
| A plausible line nobody said | Dropped | Nothing, plus a note in the report |
| Under four words | Dropped | Too short to check reliably |
Punctuation is why the matching ignores it. On the 90-minute episode with creator-uploaded captions, 87% of caption lines had sentence punctuation; on the 36-minute episode with automatic captions, only 35% did.
One limit is worth saying plainly. The check proves the words are in the transcript, not that the transcript heard them right.
Automatic captions mishear names and jargon. Before a quote goes on a graphic, play the moment it links to.
What should podcast show notes include?
Good show notes have a short summary that hooks a reader, a list of what the episode covers, chapters with clickable times, and links to everything the guests mention. Buzzsprout's guide, updated in January 2026, suggests a 100 to 200 word description and timestamps on the main topics. The script writes the summary, points, chapters and quotes, and leaves a "Mentioned" list of names for you to turn into links.
Buzzsprout's show notes guide also recommends linking to the quotes, data, articles and other material you referenced. That's the part a model can't do safely on its own.
A transcript names a book, a tool or a company. It doesn't give the right URL, and a model guessing one is how broken or wrong links end up in your notes.
So the script asks the model only for the names. You add the links, which takes a few minutes and is the part listeners actually use.
The chapters go into the show notes too, as clickable YouTube links that open the episode at each chapter.
Paste the plain chapter list into your episode description as well. Spotify and Apple both turn timestamps in the description into chapters, as long as they follow the rules above.
How do you run podcast_kit.py on an episode or a whole season?
Install the Anthropic SDK, set two API keys, and pass the script a YouTube link or a playlist. It fetches each transcript, makes one Claude call per episode, checks the result and writes a folder of files per episode. Start with --dry-run, which fetches the transcripts and prints each episode's length, word count and estimated model cost without calling the model.
The commands:
pip install anthropic
export YTT_API_KEY=tk_live_...
export ANTHROPIC_API_KEY=sk-ant-...
python podcast_kit.py https://www.youtube.com/watch?v=VIDEO_ID --dry-run
python podcast_kit.py https://www.youtube.com/watch?v=VIDEO_ID
python podcast_kit.py --playlist PL... --out season-3/A playlist listing costs 20 credits for up to 100 episodes. For longer back catalogs, our playlist transcript guide covers the route past 100.
The model call uses Claude Opus 5.5 at medium effort, with structured output so the reply is always valid JSON. It also turns on Anthropic's server-side fallback, so a request the model declines is retried on a recommended fallback model instead of failing.
Use --model claude-sonnet-5-5 or --model claude-haiku-5-5 for cheaper runs on a big back catalog. I'd compare a few episodes side by side before switching a whole season.
An episode without captions is skipped and costs nothing. If your key runs out of credits, the run stops and tells you, instead of writing half a season.
To run it on every new episode automatically, pair it with our channel monitor, which checks a channel for new uploads for free. Get your transcript key from the sign-up page.
The same transcript also makes captions for your clips. Our guide to YouTube transcripts as SRT and VTT turns it into subtitle files you can trim for short-form edits.
When should you use Podcasting 2.0 chapters.json?
Use chapters.json when your podcast host lets you attach a chapters file to each episode. It's the Podcasting 2.0 format, referenced from your RSS feed with the podcast:chapters tag, and Apple Podcasts reads it. Spotify doesn't: it reads chapters from the episode description or from Podlove chapters. Description timestamps are the one route that reaches both.
The JSON chapters spec is small. A file needs a version and a chapters array, and each chapter needs only a startTime in seconds.
The script writes version 1.2.0 with a title for each chapter. Your host serves it with the application/json+chapters content type, so you upload it rather than paste it.
Chapter images and links are optional in the spec. The script leaves them out, because a link per chapter is exactly the kind of URL a model shouldn't invent.
If your audio editor already writes ID3 chapters into the MP3, Apple reads those too. Just keep one source of truth, so your feed and your file don't disagree.
What does it cost per episode?
The transcript costs 1 credit, and the model call costs roughly 9 to 13 cents per episode with Claude Opus 5.5, based on two real episodes of 36 and 90 minutes. Claude Sonnet 5.5 roughly halves that, and Claude Haiku 5.5 is well under a cent. At our founding prices, a credit is $2 to $3 per 1,000, so the transcript is the small part.
Here's the estimate for the two episodes I tested:
| Episode | Words | Input tokens (est.) | Opus 5.5 | Sonnet 5.5 | Haiku 5.5 |
|---|---|---|---|---|---|
| 36 min, automatic captions | 6,252 | about 9,700 | about $0.09 | about $0.04 | under $0.01 |
| 90 min, creator captions | 13,823 | about 20,600 | about $0.13 | about $0.07 | under $0.01 |
The estimate uses each model's list price from Anthropic's pricing page and assumes 2,500 output tokens. Thinking tokens aren't in it, so treat these as floors.
The script writes each episode's real token count and cost to report.json. After a few episodes you'll know your actual number.
For credits, new accounts get 100 free, enough for 100 episodes. After that, the pricing page has the plans; founding prices hold if you subscribe within 7 days of signing up.
What did I test, and what didn't I?
The script ships with 9 tests, all passing on Python 3.12 with the Anthropic SDK 2.15.0 installed. They run the chapter fixer and the quote check on two real caption tracks, and they check that the model call sends the right model, effort, structured-output schema and fallback setting. A fake client stood in for Claude, so no real model call was made.
The two real episodes were a 90-minute video podcast with creator-uploaded captions and a 36-minute one with automatic captions, fetched on December 1, 2026.
The fake client returned a fixed draft with known problems. That shows the checking code works on real transcripts.
It doesn't show how good Claude's chapters and summaries are on your show. There are no API keys on this machine, so I didn't run the real model or our real API here.
Before you publish a season, run three episodes, read the reports, and click every chapter and quote link.
Frequently asked questions
How do I add chapters to a YouTube podcast episode?
Put a list of timestamps and titles in the video description, one per line, starting with 00:00. YouTube needs at least three timestamps in ascending order, and each chapter must last at least 10 seconds. Your list replaces YouTube's automatic chapters. If the first line isn't 00:00, YouTube ignores the list, which is the most common mistake in AI-written chapters.
Can I use the same chapters on YouTube, Spotify and Apple Podcasts?
Yes, if the list meets the strictest rules. Start at 00:00, use at least three chapters, keep them at least two minutes apart as Apple recommends, and use plain titles under 40 characters with no emojis. Paste it into the YouTube description and the podcast episode description. Spotify needs 30 seconds between chapters, so a two-minute gap passes everywhere.
How do I stop AI from misquoting my podcast guests?
Check every quote against the transcript before publishing. Search for the words in order, ignoring case and punctuation. Keep exact matches with their timestamp, replace near-misses with the transcript's wording, and drop anything not found. Then listen to the moment each quote links to, because automatic captions can mishear names. The script in this guide does the search for you.
What is a Podcasting 2.0 chapters.json file?
It's a JSON file of chapter start times and titles that your podcast host links from the RSS feed with the podcast:chapters tag. It needs a version and a list of chapters, each with a startTime in seconds. Apple Podcasts reads it. Spotify doesn't, so also paste the chapters into your episode description.
How much does it cost to generate podcast show notes with AI?
With this script, each episode costs 1 transcript credit plus one model call. On two real episodes of 36 and 90 minutes, the estimated Claude Opus 5.5 cost was about 9 to 13 cents, Claude Sonnet 5.5 about half that, and Claude Haiku 5.5 under a cent. Each episode's real cost is written to its report.
Can I get a transcript of a video podcast without uploading the audio?
Yes, if the episode is on YouTube with captions. A transcript API returns the caption text with timestamps from the video link, so there's no audio to download, upload or transcribe. Creator-uploaded captions are the most accurate. Automatic captions work too but may mishear names, so check quotes and chapter titles that include them.
Run three episodes before you run a season
Dry-run one episode to see the cost, then run three and read each report before you publish anything. Click every chapter and every quote link. If the chapters land well and the quotes check out, run the whole playlist and spend your time on the links in the "Mentioned" list, the one part the script leaves to you.
About the author: the YouTubeTranscriptAPI engineering team builds and runs the hosted YouTube Transcript API and its MCP server. We test every script we publish against mocks, real transcripts or the live product, and say which.